/* ============================================================
   Lifafaa — concept-led landing (award-leaning)
   Editorial serif voice · the sealed envelope as hero object
   ============================================================ */

:root {
  --navy:      #0B1320;
  --navy-2:    #0E1A2B;
  --panel:     #101d30;
  --forest:    #122a20;
  --champagne: #C9AE7C;
  --champ-2:   #E0C796;
  --brass:     #A8842F;
  --ivory:     #F4EEE3;
  --bone:      #E4DBC9;

  --ivory-90: rgba(244,238,227,0.95);
  --ivory-70: rgba(244,238,227,0.84);
  --ivory-55: rgba(244,238,227,0.68);
  --ivory-38: rgba(244,238,227,0.52);
  --ivory-22: rgba(244,238,227,0.22);
  --line:     rgba(244,238,227,0.13);
  --line-2:   rgba(244,238,227,0.07);
  --champ-line: rgba(201,174,124,0.4);

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --sc: var(--sans);
  --deva: "Tiro Devanagari Hindi", "Tiro Tamil", serif;
  --tamil: "Tiro Tamil", serif;

  /* ceremony — the seal, the handover. Slow, weighty, rare. */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --t-slow: 900ms;
  /* entrance — content arriving on scroll. Resolves fast, lands soft. */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --t-entr: 640ms;
  /* interface — everything the hand touches. Instant, interruptible. */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 200ms;
  --t-med: 540ms;

  --mx: clamp(1.4rem, 5.5vw, 7rem);
  --sy: clamp(5rem, 9.5vw, 9.5rem);
  --maxw: 1280px;

  /* ── Lifafaa Editorial Scale (typography-craft.md §5) ── */
  --display-xl: clamp(3.25rem, 3.6vw + 1.4rem, 5.8rem);
  --display-l:  clamp(2.6rem, 2.6vw + 1.2rem, 4.35rem);
  --display-m:  clamp(2.05rem, 1.6vw + 1.1rem, 3.25rem);
  --fs-lead:  clamp(1.2rem, 0.6vw + 1rem, 1.3rem);
  --fs-body:  1.125rem;
  --fs-small: 1rem;
  --fs-fine:  0.9rem;
  --fs-micro: 0.78rem;
  --lh-display-xl: 1.05; --lh-display: 1.08;
  --lh-lead: 1.5; --lh-body: 1.55; --lh-micro: 1.5;
  --measure-lead: 52ch; --measure-body: 66ch; --measure-display: 18ch;
  --track-display: -0.018em; --track-body: 0.004em;
  --track-caps: 0.15em; --track-caps-sm: 0.1em;
}

* { box-sizing: border-box; }
::selection { background: rgba(201,174,124,0.32); color: var(--ivory); }
.paper ::selection { background: rgba(141,110,45,0.28); color: #14202F; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--navy);
  color: var(--ivory);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--track-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: var(--lh-display); margin: 0; letter-spacing: var(--track-display);
  font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

/* faint grain on the dark stage */
#fx-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }
body.gsap #final-env .flap, body.gsap #final-env .letter, body.gsap #final-env .innerglow, body.gsap #final-env .wax { transition: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
main, header, footer, section > * { position: relative; z-index: 1; }

/* ---------- shell ---------- */
.shell { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--mx); }
.shell-wide { max-width: 1440px; }
section { position: relative; }
.sy { padding-block: var(--sy); }
.sy-sm { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

/* ---------- type ---------- */
.display-xl { font-size: var(--display-xl); line-height: var(--lh-display-xl); }
.display-l  { font-size: var(--display-l); }
.display-m  { font-size: var(--display-m); }
/* italic inflection only — the headline stays ivory so the CTA is the
   sole champagne element above the fold (rule of one) */
.italic-accent { font-style: italic; font-weight: 400; }

/* editorial copy — quiet grotesque; the serif is reserved for display */
.lead { font-weight: 400; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ivory-70); max-width: var(--measure-lead); }
.note { font-weight: 400; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ivory-70); max-width: 44ch; }

/* functional micro */
.fine { font-family: var(--sans); font-weight: 400; font-size: var(--fs-fine); line-height: var(--lh-micro); letter-spacing: var(--track-body); color: var(--ivory-38); }
.meta { font-family: var(--sans); font-weight: 500; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ivory-38); }

/* small-caps section label — institutional, not decorative */
.label { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ivory-38); margin: 0 0 1.6rem; display: inline-flex; align-items: baseline; gap: 0.7rem; white-space: nowrap; }
.label .n { font-family: var(--sans); font-weight: 500; font-size: 1em; letter-spacing: 0.1em; color: var(--ivory-38); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- reveal (JS safety net forces end state) ----------
   Differentiated: headlines settle out of a soft blur (foil catching
   focus); body rises a short distance; fine print barely moves. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-entr) var(--ease-soft) var(--rd,0ms), transform var(--t-entr) var(--ease-soft) var(--rd,0ms), filter var(--t-entr) var(--ease-soft) var(--rd,0ms); }
