/* ============================================================
   NOVAMILLI — "The Nursery" design system
   Warm paper · editorial serif · film chapters
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/karla-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/karla-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/karla-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/karla-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* paper & ink */
  --paper: #F7F0E6;
  --paper-deep: #F0E4D3;
  --paper-card: #FCF8F1;
  --ink: #392E28;
  --ink-soft: #6B5A50;
  --ink-mute: #9A8577;

  /* brand */
  --rose: #DE5C82;
  --rose-deep: #C64A70;
  --terracotta: #C96F4A;
  --gold: #D9A441;
  --sage: #8A9B77;

  /* dusk */
  --dusk: #241B21;
  --dusk-2: #2E2229;
  --dusk-ink: #F3E7DA;
  --dusk-mute: #B5A093;
  --lamp: #E8B15C;

  /* type */
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Karla', 'Avenir Next', 'Segoe UI', sans-serif;

  /* rhythm */
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
.hero-video, .hero-after, .finale-bg { height: 100%; }
a { color: inherit; }
::selection { background: var(--rose); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .5s var(--ease-soft), box-shadow .5s var(--ease-soft), padding .5s var(--ease-soft);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(57, 46, 40, 0.08);
  padding: 10px 0;
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 30px; height: 30px; border-radius: 8px; }
.nav-wordmark {
  font-family: var(--serif);
  font-style: italic; font-weight: 550;
  font-size: 21px; letter-spacing: 0.01em;
  color: var(--ink);
  transition: color .4s;
}
.nav-link {
  text-decoration: none; font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink-soft);
  transition: color .25s;
}
.nav-link:hover { color: var(--rose-deep); }
.nav.over-hero:not(.scrolled) .nav-wordmark,
.nav.over-hero:not(.scrolled) .nav-link,
.nav.over-hero:not(.scrolled) .lang-toggle {
  color: #FFF4E6;
  text-shadow: 0 1px 12px rgba(30, 22, 27, 0.6);
}
.nav-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.nav-cta {
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff; background: var(--rose-deep);
  padding: 9px 20px; border-radius: 100px;
  transition: transform .3s var(--ease-out), background .25s, box-shadow .3s;
  box-shadow: 0 2px 12px rgba(198, 74, 112, 0.28);
}
.nav-cta:hover { transform: translateY(-1px) scale(1.03); background: var(--rose); box-shadow: 0 4px 18px rgba(198, 74, 112, 0.4); }

/* lang dropdown */
.lang-dropdown { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--ink-soft);
  padding: 6px 4px;
  transition: color .25s;
}
.lang-toggle:hover { color: var(--rose-deep); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 160px;
  list-style: none;
  background: var(--paper-card);
  border: 1px solid rgba(57, 46, 40, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(57, 46, 40, 0.16);
  padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  padding: 8px 14px; border-radius: 9px;
  font-size: 14.5px; cursor: pointer;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.lang-option:hover { background: var(--paper-deep); }
.lang-option.active { color: var(--rose-deep); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--dusk);
}
.hero-film { position: absolute; inset: 0; }
.hero-video, .hero-after {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-film.playing .hero-video {
  animation: ken-burns 14s var(--ease-soft) forwards;
}
@keyframes ken-burns {
  from { transform: scale(1.04); }
  to { transform: scale(1.11); }
}
.hero-after { opacity: 0; transition: opacity 2.4s var(--ease-soft); }
.hero-after.visible { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 27, 33, 0.52) 0%, rgba(36, 27, 33, 0) 26%),
    linear-gradient(180deg, rgba(36, 27, 33, 0) 40%, rgba(36, 27, 33, 0.55) 68%, rgba(30, 22, 27, 0.88) 100%),
    radial-gradient(130% 100% at 18% 100%, rgba(36, 27, 33, 0.55) 0%, transparent 62%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(44px, 7vh, 72px);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 244, 230, 0.92);
  margin-bottom: clamp(18px, 3vh, 30px);
  text-shadow: 0 1px 18px rgba(30, 22, 27, 0.85), 0 1px 4px rgba(30, 22, 27, 0.5);
}
.eyebrow-line { width: 44px; height: 1px; background: var(--gold); flex-shrink: 0; }
.hero-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #FFF7EC;
  margin-bottom: clamp(20px, 3vh, 32px);
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(30, 22, 27, 0.55);
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic; font-weight: 430;
  color: #FFD9CB;
}
.hero-sub {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255, 244, 230, 0.92);
  margin-bottom: clamp(26px, 4vh, 40px);
  text-shadow: 0 1px 16px rgba(30, 22, 27, 0.7);
}
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-block; transition: transform .35s var(--ease-out), filter .3s; }
.store-badge img { height: 52px; width: auto; border-radius: 9px; }
.store-badge:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.08); }

