/* ─────────────────────────────────────────────────────────────
   PEACHE — the world  (v2 · phone first)
   Stage 70 · glass 20 · peach 7 · ink 3. Never white type on peach.
   Gloss is a contrast event: near-white specular + a warm dark + a cool (mint) rim.
   Peache has no night: the sky warms toward golden hour as you scroll, never dark.
   Type + ink live in tokens so a new type system drops in without touching the rules.
   ───────────────────────────────────────────────────────────── */

:root {
  /* stage */
  --cream: #FFF7F1;
  --shell: #FDE8DC;
  --peach: #FACCB8;
  --peach-2: #F4B8A0;
  --blush: #F7C9C4;
  /* the wire (sampled from the wordmark) */
  --rose: #DD906A;
  --rose-light: #F1A47A;
  --rose-deep: #B8694C;
  /* ink — mulberry: black from a metre away, berry up close (8.4:1 on peach). Never white type */
  --ink: #5A1F45;
  --ink-2: #7A4566;
  --accent: #B8336A;   /* raspberry: the hand's second colour, words >= 24px only */
  --mark: #D9567E;     /* the pen: rose, marks only, never text */
  /* the whisper of green */
  --mint: #DFF3E8;
  --mint-2: #CBEBDC;
  --mint-3: #A6D9C1;

  /* type system N°1 · HEAVEN SENT: the hand (headlines) × the print (lines, body, the word Peache) × the label */
  --script: "Beau Rivage", "Snell Roundhand", cursive;
  --serif: "Playfair", "Playfair Display", Georgia, serif;
  --ui: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display-size: clamp(74px, 21.5vw, 168px);
  --pen-ease: cubic-bezier(.62,0,.24,1);

  --glass-fill: linear-gradient(160deg, rgba(255,255,255,.68) 0%, rgba(255,255,255,.32) 55%, rgba(255,240,234,.24) 100%);
  --glass-shadow: 0 22px 48px -22px rgba(184,105,76,.42), 0 2px 8px -3px rgba(184,105,76,.16);
  --ease: cubic-bezier(.22,1,.36,1);
  --out: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --gutter: clamp(16px, 4.4vw, 56px);
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; background: #FFF1EA; }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: #FFF1EA;
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blush); color: var(--ink); }