h1.reveal, h2.reveal { transform: translateY(24px); filter: blur(9px); }
.fine.reveal, .label.reveal { transform: translateY(6px); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ============================================================
   Wax seal motif
   ============================================================ */
.seal { position: relative; width: var(--s, 76px); height: var(--s, 76px); border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 30%, #e6cd9b 0%, #d8b885 22%, #c39f63 50%, #9c7a36 76%, #6f5320 100%);
  box-shadow: inset 0 2px 5px rgba(255,240,210,0.5), inset 0 -6px 12px rgba(58,40,12,0.6), 0 14px 32px rgba(0,0,0,0.45); isolation: isolate; }
.seal::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: -1; opacity: 0.5; filter: blur(1.1px); transform: rotate(-8deg); background: repeating-conic-gradient(from 0deg, #a8842f 0deg 9deg, #8a6b22 9deg 18deg); }
.seal-face { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(86,62,20,0.55); box-shadow: inset 0 1px 2px rgba(255,240,210,0.35), inset 0 -2px 5px rgba(58,40,12,0.55); }
.seal-mono { font-family: var(--serif); font-weight: 600; font-size: calc(var(--s,76px) * 0.46); line-height: 1; color: #6f5320; text-shadow: 0 1px 0 rgba(255,240,210,0.4), 0 -1px 1px rgba(50,34,8,0.5); }
.seal .glint { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; z-index: 2; pointer-events: none; }
.seal .glint::after { content: ""; position: absolute; top: -60%; left: -120%; width: 55%; height: 220%; background: linear-gradient(100deg, transparent, rgba(255,248,230,0.9), transparent); transform: rotate(8deg); opacity: 0; }
.seal.shimmer .glint::after { animation: glint 1300ms var(--ease) 1 both; }
@keyframes glint { 0%{left:-120%;opacity:0} 20%{opacity:.95} 100%{left:160%;opacity:0} }
@media (prefers-reduced-motion: reduce) { .seal.shimmer .glint::after { animation: none; } }
.seal-lg { --s: 104px; } .seal-sm { --s: 46px; } .seal-xs { --s: 26px; }

/* ============================================================
   Buttons
   ============================================================ */
.cta { display: inline-flex; align-items: center; gap: 0.7em; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; padding: 1.05em 2em; color: #20180b; white-space: nowrap;
  background: var(--champagne); border: 1px solid #d8bd87; border-radius: 2px; cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px -14px rgba(201,174,124,0.45);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out); }
.cta .dot { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6f5320, #3d2c08); transition: transform var(--t-fast) var(--ease-out); }
.cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 32%; background: linear-gradient(100deg, transparent, rgba(255,250,235,0.65), transparent); transform: skewX(-14deg); opacity: 0; pointer-events: none; }
.cta:hover { background: var(--champ-2); box-shadow: 0 14px 36px -14px rgba(201,174,124,0.55); transform: translateY(-1px); }
.cta:hover::after { animation: ctasweep 850ms var(--ease) 1; }
@keyframes ctasweep { 0% { left: -45%; opacity: 0; } 25% { opacity: 1; } 100% { left: 115%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cta:hover::after { animation: none; } }
.cta:hover .dot { transform: scale(0.7); }
.cta:active { transform: translateY(0); }
.link { font-family: var(--sans); font-size: 1rem; color: var(--ivory-70); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5em; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.link:hover { color: var(--champagne); border-color: var(--champ-line); }
.link .ar { transition: transform var(--t-fast) var(--ease-out); }
.link:hover .ar { transform: translateX(3px); }

/* ============================================================
   Nav
   ============================================================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem var(--mx); border-bottom: 1px solid transparent; transition: background 280ms var(--ease-out), border-color 280ms var(--ease-out), padding 280ms var(--ease-out); }
.nav.solid { background: rgba(11,19,32,0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line-2); padding-block: 1rem; }
.brand { display: flex; align-items: baseline; gap: 0.7rem; text-decoration: none; }
.brand .mark { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--ivory); letter-spacing: 0.01em; }
.brand .mark .aa { color: var(--champagne); }
.brand .deva { font-family: var(--deva); font-size: 1.2rem; color: var(--ivory-70); padding-left: 0.9rem; position: relative; }
.brand .deva::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: var(--line); }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav .link { color: var(--ivory-90); border-color: transparent; }
/* quiet until the hero's CTA is out of view — one champagne element above the fold */
.nav .cta { padding: 0.66em 1.3em; font-size: 0.9rem; background: transparent; color: var(--ivory-90); border-color: var(--champ-line); box-shadow: none; }
.nav .cta .dot { background: var(--champagne); }
.nav .cta:hover { background: rgba(201,174,124,0.1); }
.nav.solid .cta { background: var(--champagne); color: #20180b; }
.nav.solid .cta .dot { background: radial-gradient(circle at 35% 30%, #6f5320, #3d2c08); }
.nav.solid .cta:hover { background: var(--champ-2); }
@media (max-width: 620px) { .nav-right .link { display: none; } .brand .deva { display: none; } }

/* ============================================================
   HERO — the sealed envelope as hero object
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: clamp(7rem,12vh,9rem); padding-bottom: clamp(3rem,6vw,5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 55% at 72% 42%, rgba(201,174,124,0.08), transparent 62%), radial-gradient(70% 70% at 16% 8%, rgba(40,62,92,0.4), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(2rem,5vw,4rem); align-items: center; width: 100%; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: clamp(2.5rem,6vw,4rem); } .hero-visual { order: -1; } }
.hero-copy { max-width: 40rem; }
.hero-eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--champagne); margin-bottom: 1.4rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.hero-eyebrow .deva { font-family: var(--deva); font-style: normal; font-size: 0.8em; color: var(--ivory-38); }
.hero h1 { margin-bottom: 1.8rem; }
.hero .lead { margin-bottom: 2.4rem; }
.hero-actions { display: flex; align-items: center; gap: 1.7rem; flex-wrap: wrap; }
.hero-fine { margin-top: 2.4rem; display: flex; align-items: center; gap: 0.6rem; }
.hero-visual { display: flex; justify-content: center; align-items: center; }

/* the envelope object */
.env-stage { position: relative; width: min(86vw, 500px); aspect-ratio: 1 / 0.92; display: grid; place-items: center; perspective: 1400px; }
.env-stage .halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,174,124,0.16), transparent 70%); }
.envelope { position: relative; width: 100%; aspect-ratio: 7 / 4.7; transform-style: preserve-3d; transform: rotateX(calc(var(--ry,0) * -1deg)) rotateY(calc(var(--rx,0) * 1deg)); transition: transform 240ms var(--ease); }
.envelope .body { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(168deg, #f6f0e2 0%, #e7dcc6 70%, #ddd0b6 100%); box-shadow: 0 60px 110px -40px rgba(0,0,0,0.8), 0 30px 60px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.6); overflow: hidden; }
.envelope .body::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); opacity: 0.12; mix-blend-mode: multiply; }
/* lower V seams */
.envelope .body::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top right, transparent 49.6%, rgba(160,140,105,0.5) 49.8%, rgba(160,140,105,0.5) 50.2%, transparent 50.4%) bottom left / 50% 100% no-repeat,
  linear-gradient(to top left, transparent 49.6%, rgba(160,140,105,0.5) 49.8%, rgba(160,140,105,0.5) 50.2%, transparent 50.4%) bottom right / 50% 100% no-repeat; opacity: 0.7; }
/* the letter inside (peeks when open) */
.envelope .letter { position: absolute; left: 7%; right: 7%; bottom: 8%; height: 86%; border-radius: 4px; background: linear-gradient(180deg, #fffdf7, #f1e8d6); box-shadow: 0 -6px 20px rgba(0,0,0,0.18); transform: translateY(0); transition: transform var(--t-slow) var(--ease); z-index: 1; }
.envelope .letter .edge { position: absolute; top: 14px; left: 16px; right: 16px; height: 1px; background: linear-gradient(90deg, transparent, var(--champagne), transparent); }
.envelope.open .letter { transform: translateY(-26%); }
/* flap */
.envelope .flap { position: absolute; inset: 0 0 auto 0; height: 60%; transform-origin: top; transform: rotateX(0deg); transition: transform var(--t-slow) var(--ease); z-index: 3; backface-visibility: hidden; }
.envelope .flap .face { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(168deg, #efe6d2, #ddd0b4); box-shadow: 0 8px 16px rgba(0,0,0,0.14); }
.envelope.open .flap { transform: rotateX(165deg); }
.envelope .innerglow { position: absolute; inset: 0 0 auto 0; height: 60%; clip-path: polygon(0 0, 100% 0, 50% 100%); background: radial-gradient(60% 90% at 50% 0%, rgba(201,174,124,0.5), transparent 70%); opacity: 0; transition: opacity var(--t-slow) var(--ease); z-index: 2; }
.envelope.open .innerglow { opacity: 1; }
/* the wax seal sits on the flap tip */
.envelope .wax { position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%); --s: 92px; z-index: 6; transition: transform var(--t-slow) var(--ease); }
.envelope.open .wax { transform: translate(-50%,-150%) scale(0.88); }
.env-caption { position: absolute; bottom: -2.4rem; left: 0; right: 0; text-align: center; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip { border-block: 1px solid var(--line-2); }
.trust-strip .row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.6rem,4vw,3.2rem); padding-block: 1.5rem; }
.trust-strip .lead-in { font-size: 1rem; color: var(--ivory-55); }
.trust-strip .mk { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.9rem; color: var(--ivory-55); }
.trust-strip .mk .d { width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); opacity: 0.7; }

/* ---------- section head ---------- */
.s-head { max-width: 40rem; }
.s-head h2 { margin-bottom: 1.3rem; }

/* feature split (copy + visual) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,6rem); align-items: center; }
.feature.flip .feature-visual { order: -1; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 3rem; } .feature.flip .feature-visual { order: 0; } }
.feature-visual { display: flex; justify-content: center; }

/* ============================================================
   Problem — editorial two-column with a structured loss list
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; margin-top: clamp(1.8rem, 3.5vw, 3rem); }
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; gap: clamp(2.2rem, 6vw, 3rem); } }
.problem-grid h2 { max-width: 16ch; }
.ploss { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.5rem; align-items: baseline; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.ploss:first-child { border-top: 0; }
.ploss .pn { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; color: var(--brass); }
.ploss p { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: var(--ivory-90); }
.problem-close { margin-top: 1.8rem; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ivory-70); max-width: 36ch; }

/* ============================================================
   How it works — steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.6rem,3vw,3rem); margin-top: clamp(3rem,6vw,4.5rem); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 0; } }
.step { padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .step { padding-block: 1.6rem; } }

.step .num { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: 2.4rem; color: var(--champagne); line-height: 1; margin-bottom: 0.7rem; }
.step h3 { font-size: clamp(1.7rem, 1.1vw + 1.3rem, 2.05rem); margin-bottom: 0.6rem; }
.step p { font-size: 1rem; line-height: 1.6; color: var(--ivory-70); max-width: 30ch; }

/* ============================================================
   Ledger — editorial entries (concept, no phone)
   ============================================================ */
.ledger { margin-top: clamp(2.4rem,5vw,3.6rem); border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) auto; gap: clamp(1rem,2.5vw,2rem); align-items: baseline; padding: clamp(1.3rem,2.5vw,1.9rem) 0; border-bottom: 1px solid var(--line); }
.lrow .lwho { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem,2.1vw,1.7rem); color: var(--ivory); }
.lrow .lwho .lmeta { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ivory-38); margin-top: 0.35rem; }
.lrow .lmsg { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1rem,1.5vw,1.2rem); line-height: 1.5; color: var(--ivory-55); max-width: 34ch; }
@media (max-width: 720px) { .lrow { grid-template-columns: 1fr auto; } .lrow .lmsg { display: none; } }
.lrow .lamt { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem,2.1vw,1.7rem); color: var(--champagne); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* ============================================================
   Interactive seal-a-gift (elegant card, no phone)
   ============================================================ */
.gift-card { border: 1px solid var(--line); border-radius: 2px; background: var(--panel); overflow: hidden; }
.gift-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 760px) { .gift-grid { grid-template-columns: 1fr; } }
.gift-form { padding: clamp(2rem,4vw,3rem); }
.gift-stepper { display: flex; gap: 6px; margin-bottom: 2rem; }
.gift-stepper i { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.gift-stepper i.on { background: var(--champagne); }
.gift-q { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem,2.2vw,1.9rem); margin-bottom: 0.4rem; }
.gift-hint { font-family: var(--sans); font-size: 0.9rem; color: var(--ivory-38); margin-bottom: 1.7rem; }
.opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.opt { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--ivory-90); padding: 0.5em 1em; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; white-space: nowrap; transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.opt:hover { border-color: var(--champ-line); }
.opt.on { background: var(--champagne); color: var(--navy); border-color: var(--champagne); }
.gift-text { width: 100%; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--ivory); background: rgba(0,0,0,0.2); border: 1px solid var(--line); border-radius: 4px; padding: 0.8em 0.9em; resize: none; min-height: 96px; line-height: 1.4; }
.gift-text:focus { outline: none; border-color: var(--champ-line); }
.gift-text::placeholder { color: var(--ivory-38); }
.gift-form [data-field] { min-height: 148px; }
.gift-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.8rem; min-height: 44px; }
.gift-press { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; padding: 0.85em 1.6em; border-radius: 3px; cursor: pointer; background: var(--champagne); color: var(--navy); border: 1px solid #d8bd87; transition: filter var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out); }
.gift-press[disabled] { opacity: 0.35; cursor: default; }
.gift-back { background: none; border: 0; color: var(--ivory-38); font-family: var(--sans); font-size: 0.9rem; cursor: pointer; padding: 0.4em; }
.gift-back:hover { color: var(--ivory-70); }
/* preview side — a small sealed envelope */
.gift-preview { background: radial-gradient(120% 100% at 50% 0, rgba(40,62,92,0.4), transparent 60%); border-left: 1px solid var(--line); display: grid; place-items: center; padding: clamp(2rem,4vw,3rem); position: relative; overflow: hidden; }
@media (max-width: 760px) {
  .gift-preview { border-left: 0; border-top: 1px solid var(--line); padding-top: 5.5rem; padding-bottom: 3rem; }
  .mini-env { width: min(58%, 190px); }
  .mini-env .mw { --s: 48px; top: 46%; }
  .mini-env .mi { font-size: 0.78rem; bottom: 5%; padding: 0.2em 0.5em; box-shadow: 0 0 5px 2px rgba(243,236,221,0.85); }
}
.mini-env { position: relative; width: min(72%, 230px); aspect-ratio: 7/4.7; perspective: 800px; transform-style: preserve-3d; }
.mini-env .mb { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(168deg,#f3ecdd,#ddd0b6); box-shadow: 0 24px 50px -16px rgba(0,0,0,0.6); }
.mini-env .mb::before { content: ""; position: absolute; inset: 0; border-radius: 4px; opacity: 0.7; background:
  linear-gradient(to top right, transparent 49.6%, rgba(160,140,105,0.5) 49.8%, rgba(160,140,105,0.5) 50.2%, transparent 50.4%) bottom left / 50% 100% no-repeat,
  linear-gradient(to top left, transparent 49.6%, rgba(160,140,105,0.5) 49.8%, rgba(160,140,105,0.5) 50.2%, transparent 50.4%) bottom right / 50% 100% no-repeat; }
.mini-env .mb::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 26%; border-radius: 4px 4px 0 0; opacity: 0; transition: opacity 700ms var(--ease);
  background: linear-gradient(180deg, rgba(92,74,44,0.28), transparent); }
.mini-env.open .mb::after { opacity: 1; }
.mini-env .mf { position: absolute; inset: 0 0 auto 0; height: 60%; clip-path: polygon(0 0,100% 0,50% 100%); background: linear-gradient(168deg,#e9dfca,#d3c4a4); transform-origin: top; transition: transform 800ms var(--ease); z-index: 2; will-change: transform; }
.mini-env.open .mf { transform: rotateX(142deg); filter: brightness(0.95); }
.mini-env .mw { position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%) scale(1.45); --s: 64px; opacity: 0; transition: opacity 500ms var(--ease), transform 800ms var(--ease); z-index: 4; will-change: transform, opacity; }
.mini-env.sealed .mw { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.gift-done { text-align: center; max-width: 30ch; }
.gift-done .gd-msg { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--ivory-90); line-height: 1.4; margin: 1rem 0; }

/* ============================================================
   Milestones thread
   ============================================================ */
.ms-list { position: relative; list-style: none; margin: clamp(2.6rem,5vw,3.6rem) 0 0; padding: 0 0 0 clamp(2.6rem,5vw,3.4rem); display: flex; flex-direction: column; gap: clamp(2.6rem,5vw,4.4rem); }
.ms-list::before { content: ""; position: absolute; left: 7px; top: 0.5em; bottom: 0.5em; width: 1.5px; background: var(--line); }
.ms-list .thread-line { position: absolute; left: 7px; top: 0.5em; width: 1.5px; height: calc(100% - 1em); background: linear-gradient(var(--champagne), var(--brass)); transform: scaleY(0); transform-origin: top; will-change: transform; }
.ms { position: relative; }
.ms::before { content: ""; position: absolute; left: calc(-1 * clamp(2.6rem,5vw,3.4rem)); top: 0.35em; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--champagne); box-shadow: 0 0 0 4px var(--navy); }
.ms h3 { font-size: clamp(1.9rem,3.4vw,2.7rem); margin-bottom: 0.5rem; }
.ms h3 .deva { font-family: var(--deva); font-size: 0.72em; color: var(--ivory-70); font-weight: 400; margin-left: 0.9rem; }
.ms p { font-size: 1rem; line-height: 1.6; color: var(--ivory-70); max-width: 44ch; }

/* ============================================================
   Security panel
   ============================================================ */
.secure-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: clamp(2.4rem,5vw,4rem); }
.secure-panel h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.trust-list { margin-top: clamp(2rem,4vw,3rem); }
.trust-row { display: grid; grid-template-columns: 0.5fr 1fr; gap: clamp(1.4rem,4vw,3.5rem); padding: clamp(1.4rem,3vw,2rem) 0; border-top: 1px solid var(--line); }
.trust-row:first-child { border-top: 0; }
@media (max-width: 640px) { .trust-row { grid-template-columns: 1fr; gap: 0.5rem; } }
.trust-row h3 { font-size: 1.4rem; }
.trust-row p { font-size: 1rem; line-height: 1.6; color: var(--ivory-70); max-width: 52ch; }
.reg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.6rem; padding: 1.3rem clamp(1.4rem,3vw,1.8rem); border: 1px solid var(--line); border-radius: 4px; background: rgba(18,42,32,0.5); }
.reg-bar .reg-item { display: flex; align-items: center; gap: 0.55rem; font-family: var(--sans); font-size: 0.9rem; color: var(--ivory-90); }

