/* Erano website. Ink and champagne gold; Fraunces for display, Inter for text. */
@font-face { font-family: 'Fraunces'; src: url('/site/fonts/fraunces-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/site/fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/site/fonts/fraunces-600i.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/site/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/site/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/site/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #1a1e25;
  --line: rgba(242, 244, 247, 0.09);
  --paper: #f2f4f7;
  --muted: #9aa3ae;
  --faint: #6b7480;
  --gold: #d9b26a;
  --gold-2: #e6c487;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; overflow-x: clip; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 16px; }

.gold { color: var(--gold); }
.italic { font-style: italic; }
.center { text-align: center; margin-inline: auto; }

/* Film grain over everything, very subtle. */
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* Type */
.display { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(50px, 7.4vw, 124px); line-height: 0.95; letter-spacing: -0.035em; }
.display.sm { font-size: clamp(48px, 8vw, 112px); text-align: center; }
.h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); background: rgba(18, 21, 26, 0.6); padding: 8px 14px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217,178,106,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,178,106,.55); } 70% { box-shadow: 0 0 0 10px rgba(217,178,106,0); } 100% { box-shadow: 0 0 0 0 rgba(217,178,106,0); } }

/* Reveal on load and on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.display .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.display .line:nth-child(2) > span { transition-delay: 0.12s; }
.ready .display .line > span, .display.in .line > span { transform: none; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad); transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 13, 16, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); padding-block: 12px; border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand span { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: 26px; letter-spacing: -0.01em; margin-top: -4px; }
.nav nav { display: flex; gap: 32px; }
.nav nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.2s; position: relative; }
.nav nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav nav a:hover { color: var(--paper); }
.nav nav a:hover::after { transform: scaleX(1); }
.nav-cta { font-size: 14px; font-weight: 600; color: var(--gold); border: 1px solid rgba(217, 178, 106, 0.5); padding: 9px 18px; border-radius: 999px; transition: background 0.25s, color 0.25s; }
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--pad) 80px; overflow: hidden; }
.hero-light { position: absolute; inset: 0; background:
  radial-gradient(48vw 48vw at calc(70% + var(--mx, 0) * 4%) calc(38% + var(--my, 0) * 4%), rgba(217, 178, 106, 0.22), transparent 62%),
  radial-gradient(40vw 40vw at 8% 110%, rgba(217, 178, 106, 0.08), transparent 60%);
  transform: translateY(calc(var(--scroll, 0) * 0.25px)); }
.hero-inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: #000; border: 1px solid rgba(242, 244, 247, 0.22); line-height: 1.1; }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; }
.store small { font-weight: 500; font-size: 11px; color: var(--muted); }

.hero-phone { position: relative; justify-self: center; perspective: 1200px; transform: translateY(calc(var(--scroll, 0) * -0.12px)); }
.phone { position: relative; width: clamp(240px, 24vw, 330px); border-radius: 46px; padding: 9px; background: linear-gradient(160deg, #2a2e36, #121418 60%); border: 1px solid #3c4048;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.03) inset; }
.phone img { border-radius: 38px; width: 100%; }
.hero-phone .phone { transform: rotateY(calc(var(--mx, 0) * -10deg)) rotateX(calc(var(--my, 0) * 8deg)); transition: transform 0.6s var(--ease), opacity 1.2s var(--ease), translate 1.4s var(--ease); opacity: 0; translate: 0 80px; }
.ready .hero-phone .phone { opacity: 1; translate: 0 0; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; font-size: 14px; color: var(--paper); white-space: nowrap;
  background: rgba(26, 30, 37, 0.78); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 1s var(--ease) 1s; animation: float 6s ease-in-out infinite; }
.ready .float-chip { opacity: 1; }
.float-chip b { color: var(--gold); font-weight: 600; }
.chip-a { left: -90px; top: 22%; }
.chip-b { right: -70px; bottom: 18%; animation-delay: -3s; }
.float-chip .ico { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #0e1116; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(242,244,247,0.35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Statement */
.statement { max-width: 1100px; margin: 0 auto; padding: clamp(64px, 11vh, 120px) var(--pad); }
.scrub { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(28px, 3.9vw, 54px); line-height: 1.22; letter-spacing: -0.015em; }
.scrub em { font-style: italic; font-weight: 600; color: var(--gold); }
.scrub .w { opacity: 0.16; transition: opacity 0.25s linear; }
.scrub .w.on { opacity: 1; }

/* Pinned story */
.story { position: relative; height: 340vh; }
.story-stick { position: sticky; top: 72px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; max-width: var(--max); margin: 0 auto; padding: 24px var(--pad); }
.steps { list-style: none; margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid transparent; opacity: 0.38; transition: opacity 0.5s var(--ease), background 0.5s, border-color 0.5s; }
.steps li.on { opacity: 1; background: var(--ink-2); border-color: var(--line); }
.steps .n { font-family: 'Fraunces', serif; font-size: 15px; color: var(--gold); padding-top: 4px; }
.steps h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 4px; max-width: 420px; }