/* ───────── the sky (fixed; opacity-driven by scroll; no blend modes — WebKit trap) ───────── */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky > div { position: absolute; inset: -10%; }
.sky-dawn {
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(223,243,232,.9), transparent 70%),
    radial-gradient(70% 55% at 85% 20%, rgba(253,232,220,.95), transparent 70%),
    radial-gradient(90% 70% at 50% 90%, rgba(250,204,184,.70), transparent 75%),
    var(--cream);
}
.sky-noon {
  opacity: 0;
  background:
    radial-gradient(55% 45% at 80% 10%, rgba(255,247,241,.95), transparent 70%),
    radial-gradient(70% 60% at 20% 60%, rgba(250,204,184,.85), transparent 72%),
    radial-gradient(60% 50% at 90% 95%, rgba(247,201,196,.80), transparent 70%),
    #FCDCCB;
}
.sky-gold {
  opacity: 0;
  background:
    radial-gradient(50% 40% at 70% 18%, rgba(255,236,214,.95), transparent 70%),
    radial-gradient(70% 60% at 15% 75%, rgba(241,164,122,.55), transparent 72%),
    radial-gradient(70% 55% at 85% 90%, rgba(247,190,186,.85), transparent 72%),
    #F8C7B3;
}
.drift { position: absolute; border-radius: 50%; will-change: transform; }
.sky > .drift.d1 { inset: auto; width: 70vmax; height: 70vmax; left: -20vmax; top: -25vmax;
  background: radial-gradient(circle, rgba(255,255,255,.55), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.sky > .drift.d2 { inset: auto; width: 60vmax; height: 60vmax; right: -22vmax; top: 30vh;
  background: radial-gradient(circle, rgba(247,201,196,.45), transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.sky > .drift.d3 { inset: auto; width: 50vmax; height: 50vmax; left: 10vw; bottom: -30vmax;
  background: radial-gradient(circle, rgba(223,243,232,.32), transparent 62%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(12vw, 8vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-10vw, -12vh, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(14vw, -6vh, 0) scale(1.08); } }
/* satin: soft folds of light, baked RGBA, normal blending; drifts a touch with scroll */
.sky > .silk {
  inset: -8% -8% -18%;
  background: url(silk.webp) center / cover no-repeat;
  opacity: .62;
  will-change: transform;
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: url(grain-warm.png) repeat; background-size: 180px; opacity: .3;
}
#dust { position: fixed; inset: 0; z-index: 55; pointer-events: none; width: 100vw; height: 100vh; }

main { position: relative; z-index: 2; }

/* ───────── type ───────── */
.display {
  font-family: var(--script);
  font-weight: 400;
  font-size: var(--display-size);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
/* the hand's second colour: same pen, raspberry ink */
.display em, .tagline em, .tab-text em, .verdict-word { font-style: normal; color: var(--accent); }
/* "Peache" is only ever drawn by the logo: in running type it drops into the print italic */
.pn, .display .pn, .tab-text .pn { font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 120; font-size: .8em; letter-spacing: -.015em; }

.label {
  display: inline-flex; align-items: center; gap: 14px;
  font: 400 10.5px/1 var(--ui);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}
.label b { font-weight: 400; margin-right: -.16em; }
.label::before, .label::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, rgba(217,86,126,0), rgba(217,86,126,.7));
}
.label::after { transform: scaleX(-1); }
.sub {
  font-family: var(--serif);
  font-variation-settings: "opsz" 20;
  font-weight: 400;
  font-size: clamp(18px, 4.7vw, 23px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 31ch;
  text-wrap: pretty;
}
.sub i { font-style: italic; color: var(--ink); }

/* ───────── reveals ───────── */
.split .w { display: inline-block; }
.js .split .w {
  opacity: 0; filter: blur(12px);
  transform: translate3d(0, .3em, 0) scale(.985);
  transition: opacity 1.1s var(--ease), filter 1.3s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--i) * 75ms + var(--d, 0ms));
}
.js .split.in .w { opacity: 1; filter: blur(0); transform: none; }
.js .rise { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }

/* ───────── glass ───────── */
.glass {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.35),
    var(--glass-shadow);
  isolation: isolate;
}
.glass::before, .gbtn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px;
  background: linear-gradient(140deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.25) 32%, rgba(255,255,255,0) 52%, rgba(203,235,220,.55) 78%, rgba(223,243,232,.95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(320px circle at var(--mx, 28%) var(--my, 0%), rgba(255,255,255,.55), rgba(255,255,255,0) 62%);
  opacity: .75;
}
.glass > * { position: relative; z-index: 3; }

/* ───────── glass buttons: thick liquid glass, a pearl knob, a squish you can feel ───────── */
.gbtn {
  --tint: rgba(250,196,172,.62);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  height: 62px; padding: 0 8px 0 30px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 500 12.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  background:
    radial-gradient(90% 130% at 50% 135%, var(--tint), rgba(250,196,172,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.36) 52%, rgba(255,255,255,.5) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 1.5px 0 #fff,
    inset 0 -1.5px 0 rgba(255,255,255,.75),
    inset 0 -16px 24px -16px rgba(221,144,106,.6),
    0 1px 2px rgba(184,105,76,.14),
    0 16px 32px -14px rgba(221,144,106,.62),
    0 36px 60px -36px rgba(184,105,76,.5);
  transition: transform .6s var(--spring), box-shadow .6s var(--ease);
}
.gbtn .gl { /* the specular lip */
  position: absolute; left: 16px; right: 16px; top: 3px; height: 44%; border-radius: 999px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  opacity: .85;
}
.gbtn::after { /* the glint */
  content: ""; position: absolute; top: -30%; bottom: -30%; width: 34%; left: -60%; z-index: 1;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.9) 50%, transparent 100%);
  transform: skewX(-18deg); pointer-events: none;
}
.gbtn.glint::after { animation: glint 1.2s var(--ease); }
.gbtn-t, .knob { position: relative; z-index: 3; }
.gbtn-t { margin-right: -.16em; }
.knob {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff 0 16%, #FFF3EC 46%, #F5D3C2 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -4px 8px rgba(221,144,106,.32), 0 6px 14px -4px rgba(184,105,76,.5);
}
.knob svg { width: 19px; height: 19px; color: var(--accent); }
@media (hover: hover) {
  .gbtn:hover { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 #fff, inset 0 -1.5px 0 rgba(255,255,255,.75), inset 0 -16px 24px -16px rgba(221,144,106,.7), 0 1px 2px rgba(184,105,76,.14), 0 22px 40px -14px rgba(221,144,106,.72), 0 40px 70px -36px rgba(184,105,76,.55); }
  .gbtn:hover::after { animation: glint 1.2s var(--ease); }
  .hero-cta:hover .knob svg { animation: nudge 1.1s var(--ease) infinite; }
}
.gbtn.press { transform: scale(.955, .92); transition: transform .14s var(--ease); }
.gbtn.pop { animation: jelly .75s var(--ease); }
.gbtn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--rose), 0 16px 32px -14px rgba(221,144,106,.62); }
@keyframes glint { from { left: -60%; } to { left: 135%; } }
@keyframes jelly { 0% { transform: scale(.955, .92); } 32% { transform: scale(1.045, 1.035); } 56% { transform: scale(.985, 1.005); } 78% { transform: scale(1.008, .998); } 100% { transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.ripple {
  position: absolute; z-index: 2; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,240,232,.4) 45%, rgba(255,255,255,0) 70%);
  animation: ripple .9s var(--out) forwards;
}
@keyframes ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(18); opacity: 0; } }
.gbtn.ghost {
  --tint: rgba(223,243,232,.0);
  background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.2) 55%, rgba(255,255,255,.34) 100%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -1.5px 0 rgba(255,255,255,.7), inset 0 -14px 22px -16px rgba(221,144,106,.4), 0 1px 2px rgba(184,105,76,.1), 0 14px 28px -16px rgba(184,105,76,.4);
}