.hero-replay {
  position: absolute; right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 44px);
  z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 230, 0.4);
  background: rgba(36, 27, 33, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 244, 230, 0.9);
  cursor: pointer;
  transition: background .3s, transform .3s var(--ease-out), opacity .5s;
}
.hero-replay:hover { background: rgba(36, 27, 33, 0.6); transform: rotate(-40deg); }
.hero-replay[hidden] { display: none; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 18px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 244, 230, 0.55);
}
.hero .hero-scroll-cue { transform: translateX(-50%); }
.cue-line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255, 244, 230, 0.6), transparent);
  animation: cue-drop 2.2s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* load-in reveals */
.reveal-load {
  opacity: 0;
  animation: rise-in 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
.hero-scroll-cue.reveal-load { animation-name: rise-in-cue; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in-cue {
  from { opacity: 0; transform: translateX(-50%) translateY(26px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(90px, 14vh, 170px) 0 clamp(70px, 10vh, 130px); }
.manifesto-sun {
  display: block;
  width: 34px; height: 34px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #F3CE7E, var(--gold) 65%);
  box-shadow: 0 0 34px rgba(217, 164, 65, 0.55), 0 0 90px rgba(217, 164, 65, 0.25);
}
.manifesto-text {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.manifesto-text em { font-style: italic; color: var(--rose-deep); font-weight: 420; }
.manifesto-note {
  margin-top: 28px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* ---------- Act markers ---------- */
.act-marker {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: clamp(28px, 4vh, 46px);
}
.act-no {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.06em;
}
.act-no::after { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--terracotta); vertical-align: middle; margin-left: 14px; opacity: 0.6; }
.act-name {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.act-marker-dusk .act-name { color: var(--dusk-mute); }
.act-marker-dusk .act-no { color: var(--lamp); }
.act-marker-dusk .act-no::after { background: var(--lamp); }

/* ---------- Weeks (dial) ---------- */
.weeks { padding: clamp(60px, 9vh, 120px) 0; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }
.section-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 900px;
  text-wrap: balance;
}
.weeks-fruit {
  font-style: italic; font-weight: 500;
  color: var(--rose-deep);
  display: inline-block;
  transition: opacity .3s, transform .3s;
}
.weeks-fruit.swap { opacity: 0; transform: translateY(8px); transition: none; }
.weeks-dial {
  margin-top: clamp(40px, 6vh, 70px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.weeks-readout { text-align: center; }
.weeks-label {
  display: block;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft);
}
.weeks-number {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(84px, 11vw, 150px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.weeks-track { min-width: 0; }
.weeks-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px;
  background: transparent;
  cursor: pointer;
}
.weeks-slider::-webkit-slider-runnable-track {
  height: 3px;
  background:
    /* trimester marks at weeks 13 and 27 (of the 4–42 range) */
    radial-gradient(circle 3.5px at 23.7% 50%, var(--terracotta) 45%, transparent 55%),
    radial-gradient(circle 3.5px at 60.5% 50%, var(--terracotta) 45%, transparent 55%),
    linear-gradient(90deg, var(--rose) var(--fill, 30%), rgba(57, 46, 40, 0.18) var(--fill, 30%));
  border-radius: 2px;
}
.weeks-slider::-moz-range-track {
  height: 3px;
  background: rgba(57, 46, 40, 0.18);
  border-radius: 2px;
}
.weeks-slider::-moz-range-progress { height: 3px; background: var(--rose); border-radius: 2px; }
.weeks-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px;
  margin-top: -11.5px;
  border-radius: 50%;
  background: var(--paper-card);
  border: 2.5px solid var(--rose-deep);
  box-shadow: 0 3px 14px rgba(198, 74, 112, 0.35);
  transition: transform .25s var(--ease-out);
}
.weeks-slider::-webkit-slider-thumb:hover { transform: scale(1.18); }
.weeks-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-card);
  border: 2.5px solid var(--rose-deep);
  box-shadow: 0 3px 14px rgba(198, 74, 112, 0.35);
}
.weeks-slider:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 8px; border-radius: 4px; }
.weeks-ticks {
  display: flex; justify-content: space-between;
  margin-top: 4px;
  font-size: 13.5px; font-style: italic;
  font-family: var(--serif);
  color: var(--ink-mute);
}
.weeks-note {
  margin-top: clamp(32px, 5vh, 54px);
  max-width: 560px;
  color: var(--ink-soft);
}

/* ---------- Chapters ---------- */
.chapters { padding: clamp(80px, 11vh, 150px) 0 0; }
.chapter { padding: clamp(40px, 7vh, 90px) 0; }
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.chapter-flip .chapter-grid .chapter-text { order: 2; }
.chapter-flip .chapter-grid .chapter-shot { order: 1; }
.chapter-text { position: relative; }
.chapter-ghost {
  position: absolute;
  top: -0.55em; left: -0.06em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(120px, 13vw, 210px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 46, 40, 0.14);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.chapter-text > *:not(.chapter-ghost) { position: relative; z-index: 1; }
.chapter-kicker {
  display: inline-block;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.chapter-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.chapter-desc { color: var(--ink-soft); margin-bottom: 26px; max-width: 460px; }
.chapter-points { list-style: none; }
.chapter-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--ink);
}
.chapter-points li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 14px; height: 2px;
  background: var(--rose);
  border-radius: 1px;
}
.chapter-shot {
  position: relative;
  display: flex; justify-content: center;
  perspective: 1200px;
}
.chapter-shot img {
  width: min(320px, 78%);
  border-radius: 34px;
  box-shadow:
    0 24px 70px -18px rgba(57, 46, 40, 0.38),
    0 8px 24px -10px rgba(57, 46, 40, 0.25);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(var(--py, 0px));
  transition: transform .18s linear;
  will-change: transform;
  background: var(--paper-card);
}
.chapter-shot::before {
  content: "";
  position: absolute;
  width: 68%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rose) 16%, transparent), transparent 72%);
  z-index: -1;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(1.5);
}
.chapter-shots { display: grid; grid-template-columns: 1fr 0.78fr; align-items: end; gap: 18px; }
.chapter-shots .chapter-shot { margin: 0; }
.chapter-shot-secondary { transform: translateY(42px); }
.chapter-link { display: inline-flex; margin-top: 26px; padding: 11px 17px; border-radius: 999px; background: var(--rose); color: white; font-weight: 700; text-decoration: none; transition: background .2s var(--ease-soft), transform .2s var(--ease-soft); }
.chapter-link:hover { background: var(--rose-deep); transform: translateY(-1px); }
.chapter-flip .chapter-shot::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 18%, transparent), transparent 72%); }