/* ============================================================
   Wealth braid
   ============================================================ */
.braid-wrap { position: relative; width: 100%; max-width: 680px; margin-top: clamp(2.4rem,5vw,3.4rem); }
.braid-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.braid-wrap .b-strand { fill: none; stroke: var(--ivory-38); stroke-width: 1.3; }
.braid-wrap .b-corpus { fill: none; stroke: var(--champagne); stroke-width: 2.4; }
.braid-labels { display: flex; justify-content: space-between; margin-top: 1rem; font-family: var(--sans); font-size: 0.78rem; color: var(--ivory-38); }
.fig { margin-top: clamp(2.4rem,5vw,3.4rem); display: flex; align-items: baseline; gap: 1.6rem; flex-wrap: wrap; }
.fig .fig-num { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; font-size: clamp(3.4rem,8vw,6rem); line-height: 0.9; color: var(--ivory); font-variant-numeric: tabular-nums lining-nums; }
.fig .fig-cap { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--champagne); }
.fig .fig-sub { font-family: var(--sans); font-size: 0.9rem; color: var(--ivory-55); max-width: 32ch; margin-top: 0.3rem; }

/* Corpus — the braid resolves into the figure */
.corpus-stage { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(2.6rem, 5vw, 4rem); }
@media (max-width: 860px) { .corpus-stage { grid-template-columns: 1fr; gap: 2.4rem; } }
.corpus-braid { position: relative; }
.corpus-braid svg { width: 100%; height: auto; display: block; overflow: visible; }
.corpus-braid .b-strand { fill: none; stroke: var(--ivory-38); stroke-width: 1.3; }
.corpus-braid .b-corpus { fill: none; stroke: var(--champagne); stroke-width: 2.6; }
.corpus-braid .s-lbl { position: absolute; left: 0; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ivory-55); }
.corpus-braid .s-lbl.top { top: 20%; transform: translateY(-50%); }
.corpus-braid .s-lbl.bot { top: 80%; transform: translateY(-50%); }
.corpus-figure { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.6rem); }
@media (max-width: 860px) { .corpus-figure { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.8rem; } }
.cf-num { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 0.92; color: var(--ivory); font-variant-numeric: tabular-nums lining-nums; }
.cf-cap { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-55); margin-top: 1rem; }
.corpus-figure .fine { margin-top: 1.1rem; max-width: 32ch; color: var(--ivory-55); }