/* ───────── layout ───────── */
.section { position: relative; padding: 104px var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center > .label + * { margin-top: 26px; }
.center > .display + .sub { margin-top: 26px; }

/* ───────── I. hero ───────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 70px var(--gutter) 96px; text-align: center;
}
.crown {
  position: absolute; top: max(20px, env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font: 400 10px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.crown > span { display: inline-flex; align-items: center; opacity: 0; transform: translateY(-6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), letter-spacing 1.8s var(--ease); letter-spacing: .42em; }
.crown .c-r { margin-right: -.16em; }
.lit .crown > span { opacity: 1; transform: none; letter-spacing: .16em; }
.lit .crown .c-m { transition-delay: .25s; }
.lit .crown .c-l { transition-delay: .4s; }
.lit .crown .c-r { transition-delay: .55s; }

.lockup-par { position: relative; will-change: transform; }
.lockup { position: relative; display: flex; flex-direction: column; align-items: center; animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { transform: translate3d(0, 4px, 0) rotate(-.4deg); } to { transform: translate3d(0, -8px, 0) rotate(.5deg); } }
.halo {
  position: absolute; left: 50%; top: 42%; width: 130%; aspect-ratio: 1.5; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,250,246,.5) 42%, rgba(255,250,246,0) 76%);
  opacity: 0; transition: opacity 2.4s var(--ease) .3s;
  animation: breathe 6s ease-in-out infinite alternate;
}
.lit .halo { opacity: 1; }
@keyframes breathe { from { transform: scale(.94); } to { transform: scale(1.06); } }
.logo-wrap {
  position: relative;
  width: min(108vw, 660px, calc((100svh - 300px) * 1.23));
  aspect-ratio: 769 / 625; margin: 0 -7vw;
  filter: drop-shadow(0 18px 22px rgba(184,105,76,.2));
  -webkit-tap-highlight-color: transparent;
}
.logo-wrap img {
  width: 100%; height: 100%;
  opacity: 0; filter: blur(22px) saturate(1.2); transform: scale(1.07);
  transition: opacity 1.5s var(--ease), filter 2.1s var(--ease), transform 2.6s var(--ease);
}
.lit .logo-wrap img { opacity: 1; filter: none; transform: none; }
.logo-shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-mask: url(peache-logo.webp) center / contain no-repeat;
  mask: url(peache-logo.webp) center / contain no-repeat;
  background: linear-gradient(112deg, transparent 0%, transparent 38%, rgba(255,255,255,.95) 48%, rgba(255,246,236,.9) 52%, transparent 62%, transparent 100%);
  background-size: 260% 100%; background-position: 100% 0;
}
.logo-shine.go { animation: shine 2.4s var(--ease) forwards; }
@keyframes shine { 0% { opacity: 1; background-position: 100% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -10% 0; } }
.twinkles { position: absolute; inset: 0; pointer-events: none; }
.tw { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; transform: scale(.2) rotate(0deg); }
.tw::before, .tw::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; background: radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.9) 30%, rgba(255,240,230,0) 100%); }
.tw::before { width: 100%; height: 2.4px; margin: -1.2px 0 0 -50%; }
.tw::after { width: 2.4px; height: 100%; margin: -50% 0 0 -1.2px; }
.tw b { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,236,224,.6) 45%, transparent 70%); }
.lit .tw { animation: twinkle var(--t, 3.4s) ease-in-out var(--delay, 0s) infinite; }
@keyframes twinkle { 0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 72% { opacity: 1; transform: scale(1) rotate(28deg); } 84% { opacity: .35; transform: scale(.55) rotate(45deg); } }

.tagline {
  position: relative; z-index: 2;
  margin: -8.5vw 0 0;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(42px, 11.6vw, 76px); line-height: 1.05; color: var(--ink);
  white-space: nowrap;
}

.hero-cta { margin-top: clamp(50px, 8.5svh, 80px); opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1.2s var(--spring); }
.lit .hero-cta { opacity: 1; transform: none; transition-delay: 1.75s; }
.lit .hero-cta.pop, .lit .hero-cta.press { transition-delay: 0s; }

.cue { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: 1px; height: 46px; translate: -50% 0;
  background: linear-gradient(rgba(184,105,76,0), rgba(184,105,76,.4)); opacity: 0; transition: opacity 1.2s var(--ease) 2.6s; }
.lit .cue { opacity: 1; }
.cue i { position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--rose-light) 60%, var(--rose));
  box-shadow: 0 0 10px 3px rgba(255,255,255,.85); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-4px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(44px); opacity: 0; } }
@media (max-height: 640px) { .cue { display: none; } }

.pearl {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 34% 28%, #fff 0 7%, rgba(255,255,255,.75) 13%, rgba(255,236,228,.28) 42%, rgba(250,204,184,.18) 68%, rgba(255,255,255,.55) 100%);
  box-shadow: inset -8px -12px 22px rgba(221,144,106,.22), inset 6px 8px 14px rgba(255,255,255,.7), 0 16px 30px -12px rgba(184,105,76,.28);
  border: 1px solid rgba(255,255,255,.7);
  will-change: transform;
}
.pearl.mint { background: radial-gradient(circle at 34% 28%, #fff 0 7%, rgba(255,255,255,.75) 13%, rgba(223,243,232,.38) 44%, rgba(203,235,220,.22) 70%, rgba(255,255,255,.55) 100%); }

/* ───────── II. the world + the gate ───────── */
.world { padding-top: 120px; }
.world .display, .door .display { max-width: 9ch; }
.gate {
  --arch: 50% 50% 22px 22px / 37.5% 37.5% 22px 22px;
  position: relative; margin: 54px auto 0;
  width: min(86vw, 470px); aspect-ratio: 3 / 4;
}
.gate::before { /* a fine rose-gold outline floating outside the glass */
  content: ""; position: absolute; inset: -10px; border-radius: 50% 50% 30px 30px / 37.5% 37.5% 30px 30px;
  border: 1px solid rgba(221,144,106,.5); pointer-events: none;
}
.gate::after { /* the glass rim */
  content: ""; position: absolute; inset: 0; border-radius: var(--arch); padding: 2px; pointer-events: none; z-index: 4;
  background: linear-gradient(150deg, #fff 0%, rgba(255,255,255,.3) 30%, rgba(255,255,255,0) 50%, rgba(203,235,220,.6) 80%, rgba(223,243,232,1) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.gate-arch {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--arch);
  clip-path: inset(0 round 50% 50% 22px 22px / 37.5% 37.5% 22px 22px);
  background: var(--peach);
  box-shadow: 0 50px 80px -40px rgba(184,105,76,.62), 0 2px 4px rgba(184,105,76,.15);
}
.gate-pan { position: absolute; inset: 0; animation: pan 20s ease-in-out infinite alternate; }
@keyframes pan { from { transform: translate3d(-1.5%, 1%, 0) scale(1.02); } to { transform: translate3d(1.5%, -1.5%, 0) scale(1.08); } }
.gate-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(var(--gz, 1.22)); transform-origin: 50% 35%; will-change: transform; }
.gate-beam {
  position: absolute; left: 50%; top: -5%; bottom: -5%; width: 60%; translate: -50% 0; z-index: 1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, rgba(255,255,255,.95), rgba(255,250,244,.4) 45%, rgba(255,255,255,0) 72%);
  transform: scaleX(var(--beam, 0)); opacity: var(--beam, 0);
}
.pane {
  position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; z-index: 2;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  will-change: transform;
}
.pane-l { left: 0; transform-origin: 0 50%; transform: perspective(1100px) rotateY(calc(var(--open, 0) * -108deg)); }
.pane-r { right: 0; transform-origin: 100% 50%; transform: perspective(1100px) rotateY(calc(var(--open, 0) * 108deg)); }
.pane img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; filter: blur(16px) saturate(1.15) brightness(1.1); transform: scale(1.12); }
.pane-l img { left: 0; }
.pane-r img { right: 0; }
.pane::before { /* the frost */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,250,247,.78), rgba(255,240,234,.62) 60%, rgba(253,226,214,.7));
}
.pane::after { /* the leading: a rose-gold line drawn just inside each pane */
  content: ""; position: absolute; z-index: 2; inset: 14px 10px 14px 14px;
  border: 1px solid rgba(201,120,88,.7);
  border-radius: 100% 0 0 10px / 36% 0 0 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.pane-r::after { inset: 14px 14px 14px 10px; border-radius: 0 100% 10px 0 / 0 36% 10px 0; }
.pane-l { box-shadow: inset -1px 0 0 rgba(255,255,255,.8); }
.pane-r { box-shadow: inset 1px 0 0 rgba(255,255,255,.8); }
.handle { position: absolute; top: 56%; z-index: 3; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #FFE6DA 50%, var(--rose) 100%); box-shadow: 0 2px 6px rgba(184,105,76,.45); }
.pane-l .handle { right: 20px; }
.pane-r .handle { left: 20px; }
.gate-sweep {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit;
}
.gate-sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -70%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-14deg);
  animation: sweep 7.5s var(--ease) 1s infinite;
}
@keyframes sweep { 0% { left: -70%; } 28%, 100% { left: 140%; } }
.ph-note {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 5;
  font: 400 9.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(255,247,241,.72); padding: 7px 11px 7px 12px; border-radius: 99px; white-space: nowrap;
}