/* also row */
.also-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(50px, 8vh, 90px) 0;
  border-top: 1px solid rgba(57, 46, 40, 0.12);
  margin-top: clamp(30px, 5vh, 60px);
}
.also-item h4 {
  font-family: var(--serif);
  font-weight: 500; font-size: 20px;
  margin-bottom: 8px;
}
.also-item p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Dusk ---------- */
.dusk {
  position: relative;
  background: radial-gradient(140% 100% at 50% 0%, var(--dusk-2) 0%, var(--dusk) 55%);
  color: var(--dusk-ink);
  padding: clamp(90px, 13vh, 170px) 0;
  overflow: hidden;
}
.dusk-stars, .dusk-stars::after {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(243, 231, 218, 0.8), transparent 100%),
    radial-gradient(1px 1px at 28% 64%, rgba(243, 231, 218, 0.5), transparent 100%),
    radial-gradient(1.4px 1.4px at 41% 15%, rgba(243, 231, 218, 0.7), transparent 100%),
    radial-gradient(1px 1px at 55% 48%, rgba(243, 231, 218, 0.45), transparent 100%),
    radial-gradient(1.6px 1.6px at 68% 26%, rgba(243, 231, 218, 0.75), transparent 100%),
    radial-gradient(1px 1px at 78% 71%, rgba(243, 231, 218, 0.5), transparent 100%),
    radial-gradient(1.3px 1.3px at 88% 38%, rgba(243, 231, 218, 0.65), transparent 100%),
    radial-gradient(1px 1px at 7% 82%, rgba(243, 231, 218, 0.4), transparent 100%),
    radial-gradient(1.1px 1.1px at 94% 84%, rgba(243, 231, 218, 0.55), transparent 100%),
    radial-gradient(1.5px 1.5px at 33% 89%, rgba(243, 231, 218, 0.5), transparent 100%);
  animation: twinkle 5.5s ease-in-out infinite alternate;
}
.dusk-stars::after {
  content: "";
  transform: translate(3%, 6%) scale(1.15);
  animation-delay: -2.7s; opacity: 0.7;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }
.dusk-glow {
  position: absolute;
  right: -10%; bottom: -30%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(232, 177, 92, 0.22), rgba(232, 177, 92, 0.05) 55%, transparent 75%);
  pointer-events: none;
}
.dusk-content { position: relative; z-index: 1; }
.dusk-title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: #FFF6E9;
  text-wrap: balance;
}
.dusk-sub {
  font-size: 17.5px;
  color: var(--dusk-mute);
  margin-bottom: clamp(44px, 7vh, 70px);
}
.vows { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.vow { border-top: 1px solid rgba(243, 231, 218, 0.18); padding-top: 22px; }
.vow-title {
  display: block;
  font-family: var(--serif);
  font-style: italic; font-weight: 480;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--lamp);
  margin-bottom: 10px;
}
.vow-desc { font-size: 15.5px; color: var(--dusk-mute); line-height: 1.65; }

/* ---------- Everywhere ---------- */
.everywhere { padding: clamp(90px, 13vh, 170px) 0; }
.everywhere-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 0 18px; align-items: baseline;
}
.word-cycle {
  position: relative;
  display: inline-block;
  color: var(--rose-deep);
}
.word-cycle em {
  display: inline-block;
  font-style: italic; font-weight: 500;
  border-bottom: 2px solid color-mix(in srgb, var(--rose) 45%, transparent);
  padding-bottom: 2px;
  transition: opacity .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.word-cycle em.out { opacity: 0; transform: translateY(-10px); }
.word-cycle em.pre { transition: none; opacity: 0; transform: translateY(12px); }
.everywhere-sub { max-width: 600px; color: var(--ink-soft); margin-bottom: clamp(44px, 7vh, 72px); }
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.counter { border-top: 1px solid rgba(57, 46, 40, 0.15); padding-top: 18px; }
.counter-no {
  display: block;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.counter-label {
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Finale ---------- */
.finale { padding: 0 clamp(14px, 2.5vw, 36px) clamp(60px, 9vh, 110px); }
.finale-card {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: clamp(24px, 3vw, 40px);
  overflow: hidden;
  min-height: clamp(420px, 62vh, 620px);
  display: flex; align-items: flex-end;
  box-shadow: 0 30px 90px -24px rgba(57, 46, 40, 0.45);
}
.finale-bg {
  position: absolute; inset: -6% 0;
  width: 100%; height: 112%;
  object-fit: cover;
  transform: translateY(var(--fy, 0px));
  will-change: transform;
}
.finale-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 27, 33, 0) 30%, rgba(36, 27, 33, 0.55) 68%, rgba(30, 22, 27, 0.8) 100%),
    linear-gradient(200deg, rgba(36, 27, 33, 0.05) 40%, rgba(36, 27, 33, 0.5) 90%);
}
.finale-title, .finale-sub { text-shadow: 0 1px 22px rgba(30, 22, 27, 0.65); }
.finale-content {
  position: relative; z-index: 1;
  padding: clamp(28px, 5vw, 64px);
  max-width: 620px;
}
.finale-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.08;
  color: #FFF7EC;
  margin-bottom: 14px;
}
.finale-sub {
  color: rgba(255, 244, 230, 0.9);
  margin-bottom: 28px;
  max-width: 460px;
}