/* ============================================================
   Stories
   ============================================================ */
.story-stage { display: grid; margin-top: clamp(2rem,4vw,3rem); }
.story { grid-area: 1 / 1; opacity: 0; transition: opacity var(--t-entr) var(--ease-soft); pointer-events: none; }
.story.active { opacity: 1; pointer-events: auto; }
.story-quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.7rem,3.4vw,2.7rem); line-height: 1.3; color: var(--ivory); max-width: 22ch; }
.story-attr { font-family: var(--sans); margin-top: 1.6rem; font-size: 0.9rem; color: var(--ivory-38); }
.story-dots { display: flex; gap: 0.6rem; margin-top: 2.2rem; }
.story-dots button { width: 26px; height: 12px; border: 0; background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat; cursor: pointer; padding: 0; transition: background var(--t-fast) var(--ease-out); }
.story-dots button.on { background: linear-gradient(var(--champagne), var(--champagne)) center / 100% 2px no-repeat; }
.story-feature { display: grid; grid-template-columns: 0.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 820px) { .story-feature { grid-template-columns: 1fr; gap: 1.8rem; } }
.story-side .seal { margin: 1.5rem 0; }
.story-side .story-dots { margin-top: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: clamp(2.4rem,5vw,3.4rem); max-width: 62rem; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; color: var(--ivory); font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem,1.8vw,1.6rem); }
.qa-q .pm { flex: none; width: 16px; height: 16px; position: relative; }
.qa-q .pm::before, .qa-q .pm::after { content: ""; position: absolute; background: var(--champagne); transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out); }
.qa-q .pm::before { left: 0; right: 0; top: 7px; height: 1.5px; }
.qa-q .pm::after { top: 0; bottom: 0; left: 7px; width: 1.5px; }
.qa.open .qa-q .pm::after { transform: scaleY(0); opacity: 0; }
.qa-a { overflow: hidden; max-height: 0; transition: max-height 300ms var(--ease-out); }
.qa-a-inner { padding: 0 0 1.5rem; color: var(--ivory-70); font-size: 1rem; line-height: 1.65; max-width: 60ch; }

