:root {
  --night: 0;                 /* 0 = shade open, 1 = shade closed (set by app.js) */
  --dk: calc(var(--night) * 100%);
  --paper-bg: #f7f3f2;
  --bg: color-mix(in oklab, var(--paper-bg), #0d0e11 var(--dk));
  --ink: color-mix(in oklab, #18181b, #ecebe8 var(--dk));
  --ink-2: color-mix(in oklab, #6f6c6a, #a3a19e var(--dk));
  --ink-3: color-mix(in oklab, #a9a5a2, #5e5d5b var(--dk));
  --accent: color-mix(in oklab, #4a4fd8, #8f94ff var(--dk));
  --line: color-mix(in oklab, #cfcac6, #34353a var(--dk));
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --s: 1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.at-gate { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* =============================== GATE =============================== */
#gate { position: fixed; inset: 0; z-index: 10; touch-action: none; transition: opacity .8s ease, filter .8s ease;
  background: radial-gradient(120% 90% at 50% 30%, #fbf8f7 0%, var(--paper-bg) 55%, #efe9e6 100%); }
#gate.leaving { opacity: 0; filter: blur(4px); pointer-events: none; }
#gate.gone { display: none; }
.stage { position: absolute; left: 50%; top: 50%; width: 600px; height: 640px; transform: translate(-50%, -50%) scale(var(--s)); }

/* ---- boarding pass ---- */
.pass-wrap, .pass-shadow { position: absolute; left: 0; top: 0; width: 500px; height: 236px; will-change: transform; }
.pass-wrap { z-index: 6; perspective: 760px; cursor: grab; touch-action: none; outline: none; }
.pass-wrap.dragging { cursor: grabbing; }
.pass-wrap.in-slot { z-index: 2; }
.pass { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.pass-shadow { z-index: 5; border-radius: 16px; background: rgba(46, 34, 22, .62); mix-blend-mode: multiply; pointer-events: none; }
.pass-shadow.under { z-index: 1; }
/* paper thickness: a slightly darker sheet just behind the face, visible as an edge when it tilts */
.edge { position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(180deg, #d9d6cf, #c9c5bc); transform: translateZ(-1.6px); }

.ticket { position: absolute; inset: 0; display: grid; grid-template-columns: 393px 1fr; border-radius: 12px; overflow: hidden; color: #2b2b31; font-family: var(--mono); transform: translateZ(0);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(180deg, #efeeea, #e6e5e1);
  box-shadow: inset 0 0 0 .6px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.9);
  filter: brightness(var(--slot-dim, 1)); }
.ticket::before { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .43  0 0 0 0 .42  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stripes { position: absolute; left: 0; top: 14px; width: 4px; height: 34px; background: repeating-linear-gradient(-45deg, #5459d9 0 2px, transparent 2px 4px); }
/* directional light: the face gets brighter or darker as it turns toward / away from the light */
.light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(var(--light-a, 160deg), rgba(255,255,255,0) 30%, rgba(70,60,50,var(--light-k, .08)) 100%); }
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.85) 45%, transparent 62%); background-size: 260% 100%; background-position: var(--sheen, 50%) 0; opacity: .75; }
.slot-shade { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(30,22,10,.04) 0%, rgba(30,22,10,.10) calc(var(--slot-line, 100%) - 40px), rgba(25,18,8,.42) var(--slot-line, 100%)); }

.t-main { position: relative; padding: 13px 16px 0 20px; }
.t-head { display: flex; align-items: center; gap: 6px; font-size: 5.4px; letter-spacing: .16em; text-transform: uppercase; color: #4a4a55; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.brand svg { width: 15px; height: 10px; color: #5459d9; }
.t-head .sep { color: #9a9aa8; }
.t-head .tag { color: #8b8b98; }
.member { margin-left: auto; color: #8b8b98; display: inline-flex; align-items: center; gap: 4px; }
.member i { width: 5px; height: 5px; border-radius: 50%; background: #e0574b; box-shadow: 0 0 0 1.5px rgba(224,87,75,.25); }
.f { display: flex; flex-direction: column; gap: 1px; }
.f label { font-size: 4.6px; letter-spacing: .18em; text-transform: uppercase; color: #6a6fe0; font-weight: 500; }
.f b { font-weight: 500; font-size: 9.6px; letter-spacing: .12em; text-transform: uppercase; color: #2b2b31; }
.f small { font-size: 4.4px; letter-spacing: .16em; text-transform: uppercase; color: #8b8b98; }
.f .big { font-size: 13.5px; letter-spacing: .1em; }
.f .code { font-size: 13px; letter-spacing: .14em; }
.t-row { display: grid; grid-template-columns: 1.65fr .75fr 1fr; gap: 10px; margin-top: 11px; }
.t-route { grid-template-columns: 70px 70px; margin-left: calc(52.6% - 6px); margin-top: 7px; }
.t-box { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 9px; width: 64%; padding: 6px 8px 5px; border: .6px solid rgba(80,80,110,.22); border-radius: 2px; text-align: center; }
.t-box .f { align-items: center; }
.stamp { position: absolute; right: 26px; top: 106px; width: 46px; height: 46px; color: rgba(110,110,130,.32); }
.stamp svg { width: 100%; height: 100%; }
.t-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 9px; font-size: 4.3px; letter-spacing: .14em; text-transform: uppercase; color: #4a4a55; line-height: 1.6; }
.t-note svg { width: 9px; height: 9px; color: #5459d9; flex: none; }
.t-note em { font-style: normal; color: #6a6fe0; }
.barcode { position: absolute; left: 18px; right: 20px; bottom: 12px; width: calc(100% - 38px); height: 15px; }

.t-stub { position: relative; padding: 13px 12px 10px 13px; display: flex; flex-direction: column; gap: 6px; border-left: 1px dashed rgba(80,80,110,.3);
  background: linear-gradient(180deg, rgba(110,115,224,.03), rgba(110,115,224,.10)); }
.t-stub::before, .t-stub::after { content: ""; position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: #e2dfd9; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.t-stub::before { top: -5px; } .t-stub::after { bottom: -5px; }
.t-stub .f b { font-size: 6.6px; }
.t-stub .t-head { font-size: 4.6px; }
.t-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.t-fly { grid-template-columns: 1fr 12px 1fr; align-items: end; }
.t-fly svg { width: 9px; height: 9px; color: #5459d9; transform: rotate(90deg); margin-bottom: 1px; }
.vtext { position: absolute; right: 4px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; font-size: 4.2px; letter-spacing: .3em; text-transform: uppercase; color: #8b8b98; white-space: nowrap; width: 6px; display: flex; justify-content: center; }

/* ---- card reader: a chunky beige 80s terminal, seen slightly from above ---- */
.floor-shadow { position: absolute; left: 30px; top: 540px; width: 540px; height: 46px; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(70,52,34,.30), rgba(70,52,34,.12) 55%, transparent); filter: blur(4px); }
.reader { position: absolute; left: 52px; top: 400px; width: 496px; height: 162px; z-index: 3; transition: transform .08s; }
.reader.bump { transform: translateY(1.5px); }
.r-back { position: absolute; left: 8px; right: 8px; top: -7px; height: 12px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #d5c7a3, #e0d3b2); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
/* top face in perspective: narrower at the back */
.r-top { position: absolute; left: 0; right: 0; top: 0; height: 26px;
  clip-path: polygon(1.6% 0, 98.4% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #f3e9cf 0%, #ebdfc1 45%, #ddcfac 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.r-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.85) 30%, rgba(255,255,255,.85) 70%, rgba(255,255,255,.2)); }
.vent { position: absolute; top: 5px; width: 104px; height: 6px; border-radius: 1px; background: repeating-linear-gradient(90deg, #4d4231 0 2px, rgba(0,0,0,0) 2px 5px); opacity: .7; }
.vent.l { left: 38px; } .vent.r { right: 38px; }
.r-slot { position: absolute; left: 16px; right: 16px; top: 14px; height: 6px; border-radius: 3px; background: linear-gradient(#18140f, #3b3227 60%, #6b5f4c); box-shadow: 0 1px 0 rgba(255,255,255,.7), inset 0 1px 2px rgba(0,0,0,.8); overflow: hidden; }
.r-slot i { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,190,60,.8), transparent); background-size: 40% 100%; background-repeat: no-repeat; }
.r-slot { transition: box-shadow .25s; }
.reader.near .r-slot { box-shadow: 0 1px 0 rgba(255,255,255,.7), inset 0 1px 2px rgba(0,0,0,.8), 0 0 0 2px rgba(255,190,60,.35), 0 0 16px 2px rgba(255,180,40,.55); }
.reader.near .r-slot i { opacity: 1; animation: scan .8s linear infinite; }
.reader.reading .r-slot i { opacity: 1; animation: scan 1.1s linear infinite; }
.reader.success .r-slot i { opacity: 1; background-image: linear-gradient(90deg, transparent, rgba(90,255,140,.8), transparent); animation: scan .6s linear infinite; }
@keyframes scan { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.r-rail { position: absolute; left: 0; right: 0; top: 26px; height: 50px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0 21px, rgba(120,100,60,.22) 21px 22px, rgba(255,255,255,.7) 22px 23px, rgba(0,0,0,0) 23px),
    linear-gradient(90deg, rgba(120,95,55,.18), rgba(0,0,0,0) 4%, rgba(0,0,0,0) 96%, rgba(120,95,55,.22)),
    linear-gradient(180deg, #ece0c3, #e2d4b2 60%, #dbcca8); }
.r-face { position: absolute; left: 0; right: 0; top: 76px; bottom: 0; display: grid; grid-template-columns: 1fr 228px 1fr; gap: 6px; padding: 4px 3px 3px; border-radius: 0 0 10px 10px;
  background:
    linear-gradient(90deg, rgba(120,95,55,.22), rgba(0,0,0,0) 4%, rgba(0,0,0,0) 96%, rgba(120,95,55,.28)),
    linear-gradient(180deg, #d6c7a2, #e3d5b4 16%, #ddcfac 70%, #c4b48e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 4px rgba(90,70,40,.28), 0 2px 0 #b9a882, 0 3px 2px rgba(60,45,25,.3); }
.r-panel { position: relative; border-radius: 4px; background: linear-gradient(180deg, #e8dbbc, #dbcca9); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(110,90,55,.25), 0 0 0 .5px rgba(110,90,55,.3), 0 1px 1px rgba(80,60,30,.2); }
.screw { position: absolute; left: 14px; bottom: 9px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f3ead6, #a99a78); box-shadow: inset 0 0 0 .6px rgba(80,60,30,.45); }
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 2.6px; height: .8px; background: rgba(80,60,30,.6); transform: rotate(35deg); }
.r-led-wrap { display: grid; place-items: center end; padding-right: 26px; }
.led { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #3a352c 0 35%, #1b1814 36% 58%, #4b4335 60% 100%); box-shadow: inset 0 1px 1px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.5); transition: background .2s, box-shadow .25s; }
.led[data-state="reading"] { background: radial-gradient(circle at 50% 45%, #fff6c8 0 25%, #ffd23c 35% 58%, #a07a10 60% 100%); box-shadow: 0 0 10px 4px rgba(255,200,40,.55), 0 0 34px 12px rgba(255,190,40,.28); animation: pulse 1.1s ease-in-out infinite; }
.led[data-state="error"] { background: radial-gradient(circle at 50% 45%, #ffd9d2 0 25%, #ff5a46 35% 58%, #8e2014 60% 100%); box-shadow: 0 0 10px 4px rgba(255,80,60,.5), 0 0 34px 12px rgba(255,80,60,.25); }
.led[data-state="success"] { background: radial-gradient(circle at 50% 45%, #e2ffe5 0 25%, #4ee27a 35% 58%, #17702f 60% 100%); box-shadow: 0 0 10px 4px rgba(80,230,120,.5), 0 0 34px 12px rgba(80,230,120,.25); }
@keyframes pulse { 50% { box-shadow: 0 0 7px 2px rgba(255,200,40,.45), 0 0 22px 8px rgba(255,190,40,.18); } }
.r-display { margin: 6px 0 9px; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(180deg, #0b0b0a, #171714); box-shadow: inset 0 3px 6px rgba(0,0,0,.95), 0 0 0 2px #2c2822, 0 0 0 3px rgba(90,75,50,.6), 0 1px 0 3px rgba(255,255,255,.3); overflow: hidden; position: relative; }
/* dot-matrix grid + glass glare */
.r-display::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.035) .6px, transparent .9px) 0 0 / 3px 3px; pointer-events: none; }
.r-display::after { content: ""; position: absolute; inset: 0; background: linear-gradient(172deg, rgba(255,255,255,.10), transparent 38%); pointer-events: none; }
#lcd { font-family: Doto, var(--mono); font-weight: 900; font-size: 22px; letter-spacing: .14em; color: #77756c; text-shadow: 0 0 1px rgba(255,255,255,.15); }
#lcd.flick { animation: flick .18s steps(2) 1; }
@keyframes flick { 50% { opacity: .15; } }
#lcd[data-state="reading"] { color: #ffb52e; text-shadow: 0 0 6px rgba(255,170,30,.75), 0 0 16px rgba(255,150,20,.35); }
#lcd[data-state="error"] { color: #ff4b3a; text-shadow: 0 0 6px rgba(255,70,50,.75), 0 0 16px rgba(255,60,40,.35); }
#lcd[data-state="success"] { color: #7dffa0; text-shadow: 0 0 6px rgba(90,255,140,.65), 0 0 16px rgba(60,255,120,.3); }
.r-display:has(#lcd[data-state="success"]) { background: linear-gradient(180deg, #0a130c, #0f1b12); }
.r-gloss { position: absolute; inset: 0; pointer-events: none; border-radius: 10px; background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.18) 32%, rgba(255,255,255,0) 44%); mix-blend-mode: soft-light; }

/* ---- hint & skip ---- */
.hint { position: absolute; left: 0; right: 0; top: 600px; text-align: center; font-size: 19px; letter-spacing: -.005em; }
.hint span { background: linear-gradient(90deg, #8f8a86 0 38%, #1b1b1d 46% 54%, #8f8a86 62% 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3.4s linear infinite; }
.hint.ok span { animation: none; background: none; color: #8f8a86; }
.hint.err span { animation: none; background: none; color: #c4473a; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skip { position: fixed; right: 28px; bottom: 26px; font-size: 16px; color: #8f8a86; transition: color .2s; }
.skip:hover { color: #1b1b1d; }

/* =============================== CABIN =============================== */
#cabin { position: relative; min-height: 100svh; padding: 0 20px 46vh; opacity: 0; visibility: hidden; }
#cabin.on { opacity: 1; visibility: visible; }
#cabin .rise { opacity: 0; translate: 0 14px; transition: opacity .9s ease, translate .9s cubic-bezier(.2,.8,.2,1); }
#cabin.on .rise { opacity: 1; translate: 0 0; }

.loc { position: fixed; left: 60px; top: 82px; z-index: 4; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 4px 36px; font-family: var(--mono); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
  background: radial-gradient(circle, var(--ink-3) .9px, transparent 1.1px) 0 0 / 6px 5px repeat-y; }
.loc b { font-weight: 500; color: var(--ink); }
#coords { font-variant-numeric: tabular-nums; }
#city { transition: opacity .25s; }

.hero-c { display: flex; flex-direction: column; align-items: center; padding-top: 112px; }

/* ---- airplane window, with layered depth ---- */
.window-wrap { perspective: 900px; will-change: transform; }
.window { position: relative; width: 228px; height: 314px; transform-style: preserve-3d; will-change: transform; }
.w-bezel { position: absolute; inset: 0; border-radius: 44% / 33%;
  background:
    radial-gradient(120% 70% at var(--gx, 30%) var(--gy, 18%), rgba(255,255,255,.95), transparent 55%),
    linear-gradient(160deg, #f4f1ed 0%, #e7e2dc 45%, #d9d3cc 100%);
  box-shadow:
    0 30px 50px -18px rgba(60,40,30,.28), 0 12px 22px -10px rgba(60,40,30,.22),
    inset 0 2px 1px rgba(255,255,255,.95), inset 0 -6px 14px rgba(120,100,90,.22), inset 0 0 0 1px rgba(150,130,120,.18);
  filter: brightness(calc(1 - var(--night) * .55)); }
.w-frame { position: absolute; inset: 16px 18px; border-radius: 42% / 31%;
  background: linear-gradient(180deg, #d4cec7, #ebe7e2 30%, #f4f1ed 70%, #dad4cd);
  box-shadow: inset 0 4px 8px rgba(90,70,60,.38), inset 0 -2px 3px rgba(255,255,255,.8), 0 1px 0 rgba(255,255,255,.9); }
.w-opening { position: absolute; inset: 15px 14px; border-radius: 40% / 29%; overflow: hidden; cursor: ns-resize; touch-action: none;
  box-shadow: inset 0 0 0 3px rgba(120,105,95,.22), inset 0 8px 12px rgba(30,40,60,.28); }
.sky { position: absolute; inset: -14%; background: linear-gradient(180deg, #5ea6f2 0%, #8ec2f5 32%, #c9def3 52%, #e9eef4 64%, #f4f5f7 100%); will-change: transform; }
.clouds { position: absolute; left: -100%; width: 300%; bottom: -6%; height: 64%; filter: blur(5px); opacity: .95;
  background:
    radial-gradient(40px 22px at 8% 40%, #fff, transparent 70%),
    radial-gradient(60px 30px at 18% 60%, #fbfcfd, transparent 70%),
    radial-gradient(50px 26px at 30% 35%, #fff, transparent 70%),
    radial-gradient(70px 32px at 42% 62%, #f7f9fb, transparent 70%),
    radial-gradient(46px 24px at 55% 42%, #fff, transparent 70%),
    radial-gradient(64px 30px at 68% 58%, #fbfcfd, transparent 70%),
    radial-gradient(52px 26px at 80% 38%, #fff, transparent 70%),
    radial-gradient(72px 34px at 92% 60%, #f7f9fb, transparent 70%);
  animation: drift 38s linear infinite; }
.clouds.c2 { bottom: -18%; height: 56%; opacity: .9; filter: blur(8px); animation-duration: 24s; transform: scaleX(-1); }
.clouds.c3 { bottom: 22%; height: 28%; opacity: .5; filter: blur(3px); animation-duration: 64s; }
@keyframes drift { from { translate: 0 0; } to { translate: 33.333% 0; } }
.w-glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.38) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.18) 100%); }
.shade { position: absolute; left: 0; right: 0; top: 0; height: calc(9% + var(--shade, 0) * 91%);
  background:
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(120,100,85,.10) 13px 14px, rgba(255,255,255,.35) 14px 15px),
    linear-gradient(180deg, #e9e3dc, #ded7cf);
  box-shadow: 0 3px 6px rgba(40,30,20,.25); }
.shade-lip { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(180deg, #e2dbd3, #cfc7be); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 3px rgba(40,30,20,.25); }
.shade-lip::after { content: ""; position: absolute; left: 50%; top: 4px; width: 34px; height: 4px; margin-left: -17px; border-radius: 3px; background: linear-gradient(180deg, #b9b0a6, #d8d0c7); }
.w-hint { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.intro { max-width: 600px; margin-top: 74px; text-align: center; will-change: transform; }
.intro h1 { font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.intro p { margin-top: 6px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* ---- flight plan: the plane flies down the route as you scroll ---- */
.plan { position: relative; width: min(700px, 100%); margin: 70px auto 0; padding-left: 86px; }
.plan-head { position: absolute; left: 10px; top: -64px; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.route { position: absolute; left: 0; top: -50px; width: 120px; height: calc(100% + 50px); overflow: visible; pointer-events: none; }
#routePath { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 4; }
#routeDone { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.plane { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--accent); z-index: 2; will-change: transform; pointer-events: none; }
.plane svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 3px rgba(40,40,120,.25)); }
.plane .trail { position: absolute; left: 50%; top: 100%; width: 2px; height: 26px; margin-left: -1px; border-radius: 2px; background: linear-gradient(var(--accent), transparent); opacity: var(--trail, 0); }
.leg { position: relative; padding: 0 0 46px; transition: opacity .6s ease, filter .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); opacity: .28; filter: blur(1.5px); translate: 0 10px; }
.leg.reached { opacity: 1; filter: none; translate: 0 0; }
.leg .when { position: absolute; left: -128px; top: 52px; width: 76px; text-align: right; font-family: var(--mono); color: var(--ink-2); }
.leg .when small { display: block; font-size: 8px; letter-spacing: .14em; color: var(--ink-3); }
.leg .when b { font-weight: 500; font-size: 13px; letter-spacing: .14em; }
.leg::before { content: ""; position: absolute; left: -36px; top: 59px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.2px var(--ink-3), inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--ink-3); transition: box-shadow .4s; }
.leg.reached::before { box-shadow: 0 0 0 1.4px var(--accent), inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--accent), 0 0 0 6px color-mix(in oklab, var(--accent), transparent 85%); }
.badges { display: flex; }
.logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--bg); }
.logo + .logo { margin-left: -6px; }
.logo svg { width: 18px; height: 18px; }
.l-yw { background: #e9e1cf; color: #2b2b31; }
.l-globe { background: #1f3b57; color: #cfe6ff; }
.l-ub { background: #1d3d7a; color: #ffd84a; }
.l-water { background: #d7ecff; color: #2c7fd8; }
.l-ugm { background: #e8e1c7; color: #2a3c24; font-size: 9px; }
.l-eg { background: #c8302a; color: #fff; }
.l-ru { background: #1f4fb6; color: #fff; }
.leg h3 { margin-top: 12px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.leg h3 em { font-style: normal; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.leg h4 { margin-top: 6px; font-size: 19px; font-weight: 400; color: var(--ink); opacity: .85; }
.leg p { margin-top: 8px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }

.fade-bottom { position: fixed; left: 0; right: 0; bottom: 0; height: 170px; z-index: 5; pointer-events: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask: linear-gradient(to bottom, transparent, #000 70%); mask: linear-gradient(to bottom, transparent, #000 70%);
  background: linear-gradient(to bottom, transparent, var(--bg) 92%); }
.dock { position: fixed; left: 0; right: 0; bottom: 30px; z-index: 6; display: flex; justify-content: center; gap: 48px; font-family: var(--mono); font-size: 15px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.dock a, .dock button { letter-spacing: inherit; text-transform: inherit; transition: color .2s; }
.dock a:hover, .dock button:hover { color: var(--ink); }

/* =============================== RESPONSIVE =============================== */
@media (max-width: 1360px) {
  .loc { position: absolute; }
}
@media (max-width: 900px) {
  .loc { position: absolute; left: 20px; top: 26px; font-size: 11px; padding-left: 26px; }
  .hero-c { padding-top: 150px; }
  .plan { padding-left: 64px; margin-top: 130px; }
  .leg .when { position: static; width: auto; text-align: left; display: flex; gap: 6px; align-items: baseline; margin-bottom: 8px; }
  .leg::before { left: -40px; top: 2px; }
  .route { left: -18px; }
  .plan-head { left: -6px; }
  .dock { gap: 22px; font-size: 11px; letter-spacing: .18em; bottom: 22px; }
}
@media (max-width: 520px) {
  .intro h1 { font-size: 19px; }
  .intro p, .leg p { font-size: 16px; }
  .leg h3 { font-size: 19px; } .leg h4 { font-size: 17px; }
  .window { width: 190px; height: 262px; }
  .dock { gap: 16px; font-size: 10px; letter-spacing: .12em; }
  .skip { right: 18px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .clouds, .hint span, .led, .r-slot i { animation: none !important; }
  .leg { opacity: 1; filter: none; translate: 0 0; }
}

/* =============================== IN-FLIGHT FILM =============================== */
.story { margin: 80px -20px 0; color: var(--ink); }
.chapter { position: relative; }
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ch-label { position: absolute; left: clamp(20px, 5vw, 60px); top: 90px; z-index: 3; display: flex; gap: 14px; align-items: baseline; font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.ch-label b { font-weight: 500; color: var(--accent); }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .14; mix-blend-mode: overlay; animation: grain .9s steps(6) infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.film-card { min-height: 90svh; display: grid; place-items: center; text-align: center; padding: 0 20px; }
.fc-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
.fc-tag i { width: 7px; height: 7px; border-radius: 50%; background: #e0574b; box-shadow: 0 0 10px #e0574b; animation: pulse 1.6s infinite; }
.fc-title { margin-top: 22px; font-size: clamp(64px, 13vw, 190px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.fc-sub { margin: 22px auto 0; max-width: 34ch; font-size: 19px; color: var(--ink-2); }
.fc-meta { display: block; margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.fc-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 54px; font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.fc-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--ink-3), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* CH 01 — hands */
.handover { height: 340svh; }
.spot { position: absolute; inset: 0; background:
  radial-gradient(30% 42% at 50% 47%, rgba(120,120,132,calc(.42 * var(--night))), transparent 72%),
  radial-gradient(60% 75% at 50% 50%, rgba(70,70,80,calc(.35 * var(--night))), transparent 75%); }
.hands-stage { position: absolute; left: 50%; top: 50%; height: min(96svh, 1180px); aspect-ratio: 720 / 1280; transform: translate(-50%, -50%); }
.hand { position: absolute; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.hand-top { left: 40.83%; top: 0; width: 50%; transform-origin: 80% 0%; }
.hand-bottom { left: 40.28%; top: 45.31%; width: 35%; transform-origin: 40% 100%; }
.spark { position: absolute; left: 50%; top: 46.8%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 2%, rgba(255,240,215,.55) 6%, rgba(255,220,170,.12) 28%, transparent 60%); mix-blend-mode: screen; }
.ho-lines { position: absolute; left: clamp(20px, 5vw, 60px); bottom: 14svh; z-index: 3; width: min(15em, 38vw); }
.ho-line { font-size: clamp(22px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); opacity: 0; filter: blur(8px); translate: 0 16px; transition: opacity .7s, filter .7s, translate .7s cubic-bezier(.2,.8,.2,1); }
.ho-line.on { opacity: 1; filter: none; translate: 0 0; }
.ho-line + .ho-line { margin-top: 6px; }
.ho-last { color: var(--accent); }

/* CH 02 — film scrubbed by scroll */
.craft { height: 420svh; }
.craft .pin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-bottom: 60px; }
.craft .ch-label { position: static; width: min(1120px, 92vw, (100svh - 200px) * 1.791); }
.screen { position: relative; width: min(1120px, 92vw, (100svh - 200px) * 1.791); aspect-ratio: 1440 / 804; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -30px rgba(0,0,0,.6); transform: scale(var(--zoom, .86)); will-change: transform; }
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cues { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 34px 34px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.cue { position: absolute; left: 34px; right: 34px; bottom: 34px; font-size: clamp(18px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.015em; color: #fff; opacity: 0; translate: 0 10px; transition: opacity .5s, translate .5s; }
.cue.on { opacity: 1; translate: 0 0; }
.scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.scrub i { display: block; height: 100%; width: 0; background: #fff; }
.tc { position: absolute; right: 16px; top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.75); }

/* CH 03 — lights up, instruments */
.tools { min-height: 150svh; overflow: hidden; }
.tools-inner { position: relative; max-width: 1180px; margin: 0 auto; min-height: 150svh; padding: 22svh clamp(20px, 5vw, 60px) 16svh; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.tools .ch-label { top: 12svh; }
.tools-copy { position: relative; z-index: 2; }
.tools-copy h3 { font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.tools-copy p { margin-top: 22px; max-width: 42ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.tool-list { margin-top: 30px; list-style: none; border-top: 1px solid var(--line); }
.tool-list li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tool-list b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent); padding-top: 3px; }
.tools-reel { position: relative; z-index: 2; justify-self: center; width: min(340px, 80vw); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #eee; box-shadow: 0 50px 80px -30px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.tools-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst { position: absolute; z-index: 0; width: 420px; aspect-ratio: 1440 / 2560; background: var(--ink); opacity: .07; pointer-events: none; will-change: transform;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.inst-mirror { left: -150px; top: 30%; }
.inst-tweezers { right: -120px; top: -6%; width: 480px; opacity: .06; }
.inst-explorer { left: 38%; bottom: -24%; width: 380px; opacity: .09; }

/* CH 04 — clinic scenes */
.clinic { height: 520svh; }
.clinic .pin { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6vw; padding: 0 clamp(20px, 7vw, 120px); max-width: 1300px; margin: 0 auto; }
.clinic-copy { position: relative; align-self: center; }
.clinic .ch-label { position: static; margin-bottom: 34px; }
.steps { list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 14px 0 14px 44px; opacity: .22; transition: opacity .5s, transform .5s; }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: 19px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.steps li b { display: block; font-size: clamp(24px, 3vw, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.steps li span { display: block; max-height: 0; overflow: hidden; margin-top: 0; font-size: 17px; color: var(--ink-2); transition: max-height .5s, margin .5s; }
.steps li.on { opacity: 1; }
.steps li.on::before { color: var(--accent); }
.steps li.on span { max-height: 80px; margin-top: 8px; }
.clinic-screen { position: relative; height: min(78svh, 760px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 50px 120px -30px rgba(0,0,0,.7); }
.clinic-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 1.6s ease; }
.clinic-screen video.on { opacity: 1; transform: scale(1); }
.ticks { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; gap: 6px; }
.ticks i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.ticks i::after { content: ""; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; }

.film-end { min-height: 70svh; display: grid; place-content: center; text-align: center; }
.fe-small { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.fe-big { margin-top: 14px; font-size: clamp(30px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.03em; }

@media (max-width: 900px) {
  .tools-inner { grid-template-columns: 1fr; padding-top: 18svh; }
  .clinic .pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 80px; gap: 20px; }
  .clinic-screen { height: 52svh; justify-self: center; }
  .steps li { padding: 6px 0 6px 36px; } .steps li:not(.on) { height: 0; padding: 0; overflow: hidden; }
  .ho-lines { bottom: 8svh; }
  .craft .ch-label, .screen { width: min(92vw, (100svh - 220px) * 0.8); }
  .screen { aspect-ratio: 4 / 5; }
  .cue { left: 20px; right: 20px; bottom: 22px; font-size: 19px; }
  .inst { width: 160px; } .inst-tweezers { width: 180px; }
}

/* ============================ ACHIEVEMENTS (part one) ============================ */
.ho-stamps { position: absolute; right: clamp(20px, 5vw, 60px); bottom: 14svh; z-index: 3; list-style: none; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.ho-stamps li { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); opacity: .25; transition: opacity .6s, color .6s; }
.ho-stamps li b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px dashed currentColor; font-weight: 500; font-size: 11px; letter-spacing: .06em; rotate: -14deg; scale: .7; transition: scale .5s cubic-bezier(.3,1.6,.5,1), rotate .5s, border-color .5s, color .5s; }
.ho-stamps li.on { opacity: 1; color: var(--ink-2); }
.ho-stamps li.on b { scale: 1; rotate: -6deg; border-style: solid; color: var(--accent); border-color: var(--accent); }

.award-count { margin-left: auto; font-style: normal; color: var(--ink-3); letter-spacing: .2em; }
.cues { padding-top: 160px; }
.cue.award { display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 28px); }
.cue.award > b { flex: none; font-size: clamp(54px, 7.4vw, 118px); font-weight: 500; letter-spacing: -.06em; line-height: .78; translate: 0 26px; opacity: 0; transition: translate .8s cubic-bezier(.2,.8,.2,1) .05s, opacity .6s .05s; }
.cue.award > b sup { font-size: .34em; letter-spacing: 0; vertical-align: top; margin-left: 4px; position: relative; top: .25em; }
.cue.award > b.star, .cue.award > b.gold { color: #f0cd7a; text-shadow: 0 0 40px rgba(240,205,122,.45); }
.cue.award > b.gold { font-size: clamp(44px, 6vw, 96px); letter-spacing: -.03em; }
.cue.on.award > b { translate: 0 0; opacity: 1; }
.cue.award p { font-size: clamp(17px, 2vw, 30px); line-height: 1.15; padding-bottom: 4px; }
.cue.award small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); line-height: 1.6; }

.funnel { margin-top: 28px; isolation: isolate; max-width: 460px; }
.fn { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 9px 14px; }
.fn + .fn { margin-top: 5px; }
.fn::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: calc(var(--w) * var(--k, 0) * 100%); min-width: 2px; border-left: 2px solid var(--accent); background: color-mix(in oklab, var(--accent), transparent 86%); }
.fn b { min-width: 2.6em; font-size: 26px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fn span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.tool-list li span a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent), transparent 60%); }

/* ============================ PART TWO: YoWEP ============================ */
:root { --yo: #7fd6c2; }
.ch-label.on-dark { color: rgba(255,255,255,.72); }
.ch-label.on-dark b { color: var(--yo); }

/* Y1 — depth: background / word / you */
.yo-rise { height: 330svh; }
.yo-rise .pin { background: #06090a; }
.yr-scene { position: absolute; left: 50%; top: 50%; width: max(100vw, 100svh * 1.777); aspect-ratio: 2900 / 1632; translate: -50% -50%; }
.yr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 78%; will-change: transform, filter; }
.yr-fg { position: absolute; left: 33.45%; top: 38.73%; width: 38.62%; transform-origin: 52% 100%; will-change: transform; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.yr-word { position: absolute; left: 0; right: 0; top: 17%; text-align: center; font-size: clamp(96px, 21vw, 380px); font-weight: 600; letter-spacing: -.065em; line-height: .8; color: #f3f0e8; opacity: 0; will-change: transform, opacity; text-shadow: 0 30px 80px rgba(0,0,0,.25); }
.yr-mist { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,9,10,.25), transparent 30%, transparent 55%, rgba(6,9,10,.82)); pointer-events: none; }
.yr-lines { position: absolute; left: clamp(20px, 5vw, 60px); bottom: 12svh; z-index: 4; width: min(17em, 80vw); }
.yr-lines .ho-line { color: #f3f0e8; }
.yr-lines .ho-last { color: var(--yo); }

/* Y2 — numbers over the forest */
.yo-count { height: 340svh; }
.yo-count .pin { background: #050807; }
.yc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.12)); will-change: transform; }
.yc-shade { position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 50%, rgba(3,10,8,.38), rgba(3,10,8,.82)); }
.yc-grid { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 6svh 6vw; padding: 0 clamp(20px, 9vw, 160px); color: #fff; }
.yc { opacity: 0; translate: 0 28px; filter: blur(6px); transition: opacity .8s, translate .8s cubic-bezier(.2,.8,.2,1), filter .8s; }
.yc.on { opacity: 1; translate: 0 0; filter: none; }
.yc b { font-size: clamp(54px, 8.6vw, 150px); font-weight: 500; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; }
.yc i { font-style: normal; font-size: clamp(30px, 4vw, 70px); font-weight: 500; color: var(--yo); vertical-align: top; margin-left: 4px; }
.yc span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.yc-note { position: absolute; z-index: 2; left: 50%; bottom: 8svh; translate: -50% 12px; width: min(620px, 88vw); text-align: center; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.88); opacity: 0; transition: opacity .8s, translate .8s; }
.yc-note::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto 14px; border-radius: 50%; background: var(--yo); box-shadow: 0 0 14px var(--yo); }
.yc-note.on { opacity: 1; translate: -50% 0; }

/* Y3 — the river, the bottle, the arm reaching out of the frame */
.yo-water { height: 440svh; }
.yo-water .pin { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 4vw; padding-left: clamp(20px, 6vw, 110px); }
.yw-copy { position: relative; z-index: 3; max-width: 470px; }
.yw-copy .ch-label { position: static; margin-bottom: 24px; }
.yw-title { font-size: clamp(30px, 3.5vw, 54px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.yw-list { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.yw-list li { padding: 13px 0; border-bottom: 1px solid var(--line); opacity: .2; transition: opacity .6s; }
.yw-list li.on { opacity: 1; }
.yw-list small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.yw-list b { display: block; margin-top: 4px; font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.01em; }
.yw-list span { display: block; max-height: 0; overflow: hidden; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); transition: max-height .7s, margin .7s; }
.yw-list li.on span { max-height: 150px; margin-top: 6px; }
.yw-list em { font-style: normal; color: var(--accent); }
.yw-stage { position: relative; z-index: 2; width: 100%; aspect-ratio: 3300 / 1600; }
.yw-frame { position: absolute; inset: 0; margin: 0; border-radius: 16px 0 0 16px; overflow: hidden; background: #3a3d3f; box-shadow: 0 40px 90px -30px rgba(0,0,0,.45); opacity: var(--fo, 1); transform: scale(var(--fz, .94)); transform-origin: 100% 50%; will-change: transform, opacity; }
.yw-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.yw-arm { position: absolute; left: 35.52%; top: 12.25%; width: 64.48%; transform-origin: 100% 18%; opacity: 0; will-change: transform, opacity;
  -webkit-mask: linear-gradient(to top, transparent 0, #000 16%); mask: linear-gradient(to top, transparent 0, #000 16%);
  filter: drop-shadow(-18px 34px 34px rgba(0,0,0,.26)); }
.yw-drops { position: absolute; left: 44%; top: 86%; width: 60px; height: 40svh; opacity: 0; pointer-events: none; }
.yw-drops i { position: absolute; top: 0; width: 7px; height: 11px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(160deg, #fff, #9fc6d6 60%, #6d97ab); box-shadow: 0 2px 6px rgba(40,80,100,.3); opacity: 0; animation: drop 1.9s cubic-bezier(.55,0,.9,.5) infinite; }
.yw-drops i:nth-child(1) { left: 6px; animation-delay: 0s; }
.yw-drops i:nth-child(2) { left: 22px; animation-delay: .55s; scale: .7; }
.yw-drops i:nth-child(3) { left: 14px; animation-delay: 1.1s; scale: .85; }
.yw-drops i:nth-child(4) { left: 30px; animation-delay: 1.45s; scale: .6; }
.yw-drops i:nth-child(5) { left: 2px; animation-delay: .8s; scale: .5; }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: .9; } 100% { transform: translateY(38svh); opacity: 0; } }

/* Y4 — hands pressed into the moss */
.yo-hands { height: 340svh; }
.ym-card { position: absolute; left: 50%; top: 50%; height: min(76svh, 760px); aspect-ratio: 9 / 16; margin: 0; translate: -50% -50%; border-radius: 22px; overflow: hidden; background: #1d2a17; box-shadow: 0 50px 110px -30px rgba(20,40,10,.55); transform: scale(var(--cz, .96)); will-change: transform; }
.ym-card video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(var(--sat, .6)) brightness(var(--br, .8)); }
.ym-ripple { position: absolute; left: 50%; top: 36%; width: 80%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 2px solid rgba(220,255,200,.75); box-shadow: 0 0 40px rgba(200,255,170,.4), inset 0 0 40px rgba(200,255,170,.25); opacity: 0; scale: .2; pointer-events: none; }
.ym-hands { position: absolute; left: 50%; top: 50%; height: calc(min(76svh, 760px) * .955); aspect-ratio: 720 / 1222; translate: -50% -46%; z-index: 2; will-change: transform, filter;
  -webkit-mask: linear-gradient(to top, transparent 0, #000 18%); mask: linear-gradient(to top, transparent 0, #000 18%); }
.ym-copy { position: absolute; left: clamp(20px, 6vw, 110px); top: 50%; translate: 0 -50%; z-index: 3; width: min(380px, calc(50vw - min(76svh, 760px) * .28 - 9vw)); }
.yo-hands .ch-label { z-index: 4; }
.ym-title { font-size: clamp(34px, 4.4vw, 68px); font-weight: 500; letter-spacing: -.04em; line-height: .98; opacity: 0; translate: 0 20px; transition: opacity .8s, translate .8s cubic-bezier(.2,.8,.2,1); }
.ym-title.on { opacity: 1; translate: 0 0; }
.ym-list { list-style: none; margin-top: 26px; }
.ym-list li { padding: 12px 0 12px 16px; border-left: 2px solid color-mix(in oklab, #5f9b4a, transparent 40%); opacity: 0; translate: -14px 0; transition: opacity .6s, translate .6s cubic-bezier(.2,.8,.2,1); }
.ym-list li + li { margin-top: 6px; }
.ym-list li.on { opacity: 1; translate: 0 0; }
.ym-list b { display: block; font-size: 18px; font-weight: 500; }
.ym-list span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Y5 — the country, sideways */
.yo-strip { height: 460svh; }
.ys-head { position: absolute; left: clamp(20px, 5vw, 60px); top: 50%; translate: 0 -50%; z-index: 1; width: min(30vw, 420px); color: #f3f0e8; opacity: var(--ho, 1); }
.ys-head h3 { font-size: clamp(40px, 5vw, 84px); font-weight: 500; letter-spacing: -.045em; line-height: .96; }
.ys-head p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.68); }
.ys-track { position: absolute; left: 0; top: 50%; z-index: 2; display: flex; gap: 2.2vw; padding-left: calc(clamp(20px, 5vw, 60px) + min(30vw, 420px) + 5vw); translate: 0 -50%; will-change: transform; }
.ys { position: relative; flex: none; width: min(26vw, 52svh * .8); aspect-ratio: 4 / 5; margin: 0; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 40px 70px -30px rgba(0,0,0,.8); transform: translateY(var(--ty, 0)) rotate(var(--rot, 0deg)); }
.ys img { position: absolute; top: 0; left: -9%; width: 118%; height: 100%; object-fit: cover; transform: translateX(var(--px, 0)); will-change: transform; }
.ys figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ys-credit { position: absolute; left: clamp(20px, 5vw, 60px); right: clamp(20px, 5vw, 60px); bottom: 64px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ys-bar { position: absolute; left: clamp(20px, 5vw, 60px); right: clamp(20px, 5vw, 60px); bottom: 50px; height: 1px; background: rgba(255,255,255,.14); }
.ys-bar i { display: block; height: 100%; width: 0; background: var(--yo); }

@media (max-width: 900px) {
  .ho-stamps { top: 130px; bottom: auto; gap: 6px; }
  .ho-stamps li { font-size: 9px; } .ho-stamps li b { width: 30px; height: 30px; font-size: 9px; }
  .ho-lines { width: min(15em, 62vw); }
  .cues { padding-top: 120px; }
  .cue.award { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cue.award > b { font-size: 64px; }
  .cue.award small { font-size: 9.5px; }
  .award-count { font-size: 10px; }
  .yr-lines { bottom: 9svh; }
  .yc-grid { gap: 5svh 6vw; align-content: center; padding-bottom: 14svh; }
  .yc span { font-size: 9.5px; letter-spacing: .16em; }
  .yc-note { font-size: 14.5px; bottom: 7svh; }
  .yo-water .pin { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; gap: 18px; padding-top: 84px; }
  .yw-copy { order: 2; padding-right: 20px; }
  .yw-copy .ch-label { position: absolute; top: -50px; left: 0; margin: 0; }
  .yw-title { font-size: 28px; }
  .yw-list { margin-top: 14px; }
  .yw-list li { padding: 8px 0; } .yw-list li:not(.on) { display: none; }
  .yw-list span { font-size: 14px; }
  .yw-stage { order: 1; width: calc(100% + 0px); }
  .yw-drops { height: 20svh; }
  .ym-card { top: 37%; height: 46svh; }
  .ym-hands { top: 37%; height: calc(46svh * .955); }
  .ym-copy { left: 20px; right: 20px; top: auto; bottom: 5svh; translate: 0 0; width: auto; }
  .ym-title { font-size: 30px; }
  .ym-title br { display: none; }
  .ym-list { margin-top: 12px; }
  .ym-list li { padding: 6px 0 6px 12px; }
  .ym-list b { font-size: 15.5px; } .ym-list span { font-size: 13px; }
  .ys-head { top: 14svh; translate: 0 0; width: auto; right: 20px; }
  .ys-head h3 { font-size: 40px; }
  .ys-head p { font-size: 14.5px; margin-top: 10px; }
  .ys-track { top: 64%; padding-left: 20px; gap: 14px; }
  .ys { width: 58vw; }
  .ys-credit { bottom: 40px; font-size: 8.5px; }
  .ys-bar { bottom: 28px; }
}
#handover .ho-lines { width: min(19em, 36vw); }
#handover .ho-line { font-size: clamp(20px, 2.15vw, 31px); }
.yr-lines { width: min(23em, 40vw); }
.yr-lines .ho-line { font-size: clamp(19px, 1.9vw, 28px); }
.yc-shade { background: linear-gradient(180deg, rgba(3,10,8,.35), rgba(3,10,8,.2) 40%, rgba(3,10,8,.85)), radial-gradient(90% 80% at 50% 45%, rgba(3,10,8,.45), rgba(3,10,8,.8)); }
.yc span, .yc b { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.yc span { color: rgba(255,255,255,.85); }
.yc-note { bottom: calc(30px + 60px); font-size: 16px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.yc-grid { padding-bottom: 10svh; }
.ym-hwrap { position: absolute; left: 50%; top: 50%; z-index: 2; height: min(76svh, 760px); aspect-ratio: 9 / 16; translate: -50% -50%; clip-path: inset(-120svh 0 -120svh 0); pointer-events: none; }
.ym-hwrap .ym-hands { left: 0; top: 4.5%; width: 100%; height: auto; translate: none; transform-origin: 50% 30%; }
@media (max-width: 900px) { .ym-hwrap { top: 37%; height: 46svh; } }
.ys-credit { bottom: 112px; }
.ys-bar { bottom: 98px; }
@media (max-width: 900px) { .ys-credit { bottom: 92px; } .ys-bar { bottom: 80px; } }
@media (max-width: 900px) {
  #handover .ho-lines { width: min(17em, 72vw); bottom: 10svh; }
  #handover .ho-line { font-size: 19px; }
  #handover .ho-line + .ho-line { margin-top: 4px; }
  .yr-lines { width: min(20em, 84vw); }
  .yr-lines .ho-line { font-size: 18px; }
}
@media (max-width: 900px) {
  .yw-copy .ch-label { position: static; margin-bottom: 12px; }
  .yo-water .pin { padding-top: 70px; }
  .yw-list li:not(.cur) { display: none; }
  .yw-list li.cur { display: block; }
  .yc-grid { gap: 5svh 5vw; }
  .yc b { font-size: 46px; }
  .yc i { font-size: 26px; }
}
@media (max-width: 900px) { .ym-copy { bottom: 84px; } .ym-card, .ym-hwrap { top: 34%; height: 44svh; } }
@media (max-width: 900px) {
  .yw-copy { margin-top: 46px; }
  .ym-card, .ym-hwrap { top: 36%; height: 40svh; }
}

/* ============================ PART THREE: THE APPS ============================ */
:root { --hp: #6ee7c8; --ms-indigo: #2E3A8C; --ms-coral: #C9475E; }

/* A1 — Handpiece: lamp, mirror, iPad */
.hp { height: 1000svh; }
.hp .pin, .ms-intro .pin { background: #121419; }
.hp-clip { position: absolute; left: 50%; top: 0; height: 100svh; aspect-ratio: 720 / 1280; translate: -50% 0; opacity: var(--co, 1);
  -webkit-mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.hp-clip video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hp-glow { position: absolute; left: 50%; top: 53.05%; width: 28.9%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0 36%, rgba(255,250,240,.85) 48%, rgba(255,240,220,.28) 68%, transparent 100%); }
.hp-lines { position: absolute; left: clamp(20px, 5vw, 60px); bottom: 14svh; z-index: 3; width: min(15em, 32vw); opacity: var(--lo, 1); }
.hp-lines .ho-line { color: #f1efe9; font-size: clamp(20px, 2.1vw, 30px); }
.hp-lines .ho-last { color: #f6e7c4; }
.hp-layout { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.4fr); align-items: center; gap: 4vw; padding: 0 clamp(20px, 5vw, 70px); pointer-events: none; }
.hp-copy { position: relative; z-index: 3; color: #f1efe9; opacity: var(--cp, 0); translate: 0 calc((1 - var(--cp, 0)) * 26px); pointer-events: auto; }
.hp-copy .ch-label { position: static; margin-bottom: 16px; color: rgba(255,255,255,.66); }
.hp-copy .ch-label b { color: var(--hp); }
.hp-title { font-size: clamp(40px, 5vw, 78px); font-weight: 500; letter-spacing: -.045em; line-height: .95; }
.hp-tag { margin-top: 12px; max-width: 30em; font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.62); }
.hp-steps { margin-top: 20px; }
.hp-steps li { padding: 9px 0 9px 40px; }
.hp-steps li::before { top: 14px; color: rgba(255,255,255,.3); }
.hp-steps li b { font-size: clamp(19px, 1.9vw, 26px); color: #f1efe9; }
.hp-steps li span { color: rgba(255,255,255,.6); font-size: 15.5px; }
.hp-steps li.on::before { color: var(--hp); }
.hp-slot { width: 100%; aspect-ratio: 2776 / 1788; }
.hp-device { position: absolute; left: 0; top: 0; z-index: 2; overflow: hidden; background: #000; opacity: 0; will-change: left, top, width, height;
  box-shadow: 0 0 0 calc(var(--bz, 0) * 11px) #1b1d22, 0 0 0 calc(var(--bz, 0) * 12px) #3a3d45, 0 60px 120px -30px rgba(0,0,0,calc(var(--bz, 0) * .85)); }
.hp-screen { position: absolute; inset: 0; }
.hp-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.hp-v.on { opacity: 1; }
.hp-white { position: absolute; inset: 0; background: radial-gradient(circle, #fff 50%, #f3eee4); opacity: var(--wo, 1); }
.hp-sheen { position: absolute; inset: -20%; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%); transform: translateX(var(--sx, -120%)); }

/* A2 — tray, gloves, Mesem */
.ms-intro { height: 320svh; }
.ms-lines { width: min(17em, 34vw); }
.ms-mark { position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; width: min(640px, 88vw); text-align: center; color: #fff; opacity: var(--mo, 0); }
.ms-mark svg { width: 150px; height: 50px; overflow: visible; }
.ms-mark path { fill: none; stroke: #9aa5f2; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--arc, 1); }
.ms-mark h3 { margin-top: 6px; font-size: clamp(64px, 10vw, 150px); font-weight: 600; letter-spacing: -.055em; line-height: .9; }
.ms-mark p { margin-top: 18px; font-size: clamp(18px, 1.8vw, 24px); color: rgba(255,255,255,.88); }
.ms-mark small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.7; color: rgba(255,255,255,.55); }
.ms-intro .ch-label { opacity: var(--mo, 0); }

/* A3 — why */
.ms-why { height: 320svh; }
.ms-why .pin { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6vw; padding: 0 clamp(20px, 7vw, 120px); max-width: 1400px; margin: 0 auto; }
.mw-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(6px, .9vw, 12px); width: min(40vw, 64svh); }
.mw-grid i { aspect-ratio: 1; border-radius: 46% 46% 40% 40% / 54% 54% 46% 46%; background: color-mix(in oklab, var(--ink), transparent 90%); transition: background .45s, transform .45s, box-shadow .45s; }
.mw-grid i.c { background: var(--ms-coral); transform: scale(.92); }
.mw-grid i.t { background: var(--ms-indigo); transform: scale(1.06); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ms-indigo), transparent 78%); }
.mw-stat { opacity: .14; transition: opacity .6s; }
.mw-stat + .mw-stat { margin-top: 16px; }
.mw-stat.on { opacity: 1; }
.mw-stat b { font-size: clamp(46px, 5.6vw, 92px); font-weight: 500; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; color: var(--ms-coral); }
.mw-stat.coral b { color: var(--ms-indigo); }
.mw-stat i { font-style: normal; font-size: clamp(24px, 2.6vw, 40px); font-weight: 500; margin-left: 2px; color: var(--ink-2); }
.mw-stat span { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.mw-note { margin-top: 26px; max-width: 32em; font-size: 18px; line-height: 1.55; opacity: 0; translate: 0 14px; transition: opacity .7s, translate .7s; }
.mw-note.on { opacity: 1; translate: 0 0; }
.mw-src { display: block; margin-top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ms-why .ch-label { top: 90px; }

/* A4 — the phone */
.ms-flow { height: 780svh; }
.ms-flow .pin { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 3vw; padding: 0 clamp(20px, 6vw, 110px); max-width: 1440px; margin: 0 auto; }
.mf-copy { position: relative; z-index: 3; }
.mf-copy .ch-label { position: static; margin-bottom: 26px; }
.mf-steps li.on::before { color: var(--ms-indigo); }
.mf-stage { position: relative; height: 100svh; display: grid; place-items: center; }
.phone { position: relative; z-index: 2; height: min(78svh, 760px); aspect-ratio: 390 / 844; padding: 9px; border-radius: 48px; background: #0d0f14; box-shadow: 0 0 0 1.5px #3b3e47, inset 0 0 0 1px #24262d, 0 60px 110px -30px rgba(23,26,44,.5); }
.phone::before { content: ""; position: absolute; left: 50%; top: 20px; z-index: 5; width: 30%; height: 24px; translate: -50% 0; border-radius: 999px; background: #000; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 40px; background: #F3F4F9; }
.ms-scr { position: absolute; inset: 0; opacity: 0; transform: translateY(5%) scale(.97); transition: opacity .55s, transform .65s cubic-bezier(.2,.8,.2,1); }
.ms-scr.on { opacity: 1; transform: none; }
.ms-scr > img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tap { position: absolute; left: var(--x); top: var(--y); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid var(--ms-indigo); background: rgba(46,58,140,.16); opacity: 0; pointer-events: none; }
.ms-scr.on .tap { animation: tap 2s ease-out .7s infinite; }
.ms-scr.on .tap.late { animation-delay: 1.7s; }
@keyframes tap { 0% { opacity: 0; scale: .4; } 14% { opacity: 1; scale: 1; } 55% { opacity: 0; scale: 1.9; } 100% { opacity: 0; } }
.cam { background: #0c0e14; color: #fff; }
.cam-top { padding: 58px 18px 8px; }
.cam-top b { display: block; font-size: 15px; font-weight: 600; }
.cam-top span { font-size: 12px; color: rgba(255,255,255,.6); }
.cam-view { position: relative; margin: 6px 12px 0; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: radial-gradient(70% 60% at 50% 55%, #4a2f35, #1a1013 75%); }
.cam-feed, .cam-ghost { position: absolute; left: 4%; top: 26%; width: 92%; }
.cam-feed { transform: var(--ft, none); filter: blur(var(--fb, 0px)); will-change: transform, filter; }
.cam-ghost { opacity: .85; }
.cam-ghost.green { opacity: var(--g, 0); }
.cam-corner { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.8); }
.cam-corner.tl { left: 12px; top: 44px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.cam-corner.tr { right: 12px; top: 44px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.cam-corner.bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.cam-corner.br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.cam-hint { position: absolute; left: 50%; top: 12px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 12px; white-space: nowrap; transition: background .3s; }
.cam-hint.ok { background: #1F7A4D; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: var(--fl, 0); }
.cam-meters { display: flex; gap: 6px; padding: 10px 12px 6px; }
.cam-meters span { flex: 1; padding: 6px 0; border-radius: 999px; text-align: center; font-size: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); transition: background .3s, color .3s; }
.cam-meters span.ok { background: rgba(31,122,77,.4); color: #c4f2d9; }
.cam-thumbs { display: flex; gap: 6px; padding: 4px 12px; }
.cam-thumbs img { flex: 1; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; opacity: .12; transform: scale(.82); transition: opacity .4s, transform .5s cubic-bezier(.3,1.5,.5,1); }
.cam-thumbs img.on { opacity: 1; transform: none; }
.mf-float { position: absolute; z-index: 1; width: min(14vw, 200px); border-radius: 24px; opacity: .5; box-shadow: 0 30px 60px -24px rgba(23,26,44,.4); will-change: transform; }
.mf-float.f1 { left: 0; top: 10%; } .mf-float.f2 { right: -2%; top: 6%; } .mf-float.f3 { left: 4%; bottom: 4%; } .mf-float.f4 { right: 2%; bottom: 8%; }
.mf-demo { position: absolute; z-index: 3; left: 50%; bottom: 88px; translate: -50% 0; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* A5 — the build log */
.ms-build { height: 320svh; }
.ms-build .pin { background: #0d0f12; }
.mb-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 5vw; padding: 0 clamp(20px, 6vw, 110px) 60px; max-width: 1400px; margin: 0 auto; }
.term { position: relative; overflow: hidden; border-radius: 14px; background: #08090b; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); font-family: var(--mono); font-size: 13px; color: #cfd3dc; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-size: 11px; color: rgba(255,255,255,.4); }
.term-log { list-style: none; height: min(50svh, 440px); padding: 14px 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.term-log li { display: none; padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-log li.on { display: block; }
.term-log li em { font-style: normal; color: var(--hp); margin-right: 14px; }
.term-log li.typing::after { content: "▍"; color: var(--hp); animation: blink 1s steps(2) infinite; }
.term-cursor { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.mb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 24px; color: #fff; }
.mb { opacity: .15; transition: opacity .6s; }
.mb.on { opacity: 1; }
.mb b { display: block; font-size: clamp(44px, 5vw, 80px); font-weight: 500; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.mb span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; color: rgba(255,255,255,.6); }
.mb-foot { position: absolute; left: clamp(20px, 6vw, 110px); right: clamp(20px, 6vw, 110px); bottom: 96px; max-width: 58em; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.62); opacity: 0; transition: opacity .8s; }
.mb-foot.on { opacity: 1; }

@media (max-width: 900px) {
  .hp-lines, .ms-lines { width: min(17em, 80vw); bottom: 10svh; }
  .hp-layout { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; gap: 22px; padding-top: 86px; }
  .hp-slot { order: 1; }
  .hp-copy { order: 2; }
  .hp-title { font-size: 34px; }
  .hp-tag { font-size: 14.5px; }
  .hp-steps { margin-top: 12px; }
  .hp-steps li span { font-size: 14px; }
  .ms-why .pin { grid-template-columns: 1fr; align-content: center; gap: 22px; padding-top: 70px; }
  .mw-grid { width: min(62vw, 34svh); justify-self: start; gap: 5px; }
  .mw-stat b { font-size: 40px; } .mw-stat i { font-size: 22px; } .mw-stat span { font-size: 13px; }
  .mw-stat + .mw-stat { margin-top: 8px; }
  .mw-note { margin-top: 14px; font-size: 14px; }
  .mw-src { font-size: 8.5px; margin-top: 8px; }
  .ms-flow .pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 0; padding-top: 80px; }
  .mf-copy .ch-label { margin-bottom: 10px; }
  .mf-stage { height: auto; align-self: stretch; }
  .phone { height: min(56svh, 520px); border-radius: 38px; padding: 7px; }
  .phone-screen { border-radius: 32px; }
  .phone::before { top: 14px; height: 18px; }
  .cam-top { padding-top: 40px; }
  .mf-float { display: none; }
  .mf-demo { bottom: 74px; }
  .mb-wrap { grid-template-columns: 1fr; align-content: center; gap: 26px; padding-top: 70px; padding-bottom: 130px; }
  .term { font-size: 11px; }
  .term-log { height: 30svh; }
  .mb-stats { gap: 18px 16px; }
  .mb b { font-size: 38px; }
  .mb span { font-size: 9px; }
  .mb-foot { bottom: 76px; font-size: 13px; }
}
.ms-scr > img { margin-top: 44px; height: calc(100% - 44px); }
.phone { height: min(72svh, 700px); }
@media (max-width: 900px) { .ms-scr > img { margin-top: 32px; height: calc(100% - 32px); } .phone { height: min(54svh, 500px); } }
.ms-scr { --off: 44px; }
.tap { top: calc(var(--off) + (100% - var(--off)) * var(--yf)); }
@media (max-width: 900px) { .ms-scr { --off: 32px; } }
@media (max-width: 900px) {
  .ms-why .pin { gap: 16px; padding-top: 50px; padding-bottom: 70px; }
  .mw-grid { width: min(56vw, 28svh); }
  .mw-stat b { font-size: 34px; } .mw-stat span { font-size: 12.5px; margin-top: 2px; }
  .mw-note { font-size: 13.5px; margin-top: 10px; }
}
@media (max-width: 900px) {
  .mf-steps li.on span { max-height: 130px; font-size: 14px; }
  .mf-steps li b { font-size: 22px; }
  .phone { height: min(48svh, 460px); }
  .cam-view { aspect-ratio: 1 / 1; }
  .cam-top { padding: 34px 14px 4px; } .cam-top b { font-size: 13px; }
  .cam-meters span { font-size: 9px; padding: 4px 0; }
  .term-log { height: 22svh; }
  .mb-wrap { padding-top: 60px; padding-bottom: 170px; gap: 20px; }
  .mb-foot { bottom: 74px; font-size: 12.5px; }
}
.term-log li { flex: none; }
.l-uop { background: #0f4c81; color: #fff; font-size: 9px; }
.l-auc { background: #1c2c55; color: #f2c14e; font-size: 9px; }
.l-tu { background: #7a1f2b; color: #fff; }
.l-msu { background: #8a1c24; color: #f5e6c8; font-size: 9px; }

/* ============================ ARRIVALS ============================ */
.langs, .baggage, .final-gate { margin: 0 -20px; }
.langs { height: 340svh; margin-top: 80px; }
.langs .pin { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-content: center; padding: 0 20px 110px; }
.lg-word { position: relative; width: 100%; height: clamp(120px, 20vw, 260px); }
.lw { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(64px, 13vw, 210px); font-weight: 500; letter-spacing: -.05em; line-height: 1; white-space: nowrap; opacity: 0; filter: blur(14px); scale: .94; transition: opacity .7s, filter .7s, scale .9s cubic-bezier(.2,.8,.2,1); }
.lw[lang="ar"] { letter-spacing: 0; font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", sans-serif; }
.lw.on { opacity: 1; filter: none; scale: 1; }
.lg-sub { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.lg-list { list-style: none; width: min(760px, 100%); margin-top: 6svh; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.lg-list li { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 14px; padding: 8px 0; opacity: .3; transition: opacity .5s; }
.lg-list li.on, .lg-list li.done { opacity: 1; }
.lg-list b { font-weight: 500; font-size: 16px; }
.lg-list i { height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.lg-list i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * var(--f, 0) * 100%); background: var(--accent); border-radius: 3px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.lg-list span { grid-column: 2; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-2); }

.baggage { height: 380svh; }
.bg-title { position: absolute; left: clamp(20px, 5vw, 60px); top: 130px; font-size: clamp(34px, 4.4vw, 66px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.belt { position: absolute; left: 0; right: 0; top: 60%; height: 22px; background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--ink), transparent 82%) 0 2px, transparent 2px 38px), color-mix(in oklab, var(--ink), transparent 93%); background-position: var(--bx, 0) 0; border-block: 1px solid color-mix(in oklab, var(--ink), transparent 82%); }
.bg-track { position: absolute; left: 0; top: 60%; display: flex; align-items: flex-end; gap: 26px; padding-left: 100vw; translate: 0 -100%; will-change: transform; }
.btag { position: relative; flex: none; width: 250px; padding: 30px 20px 20px; border-radius: 14px 14px 10px 10px; background: color-mix(in oklab, var(--bg), #fff 55%); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 30px -18px rgba(0,0,0,.35), 0 0 0 1px color-mix(in oklab, var(--ink), transparent 88%); transform-origin: 50% 0; rotate: var(--r, 0deg); margin-bottom: 14px; }
.btag::before { content: ""; position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink), transparent 75%); }
.btag::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 26px; margin-left: -1px; background: color-mix(in oklab, var(--ink), transparent 70%); }
.btag small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.btag b { display: block; margin-top: 8px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.btag span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.btag.is-member { background: #1d1f26; color: #f1efe9; }
.btag.is-member small { color: var(--hp); }
.btag.is-member span { color: rgba(255,255,255,.6); }

.final-gate { min-height: 100svh; padding: 140px clamp(20px, 5vw, 60px) 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
.final-gate .ch-label { top: 90px; }
.board { width: min(980px, 100%); padding: 18px; border-radius: 14px; background: #101114; box-shadow: 0 40px 90px -40px rgba(0,0,0,.6), inset 0 0 0 1px #2a2c33; font-family: Doto, var(--mono); color: #f4c64e; text-align: left; overflow-x: auto; }
.brow { display: grid; grid-template-columns: .8fr 1fr 1.4fr 1fr; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #23252b; font-size: clamp(14px, 1.9vw, 24px); font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.brow:last-child { border-bottom: 0; }
.brow.head { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8b8d94; }
.flap.ok { color: #6ee7a8; }
.fg-line { margin-top: 40px; max-width: 34em; font-size: clamp(19px, 2vw, 26px); line-height: 1.4; letter-spacing: -.01em; }
.fg-links { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fg-links a { padding: 11px 20px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink), transparent 75%); transition: background .3s, color .3s; }
.fg-links a:hover { background: var(--ink); color: var(--bg); }
.fg-foot { margin-top: 40px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 900px) {
  .lg-list { grid-template-columns: 1fr; gap: 0; margin-top: 3svh; }
  .lg-list li { grid-template-columns: 96px 1fr; padding: 5px 0; }
  .lg-list b { font-size: 14px; }
  .bg-title { top: 120px; font-size: 32px; }
  .btag { width: 210px; padding: 26px 16px 16px; }
  .btag b { font-size: 16px; } .btag span { font-size: 12.5px; }
  .brow { grid-template-columns: 1fr 1fr; row-gap: 2px; font-size: 15px; }
  .brow.head span:nth-child(n+3) { display: none; }
  .brow .flap:nth-child(3), .brow .flap:nth-child(4) { font-size: 12px; color: #c9a548; }
  .brow .flap.ok:nth-child(4) { color: #6ee7a8; }
}
.langs .pin { grid-template-rows: auto auto auto; align-content: center; padding-top: 40px; }
/* cheap, compositor-only replacements for per-frame filters */
.yr-bg { filter: saturate(1.05); }
.yr-shade { position: absolute; inset: 0; background: #05080a; opacity: .5; pointer-events: none; will-change: opacity; }
.ym-shadow { position: absolute; left: 50%; top: 50%; z-index: 1; width: calc(min(76svh, 760px) * .5); height: calc(min(76svh, 760px) * .7); margin: calc(min(76svh, 760px) * -.3) 0 0 calc(min(76svh, 760px) * -.25); border-radius: 50%; background: radial-gradient(closest-side, rgba(20,40,10,.5), transparent); opacity: .25; pointer-events: none; will-change: transform, opacity; }
.ym-hands { filter: drop-shadow(0 10px 8px rgba(20,40,10,.35)); }
@media (max-width: 900px) { .ym-shadow { top: 36%; width: 22svh; height: 30svh; margin: -13svh 0 0 -11svh; } }
.yr-fg { filter: none; }