/* ---------- Footer ---------- */
.footer { padding: 0 0 42px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(57, 46, 40, 0.12);
}
.footer-left { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.footer-wordmark {
  font-family: var(--serif);
  font-style: italic; font-weight: 550;
  font-size: 19px;
}
.footer-copy { font-size: 13.5px; color: var(--ink-mute); }
.footer-affiliate { max-width: var(--wrap); margin: 18px auto 0; padding: 0 24px; font-size: 12.5px; line-height: 1.45; color: var(--ink-mute); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .25s;
}
.footer-links a:hover { color: var(--rose-deep); }

/* ---------- Inner pages (privacy / support / download) ---------- */
.page {
  padding: clamp(130px, 18vh, 190px) 0 clamp(70px, 10vh, 120px);
  min-height: 70vh;
}
.page-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-intro { color: var(--ink-soft); font-size: 17.5px; max-width: 560px; margin-bottom: clamp(36px, 6vh, 60px); }
.prose h2 {
  font-family: var(--serif);
  font-weight: 480; font-size: 24px;
  margin: 38px 0 12px;
}
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose a { color: var(--rose-deep); }
.prose strong { color: var(--ink); }

.support-card {
  background: var(--paper-card);
  border: 1px solid rgba(57, 46, 40, 0.1);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -14px rgba(57, 46, 40, 0.18);
}
.support-card h2 {
  font-family: var(--serif);
  font-weight: 480; font-size: 22px;
  margin-bottom: 8px;
}
.support-card p { color: var(--ink-soft); font-size: 15.5px; }
.support-card a { color: var(--rose-deep); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .chapter-grid { grid-template-columns: 1fr; gap: 36px; }
  .chapter-flip .chapter-grid .chapter-text { order: 1; }
  .chapter-flip .chapter-grid .chapter-shot { order: 2; }
  .chapter-shot img { width: min(280px, 70%); }
  .chapter-shots { max-width: 500px; margin: 0 auto; }
  .chapter-shot-secondary { transform: translateY(24px); }
  .also-row { grid-template-columns: 1fr; gap: 28px; }
  .vows { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .weeks-dial { grid-template-columns: 1fr; gap: 10px; }
  .weeks-readout { text-align: left; display: flex; align-items: baseline; gap: 14px; }
  .nav-link { display: none; }
}
@media (max-width: 560px) {
  .hero-sub { font-size: 15.5px; }
  .store-badge img { height: 46px; }
  .hero-scroll-cue { display: none; }
  .counters { gap: 24px; }
  .finale-card { min-height: 480px; }
  /* On phones the 16:9 film is cropped hard; the woman sits at the left of
     frame, so shift the visible window left to keep her centered on screen. */
  .hero-video, .hero-after { object-position: 25% center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .dusk-stars, .dusk-stars::after, .cue-line { animation: none; }
  .reveal-load, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .chapter-shot img { transform: none !important; }
  .hero-video { display: none; }
  .hero-after { opacity: 1; }
}