/* ============================================================
   Final CTA
   ============================================================ */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 38%, rgba(201,174,124,0.08), transparent 64%); }
.final .env-stage { margin: 0 auto clamp(1rem,3vw,2rem); width: min(80vw, 380px); }
.final h2 { margin-bottom: 1.5rem; }
.final .lead { margin-inline: auto; }
.final .hero-actions { justify-content: center; margin-top: 2.2rem; }
.final-line { margin-top: clamp(2.6rem,5vw,3.4rem); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.2rem,2vw,1.55rem); color: var(--champagne); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line-2); padding-block: clamp(3rem,6vw,4.5rem); color: var(--ivory-55); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.4rem; }
.footer .brand { margin-bottom: 1rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(2rem,5vw,4rem); }
.footer-col h4 { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne); margin: 0 0 1rem; }
.footer-col a { display: block; font-family: var(--sans); font-size: 0.9rem; color: var(--ivory-55); text-decoration: none; padding: 0.3rem 0; transition: color var(--t-fast) var(--ease-out); }
.footer-col a:hover { color: var(--champagne); }
.footer-legal { margin-top: clamp(2.4rem,5vw,3.2rem); padding-top: 1.8rem; border-top: 1px solid var(--line-2); font-family: var(--sans); font-size: 0.78rem; line-height: 1.65; color: var(--ivory-38); max-width: 92ch; }
.footer-legal p + p { margin-top: 0.7rem; }

/* ============================================================
   Paper surfaces — the editorial "before" and the heirloom record.
   Ivory sections alternate with the institutional navy; the page
   breathes between ink-on-paper and foil-on-night.
   ============================================================ */