.story-stage { position: relative; height: min(72vh, 600px); display: grid; place-items: center; }
.receipt { position: relative; width: min(400px, 100%); padding: 26px 26px 20px; border-radius: 6px; background: #f6f1e7; color: #2b2721; font-family: 'Inter', sans-serif; font-size: 14px; overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.85); transform: rotate(calc(-2deg + var(--p1, 0) * 2deg)) translateX(calc(var(--p3, 0) * -34%)) scale(calc(1 - var(--p3, 0) * 0.1)); opacity: calc(1 - var(--p3, 0) * 0.35);
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) -8px 100% / 16px 100% repeat-x; }
.r-head { text-align: center; border-bottom: 1px dashed #b9b0a0; padding-bottom: 12px; margin-bottom: 10px; }
.r-head b { display: block; font-family: 'Fraunces', serif; font-size: 22px; letter-spacing: 0.2em; }
.r-head small { color: #7a7264; font-size: 12px; }
.r-items { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.r-items li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; transition: background 0.4s, box-shadow 0.4s; }
.r-items li.hit { background: rgba(217, 178, 106, 0.22); box-shadow: inset 0 0 0 1.5px rgba(176, 132, 52, 0.8); }
.who { position: absolute; right: 64px; top: 50%; display: flex; translate: 0 -50%; }
.who b { width: 20px; height: 20px; border-radius: 50%; margin-left: -5px; background: var(--c); color: #0e1116; font: 600 10px/20px 'Inter', sans-serif; text-align: center; border: 1.5px solid #f6f1e7;
  transform: scale(0); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); font-style: normal; }
.r-items li.claimed .who b { transform: scale(1); }
.r-items li.claimed .who b:nth-child(2) { transition-delay: 0.05s; } .r-items li.claimed .who b:nth-child(3) { transition-delay: 0.1s; } .r-items li.claimed .who b:nth-child(4) { transition-delay: 0.15s; }
.r-total { display: flex; justify-content: space-between; border-top: 1px dashed #b9b0a0; margin-top: 10px; padding-top: 12px; font-weight: 600; }
.found { position: absolute; left: 50%; bottom: calc(50% - min(38vh, 320px) - 8px); translate: -50% 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 13px;
  opacity: 0; transform: translateY(20px) scale(0.9); transition: opacity 0.5s var(--ease), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.story.scanned .found { opacity: 1; transform: none; }
.story.s3 .found { opacity: 0; }
.beam { position: absolute; left: 0; right: 0; height: 90px; top: calc(-90px + var(--p1, 0) * 120%); background: linear-gradient(180deg, transparent, rgba(217, 178, 106, 0.35) 85%, rgba(217, 178, 106, 0.95)); pointer-events: none; z-index: 2; opacity: calc(1 - var(--p2on, 0)); }

.requests { position: absolute; right: 0; bottom: 6%; width: min(340px, 80%); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.req { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(26, 30, 37, 0.92); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8); opacity: 0; transform: translateX(60px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.story.s3 .req { opacity: 1; transform: none; }
.story.s3 .req:nth-child(2) { transition-delay: 0.12s; } .story.s3 .req:nth-child(3) { transition-delay: 0.24s; }
.req b { font-size: 15px; } .req small { display: block; color: var(--muted); font-size: 12.5px; }
.req em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.req em.treat { color: var(--gold); font-family: 'Fraunces', serif; font-style: italic; }
.tag { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(242,244,247,0.08); color: var(--muted); }
.tag.paid { background: rgba(217, 178, 106, 0.18); color: var(--gold); }
.tag.gift { background: transparent; padding: 0; font-size: 16px; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--ink-2); }
.track { display: flex; width: max-content; align-items: center; gap: 44px; animation: marquee 32s linear infinite; }
.track span { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(30px, 4vw, 60px); letter-spacing: -0.025em; white-space: nowrap; }
.track span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(217, 178, 106, 0.85); font-style: italic; }
.track i { font-style: normal; color: var(--gold); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Horizontal gallery */
.gallery { position: relative; }
.gallery-stick { position: sticky; top: 72px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 24px 0; }
.gallery-head { padding: 0 var(--pad); max-width: var(--max); width: 100%; margin: 0 auto; }
.rail { display: flex; gap: 28px; padding: 0 var(--pad); width: max-content; transform: translateX(calc(var(--gx, 0) * -1px)); will-change: transform; }
.card { width: min(660px, 82vw); flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 34px; border-radius: 32px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); }
.card .num { font-family: 'Fraunces', serif; font-size: 15px; color: var(--gold); }
.card h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 14px; }
.card p { color: var(--muted); font-size: 16px; }
.phone.sm { width: 210px; border-radius: 34px; padding: 7px; }
.phone.sm img { border-radius: 28px; }
.rail-progress { margin: 0 var(--pad); max-width: var(--max); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; align-self: stretch; }
.rail-progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--gp, 0)); }

/* Numbers */
.numbers { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vh, 110px) var(--pad); }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(64px, 8vw, 120px); line-height: 1; letter-spacing: -0.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); margin-top: 12px; max-width: 200px; }

/* Privacy */
.privacy { position: relative; padding: clamp(64px, 10vh, 110px) var(--pad); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  background: radial-gradient(60vw 40vw at 50% 0%, rgba(217, 178, 106, 0.09), transparent 70%); }
.lock svg { width: 72px; height: 72px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 2s var(--ease) 0.2s; }
.lock.in svg { stroke-dashoffset: 0; }
.privacy .lead { max-width: 680px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: clamp(48px, 8vh, 90px) var(--pad); }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 28px/1 'Inter', sans-serif; color: var(--gold); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 26px; max-width: 680px; animation: drop 0.5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Close */
.close { position: relative; overflow: hidden; padding: clamp(72px, 12vh, 130px) var(--pad) clamp(64px, 10vh, 110px); display: flex; flex-direction: column; align-items: center; gap: 28px; border-top: 1px solid var(--line); }
.close-light { position: absolute; inset: 0; background: radial-gradient(50vw 30vw at 50% 100%, rgba(217, 178, 106, 0.2), transparent 70%); pointer-events: none; }
.code { position: relative; display: flex; gap: 10px; width: min(560px, 100%); padding: 8px; border-radius: 20px; background: var(--ink-2); border: 1px solid rgba(217, 178, 106, 0.35); }
.code input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--paper); font: 600 17px 'Inter', sans-serif; letter-spacing: 0.08em; padding: 0 14px; text-transform: uppercase; }
.code input::placeholder { color: var(--faint); letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.code button { border: 0; cursor: pointer; padding: 14px 22px; border-radius: 14px; background: var(--gold); color: var(--ink); font: 600 16px 'Inter', sans-serif; transition: transform 0.2s, background 0.2s; }
.code button:hover { background: var(--gold-2); transform: translateY(-1px); }
.hint { min-height: 22px; color: var(--muted); font-size: 14px; }

/* Footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; padding: 34px var(--pad) 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot .brand span { font-size: 21px; color: var(--paper); }
.foot nav { display: flex; gap: 26px; }
.foot nav a { color: var(--muted); } .foot nav a:hover { color: var(--paper); }

/* Phones and small tablets */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; gap: 56px; }
  .chip-a { left: -14px; top: 14%; } .chip-b { right: -10px; }
  .story { height: auto; }
  .story-stick { position: relative; height: auto; grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .story-stage { height: auto; flex-direction: column; display: flex; gap: 18px; }
  .requests { position: static; width: 100%; }
  .receipt { transform: rotate(-1deg); }
  .gallery { height: auto; }
  .gallery-stick { position: relative; height: auto; padding: 70px 0; }
  .rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none; padding-bottom: 12px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; grid-template-columns: 1fr; width: 84vw; padding: 26px; justify-items: center; text-align: left; }
  .card-copy { justify-self: stretch; }
  .rail-progress { display: none; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .stat { margin-right: 0; padding-right: 16px; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
}

/* Respect reduced motion: everything visible, nothing moving. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .display .line > span, .hero-phone .phone, .float-chip, .req, .who b, .found { opacity: 1 !important; transform: none !important; translate: none !important; }
  .scrub .w { opacity: 1; }
  .story, .gallery { height: auto; }
  .story-stick, .gallery-stick { position: relative; height: auto; }
  .rail { transform: none; overflow-x: auto; width: auto; }
  .grain { display: none; }
}

.card .more { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--gold); font-weight: 600; font-size: 15px; }
.card .more span { transition: transform 0.3s var(--ease); }
.card .more:hover span { transform: translateX(5px); }
@media (max-width: 900px) { .found { position: static; translate: none; margin: 0 auto; } .story .found { opacity: 1; transform: none; } }

/* ---------- Feature pages ---------- */
/* Anything with --at fades and rises in as the scene's --p passes it. */
[data-scene] { --p: 0; }
.at { --in: clamp(0, (var(--p) - var(--at, 0)) * 7, 1); opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 22px)); }

