/* Luna Invitations storefront */

:root {
  /* Brand palette. Every colour comes from the sealed envelope: its paper, its wax, the table under it.
     README.md lists what each one is for. */
  --page: #EFE6D6;        /* Envelope: the cotton paper itself */
  --page-soft: #F6F0E3;   /* Card stock: a lighter sheet on the paper */
  --page-alt: #E4D8C2;    /* Fold: the paper in shade */
  --ink: #2B0D14;         /* Ink: text, a black with wine in it */
  --muted: #5E4744;       /* Faded ink: secondary text */
  --wine: #5B0F1E;        /* Wax: the one strong colour, for buttons */
  --wine-hover: #741A2B;
  --burgundy: #6B1526;    /* Wax in the light: italics and accents */
  --cellar: #4A1620;      /* Table: dark sections, multiplied over the paper */
  --cellar-deep: #2E0B14; /* Table in shadow: the phone demo */
  --gold: #76551F;        /* Brass: small text accents on paper */
  --gold-mid: #B8965A;    /* Brass: rules and ticks */
  --gold-soft: #E2C894;   /* Brass in candlelight: accents on dark */
  --cream: #F3EADB;       /* Text on dark */
  --parchment: #DCCABB;   /* Secondary text on dark */
  --line: #D8CBB6;
  --line-strong: #BFAF97;
  --crease: rgba(255, 251, 240, .7); /* The lit edge of a fold, under a line */
  --shadow: 46, 11, 20;

  /* The paper. 512px is the size it has on the envelope, so the site and the opening are one sheet. */
  --tex: url(../assets/paper.jpg);
  --sheet-light: linear-gradient(rgba(255, 252, 244, .46), rgba(255, 252, 244, .46));
  --sheet-shade: linear-gradient(rgba(122, 88, 52, .1), rgba(122, 88, 52, .1));

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(72px, 8vw, 120px);

  /* Hero geometry. The canvas stays pinned while the chapters scroll past it. */
  --stage-h: max(560px, min(100vh, 900px));
  --stage-box: var(--stage-h);
  --intro-min: calc(var(--stage-h) - 84px);
  --chapter-h: calc(var(--stage-h) * .8);
  --chapter-pad: 0px;
}
@supports (height: 100svh) {
  :root { --stage-h: max(560px, min(100svh, 900px)); }
}
@media (max-width: 859px) {
  :root {
    --stage-h: max(560px, min(100vh, 820px));
    --stage-box: calc(var(--stage-h) * .56);
    --intro-min: 0px;
    --chapter-h: calc(var(--stage-h) * .44);
    --chapter-pad: var(--stage-box);
  }
  @supports (height: 100svh) {
    :root { --stage-h: max(560px, min(100svh, 820px)); }
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--tex) 0 0 / 512px var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: var(--ink); }
a:hover { color: var(--gold); }
.on-dark a { color: var(--cream); }
.on-dark a:hover { color: var(--gold-soft); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--gold-soft); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-md { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4vw, 58px); line-height: 1.05; }
.lede { font-size: 18px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 3px; font-size: 17px; font-weight: 500; text-decoration: none; }
.btn-primary, .btn-primary:hover { color: var(--page); }
.btn-primary { background: var(--wine); border: 0; box-shadow: inset 0 1px 0 rgba(255, 220, 205, .14), 0 2px 5px -2px rgba(var(--shadow), .55); }
.btn-primary:hover { background: var(--wine-hover); }
.btn-secondary { padding: 0 24px; border: 1.5px solid var(--wine); color: var(--wine); }
.btn-secondary:hover { background: rgba(91, 15, 30, .07); color: var(--wine); }
.on-dark a.btn-light, .on-dark a.btn-light:hover { color: var(--ink); }
.btn-light { align-self: flex-start; padding: 0 26px; background: var(--cream); }
.btn-light:hover { background: #FBF6EB; }
.btn-small { height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--page-soft); color: var(--ink); border-radius: 3px; font-size: 15px; font-weight: 400; display: inline-flex; align-items: center; gap: 8px; }