.paper {
  --ivory: #16222F;
  --ivory-90: rgba(22,32,46,0.95);
  --ivory-70: rgba(22,32,46,0.86);
  --ivory-55: rgba(22,32,46,0.72);
  --ivory-38: rgba(22,32,46,0.56);
  --ivory-22: rgba(22,32,46,0.26);
  --line: rgba(22,32,46,0.18);
  --line-2: rgba(22,32,46,0.09);
  --champagne: #8d6e2d;
  --champ-2: #a8842f;
  --champ-line: rgba(141,110,45,0.5);
  background: linear-gradient(180deg, #F4EEE3 0%, #EFE8D9 100%);
  color: var(--ivory);
}
.paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.paper .seal { box-shadow: inset 0 2px 5px rgba(255,240,210,0.5), inset 0 -6px 12px rgba(58,40,12,0.6), 0 10px 24px rgba(58,44,16,0.3); }
.paper .ms::before { background: var(--bone); box-shadow: 0 0 0 4px #F2EBDD; }

/* ledger entries ink themselves in — a champagne rule draws under
   each row as it reveals (one gesture, weighty easing) */
.lrow { position: relative; }
.lrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--champ-line), transparent 72%);
  transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-soft) 140ms; }
.lrow.in::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .lrow::after { transform: scaleX(1); transition: none; } }

/* ============================================================
   Hero — one column, centred, the space is the luxury.
   The seal is the only object; no drawn envelope.
   ============================================================ */
