/* v1.4 — "Thank you, Philippines." A soft editorial love letter in the spirit of
   POLA's Mother's Day tribute: light, airy, gratitude-led. Same LOVE elements. */
:root {
  --paper: #f5efe3;
  --paper-2: #efe6d6;
  --ink: #3d3126;
  --ink-soft: #6d5f4e;
  --rose: #e9b6ac;
  --blush: #f4d9d2;
  --sand: #ecd9ae;
  --sage: #ccd9bf;
  --sky: #c9e0e9;
  --gold: #c08c2e;
  --sea: #0e5b8a;
  --serif: "Didot", "Bodoni MT", "Playfair Display", "Noto Serif", Georgia, serif;
}
@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(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}
/* soft pastel washes + paper grain (pure CSS, zero JS) */
.wash { position: fixed; inset: -15%; z-index: -2;
  background:
    radial-gradient(34% 30% at 15% 12%, rgba(233, 182, 172, 0.5), transparent 70%),
    radial-gradient(30% 28% at 88% 22%, rgba(201, 224, 233, 0.55), transparent 70%),
    radial-gradient(36% 32% at 80% 68%, rgba(236, 217, 174, 0.55), transparent 70%),
    radial-gradient(32% 30% at 12% 78%, rgba(204, 217, 191, 0.5), transparent 70%),
    linear-gradient(175deg, #f7f2e7, #f5efe3 45%, #efe6d6);
  animation: breathe 30s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.04); }
}
.grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
#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.65rem 1.4rem;
  background: rgba(245, 239, 227, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 49, 38, 0.1);
  font-size: 0.9rem;
}
nav .brand { font-family: "Barabara", sans-serif; font-size: 1.15rem; letter-spacing: 0.05em; color: var(--ink); text-decoration: none; }
nav .brand b { font-weight: normal; color: var(--gold); }
nav .links { margin-left: auto; display: flex; gap: 1rem; }
nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover { color: var(--ink); }
/* hero */
.hero { max-width: 960px; margin: 0 auto; padding: 7.5rem 1.4rem 3rem; text-align: center; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2rem; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1.08; margin: 0 0 0.6rem; }
.hero h1 em { font-style: italic; color: var(--sea); }
.lede { font-family: var(--serif); font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: var(--ink-soft); max-width: 34em; margin: 0 auto 2.4rem; }
.logo-wrap { width: min(860px, 92vw); margin: 0 auto; }
#love-logo { width: 100%; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 24px 44px rgba(61, 49, 38, 0.22));
}
#love-logo path { transform-box: fill-box; transform-origin: center; }
#love-logo.enter path { opacity: 0; transform: translate3d(0, 18px, 0);
  animation: bloom 0.9s ease-out forwards; animation-delay: var(--d, 0ms); }
@keyframes bloom { to { opacity: 1; transform: none; } }
.scroll-line { width: 1px; height: 64px; margin: 2.6rem auto 0;
  background: linear-gradient(var(--gold), transparent); position: relative; }
.scroll-line::after { content: "scroll"; position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
/* prose interlude */
.prose { max-width: 620px; margin: 0 auto; padding: 9rem 1.4rem; text-align: center;
  font-family: var(--serif); font-size: clamp(1.25rem, 3.2vw, 1.7rem); line-height: 1.9; }
.prose .rule { width: 44px; height: 1px; background: var(--gold); margin: 2rem auto; }
/* chapters */
.chapter { max-width: 1080px; margin: 0 auto; padding: 7rem 1.4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  content-visibility: auto; contain-intrinsic-size: 640px; }
.chapter:nth-of-type(even) .text { order: 2; }
.chap-no { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; margin: 0 0 0.4rem; }
.text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; margin: 0 0 1rem; }
.text h2 .gi { font-style: italic; color: var(--sea); }
.text p { color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 30em; }
.text .from { font-family: var(--serif); font-style: italic; color: var(--ink); }
/* arch-framed film stills */
.scene { position: relative; min-height: 440px; }
.arch { position: relative; width: min(340px, 72%); margin: 4% auto;
  border-radius: 999px 999px 26px 26px; overflow: hidden; cursor: pointer;
  border: 6px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 30px 60px rgba(61, 49, 38, 0.25);
  background: #fff;
}
.arch img, .arch video { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.arch .play { position: absolute; inset: auto 0 1.4rem; text-align: center; }
.arch .play span { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: #fff;
  background: rgba(61, 49, 38, 0.55); border: 1px solid rgba(255,255,255,0.6);
  padding: 0.5rem 1.1rem; border-radius: 999px; }
.float { position: absolute; will-change: transform; filter: drop-shadow(0 12px 20px rgba(61, 49, 38, 0.25)); }
.float img { width: 100%; height: auto; display: block; }
.f1 { width: 30%; top: 0; left: 0; }
.f2 { width: 24%; bottom: 2%; right: 0; }
.f3 { width: 18%; top: 44%; right: 6%; }
.big-letter { position: absolute; top: -3rem; right: 0; font-family: var(--serif);
  font-size: clamp(7rem, 16vw, 12rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(61, 49, 38, 0.18); user-select: none; pointer-events: none; }
/* palette */
.palette { max-width: 860px; margin: 0 auto; padding: 6rem 1.4rem; text-align: center; }
.palette h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 0.6rem; }
.palette p { color: var(--ink-soft); max-width: 44em; margin: 0 auto 1.8rem; }
.soft-bar { height: 72px; border-radius: 999px;
  background: linear-gradient(90deg, #a9cfe3, #b7dcc9, #f2e3b6, #f0c193, #e9a89e);
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.7), 0 16px 34px rgba(61,49,38,0.18); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.2rem; }
.sw { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--ink-soft);
  background: rgba(255,255,255,0.6); border-radius: 999px; padding: 0.3rem 0.8rem 0.3rem 0.35rem; }
.sw i { width: 20px; height: 20px; border-radius: 50%; display: block; }
/* closing */
.closing { max-width: 640px; margin: 0 auto; padding: 8rem 1.4rem 3rem; text-align: center;
  font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.8; }
.closing small { display: block; margin-top: 1.6rem; font-family: -apple-system, sans-serif;
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
footer { text-align: center; padding: 2rem 1rem 3.5rem; color: var(--ink-soft); font-size: 0.85rem; }
footer b { font-family: "Barabara", sans-serif; font-weight: normal; color: var(--ink); }
/* reveal */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s ease, transform 0.9s ease; }
.rv.in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; gap: 1.5rem; padding: 5rem 1.4rem; }
  .chapter:nth-of-type(even) .text { order: 0; }
  .scene { min-height: 400px; }
  nav .links { gap: 0.7rem; font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wash { animation: none; }
  #love-logo.enter path { animation: none; opacity: 1; transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