/* ───────── III. the laws: dealt arched tablets on a pinned stage ───────── */
.laws { position: relative; height: 200svh; }
.laws-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.laws-head { padding-top: max(40px, 6.5svh); text-align: center; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tablets { position: relative; flex: 1; width: 100%; }
.tablet {
  --tw: min(80vw, 350px, calc((100svh - 200px) * .7));
  position: absolute; left: 50%; top: 50%;
  width: var(--tw); height: calc(var(--tw) * 1.4);
  margin: calc(var(--tw) * -.7) 0 0 calc(var(--tw) * -.5);
  will-change: transform;
  transform: translate3d(0, 120vh, 0);
}
.tab-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding: calc(var(--tw) * .16) calc(var(--tw) * .07) calc(var(--tw) * .13);
  border-radius: 50% 50% 26px 26px / 35.7% 35.7% 26px 26px;
  background:
    radial-gradient(110% 55% at 50% 0%, #fff, rgba(255,255,255,0) 62%),
    linear-gradient(172deg, #FFFCFA, #FFF4EE 45%, #FCE3D6);
  box-shadow:
    inset 0 2px 0 #fff,
    inset 0 -22px 44px -24px rgba(241,164,122,.5),
    0 1px 2px rgba(184,105,76,.12),
    0 44px 70px -38px rgba(184,105,76,.62),
    0 12px 24px -16px rgba(184,105,76,.3);
}
.tab-face::before { /* the inner rose-gold frame, like a perfume label */
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px;
  border: 1px solid rgba(221,144,106,.48);
}
.tab-face::after { /* glass rim with the cool edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(150deg, #fff 0%, rgba(255,255,255,.2) 35%, rgba(255,255,255,0) 55%, rgba(203,235,220,.6) 82%, rgba(223,243,232,1) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tab-face > * { position: relative; opacity: var(--txt, 1); transition: opacity .25s linear; will-change: opacity; }
.tab-num { font: 400 10px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-right: -.2em; }
.emblem { width: 44%; aspect-ratio: 160 / 124; }
/* a painted shadow, not a filter: a filter over an animated emblem repaints the whole card every frame on iPhones */
.emblem::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: -8%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(184,105,76,.22), rgba(184,105,76,0)); }
.emblem svg { position: relative; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.em-bow svg { animation: sway 5s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.em-key svg { animation: swing 4.4s ease-in-out infinite alternate; transform-origin: 50% 10%; }
.em-halo .halo-ring { animation: spin 7s linear infinite; transform-origin: 80px 62px; transform-box: view-box; }
@keyframes sway { from { transform: rotate(-4deg) translateY(2px); } to { transform: rotate(4deg) translateY(-4px); } }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(6deg); } }
@keyframes spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(.6); } 50% { transform: scaleX(1); } 75% { transform: scaleX(.6); } 100% { transform: scaleX(1); } }
.tab-text {
  margin: 0; color: var(--ink);
  font-family: var(--script); font-weight: 400;
  font-size: calc(var(--tw) * .185); line-height: 1.04;
  text-wrap: balance;
}
.laws-pips { position: absolute; left: 50%; bottom: max(26px, 4svh); translate: -50% 0; display: flex; gap: 10px; z-index: 5; }
.laws-pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(184,105,76,.22); transition: background .5s var(--ease), transform .5s var(--spring); }
.laws-pips i.on { background: radial-gradient(circle at 35% 30%, #fff, var(--rose-light) 55%, var(--rose)); transform: scale(1.3); }

/* ───────── IV. inside: the story ───────── */
.inside { padding-top: 120px; }
.story-wrap { position: relative; margin-top: 44px; }
.story {
  --sw: min(88vw, 390px, calc((100svh - 36px) * .5625));
  position: relative; width: var(--sw); aspect-ratio: 9 / 16;
  border-radius: 30px; overflow: hidden;
  clip-path: inset(0 round 30px);
  background: var(--peach);
  box-shadow: 0 60px 90px -44px rgba(184,105,76,.7), 0 2px 6px rgba(184,105,76,.16);
  touch-action: pan-y; cursor: pointer; outline: 0;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.story::after { /* glass rim over everything */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 9;
  background: linear-gradient(150deg, #fff 0%, rgba(255,255,255,.3) 30%, rgba(255,255,255,0) 50%, rgba(203,235,220,.6) 80%, rgba(223,243,232,1) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.story:focus-visible { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--rose), 0 60px 90px -44px rgba(184,105,76,.7); }
.story-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 6; }
.story-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.38); overflow: hidden; box-shadow: 0 0 6px rgba(30,10,20,.25); }
.story-bars b { display: block; width: 100%; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); background: #fff; }
.story-head { position: absolute; top: 24px; left: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 9px; padding: 3px 14px 3px 3px; border-radius: 99px; font: 500 12.5px/1 var(--ui); color: var(--ink);
  background: rgba(255,248,244,.8); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(30,10,20,.45); }
.story-head em { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: 11.5px; }
.story-av { width: 34px; height: 34px; border-radius: 50%; padding: 2px; flex: none;
  background: conic-gradient(from 210deg, var(--rose-light), #FFE3D6, var(--mint-2), var(--rose), var(--rose-light)); }
.story-av span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #FFF6F0; background: #FFF6F0 url(../favicon.svg) center / 74% no-repeat; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.slide.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .7s var(--ease); }
.slide-img { position: absolute; inset: 0; overflow: hidden; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7.5s linear; filter: saturate(1.04); }
.slide.on .slide-img img { transform: scale(1.0); }
.slide-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,10,20,.38) 0%, rgba(28,10,20,0) 18%, rgba(28,10,20,0) 58%, rgba(28,10,20,.22) 100%); }
.slide-cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4;
  border-radius: 22px; padding: 20px 20px 22px;
  background: linear-gradient(165deg, rgba(255,253,251,.93), rgba(255,246,241,.84));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.5), 0 18px 34px -20px rgba(184,105,76,.5);
}
.slide-cap > * { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.slide.on .slide-cap > * { opacity: 1; transform: none; }
.slide.on .slide-cap > :nth-child(1) { transition-delay: .15s; }
.slide.on .slide-cap > :nth-child(2) { transition-delay: .25s; }
.slide.on .slide-cap > :nth-child(3) { transition-delay: .38s; }
.slide-n { display: block; font: 400 9.5px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.slide-title { margin: 12px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 60; font-size: calc(var(--sw) * .084); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); }
.slide-title em { color: var(--accent); }
.slide-body { margin: 0; font-family: var(--serif); font-variation-settings: "opsz" 20; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.sticker { position: absolute; z-index: 3; transform: translateX(var(--tx, 0)) rotate(var(--sr, 0deg)) scale(0); transition: transform .7s var(--spring) .4s; }
.slide.on .sticker { transform: translateX(var(--tx, 0)) rotate(var(--sr, 0deg)) scale(1); }
.sticker-in {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px 11px 13px; border-radius: 14px;
  font: 500 11.5px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  background: linear-gradient(170deg, rgba(255,255,255,.92), rgba(255,247,243,.8));
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px -10px rgba(184,105,76,.55), 0 1px 2px rgba(184,105,76,.15);
  animation: bob 3.6s ease-in-out infinite alternate;
}
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.sticker-in svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.s-loc { top: 47%; left: 16px; }
.s-rec { top: 82px; left: 18px; }
.s-rec .sticker-in { font-variant-numeric: tabular-nums; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFB89A, #D9644A); box-shadow: 0 0 0 3px rgba(217,100,74,.18); animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.rec-t { font-weight: 500; color: var(--ink-2); letter-spacing: .08em; }
.vf { position: absolute; inset: 134px 26px 238px; z-index: 2; pointer-events: none; }
.vf i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,.95); filter: drop-shadow(0 1px 2px rgba(184,105,76,.35)); }
.vf i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.vf i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.vf i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.vf i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }
.s-cf { top: 47%; left: 16px; }
.s-cf .sticker-in { letter-spacing: .1em; }
.cf-star { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #E9F7EF, var(--mint-3)); box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(120,180,150,.35); }
.cf-star svg { width: 13px; height: 13px; color: #fff; }
.s-poll { top: 12.5%; right: 14px; }
.poll { flex-direction: column; align-items: stretch; gap: 7px; width: 196px; padding: 13px 12px 12px; border-radius: 18px; text-transform: none; letter-spacing: 0; }
.poll p { margin: 0 0 5px; text-align: center; font: italic 400 16.5px/1.15 var(--serif); font-variation-settings: "opsz" 40; color: var(--ink); }
.poll button {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 36px; padding: 0 12px; border: 0; border-radius: 11px; cursor: pointer;
  background: rgba(253,232,220,.65); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
  font: 500 11.5px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.poll button b { position: relative; z-index: 1; font-weight: 500; }
.poll .pc { position: relative; z-index: 1; opacity: 0; transition: opacity .5s var(--ease) .2s; color: var(--ink-2); }
.poll .pf { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--peach), var(--rose-light)); transition: width 1s var(--out); }
.poll.voted .pc { opacity: 1; }
.poll.voted button[data-v="97"] .pf { width: 97%; }
.poll.voted button[data-v="3"] .pf { width: 3%; }
.s-link { top: 17%; right: 14px; }
.s-link .sticker-in { padding: 14px 18px 14px 15px; border-radius: 16px; font-size: 12.5px; }
.story-hint {
  position: absolute; right: 18px; top: 46%; z-index: 7; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px 9px 10px; border-radius: 99px;
  font: 500 10px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: rgba(255,255,255,.82); box-shadow: 0 8px 18px -8px rgba(184,105,76,.5);
  opacity: 0; transform: translateX(10px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.story-hint i { width: 14px; height: 14px; border-radius: 50%; background: var(--rose-light); box-shadow: 0 0 0 0 rgba(241,164,122,.6); animation: tap 1.4s var(--ease) infinite; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(241,164,122,.65); transform: scale(.9); } 70% { box-shadow: 0 0 0 12px rgba(241,164,122,0); transform: scale(1); } 100% { box-shadow: 0 0 0 0 rgba(241,164,122,0); } }
.story.hinting .story-hint { opacity: 1; transform: none; }
.story-arrow { display: none; }
.ph-line { margin: 18px 0 0; font: 400 9.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); opacity: .7; }

/* ───────── V. the test ───────── */
.panel { width: min(100%, 660px); border-radius: 32px; padding: 8px; margin-top: 40px; text-align: left; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 14px; border-radius: 24px; transition: background .5s var(--ease); }
.q + .q { border-top: 1px solid rgba(255,255,255,.6); }
.q.on { background: rgba(255,255,255,.3); }
.q p { margin: 0; font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 20; font-size: clamp(17.5px, 4.7vw, 21px); line-height: 1.38; color: var(--ink); }
.switch {
  flex: none; position: relative; width: 62px; height: 36px; border: 0; border-radius: 99px; cursor: pointer; padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  box-shadow: inset 0 2px 4px rgba(184,105,76,.18), inset 0 -1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.6), 0 1px 0 rgba(255,255,255,.8);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.switch::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 35%, #FFF5F0 60%, #F7E2D8 100%);
  box-shadow: 0 4px 10px -2px rgba(184,105,76,.45), inset 0 -2px 4px rgba(221,144,106,.18), inset 0 1px 0 #fff;
  transition: transform .55s var(--spring);
}
.switch[aria-checked="true"] {
  background: linear-gradient(90deg, rgba(223,243,232,.95) 0%, rgba(250,204,184,.95) 45%, rgba(241,164,122,.95) 100%);
  box-shadow: inset 0 2px 4px rgba(184,105,76,.22), inset 0 0 0 1px rgba(255,255,255,.55), 0 6px 16px -6px rgba(221,144,106,.6);
}
.switch[aria-checked="true"]::before { transform: translateX(26px); }
.switch:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--rose); }
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding: 22px 14px 14px; border-top: 1px solid rgba(255,255,255,.7); }
.verdict-word { font-family: var(--script); font-weight: 400; font-size: clamp(34px, 9.4vw, 52px); line-height: 1; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.verdict-word.swap { opacity: 0; transform: translateY(6px); }
.meter { display: flex; gap: 6px; flex: none; }
.meter i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: inset 0 1px 2px rgba(184,105,76,.25); transition: background .5s var(--ease), transform .5s var(--spring); }
.meter i.on { background: radial-gradient(circle at 35% 30%, #fff, var(--rose-light) 55%, var(--rose)); transform: scale(1.15); }
.panel-cta { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.panel-cta > div { overflow: hidden; display: flex; justify-content: center; }
.panel-cta .gbtn { margin: 6px 0 12px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .6s var(--ease) .15s, transform .8s var(--spring) .15s; }
.panel.warm .panel-cta { grid-template-rows: 1fr; }
.panel.warm .panel-cta .gbtn { opacity: 1; transform: none; }
.panel.full { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(241,164,122,.35), 0 30px 70px -26px rgba(221,144,106,.65); }

/* ───────── VI. the door ───────── */
.door { min-height: 92svh; justify-content: center; }
.door-ctas { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 40px; width: 100%; max-width: 360px; }
.door-ctas .gbtn { justify-content: space-between; }
.world-cta-wrap { margin-top: 54px; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: stretch; }
.world-cta { justify-content: space-between; }
.fine { white-space: nowrap; font: 400 9.5px/1.8 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); opacity: .85; margin: 30px 0 0; }

/* ───────── VII. the sign-off ───────── */
.finale { position: relative; min-height: 78svh; padding: 90px var(--gutter) 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.finale .display { font-size: clamp(80px, 23vw, 200px); line-height: 1; }
.finale .display em { display: inline-block; margin-top: .02em; }

/* ───────── footer ───────── */
.foot { position: relative; z-index: 2; padding: 10px var(--gutter) max(40px, env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.foot-logo { width: 132px; height: auto; opacity: .95; margin-bottom: 14px; }
.foot-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font: 400 10px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.foot-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--mark); }
.ig { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 99px; text-decoration: none; font: 400 12px/1 var(--ui); letter-spacing: .06em; color: var(--ink); }
.ig svg { width: 18px; height: 18px; color: var(--accent); }

/* ───────── the pen: hand-drawn marks in rose, drawn on when they arrive ───────── */
.mk-w { position: relative; display: inline-block; white-space: nowrap; }
.mk { position: absolute; overflow: visible; pointer-events: none; z-index: 3; }
.mk path { fill: none; stroke: var(--mark); stroke-linecap: round; stroke-linejoin: round; }
/* underlines: a steady line that wipes on left to right */
.mk.under { left: -3%; bottom: -.02em; width: 106%; height: .13em; clip-path: inset(-60% 100% -60% -2%); transition: clip-path .9s var(--pen-ease) var(--d, 0s); }
.mk.under path { stroke-width: 2.3px; vector-effect: non-scaling-stroke; }
.mk.under.u1 { bottom: .02em; }
.mk.under.u2 { bottom: -.1em; left: 4%; width: 92%; }
.go .mk.under { clip-path: inset(-60% -2% -60% -2%); }
/* doodles: drawn stroke by stroke (lengths set in JS), then they keep a little life */
.mk.star, .mk.spark, .mk.bow, .mk.xo { transform-origin: 50% 50%; }
.mk.star path, .mk.spark path, .mk.bow path, .mk.xo path { transition: stroke-dashoffset var(--dur, .8s) var(--pen-ease) var(--pd, 0s); }
.mk.star  { width: .4em; height: .4em; right: -.44em; top: -.12em; rotate: -8deg; }
.mk.spark { width: .4em; height: .4em; right: -.46em; top: .02em; }
.mk.bow   { position: relative; width: 42px; height: 32px; }
.mk.xo    { position: relative; width: 92px; height: 48px; margin-top: 26px; rotate: -7deg; }
.go .mk.star  { animation: mk-wiggle 3.6s ease-in-out 1.8s infinite; }
.go .mk.spark { animation: mk-twinkle 2.8s ease-in-out 1.6s infinite; }
.go .mk.bow   { animation: mk-sway 4.2s ease-in-out 1.8s infinite alternate; }
.go .mk.xo    { animation: mk-kiss 2.6s ease-in-out 2.2s infinite; }
@keyframes mk-wiggle { 0%, 100% { transform: rotate(0deg) scale(1); } 20% { transform: rotate(-12deg) scale(1.08); } 40% { transform: rotate(8deg) scale(1); } 60% { transform: rotate(0deg); } }
@keyframes mk-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 45% { transform: scale(1.28) rotate(18deg); opacity: .85; } 60% { transform: scale(.92) rotate(24deg); } }
@keyframes mk-sway { from { transform: rotate(-6deg) translateY(1px); } to { transform: rotate(6deg) translateY(-2px); } }
@keyframes mk-kiss { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.14); } 86% { transform: scale(.98); } 92% { transform: scale(1.06); } }