.f-hero { position: relative; min-height: 86svh; display: flex; align-items: center; padding: 130px var(--pad) 70px; overflow: hidden; }
.f-hero .hero-light { background: radial-gradient(46vw 46vw at 72% 42%, rgba(217, 178, 106, 0.2), transparent 62%); }
.f-hero .hero-inner { grid-template-columns: 1.2fr 0.8fr; }
.f-hero .display { font-size: clamp(46px, 6.6vw, 110px); }
.crumb { font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.crumb a { color: var(--gold); }

.scene { position: relative; height: 300vh; }
.scene-stick { position: sticky; top: 72px; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 64px; max-width: var(--max); margin: 0 auto; padding: 24px var(--pad); }
.scene-copy .h2 { font-size: clamp(34px, 4.4vw, 60px); }
.scene-copy .lead { margin-top: 20px; }
.beats { margin-top: 28px; display: grid; gap: 8px; }
.beat { display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: 15.5px; }
.beat b { color: var(--gold); font-family: 'Fraunces', serif; font-weight: 600; min-width: 26px; }
.stage { position: relative; display: grid; place-items: center; }

/* Panel used by scenes */
.panel { width: min(520px, 100%); border-radius: 28px; padding: 26px; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.panel-head b { font-family: 'Fraunces', serif; font-size: 22px; }
.panel-head small { color: var(--muted); font-size: 13px; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Trips: nights */
.night-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.night-row .av { width: 36px; height: 36px; font-size: 14px; }
.night-row .who { position: static; translate: none; display: block; font-weight: 600; }
.night-row .who small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.moons { display: flex; gap: 6px; }
.moon { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold-2), var(--gold) 60%, #9c7a3c); box-shadow: 0 0 14px rgba(217, 178, 106, 0.35); transition: opacity 0.5s, transform 0.5s, filter 0.5s; }
.late .moon:first-child { opacity: calc(1 - clamp(0, (var(--p) - 0.22) * 6, 1) * 0.85); filter: grayscale(calc(clamp(0, (var(--p) - 0.22) * 6, 1))); transform: scale(calc(1 - clamp(0, (var(--p) - 0.22) * 6, 1) * 0.2)); }
.night-row .money { font-size: 19px; min-width: 96px; text-align: right; }
.fee-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(217, 178, 106, 0.1); color: var(--gold-2); font-size: 14.5px; }

/* Trips: the web of debts */
.web { width: min(560px, 100%); aspect-ratio: 1; position: relative; }
.web svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.web .mess line, .web .mess path { stroke: rgba(242, 244, 247, 0.28); stroke-width: 0.45; fill: none; opacity: calc(1 - clamp(0, (var(--p) - 0.38) * 4, 1)); }
.web .clean path { stroke: var(--gold); stroke-width: 1.1; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - var(--at)) * 4, 1)); }
.web .clean .head { fill: var(--gold); opacity: clamp(0, (var(--p) - var(--at) - 0.18) * 8, 1); }
.node { position: absolute; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.node .av { width: 64px; height: 64px; font-size: 22px; border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -10px rgba(0,0,0,0.7); }
.node > span:last-child { font-weight: 600; font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--ink); }
.amt { position: absolute; translate: -50% -50%; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; opacity: clamp(0, (var(--p) - var(--at) - 0.12) * 8, 1); }
.tally { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; }
.tally b { font-family: 'Fraunces', serif; font-size: clamp(64px, 7vw, 104px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.tally span { color: var(--muted); max-width: 200px; }

/* Treats */
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; position: relative; container-type: inline-size; }
.plate { position: relative; padding: 22px 16px; border-radius: 24px; text-align: center; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plate .av { width: 52px; height: 52px; font-size: 19px; }
.plate b { font-size: 15px; }
.plate .money { font-size: 22px; font-family: 'Fraunces', serif; }
.plate small { color: var(--muted); font-size: 12px; min-height: 16px; }
.plate.treated { --t: clamp(0, (var(--p) - 0.22) * 6, 1); background: color-mix(in srgb, var(--ink-2), #d9b26a calc(var(--t) * 22%)); border-color: color-mix(in srgb, var(--line), #d9b26a calc(var(--t) * 70%)); transform: translateY(calc(var(--t) * -14px)); box-shadow: 0 calc(var(--t) * 30px) 60px -20px rgba(217, 178, 106, calc(var(--t) * 0.45)); }
.plate.treated .strike { position: relative; }
.plate.treated .strike::after { content: ''; position: absolute; left: -4px; right: -4px; top: 52%; height: 2px; background: var(--gold); transform: scaleX(var(--t)); transform-origin: left; }
.plate.treated .tag-on { color: var(--gold); font-weight: 600; opacity: var(--t); }
.flyer { position: absolute; top: 62%; left: 87.5cqw; translate: -50% 0; padding: 7px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 13.5px; white-space: nowrap; z-index: 2;
  --f: clamp(0, (var(--p) - 0.42) * 3.2, 1); opacity: calc(clamp(0, (var(--p) - 0.4) * 12, 1) * (1 - clamp(0, (var(--p) - 0.74) * 8, 1)));
  transform: translateX(calc(var(--f) * var(--dx))) translateY(calc(sin(var(--f) * 3.14) * -70px)) scale(calc(1 - var(--f) * 0.15)); }
.plus { color: var(--gold); font-size: 12.5px; font-weight: 600; opacity: clamp(0, (var(--p) - 0.7) * 6, 1); }

/* Gifts */
.ring-wrap { position: relative; width: min(380px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.ring-wrap svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-wrap .track { fill: none; stroke: var(--ink-3); stroke-width: 18; animation: none; }
.ring-wrap .fill { fill: none; stroke: url(#goldGrad); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - 0.12) / 0.66, 1)); filter: drop-shadow(0 0 18px rgba(217, 178, 106, 0.45)); }
.ring-center { text-align: center; }
.ring-center b { display: block; font-family: 'Fraunces', serif; font-size: clamp(56px, 6vw, 84px); line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.ring-center span { color: var(--muted); }
.gift-stage { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.pledges { display: grid; gap: 10px; min-width: 240px; }
.pledge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.pledge b { flex: 1; font-size: 15px; }
.secret { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; border: 1px dashed rgba(217, 178, 106, 0.45); color: var(--muted); font-size: 14.5px; }
.secret .blur { filter: blur(5px); color: var(--paper); font-weight: 600; user-select: none; }
.secret svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.8; flex: none; }

/* Friends' links */
.sync { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; width: 100%; }
.friends { display: grid; gap: 12px; }
.mini { padding: 14px 16px; border-radius: 18px; background: var(--paper); color: #1b1e23; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.8); }
.mini .bar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b7480; margin-bottom: 8px; }
.mini .bar i { width: 6px; height: 6px; border-radius: 50%; background: #c9ced6; font-style: normal; }
.mini b { display: block; font-family: 'Fraunces', serif; font-size: 16px; margin-bottom: 6px; }
.tick { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 13px; border: 1px solid #e3e6eb; margin-top: 5px; }
.tick::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c9ced6; flex: none; }
.tick.on { --k: clamp(0, (var(--p) - var(--at)) * 10, 1); border-color: color-mix(in srgb, #e3e6eb, #d9b26a calc(var(--k) * 100%)); background: color-mix(in srgb, transparent, rgba(217,178,106,.18) calc(var(--k) * 100%)); }
.tick.on::after { background: color-mix(in srgb, transparent, #d9b26a calc(var(--k) * 100%)); border-color: color-mix(in srgb, #c9ced6, #d9b26a calc(var(--k) * 100%)); }
.pulse { width: 64px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 200% 100%; animation: flow 1.4s linear infinite; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.host .r-items li { padding: 8px 10px; }
.host-receipt { width: 100%; padding: 20px; border-radius: 22px; background: #f6f1e7; color: #2b2721; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85); font-size: 13.5px; }
.host-receipt .row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed #d4cbbb; }
.host-receipt .row:last-child { border-bottom: 0; }
.host-receipt .dots { display: flex; }
.host-receipt .dots b { width: 20px; height: 20px; border-radius: 50%; margin-left: -5px; background: var(--c); color: #0e1116; font: 600 10px/20px 'Inter'; text-align: center; border: 1.5px solid #f6f1e7;
  --k: clamp(0, (var(--p) - var(--at)) * 10, 1); transform: scale(var(--k)); }
.lockcard { margin-top: 18px; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--ink-2); border: 1px solid rgba(217, 178, 106, 0.35); font-size: 14.5px; color: var(--muted); }
.lockcard code { display: block; color: var(--paper); font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; margin-bottom: 4px; }
.lockcard svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.8; flex: none; }

/* Three-up details and the next-feature band */
.f-steps { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vh, 100px) var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f-step { padding: 30px; border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); }
.f-step .n { font-family: 'Fraunces', serif; color: var(--gold); font-size: 15px; }
.f-step h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 25px; line-height: 1.15; margin: 12px 0 10px; letter-spacing: -0.01em; }
.f-step p { color: var(--muted); font-size: 15.5px; }
.next { display: block; border-top: 1px solid var(--line); padding: clamp(56px, 10vh, 110px) var(--pad); text-align: center; overflow: hidden; }
.next small { display: block; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.next span { display: inline-block; font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.03em; line-height: 1; transition: transform 0.6s var(--ease), color 0.4s; }
.next span i { font-style: italic; color: var(--gold); }
.next:hover span { transform: translateX(16px); }
.next em { display: inline-block; font-style: normal; color: var(--gold); margin-left: 18px; transition: transform 0.6s var(--ease); }
.next:hover em { transform: translateX(14px); }

@media (max-width: 900px) {
  .f-hero .hero-inner { grid-template-columns: 1fr; }
  .scene { height: auto; }
  .scene-stick { position: relative; height: auto; grid-template-columns: 1fr; gap: 36px; padding: 70px var(--pad); }
  .stage { min-height: 0; }
  .plates { grid-template-columns: 1fr 1fr; }
  .flyer { display: none; }
  .gift-stage, .sync { grid-template-columns: 1fr; }
  .pulse { width: 2px; height: 40px; margin: 0 auto; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
  .f-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .at { opacity: 1; transform: none; } .scene { height: auto; } .scene-stick { position: relative; height: auto; } }

.maker { color: var(--faint); letter-spacing: 0.08em; }

/* ---------- 3D ---------- */
/* Opening reveal: the plate assembles, the gold share pops, the curtain lifts. Once per visit. */
.intro { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: grid; place-items: center; align-content: center; gap: 22px; perspective: 900px;
  animation: intro-lift 0.9s var(--ease) 1.55s forwards; }
.intro-mark { position: relative; width: 120px; height: 120px; transform-style: preserve-3d; animation: intro-spin 1.5s var(--ease) both; }
.intro .q, .plate3d .q { position: absolute; width: 50%; height: 50%; background: radial-gradient(circle at 100% 100%, #2a2e36 0 38%, #e9ecf1 39% 100%); }
.q-tl { left: 0; top: 0; border-radius: 100% 0 0 0; transform-origin: 100% 100%; }
.q-tr { right: 0; top: 0; border-radius: 0 100% 0 0; transform-origin: 0 100%; }
.q-bl { left: 0; bottom: 0; border-radius: 0 0 0 100%; transform-origin: 100% 0; }
.q-br { right: 0; bottom: 0; border-radius: 0 0 100% 0; transform-origin: 0 0; }
.intro .q-tr, .plate3d .q-tr { background: radial-gradient(circle at 0 100%, #8a6420 0 38%, #d9b26a 39% 100%); }
.intro .q-tl { background: radial-gradient(circle at 100% 100%, #2a2e36 0 38%, #e9ecf1 39% 100%); }
.intro .q-bl, .plate3d .q-bl { background: radial-gradient(circle at 100% 0, #2a2e36 0 38%, #c9ced6 39% 100%); }
.intro .q-br, .plate3d .q-br { background: radial-gradient(circle at 0 0, #2a2e36 0 38%, #dfe3e9 39% 100%); }
.intro .q-tl, .plate3d .q-tl { background: radial-gradient(circle at 100% 100%, #2a2e36 0 38%, #f2f4f7 39% 100%); }
.intro .q { opacity: 0; animation: q-in 0.7s var(--ease) forwards; }
.intro .q-tl { animation-delay: 0.05s; --from: translate(-40px, -40px); } .intro .q-bl { animation-delay: 0.15s; --from: translate(-40px, 40px); }
.intro .q-br { animation-delay: 0.25s; --from: translate(40px, 40px); } .intro .q-tr { animation-delay: 0.35s; --from: translate(40px, -40px); animation: q-in 0.7s var(--ease) 0.35s forwards, q-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s forwards; }
.intro-word { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: 40px; color: var(--paper); opacity: 0; transform: translateY(14px); animation: word-in 0.7s var(--ease) 0.7s forwards; }
@keyframes q-in { from { opacity: 0; transform: var(--from) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes q-pop { 0% { transform: none; } 60% { transform: translate(14px, -14px) translateZ(40px); } 100% { transform: translate(8px, -8px) translateZ(20px); } }
@keyframes intro-spin { from { transform: rotateX(55deg) rotateZ(-30deg) scale(0.8); } to { transform: rotateX(0) rotateZ(0) scale(1); } }
@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }
.seen .intro { display: none; }

/* Hero phone rises out of a 3D tilt as you scroll the hero away (and leans to the pointer). */
.hero-phone { perspective: 1400px; }
.hero-phone .phone { transform: rotateX(calc(14deg - var(--hs, 0) * 22deg)) rotateY(calc(-12deg + var(--hs, 0) * 12deg + var(--mx, 0) * -8deg)) rotateZ(calc(3deg - var(--hs, 0) * 3deg)) translateZ(calc(var(--hs, 0) * 40px)); transform-style: preserve-3d; }
.hero-phone .phone::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0.12), transparent 35%, transparent 70%, rgba(255,255,255,0.05)); }

/* The receipt drops in from a 3D angle and flattens as it's scanned. */
.story-stage { perspective: 1200px; }
.receipt { transform: rotateX(calc(28deg - var(--p1, 0) * 28deg)) rotateZ(calc(-6deg + var(--p1, 0) * 6deg)) translateX(calc(var(--p3, 0) * -34%)) scale(calc(1 - var(--p3, 0) * 0.1)) !important; transform-origin: 50% 80%; }
.req { transform: translateX(80px) rotateY(-28deg); }

/* Cover-flow gallery: cards curve away at the sides and face you in the middle. */
.rail { perspective: 1600px; transform-style: preserve-3d; }
.card { transform: rotateY(calc(var(--off, 0) * -22deg)) translateZ(calc(var(--abs, 0) * -90px)) scale(calc(1 - var(--abs, 0) * 0.06)); transition: transform 0.15s linear; }

/* Signature: the plate splits into shares as you scroll. */
.share-scene { position: relative; height: 260vh; }
.share-stick { position: sticky; top: 72px; display: grid; grid-template-rows: auto auto; gap: 8px; align-items: center; justify-items: center; padding: 16px var(--pad); overflow: hidden; }
.share-copy { display: grid; gap: 14px; justify-items: center; max-width: 760px; }
.plate3d { width: min(46vh, 70vw); aspect-ratio: 1; perspective: 1100px; }
.plate3d-rot { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(calc(58deg - var(--p) * 18deg)) rotateZ(calc(-20deg + var(--p) * 60deg)); }
.plate3d .q { box-shadow: 0 0 0 1px rgba(0,0,0,0.25) inset; }
.plate3d .q-tl { transform: translate(calc(var(--s) * -1), calc(var(--s) * -1)) translateZ(calc(var(--s) * 0.4)); }
.plate3d .q-bl { transform: translate(calc(var(--s) * -1), var(--s)) translateZ(calc(var(--s) * 0.2)); }
.plate3d .q-br { transform: translate(var(--s), var(--s)) translateZ(calc(var(--s) * 0.3)); }
.plate3d .q-tr { transform: translate(calc(var(--s) * 1.3), calc(var(--s) * -0.9)) translateZ(calc(var(--s) * 1.6)) rotateX(calc(var(--g) * -50deg)); filter: drop-shadow(0 30px 40px rgba(217, 178, 106, calc(var(--g) * 0.5))); }
.plate3d-rot { --s: calc(clamp(0, (var(--p) - 0.15) / 0.5, 1) * 3.4vmin); --g: clamp(0, (var(--p) - 0.4) / 0.4, 1); }
.plate3d-shadow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.6), transparent); transform: translateZ(-60px); filter: blur(20px); }

@media (max-width: 900px) {
  .share-scene { height: 200vh; }
  .card { transform: rotateY(calc(var(--off, 0) * -16deg)) scale(calc(1 - var(--abs, 0) * 0.05)); }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .share-scene { height: auto; } .share-stick { position: relative; height: auto; gap: 30px; }
  .plate3d-rot { transform: rotateX(45deg) rotateZ(10deg); --s: 3vmin; --g: 1; }
  .card, .receipt, .hero-phone .phone { transform: none !important; }
}

/* ---------- Feature story (replaces the carousel) ---------- */
.chapters-stick { grid-template-columns: 300px 1fr; align-items: center; gap: 56px; }
.chapters-head .h2 { font-size: clamp(34px, 3.4vw, 50px); }
.chapters-head { position: relative; padding-top: 12px; }
.chapter-nav { list-style: none; margin-top: 34px; display: grid; gap: 4px; }
.chapter-nav li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--faint); font-weight: 600; font-size: 15px; transition: color 0.4s; }
.chapter-nav li span { width: 22px; height: 2px; background: var(--line); transition: width 0.5s var(--ease), background 0.4s; }
.chapters-stage { position: relative; height: min(66vh, 600px); perspective: 1600px; }
.chapter { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px;
  opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease); }
.chapter-copy { transform: translateY(26px); transition: transform 0.8s var(--ease); }
.chapter-copy .h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 16px; }
.points { list-style: none; display: grid; gap: 10px; margin: 22px 0 6px; }
.points li { position: relative; padding-left: 30px; color: var(--paper); font-size: 15.5px; }
.points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); }
.points li::after { content: ''; position: absolute; left: 5px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.chapter .more { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--gold); font-weight: 600; }
.chapter .more span { transition: transform 0.3s var(--ease); } .chapter .more:hover span { transform: translateX(5px); }
.chapter-phone { width: clamp(220px, 21vw, 290px); transform: rotateY(-38deg) rotateX(6deg) translateX(60px) scale(0.92); transition: transform 1s var(--ease); }
/* The active chapter (data-act on the section is how many thresholds have passed). */
.chapters[data-act="0"] .chapter[data-i="0"], .chapters[data-act="1"] .chapter[data-i="1"], .chapters[data-act="2"] .chapter[data-i="2"],
.chapters[data-act="3"] .chapter[data-i="3"], .chapters[data-act="4"] .chapter[data-i="4"] { opacity: 1; pointer-events: auto; }
.chapters[data-act="0"] .chapter[data-i="0"] .chapter-copy, .chapters[data-act="1"] .chapter[data-i="1"] .chapter-copy, .chapters[data-act="2"] .chapter[data-i="2"] .chapter-copy,
.chapters[data-act="3"] .chapter[data-i="3"] .chapter-copy, .chapters[data-act="4"] .chapter[data-i="4"] .chapter-copy { transform: none; }
.chapters[data-act="0"] .chapter[data-i="0"] .chapter-phone, .chapters[data-act="1"] .chapter[data-i="1"] .chapter-phone, .chapters[data-act="2"] .chapter[data-i="2"] .chapter-phone,
.chapters[data-act="3"] .chapter[data-i="3"] .chapter-phone, .chapters[data-act="4"] .chapter[data-i="4"] .chapter-phone { transform: rotateY(-8deg) rotateX(2deg); }
.chapters[data-act="0"] .chapter-nav li[data-i="0"], .chapters[data-act="1"] .chapter-nav li[data-i="1"], .chapters[data-act="2"] .chapter-nav li[data-i="2"],
.chapters[data-act="3"] .chapter-nav li[data-i="3"], .chapters[data-act="4"] .chapter-nav li[data-i="4"] { color: var(--paper); }
.chapters[data-act="0"] .chapter-nav li[data-i="0"] span, .chapters[data-act="1"] .chapter-nav li[data-i="1"] span, .chapters[data-act="2"] .chapter-nav li[data-i="2"] span,
.chapters[data-act="3"] .chapter-nav li[data-i="3"] span, .chapters[data-act="4"] .chapter-nav li[data-i="4"] span { width: 42px; background: var(--gold); }

@media (max-width: 900px) {
  .chapters-stick { grid-template-columns: 1fr; gap: 28px; }
  .chapter-nav { display: none; }
  .chapters-stage { height: auto; display: grid; gap: 56px; perspective: none; }
  .chapter { position: static; opacity: 1; pointer-events: auto; grid-template-columns: 1fr; gap: 26px; }
  .chapter-copy { transform: none; }
  .chapter-phone { transform: none; justify-self: center; width: min(250px, 70vw); }
}
@media (prefers-reduced-motion: reduce) {
  .chapters-stage { height: auto; display: grid; gap: 56px; }
  .chapter { position: static; opacity: 1; } .chapter-copy, .chapter-phone { transform: none; }
}

/* ---------- Promises: four big 3D panels ---------- */
.promises-stick { grid-template-columns: 1fr; justify-items: center; gap: 22px; text-align: center; }
.promise-stage { position: relative; width: min(980px, 100%); height: min(56vh, 460px); perspective: 1400px; transform-style: preserve-3d;
  transform: rotateX(calc(4deg - var(--p) * 8deg)); }
.promise-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px;
  border-radius: 36px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, rgba(217,178,106,0.16), transparent 70%), linear-gradient(170deg, var(--ink-3), var(--ink-2));
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  opacity: 0; transform: translateY(46%) translateZ(-120px) rotateX(-48deg) scale(0.9); filter: blur(4px); transform-origin: 50% 100%;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease); }
.promise-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.06) 50%, transparent 65%); transform: translateX(-60%); transition: transform 1.6s var(--ease) 0.2s; pointer-events: none; }
.promise-card svg { width: clamp(52px, 6vw, 72px); height: auto; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.promise-card svg .fill { fill: rgba(217,178,106,0.35); stroke: none; }
.promise-card h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(46px, 7.6vw, 112px); line-height: 1; letter-spacing: -0.035em; }
.promise-card p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 520px; }
.promise-dots { display: flex; gap: 8px; }
.promise-dots i { width: 10px; height: 4px; border-radius: 4px; background: var(--line); transition: width 0.5s var(--ease), background 0.4s; }
.promises[data-act="0"] .promise-card[data-i="0"] { opacity: 1; transform: none; filter: none; }
.promises[data-act="0"] .promise-dots i[data-i="0"] { width: 34px; background: var(--gold); }
.promises[data-act="1"] .promise-card[data-i="0"] { opacity: 0; transform: translateY(-34%) translateZ(-260px) rotateX(28deg) scale(0.82); filter: blur(6px); }
.promises[data-act="1"] .promise-card[data-i="1"] { opacity: 1; transform: none; filter: none; }
.promises[data-act="1"] .promise-dots i[data-i="1"] { width: 34px; background: var(--gold); }
.promises[data-act="2"] .promise-card[data-i="0"] { opacity: 0; transform: translateY(-34%) translateZ(-260px) rotateX(28deg) scale(0.82); filter: blur(6px); }
.promises[data-act="2"] .promise-card[data-i="1"] { opacity: 0; transform: translateY(-34%) translateZ(-260px) rotateX(28deg) scale(0.82); filter: blur(6px); }
.promises[data-act="2"] .promise-card[data-i="2"] { opacity: 1; transform: none; filter: none; }
.promises[data-act="2"] .promise-dots i[data-i="2"] { width: 34px; background: var(--gold); }
.promises[data-act="3"] .promise-card[data-i="0"] { opacity: 0; transform: translateY(-34%) translateZ(-260px) rotateX(28deg) scale(0.82); filter: blur(6px); }
.promises[data-act="3"] .promise-card[data-i="1"] { opacity: 0; transform: translateY(-34%) translateZ(-260px) rotateX(28deg) scale(0.82); filter: blur(6px); }
.promises[data-act="3"] .promise-card[data-i="2"] { opacity: 0; transform: translateY(-34%) translateZ(-260px) rotateX(28deg) scale(0.82); filter: blur(6px); }
.promises[data-act="3"] .promise-card[data-i="3"] { opacity: 1; transform: none; filter: none; }
.promises[data-act="3"] .promise-dots i[data-i="3"] { width: 34px; background: var(--gold); }
.promises[data-act="0"] .promise-card[data-i="0"]::after { transform: translateX(60%); }
.promises[data-act="1"] .promise-card[data-i="1"]::after { transform: translateX(60%); }
.promises[data-act="2"] .promise-card[data-i="2"]::after { transform: translateX(60%); }
.promises[data-act="3"] .promise-card[data-i="3"]::after { transform: translateX(60%); }


@media (prefers-reduced-motion: reduce) {
  .promise-stage { height: auto; display: grid; gap: 16px; transform: none; }
  .promise-card { position: relative; opacity: 1; transform: none; filter: none; }
}

/* ---------- Pinned on phones too ---------- */
@media (max-width: 900px) {
  .scene[data-pin-mobile] .scene-stick { position: sticky; }
}

/* ---------- Why Erano ---------- */
.name-stick { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; padding-block: 24px; }
.name-word { position: relative; height: clamp(110px, 18vw, 230px); width: 100%; perspective: 1000px; }
.name-word span { position: absolute; inset: 0; display: grid; place-items: center; line-height: 1; transition: transform 1.2s var(--ease), opacity 0.9s var(--ease), filter 0.9s var(--ease); backface-visibility: hidden; }
.name-word .greek { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(76px, 14vw, 200px); color: var(--gold); letter-spacing: 0.01em; }
.name-word .latin { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: clamp(84px, 15vw, 210px); color: var(--paper); letter-spacing: -0.03em; opacity: 0; transform: rotateX(-90deg) translateY(30px); filter: blur(10px); }
.namescene[data-act="1"] .greek, .namescene[data-act="2"] .greek { opacity: 0; transform: rotateX(90deg) translateY(-30px); filter: blur(10px); }
.namescene[data-act="1"] .latin, .namescene[data-act="2"] .latin { opacity: 1; transform: none; filter: none; }
.name-lines { position: relative; width: min(760px, 100%); min-height: 4.2em; font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(21px, 2.4vw, 32px); line-height: 1.3; }
.name-lines p { position: absolute; inset: 0; opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.name-lines em { color: var(--gold); }
.name-lines b { font-weight: 600; font-style: italic; color: var(--gold); }
.namescene[data-act="0"] .name-lines p[data-i="0"], .namescene[data-act="1"] .name-lines p[data-i="1"], .namescene[data-act="2"] .name-lines p[data-i="2"] { opacity: 1; transform: none; }
.pron { color: var(--faint); font-size: 14px; letter-spacing: 0.08em; }

/* ---------- More than dinner: the deck ---------- */
.deck-stick { grid-template-columns: 1fr; justify-items: center; gap: 22px; text-align: center; padding-block: 16px; }
.deck-head .h2 { font-size: clamp(32px, 4.2vw, 58px); }
.deck-stage { position: relative; width: min(1040px, 100%); height: min(62vh, 520px); perspective: 1600px; transform-style: preserve-3d; }
.dcard { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; text-align: left; padding: clamp(24px, 4vw, 52px);
  border-radius: 34px; border: 1px solid var(--line); pointer-events: none; transform-origin: 50% 0%;
  background: radial-gradient(80% 100% at 85% 0%, rgba(217,178,106,0.16), transparent 60%), linear-gradient(165deg, #1d2129, var(--ink-2));
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 1.05s var(--ease), opacity 0.8s var(--ease), filter 0.8s var(--ease); }
.dcard h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -0.025em; margin: 6px 0 14px; }
.dcard p:not(.kicker) { color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); max-width: 460px; }
.dcard .kicker { margin-bottom: 4px; }
.dcard .more { display: inline-flex; gap: 8px; margin-top: 20px; color: var(--gold); font-weight: 600; }
.dcard .more span { transition: transform 0.3s var(--ease); } .dcard .more:hover span { transform: translateX(5px); }
.dphone { width: clamp(170px, 19vw, 250px); transition: transform 1.1s var(--ease); transform: rotateY(-24deg) rotateX(8deg); }
.deck-dots { display: flex; gap: 8px; }
.deck-dots i { width: 10px; height: 4px; border-radius: 4px; background: var(--line); transition: width 0.5s var(--ease), background 0.4s; }
@media (max-width: 900px) {
  .deck-stage { height: min(66vh, 560px); }
  .dcard { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 14px; padding: 22px 20px 0; align-items: start; overflow: hidden; }
  .dcard h3 { font-size: 30px; margin-bottom: 8px; }
  .dcard p:not(.kicker) { font-size: 15px; }
  .dcard .more { margin-top: 10px; }
  .dphone { width: min(200px, 52vw); justify-self: center; transform: none; }
  .promise-stage { height: min(52vh, 420px) !important; display: block !important; }
  .promise-card { position: absolute !important; inset: 0 !important; padding: 28px 22px !important; }
  .promise-card:not([data-i]) { opacity: 0; }
  .promises[data-act] .promise-card { transition: opacity 0.8s var(--ease), transform 1s var(--ease), filter 0.8s var(--ease); }
  .promise-dots { display: flex !important; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-stage, .promise-stage { height: auto !important; display: grid !important; gap: 16px; transform: none; }
  .dcard, .promise-card { position: relative !important; opacity: 1 !important; transform: none !important; filter: none !important; pointer-events: auto; }
  .name-word .latin { opacity: 1; transform: none; filter: none; } .name-word .greek { display: none; }
  .name-lines p { position: static; opacity: 1; transform: none; }
}
.deck[data-act="0"] .dcard[data-i="0"] { opacity: 1; transform: none; filter: none; z-index: 10; pointer-events: auto; }
.deck[data-act="0"] .dcard[data-i="1"] { opacity: 0.68; transform: translateY(26px) translateZ(-90px) scale(0.94); filter: brightness(0.78); z-index: 9; }
.deck[data-act="0"] .dcard[data-i="2"] { opacity: 0.36; transform: translateY(52px) translateZ(-180px) scale(0.88); filter: brightness(0.56); z-index: 8; }
.deck[data-act="0"] .dcard[data-i="3"] { opacity: 0.04; transform: translateY(78px) translateZ(-270px) scale(0.82); filter: brightness(0.34); z-index: 7; }
.deck[data-act="0"] .dcard[data-i="4"] { opacity: 0; transform: translateY(104px) translateZ(-360px) scale(0.76); z-index: 6; }
.deck[data-act="0"] .deck-dots i[data-i="0"] { width: 30px; background: var(--gold); }
.deck[data-act="0"] .dcard[data-i="0"] .dphone { transform: rotateY(-10deg) rotateX(4deg) translateZ(30px); }
.deck[data-act="1"] .dcard[data-i="0"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="1"] .dcard[data-i="1"] { opacity: 1; transform: none; filter: none; z-index: 10; pointer-events: auto; }
.deck[data-act="1"] .dcard[data-i="2"] { opacity: 0.68; transform: translateY(26px) translateZ(-90px) scale(0.94); filter: brightness(0.78); z-index: 9; }
.deck[data-act="1"] .dcard[data-i="3"] { opacity: 0.36; transform: translateY(52px) translateZ(-180px) scale(0.88); filter: brightness(0.56); z-index: 8; }
.deck[data-act="1"] .dcard[data-i="4"] { opacity: 0.04; transform: translateY(78px) translateZ(-270px) scale(0.82); filter: brightness(0.34); z-index: 7; }
.deck[data-act="1"] .deck-dots i[data-i="1"] { width: 30px; background: var(--gold); }
.deck[data-act="1"] .dcard[data-i="1"] .dphone { transform: rotateY(-10deg) rotateX(4deg) translateZ(30px); }
.deck[data-act="2"] .dcard[data-i="0"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="2"] .dcard[data-i="1"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="2"] .dcard[data-i="2"] { opacity: 1; transform: none; filter: none; z-index: 10; pointer-events: auto; }
.deck[data-act="2"] .dcard[data-i="3"] { opacity: 0.68; transform: translateY(26px) translateZ(-90px) scale(0.94); filter: brightness(0.78); z-index: 9; }
.deck[data-act="2"] .dcard[data-i="4"] { opacity: 0.36; transform: translateY(52px) translateZ(-180px) scale(0.88); filter: brightness(0.56); z-index: 8; }
.deck[data-act="2"] .deck-dots i[data-i="2"] { width: 30px; background: var(--gold); }
.deck[data-act="2"] .dcard[data-i="2"] .dphone { transform: rotateY(-10deg) rotateX(4deg) translateZ(30px); }
.deck[data-act="3"] .dcard[data-i="0"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="3"] .dcard[data-i="1"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="3"] .dcard[data-i="2"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="3"] .dcard[data-i="3"] { opacity: 1; transform: none; filter: none; z-index: 10; pointer-events: auto; }
.deck[data-act="3"] .dcard[data-i="4"] { opacity: 0.68; transform: translateY(26px) translateZ(-90px) scale(0.94); filter: brightness(0.78); z-index: 9; }
.deck[data-act="3"] .deck-dots i[data-i="3"] { width: 30px; background: var(--gold); }
.deck[data-act="3"] .dcard[data-i="3"] .dphone { transform: rotateY(-10deg) rotateX(4deg) translateZ(30px); }
.deck[data-act="4"] .dcard[data-i="0"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="4"] .dcard[data-i="1"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="4"] .dcard[data-i="2"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="4"] .dcard[data-i="3"] { opacity: 0; transform: translateY(-70%) translateZ(120px) rotateX(38deg) scale(1.02); filter: blur(8px); z-index: 11; }
.deck[data-act="4"] .dcard[data-i="4"] { opacity: 1; transform: none; filter: none; z-index: 10; pointer-events: auto; }
.deck[data-act="4"] .deck-dots i[data-i="4"] { width: 30px; background: var(--gold); }
.deck[data-act="4"] .dcard[data-i="4"] .dphone { transform: rotateY(-10deg) rotateX(4deg) translateZ(30px); }
@media (max-width: 900px) {
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Guide / calculator ---------- */
.guide-hero { min-height: auto; padding-bottom: 40px; }
.guide-inner { position: relative; width: 100%; max-width: 880px; margin: 0 auto; display: grid; gap: 24px; }
.guide-inner .display { font-size: clamp(46px, 7vw, 96px); }
.calc { margin-top: 10px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 26px; border-radius: 28px; background: linear-gradient(165deg, #1d2129, var(--ink-2)); border: 1px solid rgba(217,178,106,0.35); box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-fields label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.calc-fields label:first-child { grid-column: 1 / -1; }
.calc-in { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); }
.calc-in:focus-within { border-color: var(--gold); }
.calc-in i { font-style: normal; color: var(--faint); font-weight: 600; text-transform: none; }
.calc-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--paper); font: 600 20px 'Inter', sans-serif; }
.calc-check { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; font-size: 14px !important; }
.calc-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.calc-out { display: grid; gap: 10px; align-content: center; padding: 20px; border-radius: 20px; background: rgba(217,178,106,0.08); }
.calc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-out span { color: var(--muted); font-size: 14px; }
.calc-out b { font-family: 'Fraunces', serif; font-size: 22px; font-variant-numeric: tabular-nums; }
.calc-out div:first-child b { font-size: clamp(30px, 4vw, 44px); color: var(--gold); }
.calc-note { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }
.guide { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vh, 80px) var(--pad); display: grid; gap: 16px; }
.guide .h2 { margin-bottom: 4px; }
.guide h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; margin-top: 22px; letter-spacing: -0.01em; }
.guide p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.guide-cta { margin-top: 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px; border-radius: 24px; border: 1px solid rgba(217,178,106,0.35); background: var(--ink-2); }
.guide-cta h3 { margin: 0; } .guide-cta p { margin-top: 6px; font-size: 15px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; padding: 20px; } }
.calc-out span { white-space: nowrap; }