/* Opening envelope */
.opening { position: fixed; inset: 0; z-index: 60; overflow: hidden; cursor: pointer; background: #EFE6D6; transition: opacity .34s ease; }
.opening.is-playing { cursor: default; }
.opening.is-done { opacity: 0; pointer-events: none; }
.opening-stage, .opening-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* One soft window, up and to the left. It belongs to the resting envelope only. */
.opening-light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 110% at 22% 12%, rgba(255, 250, 238, .34), rgba(255, 250, 238, 0) 52%), radial-gradient(130% 120% at 50% 42%, rgba(70, 42, 22, 0) 48%, rgba(70, 42, 22, .17) 100%); transition: opacity .5s ease .12s; }
.is-playing .opening-light { opacity: 0; }
.opening-seal { position: absolute; left: 50%; top: calc(50% + max(5.19vw, 7vh)); width: clamp(150px, 27vmin, 250px); aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.opening-seal:focus-visible { outline: 2px solid #4A0E18; outline-offset: 6px; }
.is-playing .opening-seal { display: none; }

/* Header */
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--crease); }
.header-row { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand, .brand:hover { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: clamp(23px, 7vw, 27px); font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.brand-name em { color: var(--burgundy); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 14px; font-size: 16px; text-decoration: none; }
.nav-cta { height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--page-soft); color: var(--ink); border-radius: 3px; font-size: 15px; }
.mobile-menu { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 20px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 12px 4px; font-size: 18px; text-decoration: none; }

/* Hero */
.hero { position: relative; }
.hero-body { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); column-gap: 24px; }
.hero-intro { grid-column: 1; grid-row: 1; min-height: var(--intro-min); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 40px 0 36px; }
.hero-chapters { grid-column: 1; grid-row: 2; padding-top: var(--chapter-pad); }
.hero-stagecol { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.hero-stage { position: sticky; top: 0; height: var(--stage-box); display: flex; flex-direction: column; background: var(--tex) 0 0 / 512px var(--page); padding: 12px 0 14px; }
.eyebrow { font-size: 16px; font-weight: 500; color: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { color: var(--burgundy); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 17px; }
.flow li { display: flex; align-items: center; gap: 14px; }
.flow-step { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 2px solid transparent; color: var(--muted); }
.flow-step.is-active { border-bottom-color: var(--gold-mid); color: var(--ink); font-weight: 600; }
.flow-num { font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 400; color: var(--gold); }
.flow-arrow { color: #937A5E; }
.hero-lede { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-price { font-size: 15px; color: var(--muted); }

.stage-view { position: relative; flex: 1; min-height: 0; border-radius: 6px; overflow: hidden; }
.stage-glow { position: absolute; left: 50%; top: 46%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 249, 234, .55), rgba(255, 249, 234, 0) 60%); animation: glow 6s ease-in-out infinite; }
.stage-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; -webkit-mask-image: linear-gradient(to bottom, #000 95.5%, transparent); mask-image: linear-gradient(to bottom, #000 95.5%, transparent); } /* The envelope sinks out of the frame instead of being cut by it. */
.fade { transition: opacity .7s ease; }
.stage-view.is-ready .stage-poster { opacity: 0; }
.stage-view.is-ready .stage-canvas { opacity: 1; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; }
.stage-status { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.stage-ticks { display: flex; gap: 5px; }
.stage-ticks span { width: 22px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.stage-ticks span.is-on { background: var(--wine); }
.stage-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-note { width: 100%; font-size: 14px; color: var(--muted); }

.chapter { min-height: var(--chapter-h); display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 30em; padding: 32px 0; }
.chapter-live { min-height: calc(var(--chapter-h) * 1.6); justify-content: flex-start; }
/* Stays beside the phone for as long as the curtain takes. */
.chapter-live-text { position: sticky; top: calc(var(--stage-box) / 2 - 90px); display: flex; flex-direction: column; gap: 14px; }
.chapter-num { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold); }
.chapter h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; }
.linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-strong); background: var(--page-soft); border-radius: 4px; max-width: 460px; }
.linkbox-url { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox button { height: 44px; padding: 0 18px; font-size: 15px; }
.chapter-note { font-size: 15px; color: var(--muted); }

/* Facts */
.facts { border-block: 1px solid var(--line); box-shadow: 0 1px 0 var(--crease), inset 0 1px 0 var(--crease); background: var(--sheet-light), var(--tex) 180px 90px / 512px var(--page); }
.facts-grid { padding-block: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 36px 48px; }
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; }
.fact p { color: var(--muted); }

/* Ribbon */
.marquee { overflow: hidden; background: var(--cellar) var(--tex) 0 0 / 512px; background-blend-mode: multiply; color: var(--gold-soft); padding: 18px 0; border-bottom: 1px solid #66303A; }
.marquee-track { display: flex; width: max-content; animation: marq 42s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 28px; }

/* Designs */
.designs { padding-block: var(--section); }
.designs-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.designs-head { display: flex; flex-direction: column; gap: 24px; }
.designs-copy { display: flex; flex-direction: column; gap: 12px; max-width: 36em; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 48px 28px; }
.design-card, .design-card:hover { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--ink); }
.cover { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--cover); box-shadow: 0 14px 30px -20px rgba(var(--shadow), .4), inset 0 0 0 1px rgba(var(--shadow), .06); transition: transform .35s ease, box-shadow .35s ease; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.design-card:hover .cover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(var(--shadow), .45); }
.d-keepsake { --cover: #2A060D; }
.d-velvet { --cover: #4A0E18; }
.d-moon { --cover: #1C2342; }
.card-copy { display: flex; flex-direction: column; gap: 6px; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-title h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; }
.card-price { font-size: 16px; font-weight: 500; }
.card-mood { font-size: 15px; color: var(--muted); }
.card-try { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

/* Guests */
.guests { background: var(--cellar) var(--tex) 210px 340px / 512px; background-blend-mode: multiply; color: var(--cream); padding-block: var(--section); }
.guests-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px 72px; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: 0 1 320px; max-width: 100%; }
.phone { width: 300px; height: 620px; max-width: 100%; border-radius: 46px; background: #160609; padding: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #5E2630; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--cellar-deep); }
.guest-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; background: var(--cellar-deep); }
.guest-seal { width: 74px; height: 74px; border-radius: 50%; background: var(--burgundy); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -4px 10px rgba(0, 0, 0, .35), 0 6px 16px rgba(0, 0, 0, .4); font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold-soft); }
.guest-kicker { font-size: 13px; color: var(--parchment); }
.guest-names { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 44px; line-height: 1.05; color: var(--gold-soft); }
.guest-date { font-size: 14px; color: #E9DDCB; }
.guest-tap { margin-top: 12px; height: 48px; padding: 0 28px; font-size: 16px; }
.guest-skip { height: 44px; padding: 0 16px; border: 0; background: transparent; color: #E6DACB; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.guest-open { position: absolute; inset: 0; overflow-y: auto; background: var(--tex) 0 0 / 512px var(--page); color: var(--ink); animation: openIn .9s cubic-bezier(.2, .8, .2, 1); }
.guest-open:focus { outline: none; }
.guest-top { padding: 44px 22px 30px; background: var(--cellar-deep); color: var(--cream); text-align: center; display: flex; flex-direction: column; gap: 8px; }
.guest-top .guest-names { font-size: 38px; }
.guest-cal { align-self: center; margin-top: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #E2C48C; background: transparent; color: #F6ECDB; font-size: 14px; }
.guest-body { padding: 22px; display: flex; flex-direction: column; gap: 22px; font-size: 14px; }
.guest-letter { font-family: var(--serif); font-size: 20px; line-height: 1.35; text-align: center; }
.guest-block { display: flex; flex-direction: column; gap: 8px; }
.guest-block h4 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.guest-row { display: flex; gap: 14px; align-items: baseline; }
.guest-row b { width: 46px; flex: none; font-weight: 600; color: var(--gold); }
.guest-map { align-self: flex-start; height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 3px; font-size: 14px; }
.guest-reply { height: 48px; border: 0; background: var(--wine); color: var(--page); border-radius: 3px; font-size: 15px; font-weight: 500; }
.guest-music { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(22, 6, 9, .55); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.guest-again { height: 44px; padding: 0 18px; border: 1px solid #8E6164; background: transparent; color: var(--cream); border-radius: 3px; font-size: 15px; }
.guests-copy { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 28px; }
.guests-head { display: flex; flex-direction: column; gap: 14px; }
.guests-head .lede { color: var(--parchment); }
.guests-list { display: flex; flex-direction: column; gap: 20px; }
.guests-list li { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid #70404A; }
.guests-list strong { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--gold-soft); }
.guests-list span { color: var(--parchment); }

/* Pricing */
.pricing { padding-block: var(--section); background: var(--sheet-shade), var(--tex) 340px 200px / 512px var(--page); box-shadow: inset 0 1px 0 var(--crease), 0 1px 0 var(--crease); }
.pricing-inner { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.pricing-copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.pricing-copy .lede { max-width: 28em; }
.price-table { margin-top: 12px; max-width: 420px; border-bottom: 1px solid var(--line-strong); }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.price-row strong { font-weight: 600; }
.price-card { flex: 1 1 420px; min-width: 0; background: var(--sheet-light), var(--tex) 90px 410px / 512px var(--page); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; box-shadow: 0 24px 50px -36px rgba(var(--shadow), .45); animation: float 7s ease-in-out infinite; }
.price-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-big b { font-family: var(--serif); font-size: 76px; line-height: 1; font-weight: 500; }
.price-big span { color: var(--muted); }
.included { display: flex; flex-direction: column; gap: 12px; }
.included li { display: flex; gap: 12px; align-items: flex-start; }
.included svg { flex: none; margin-top: 3px; }
.choices { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.choices-title { font-weight: 600; }
.choice { display: flex; justify-content: space-between; gap: 16px; }
.choice > span:first-child { color: var(--muted); }
.choice small { font-size: 15px; }
.choice > span:last-child { font-weight: 500; white-space: nowrap; }

/* Questions */
.faq { padding-block: var(--section); }
.faq-inner { max-width: 880px; margin: 0 auto; padding-inline: var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { padding: 0 0 24px; max-width: 40em; color: var(--muted); }
.faq-plus { flex: none; transition: transform .2s ease; }
details[open] .faq-plus { transform: rotate(45deg); }

/* Closing and footer */
.closing { padding: 0 var(--gutter) clamp(72px, 8vw, 112px); }
.closing-inner { max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line-strong); padding-top: clamp(56px, 6vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing-line { font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); line-height: 1.08; max-width: 14em; }
.site-footer { background: var(--cellar) var(--tex) 60px 130px / 512px; background-blend-mode: multiply; color: var(--parchment); }
.footer-row { padding-block: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; font-size: 15px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 22em; }
.footer-name { font-family: var(--serif); font-size: 26px; color: var(--cream); }
.footer-name em { color: var(--gold-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer-nav a { padding: 10px 0; text-decoration: none; }

/* Entrances */
.rise { transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); }
.pre .rise { opacity: 0; transform: translateY(24px); }
.d1 { transition-delay: .35s; } .d2 { transition-delay: .5s; } .d3 { transition-delay: .65s; } .d4 { transition-delay: .8s; } .d5 { transition-delay: .95s; } .d6 { transition-delay: 1.1s; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s cubic-bezier(.2, .8, .2, 1), transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.in .stagger > * { opacity: 1; transform: none; }
.in .stagger > :nth-child(2) { transition-delay: .12s; } .in .stagger > :nth-child(3) { transition-delay: .24s; } .in .stagger > :nth-child(4) { transition-delay: .36s; } .in .stagger > :nth-child(5) { transition-delay: .48s; } .in .stagger > :nth-child(6) { transition-delay: .6s; }


@keyframes vpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 196, 140, 0); } 50% { box-shadow: 0 0 22px 2px rgba(226, 196, 140, .45); } }
@keyframes glow { 50% { opacity: .6; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes openIn { from { opacity: 0; transform: translateY(46px) scale(.97); } to { opacity: 1; transform: none; } }

/* Narrow layout: the stage pins above the chapters */
@media (max-width: 859px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .hero-chapters { grid-column: 1; grid-row: 2; position: relative; z-index: 1; }
  .hero-stagecol { grid-column: 1; grid-row: 2; z-index: 2; pointer-events: none; }
  .hero-stage { pointer-events: auto; }
  .chapter-live-text { top: calc(var(--stage-box) + 16px); }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Keep the stage controls on one row, so the scene keeps its height */
@media (max-width: 340px) {
  .stage-actions .btn-small { padding: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .pre .rise, .stagger > * { opacity: 1 !important; transform: none !important; }
  .opening { display: none; }
}