/* ───────── the butterfly ───────── */
.bfly {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: var(--bw, 108px); height: calc(var(--bw, 108px) * .62);
  perspective: 620px; will-change: transform; opacity: 0; transition: opacity .8s var(--ease);
}
.bfly.on { opacity: 1; }
.bf-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(26deg); }
.bf-wing { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.bf-wing svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 9px rgba(255,170,160,.55)) drop-shadow(0 10px 12px rgba(184,105,76,.42)); }
.bf-l { left: 0; transform-origin: 100% 50%; animation: flapL var(--flap, 3.2s) ease-in-out infinite; }
.bf-r { left: 50%; transform-origin: 0% 50%; animation: flapR var(--flap, 3.2s) ease-in-out infinite; }
.bf-l svg { transform: scaleX(-1); }
.bf-body { position: absolute; left: 50%; top: 0; width: 12%; height: 100%; margin-left: -6%; transform: translateZ(1px); }
.bf-body svg { width: 100%; height: 100%; overflow: visible; }
.bfly.flying { --flap: .26s; }
@keyframes flapR { 0%, 100% { transform: rotateY(6deg); } 50% { transform: rotateY(74deg); } }
@keyframes flapL { 0%, 100% { transform: rotateY(-6deg); } 50% { transform: rotateY(-74deg); } }
.bfly:not(.flying) .bf-r { animation-name: restR; }
.bfly:not(.flying) .bf-l { animation-name: restL; }
@keyframes restR { 0%, 46%, 100% { transform: rotateY(12deg); } 60%, 68% { transform: rotateY(56deg); } }
@keyframes restL { 0%, 46%, 100% { transform: rotateY(-12deg); } 60%, 68% { transform: rotateY(-56deg); } }