.hero-one { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.hero-one .seal-sm { margin-bottom: clamp(1.8rem, 3.2vh, 2.4rem); }
.hero-one h1 { margin-bottom: clamp(2.6rem, 5.5vh, 3.8rem); max-width: 16ch; }
.hero-one .lead { margin-bottom: 2.6rem; margin-inline: auto; }
.hero-one .hero-actions { justify-content: center; }
.hero-one .hero-fine { justify-content: center; }

.final-seal { margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   Focus — care lives in the unseen surfaces. Every interactive
   element earns a visible ring; keyboard users get the same
   certainty the cursor gets.
   ============================================================ */
:focus-visible { outline: 2px solid var(--champ-line); outline-offset: 3px; border-radius: 2px; }
.cta:focus-visible { outline-color: var(--champ-2); outline-offset: 4px; }
.paper :focus-visible { outline-color: rgba(141,110,45,0.6); }

/* ============================================================
   The Letter at 18 — the handover as a kept object.
   One ivory artifact on the dark stage; deep shadow; the seal
   is the single warm highlight. Stillness is the luxury.
   ============================================================ */
.letter-stage { max-width: 640px; margin-top: clamp(2.6rem, 5vw, 3.8rem); }
.letter-card { position: relative; margin: 0; border-radius: 2px; overflow: hidden;
  background: linear-gradient(176deg, #F7F2E6 0%, #EBE2CF 100%); color: #1b2535;
  padding: clamp(2.2rem, 4.5vw, 3.4rem) clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 60px 100px -42px rgba(0,0,0,0.78), 0 22px 44px -26px rgba(0,0,0,0.55); }
.letter-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='lg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23lg)'/%3E%3C/svg%3E"); }
.lc-kicker { font-family: var(--sans); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(27,37,53,0.52); margin-bottom: 1.7rem; max-width: 30ch; }
.lc-body { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.5; color: #1b2535; max-width: 34ch; }
.lc-from { margin-top: 1.5rem; font-family: var(--sans); font-size: 0.9rem; color: rgba(27,37,53,0.62); }
.lc-seal { position: absolute; top: clamp(1.6rem, 3vw, 2.4rem); right: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: inset 0 2px 5px rgba(255,240,210,0.5), inset 0 -6px 12px rgba(58,40,12,0.6), 0 10px 22px rgba(58,44,16,0.3); }
@media (max-width: 560px) { .letter-card { display: flex; flex-direction: column; } .lc-seal { position: relative; top: 0; right: 0; order: -1; display: inline-grid; align-self: flex-start; margin-bottom: 1.4rem; } }

/* ============================================================
   §2 The Meaning · §7 The Handover (peak) · §9 The Invitation
   ============================================================ */
.meaning { text-align: center; }
.meaning-stage { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.7rem; }
.meaning .note { margin-inline: auto; max-width: 52ch; }

.peak .peak-head { text-align: center; max-width: 740px; margin: 0 auto clamp(2.6rem, 5vw, 4rem); }
.peak .peak-head .note { margin-inline: auto; }
.peak .letter-stage { margin-inline: auto; }
.peak .letter-stage .fine { text-align: center; }

.invite-form { display: flex; gap: 0.8rem; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-top: 2.2rem; }
.invite-form input { width: min(340px, 80vw); font-family: var(--sans); font-size: var(--fs-small); color: var(--ivory);
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 2px; padding: 0.95em 1.1em;
  transition: border-color var(--t-fast) var(--ease-out); }
.invite-form input::placeholder { color: var(--ivory-38); }
.invite-form input:focus { outline: none; border-color: var(--champ-line); }
.invite-form.err input { border-color: rgba(196,90,60,0.7); }
.invite-done { font-family: var(--serif); font-style: italic; font-optical-sizing: auto; font-size: 1.35rem; color: var(--ivory-90); padding: 0.6em 0; }

.faq-close { margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 640px; text-align: left; }
.faq-close .qa-q { font-size: 1.15rem; padding: 1.1rem 0; }
.faq-close .qa-a-inner { font-size: var(--fs-small); }

.qlink { color: var(--champagne); text-decoration: none; border-bottom: 1px solid var(--champ-line); }
.qlink:hover { color: var(--champ-2); }
.assure { font-weight: 500; color: var(--ivory-90); max-width: 44ch; }

/* serif voices keep optical sizing + balanced rags */
.story-quote, .lc-body, .problem-close, .lrow .lmsg, .italic-accent, .final-line, .gift-q, .lwho, .lamt, .step .num, .gd-msg, .gift-text, .brand .mark, .seal-mono {
  font-optical-sizing: auto; }
.story-quote, .lc-body, .problem-close { hanging-punctuation: first last; }

/* prose numerals: oldstyle in the serif voices; lining/tabular stays on money */
.story-quote, .lc-body, .problem-close, .lrow .lmsg { font-variant-numeric: oldstyle-nums; }

/* label voice — glyphic caps, tracked (flared-sans path) */
.label, .meta, .cf-cap, .lc-kicker {
  font-family: var(--sc); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }

/* the inscription, written onto the envelope as the family chooses */
.mini-env .mi { position: absolute; left: 6%; right: 6%; bottom: 8%; z-index: 3; text-align: center;
  font-family: var(--serif); font-style: italic; font-optical-sizing: auto; font-size: 0.88rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0.25em 0.6em; border-radius: 3px;
  background: rgba(243,236,221,0.9); box-shadow: 0 0 10px 4px rgba(243,236,221,0.9);
  color: #5d513c; opacity: 0; transform: translateY(4px); transition: opacity 450ms var(--ease-soft), transform 450ms var(--ease-soft); }
.mini-env.has-i .mi { opacity: 1; transform: none; }

/* gift-flow step swap: exhale up, settle in from below */
.gift-q, .gift-hint, .gift-form [data-field] {
  transition: opacity 300ms var(--ease-soft), transform 300ms var(--ease-soft); }
.gift-form .g-out, .gift-form [data-field].g-out {
  opacity: 0; transform: translateY(-8px);
  transition: opacity 190ms var(--ease-out), transform 190ms var(--ease-out); }
.gift-form .g-in, .gift-form [data-field].g-in {
  opacity: 0; transform: translateY(10px); transition: none; }




/* ============================================================
   The gift's journey: the section pins, and the scroll becomes
   eighteen years. Beads tick monthly (the SIP); seals stamp at
   milestones (the ceremonial gift).
   ============================================================ */
.journey-sec { padding: 0; }
#security.sy { padding-top: clamp(3.5rem, 6.5vw, 6.5rem); padding-bottom: clamp(5.5rem, 9vw, 9.5rem); }
.journey-sec + .sy { padding-top: clamp(5.5rem, 9vw, 9.5rem); }
.journey-track { height: 180vh; }
.journey-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.journey-shell { width: 100%; display: flex; flex-direction: column; align-items: flex-start;
  padding-top: clamp(5rem, 10vh, 7rem); }
.journey-shell h2 { margin-bottom: clamp(2.4rem, 5vh, 3.6rem); }
.journey-sec h2.reveal { filter: none; transform: translateY(12px); }
.journey-stage { position: relative; max-width: 1120px; width: 100%; }
.journey-stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.jpath-base { fill: none; stroke: var(--line); stroke-width: 1.5; }
.jpath { fill: none; stroke: var(--champ-line); stroke-width: 2; }
.jb { fill: var(--ivory-22); transition: fill 300ms var(--ease-out), r 300ms var(--ease-out); }
.jb.lit { fill: var(--champagne); }
.jst { fill: none; stroke: var(--brass); stroke-width: 1.2; opacity: 0.5; transform-box: fill-box; transform-origin: center; transition: opacity 350ms var(--ease-out), transform 600ms var(--ease); }
.jst.lit { fill: var(--brass); opacity: 1; }
.jst.stamp { transform: scale(1.45); }
.jl { font-family: var(--sans); font-size: 12.5px; fill: var(--ivory-38); opacity: 0; transition: opacity 500ms var(--ease-soft); }
.jl.lit { opacity: 1; }
.jenv { filter: drop-shadow(0 10px 14px rgba(0,0,0,0.45)); }
.jt-row { display: flex; justify-content: space-between; gap: 1.5rem; width: 100%; max-width: 1120px; margin-bottom: clamp(1.1rem, 2.5vh, 1.8rem); }
.jt { font-family: var(--sans); font-weight: 500; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ivory-55); opacity: 0; transform: translateY(6px); transition: opacity 600ms var(--ease-soft), transform 600ms var(--ease-soft); }
.jt.on { opacity: 1; transform: none; }
@media (max-width: 700px) { .jt-row { flex-direction: column; gap: 0.4rem; } }
.journey-after { position: relative; margin-top: clamp(1.8rem, 3.5vh, 2.6rem); min-height: 4.5rem; width: 100%; }
.journey-hint { position: absolute; inset: 0 auto auto 0; transition: opacity 500ms var(--ease-out); }
.journey-hint.gone { opacity: 0; }
.j-arrive { opacity: 0; transform: translateY(10px); transition: opacity 800ms var(--ease-soft), transform 800ms var(--ease-soft); }
.j-arrive.on { opacity: 1; transform: none; }
.j-arrive .inst-line { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .journey-track { height: auto; }
  .journey-pin { position: static; height: auto; padding-block: clamp(4rem, 8vw, 7rem); }
}

.inst-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.8rem clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(2.2rem, 4vw, 3rem); font-size: var(--fs-small); color: var(--ivory-55); }
.inst-line .mk { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ivory-90); font-size: var(--fs-small); }
.inst-line .mk .d { width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); opacity: 0.7; }

/* the years, counted in ghost serif behind the thread */
.jyear { position: absolute; right: 0; top: 46%; transform: translateY(-50%); z-index: 0; pointer-events: none;
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(5.5rem, 12vw, 10.5rem);
  line-height: 1; color: rgba(244,238,227,0.07); white-space: nowrap; font-variant-numeric: lining-nums; }
.journey-stage svg { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) { .j-arrive { opacity: 1; transform: none; } .journey-hint { display: none; } }

/* ============================================================
   The milestone planner: a prospectus page, not a dashboard.
   Goal-cost leads; twin scenarios; assumptions at full weight.
   ============================================================ */
.planner { max-width: 820px; margin-top: clamp(2.6rem, 5vw, 3.8rem); display: grid; gap: clamp(2.6rem, 5vw, 3.6rem); }

.pl-step { border-top: 1px solid var(--line); padding-top: clamp(1.6rem, 3vw, 2.2rem); }
.pl-step-label { font-family: var(--sans); font-weight: 500; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--champagne); margin-bottom: 1.5rem; }
.pl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem clamp(1.6rem, 3vw, 2.6rem); }
.pl-field { min-width: 0; }
.pl-label { display: block; font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); color: var(--ivory-70); margin-bottom: 0.7rem; }
.pl-sub { font-family: var(--sans); font-size: var(--fs-fine); color: var(--ivory-38); margin-top: 0.55rem; }

