/* LOVE the Philippines — parallax microsite. Brand palette sampled from the logo. */
:root {
  --green: #00a651;
  --deep-green: #007236;
  --blue: #00adee;
  --deep-blue: #0054a6;
  --ink: #06283d;
  --abyss: #041620;
  --yellow: #ffc500;
  --orange: #f6931d;
  --ember: #f26522;
  --red: #ec1c24;
  --sand: #fff6e8;
  --card: rgba(255, 255, 255, 0.92);
}
@font-face {
  font-family: "Barabara";
  src: url("assets/BARABARA-FONT.otf") format("opentype");
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--abyss);
  color: var(--sand);
  overflow-x: hidden;
}
/* ---- living gradient background (works with zero JS) ---- */
.bg, .bg2 {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 18% 22%, rgba(0, 173, 238, 0.55), transparent 70%),
    radial-gradient(34% 32% at 82% 30%, rgba(0, 166, 81, 0.5), transparent 70%),
    radial-gradient(42% 40% at 70% 78%, rgba(246, 147, 29, 0.42), transparent 70%),
    radial-gradient(36% 34% at 22% 80%, rgba(236, 28, 36, 0.4), transparent 70%),
    linear-gradient(160deg, #06283d, #041620 60%, #0a2a1c);
  animation: drift 36s ease-in-out infinite alternate;
}
.bg2 {
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(30% 28% at 78% 20%, rgba(255, 197, 0, 0.35), transparent 70%),
    radial-gradient(30% 30% at 15% 65%, rgba(0, 84, 166, 0.6), transparent 70%),
    radial-gradient(26% 30% at 60% 90%, rgba(242, 101, 34, 0.35), transparent 70%);
  animation: drift2 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
@keyframes drift2 {
  from { transform: translate3d(2%, 1%, 0) scale(1.05); }
  to { transform: translate3d(-2%, -2%, 0) scale(1); }
}
#p5-holder, #p5-holder canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
main { position: relative; z-index: 1; }
/* ---- nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  background: rgba(4, 22, 32, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}
nav .brand { font-family: "Barabara", sans-serif; font-size: 1.25rem; letter-spacing: 0.04em; color: #fff; text-decoration: none; }
nav .brand b { color: var(--yellow); font-weight: normal; }
nav .links { margin-left: auto; display: flex; gap: 0.9rem; }
nav a { color: var(--sand); text-decoration: none; opacity: 0.85; }
nav a:hover { opacity: 1; color: var(--yellow); }
/* ---- hero ---- */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 5rem 1.2rem 2rem;
  perspective: 1100px;
}
.logo-stage { position: relative; width: min(1060px, 94vw); margin: 0 auto; transform-style: preserve-3d; }
#love-logo { width: 100%; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}
#love-logo path { transform-box: fill-box; transform-origin: center; }
#love-logo.enter path {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.96);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1.2) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }
.logo-stage .shine {
  position: absolute; inset: -6% -12%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
  background-size: 280% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { background-position: 120% 0; } 90%, 100% { background-position: -20% 0; } }
.hero-copy { width: min(1060px, 94vw); margin: 1.4rem auto 0; display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.hero-copy h1 {
  font-family: "Barabara", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.5);
}
.hero-copy h1 small { display: block; font-size: 0.42em; color: var(--yellow); letter-spacing: 0.06em; }
.scroll-hint { margin-left: auto; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.scroll-hint::after { content: " ↓"; }
/* ---- chapters ---- */
.chapter {
  position: relative;
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 14vh 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}
.chapter:nth-child(even) .text { order: 2; }
.giant {
  position: absolute;
  top: 4vh; left: -2%;
  font-family: "Barabara", sans-serif;
  font-size: clamp(10rem, 30vw, 24rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.22);
  user-select: none;
  pointer-events: none;
}
.text .kicker { font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--yellow); margin: 0 0 0.5rem; }
.text h2 { font-family: "Barabara", sans-serif; font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0 0 0.8rem; color: #fff; }
.text p { margin: 0 0 1rem; line-height: 1.65; max-width: 34em; color: #f2ede2; }
.text .tag { display: inline-block; font-size: 0.8rem; padding: 0.3rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; margin: 0 0.4rem 0.4rem 0; }
/* pseudo-3D scene */
.scene { position: relative; min-height: 380px; perspective: 900px; transform-style: preserve-3d; }
.poster-card {
  position: relative;
  width: min(420px, 80%);
  margin: 8% auto;
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: #000;
}
.poster-card img, .poster-card video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.poster-card .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.55));
}
.poster-card .play span {
  border: 2px solid #fff; border-radius: 999px; padding: 0.5rem 1.2rem; color: #fff;
  background: rgba(0, 0, 0, 0.35);
}
.float { position: absolute; will-change: transform; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }
.float img { width: 100%; height: auto; display: block; }
.f1 { width: 34%; top: -4%; left: -4%; }
.f2 { width: 26%; bottom: -2%; right: -2%; }
.f3 { width: 20%; top: 38%; right: 2%; }
/* reveal */
.rv { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
/* ---- palette ---- */
.palette { width: min(1120px, 94vw); margin: 0 auto; padding: 10vh 0 6vh; }
.palette h2 { font-family: "Barabara", sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin: 0 0 0.4rem; }
.palette p { margin: 0 0 1.4rem; color: #f2ede2; max-width: 52em; line-height: 1.6; }
.gradient-bar { height: 84px; border-radius: 12px;
  background: linear-gradient(90deg, #0054a6, #00adee, #00a651, #ffc500, #f6931d, #f26522, #ec1c24);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.sw { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 0.35rem 0.7rem 0.35rem 0.4rem; }
.sw i { width: 22px; height: 22px; border-radius: 6px; display: block; }
footer { text-align: center; padding: 3rem 1rem 4rem; color: rgba(255, 246, 232, 0.75); font-size: 0.9rem; }
footer b { font-family: "Barabara", sans-serif; font-weight: normal; color: #fff; font-size: 1.1rem; }
@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; padding: 10vh 0; }
  .chapter:nth-child(even) .text { order: 0; }
  .scene { min-height: 320px; }
  nav .links { gap: 0.6rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg, .bg2, .logo-stage .shine { animation: none; }
  #love-logo.enter path { animation: none; opacity: 1; transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