/* ───────── toast ───────── */
.toast {
  position: fixed; left: 50%; top: max(18px, env(safe-area-inset-top)); z-index: 80;
  transform: translate(-50%, -170%); transition: transform .7s var(--spring);
  border-radius: 999px; padding: 15px 22px 15px 18px; display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 14px; height: 14px; color: var(--rose); }

/* ───────── wider screens (the 2%) ───────── */
@media (min-width: 900px) {
  :root { --display-size: clamp(110px, 10vw, 180px); }
  .finale .display { font-size: clamp(140px, 13vw, 230px); }
  .section { padding: 150px var(--gutter); }
  .crown { font-size: 11px; }
  .logo-wrap { margin: 0; width: min(62vw, 700px, calc((100svh - 300px) * 1.23)); }
  .tagline { margin-top: -64px; }
  .sub { max-width: 34ch; }
  .tablet { --tw: min(25vw, 330px, calc((100svh - 220px) * .7)); }
  .story-arrow {
    display: grid; place-items: center; position: absolute; top: 50%; width: 54px; height: 54px; margin-top: -27px; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
  }
  .story-arrow svg { width: 20px; height: 20px; }
  .story-arrow.prev { left: -86px; }
  .story-arrow.next { right: -86px; }
  .door-ctas { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .bfly { --bw: 128px; }
}

/* ───────── review + reduced motion ───────── */
.still *, .still *::before, .still *::after { animation-play-state: paused !important; transition: none !important; }
.still .split .w, .still .rise, .still .crown > span, .still .hero-cta { opacity: 1 !important; filter: none !important; transform: none !important; }
.still .logo-wrap img { opacity: 1; filter: none; transform: none; }
.still .halo { opacity: 1; }
.still .mk.under { clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .js .split .w { filter: none; transform: none; }
  .drift, .lockup { animation: none; }
  .mk.under { clip-path: none !important; }
}