.pl-answer { margin-top: 1.6rem; font-family: var(--sans); font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ivory-70); }
.pl-answer strong { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: 1.35em; color: var(--ivory); font-variant-numeric: tabular-nums lining-nums; }
.pl-honest { color: var(--ivory-55); font-size: var(--fs-small); }

.pl-stepper { display: inline-flex; align-items: center; gap: 1.1rem; }
.pl-stepper button { width: 34px; height: 34px; border-radius: 2px; border: 1px solid var(--line); background: transparent; color: var(--ivory-90); font-size: 1.1rem; cursor: pointer; transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out); }
.pl-stepper button:hover { border-color: var(--champ-line); background: rgba(201,174,124,0.08); }
.pl-stepper span { font-family: var(--serif); font-optical-sizing: auto; font-size: 1.6rem; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums lining-nums; }

.pl-money { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); border-radius: 2px; background: rgba(0,0,0,0.22); padding: 0 0.9em; max-width: 240px; transition: border-color var(--t-fast) var(--ease-out); }
.pl-money:focus-within { border-color: var(--champ-line); }
.pl-money span { color: var(--ivory-55); font-size: 1rem; }
.pl-money input { width: 100%; border: 0; background: transparent; color: var(--ivory); font-family: var(--sans); font-size: 1.05rem; padding: 0.65em 0; font-variant-numeric: tabular-nums lining-nums; }
.pl-money input:focus { outline: none; }

.pl-slider { display: flex; align-items: center; gap: 1.1rem; max-width: 320px; }
.pl-slider input[type="range"] { flex: 1; appearance: none; -webkit-appearance: none; height: 2px; background: var(--line); border-radius: 1px; outline-offset: 6px; }
.pl-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--champagne); border: 1px solid var(--champ-2); cursor: pointer; }
.pl-slider input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--champagne); border: 1px solid var(--champ-2); cursor: pointer; }
.pl-val { font-family: var(--serif); font-optical-sizing: auto; font-size: 1.25rem; min-width: 3.2ch; font-variant-numeric: tabular-nums lining-nums; }

.pl-scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.5rem); margin-top: 1.8rem; padding: clamp(1.4rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
@media (max-width: 480px) { .pl-scenarios { grid-template-columns: 1fr; } }
.pl-row-label { font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); color: var(--ivory-70); }
.pl-num { font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 0.5rem; font-variant-numeric: tabular-nums lining-nums; color: var(--ivory-90); }
.pl-tag { font-family: var(--sans); font-size: var(--fs-fine); color: var(--ivory-38); margin-top: 0.45rem; }

.pl-legal { margin-top: clamp(2rem, 4vw, 2.8rem); max-width: 72ch; }
.pl-legal p { font-family: var(--sans); font-size: var(--fs-small); line-height: 1.6; color: var(--ivory-55); }
.pl-legal p + p { margin-top: 0.7rem; }
.pl-legal .fine { color: var(--ivory-38); }

/* ── mobile refinements ── */
@media (max-width: 560px) {
  .display-xl { font-size: clamp(2.3rem, 10vw, 3.1rem); }
  .hero-one h1 { max-width: 24ch; }
}
/* the journey: on small screens the completed scene, unpinned — a still, not a ride */
@media (max-width: 760px) {
  .journey-track { height: auto; }
  .journey-pin { position: static; height: auto; padding-block: clamp(4rem, 10vw, 6rem) clamp(3rem, 8vw, 4.5rem); }
  .journey-hint { display: none; }
  .jyear { font-size: clamp(3.4rem, 16vw, 5rem); }
}

/* ── planner, simplified: one slider, one stepper, three numbers ── */
.pls-give { max-width: 460px; }
.pls-amt { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(2.6rem, 4.5vw, 3.6rem); line-height: 1; margin: 0.7rem 0 1.1rem; font-variant-numeric: tabular-nums lining-nums; }
.pls-slider { max-width: 380px; }
.pls-from { font-family: var(--sans); font-size: var(--fs-small); color: var(--ivory-55); margin-top: 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.pls-age { gap: 0.7rem; }
.pls-age button { width: 28px; height: 28px; font-size: 0.95rem; }
.pls-age span[data-out] { font-size: 1.2rem; }
.pls-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.5rem); margin-top: clamp(2.2rem, 4vw, 3rem); padding-top: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid var(--line); max-width: 880px; }
@media (max-width: 720px) { .pls-answers { grid-template-columns: 1fr; gap: 1.6rem; } }
.pls-a { min-width: 0; }

/* ── journey, mobile: two rhythm cards instead of the cramped thread ── */
.journey-m { display: none; }
@media (max-width: 760px) {
  .jt-row, .journey-stage, .journey-after .journey-hint { display: none; }
  .journey-m { display: grid; gap: 1.4rem; margin-top: 0.4rem; }
  .jm-card { border: 1px solid var(--line); border-radius: 2px; background: var(--panel); padding: 1.5rem 1.4rem 1.6rem; }
  .jm-tag { font-family: var(--sans); font-weight: 500; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ivory-55); }
  .jm-line { display: flex; align-items: center; gap: 9px; margin-top: 1.1rem; }
  .jm-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); opacity: 0.85; }
  .jm-line.cer i { width: 13px; height: 13px; background: var(--brass); border: 1px solid var(--champ-2); opacity: 1; }
  .jm-line .gap { flex: 1; height: 1px; background: var(--line); }
  .jm-sub { font-family: var(--sans); font-size: var(--fs-fine); color: var(--ivory-38); margin-top: 0.9rem; }
  .journey-after { margin-top: 1.8rem; min-height: 0; }
  .j-arrive { opacity: 1; transform: none; }
}

/* ── planner answers, mobile: a quiet ruled table, label left, figure right ── */
@media (max-width: 720px) {
  .pls-answers { gap: 0; border-top: 0; padding-top: 0.4rem; }
  .pls-a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.05rem 0; border-top: 1px solid var(--line); }
  .pls-a .pl-row-label { flex: 1 1 12ch; }
  .pls-a .pl-num { margin-top: 0; font-size: 1.55rem; }
  .pls-a .pl-tag { flex-basis: 100%; margin-top: 0.15rem; }
}

[data-invite-note] { margin-top: 1.3rem; }
