:root {
  --night: #07090f;
  --night-2: #0e1220;
  --night-3: #161c30;
  --snow: #f4f1ea;
  --snow-dim: #9d998f;
  --gold: #e8b64a;
  --gold-hi: #ffdc85;
  --gold-lo: #9c6b18;
  --red: #d9434f;
  --line: rgba(232, 182, 74, 0.22);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hand: "Gochi Hand", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); overflow-x: clip; }
body {
  background: var(--night); color: var(--snow);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.locked { overflow: hidden; height: 100svh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--night); }
.serif { font-family: var(--serif); font-weight: 400; }
.serif i, .mega i { font-style: italic; color: var(--gold); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.hand { font-family: var(--hand); }
.dim { color: var(--snow-dim); }

/* ---------- global layers ---------- */
#gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 6; pointer-events: none; }
.grain {
  position: fixed; inset: 0; background-size: 220px; z-index: 300; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { background-position: 0 0; } 25% { background-position: -40px 30px; } 50% { background-position: 30px -50px; } 75% { background-position: -20px 60px; } }
.fallback { display: none; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
html.no-gl .fallback { display: block; }

#cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
#cursor span {
  display: grid; place-items: center; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--snow); mix-blend-mode: difference; color: var(--night);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
}
#cursor.big span { width: 72px; height: 72px; margin: -36px 0 0 -36px; mix-blend-mode: normal; background: var(--gold); }
@media (pointer: fine) { #cursor { display: block; } body, a, button, [data-cursor] { cursor: none; } }

/* ---------- GATE ---------- */
#gate {
  position: fixed; inset: 0; z-index: 200; background: #030407;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 24px; text-align: center;
  transition: opacity 1.2s ease, visibility 1.2s;
}
#gate.out { opacity: 0; visibility: hidden; }
.gate-top { position: absolute; top: 28px; left: 0; right: 0; color: var(--snow-dim); }
.gate-candle { position: relative; width: 110px; margin-top: 60px; transition: transform 1.2s var(--ease), opacity 1s; }
#gate.out .gate-candle { transform: translateY(-80px) scale(.8); opacity: 0; }
.candle3 { width: 100%; display: block; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.glow { position: absolute; left: 50%; top: -60px; width: 520px; height: 520px; translate: -50% -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 90, .22), transparent 60%); pointer-events: none; transition: opacity .6s; }
.gate-candle.out .glow { opacity: 0; }
.flame { position: absolute; left: 50%; top: -58px; width: 26px; height: 56px; margin-left: -13px; transform-origin: 50% 100%; transition: opacity .35s, transform .35s; }
.flame::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: radial-gradient(ellipse at 50% 80%, #fff 0%, #ffe89a 25%, #ffb338 55%, rgba(255, 120, 30, 0) 75%); animation: flicker .12s infinite alternate; transform-origin: 50% 100%; }
.flame::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 90, .35), transparent 65%); }
@keyframes flicker { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(.94, 1.06) rotate(2deg); } }
.gate-candle.out .flame { opacity: 0; transform: scale(.1) !important; }
.smoke { position: absolute; left: 50%; top: -30px; width: 8px; height: 8px; border-radius: 50%; background: rgba(210, 210, 210, .6); opacity: 0; }
.gate-candle.out .smoke { animation: smoke 2.2s ease-out forwards; }
.gate-candle.out .smoke:nth-of-type(2) { animation-delay: .25s; }
.gate-candle.out .smoke:nth-of-type(3) { animation-delay: .5s; }
@keyframes smoke { 0% { opacity: .7; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + 30px), -160px) scale(8); } }
.gate-title { font-size: clamp(48px, 8vw, 92px); line-height: 1; margin-top: 20px; }
.blow {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, .2); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  user-select: none; -webkit-user-select: none; touch-action: none; transition: border-color .3s, background .3s;
}
.blow:hover, .blow.holding { border-color: var(--gold); background: rgba(232, 182, 74, .06); }
.blow svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.blow circle { fill: none; stroke-width: 3; }
.ring-bg { stroke: rgba(244, 241, 234, .12); }
.ring { stroke: var(--gold); stroke-dasharray: 119.4; stroke-dashoffset: 119.4; stroke-linecap: round; }
.gate-alt { display: flex; gap: 10px; color: var(--snow-dim); flex-wrap: wrap; justify-content: center; }
.gate-alt button { color: var(--snow-dim); font-family: var(--mono); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.gate-alt button:hover { color: var(--snow); }
.gate-alt button.on { color: var(--gold); text-decoration: none; }
.gate-hehe { position: absolute; top: 34%; left: 50%; font-size: 64px; transform: translate(-50%, 0) rotate(-6deg); opacity: 0; transition: opacity .4s, transform .8s var(--ease); pointer-events: none; }
#gate.done .gate-hehe { opacity: 1; transform: translate(-50%, -30px) rotate(-6deg); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px clamp(16px, 3vw, 36px);
  mix-blend-mode: normal; opacity: 0; transform: translateY(-20px); transition: opacity 1s .6s, transform 1s .6s var(--ease);
}
body.entered .hud, body.entered .hud-count { opacity: 1; transform: none; }
.hud-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.hud-brand img { width: 30px; height: 30px; border-radius: 50%; }
.hud-brand b { color: var(--gold); font-weight: 600; }
.hud-clock { display: flex; gap: 12px; align-items: baseline; padding: 8px 16px; border-radius: 999px; background: rgba(7, 9, 15, .55); backdrop-filter: blur(10px); border: 1px solid rgba(244, 241, 234, .08); }
#clock { font-size: 15px; color: var(--snow); font-weight: 700; font-variant-numeric: tabular-nums; }
.hud-cta { justify-self: end; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: #241800; font-weight: 700; }
body.in-story .hud-count { opacity: 0 !important; }
.hud-x { justify-self: end; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #241800; transition: background .25s, transform .25s var(--ease); }
.hud-x:hover { background: var(--gold-hi); transform: rotate(-8deg) scale(1.06); }
.hud-x svg { width: 18px; height: 18px; fill: currentColor; }
.hud-count { transition: opacity .5s !important; position: fixed; left: clamp(16px, 3vw, 36px); bottom: 18px; z-index: 50; color: var(--snow-dim); opacity: 0; transition: opacity 1s 1s; }
.hud-count b { color: var(--gold); font-weight: 700; }
@media (max-width: 700px) {
  .hud { grid-template-columns: auto 1fr auto; gap: 8px; }
  .hud-brand span { display: none; }
  .hud-clock { justify-self: center; gap: 8px; padding: 7px 12px; }
  .hud-clock .dim:first-child { display: none; }
  .hud-cta { padding: 9px 12px; font-size: 11px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: grid; place-items: center; overflow: hidden; }
.dog-word { display: flex; align-items: center; font-size: min(36vw, 64vh); line-height: .8; letter-spacing: -.02em; user-select: none; }
.dog-word .ltr { display: inline-block; overflow: hidden; padding: 0 .02em .06em; }
.dog-word .ltr > span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease); }
.dog-word .ltr:last-child > span { transition-delay: .15s; }
.dog-word .ltr i { color: var(--snow); }
body.entered .dog-word .ltr > span { transform: none; }
.o-slot { display: inline-block; width: .74em; height: .74em; margin: 0 .02em; border-radius: 50%; }
.hero-q { position: absolute; max-width: 320px; opacity: 0; transition: opacity 1.2s 1s, transform 1.2s 1s var(--ease); }
.hero-q p { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; margin-top: 8px; }
.hero-q.q1 { top: 17%; left: clamp(16px, 6vw, 90px); transform: translateY(20px); }
.hero-q.q2 { bottom: 16%; right: clamp(16px, 6vw, 90px); text-align: right; transform: translateY(20px); }
body.entered .hero-q { opacity: 1; transform: none; }
.hero-cue { position: absolute; bottom: 5%; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--snow-dim); opacity: 0; transition: opacity 1s 1.6s; }
body.entered .hero-cue { opacity: 1; }
.cue-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) {
  .hero-q.q1 { top: 14%; }
  .hero-q.q2 { bottom: 20%; }
  .hero-cue { bottom: 4%; width: 90%; }
}

/* ---------- STORY STAGE ---------- */
#story { position: relative; height: 1500vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; --t: 0; }
.stamp { color: var(--gold); display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; }
.stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: rec 1s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.mega { font-size: clamp(60px, 11vw, 190px); line-height: .86; letter-spacing: -.02em; margin-top: 18px; }

/* s1 */
.s1 { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4vw; padding: 90px clamp(16px, 7vw, 120px) 80px; }
.s1-text { transform: translateY(calc((1 - min(var(--t) * 4, 1)) * 60px)); }
.likes { margin-top: 30px; font-size: 18px; color: var(--snow); display: flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.likes .heart { color: var(--red); font-size: 22px; }
.likes small { font-family: var(--hand); font-size: 22px; color: var(--snow-dim); letter-spacing: 0; }
.polaroid {
  justify-self: center; background: #f6f2e8; padding: 14px 14px 56px; width: min(420px, 80%);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
  transform: translateY(calc((1 - min(var(--t) * 3, 1)) * 60vh)) rotate(calc(10deg - var(--t) * 16deg));
  position: relative;
}
.polaroid figcaption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #2a2a2a; font-size: 24px; }
@media (max-width: 800px) {
  .s1 { grid-template-columns: 1fr; align-content: center; gap: 30px; }
  .s1 .mega { font-size: 17vw; }
  .polaroid { width: min(270px, 70%); order: -1; }
}

/* s2 */
.s2 { display: grid; place-items: center; }
.numwall { position: absolute; inset: 0; }
.numwall span { position: absolute; font-family: var(--mono); color: rgba(244, 241, 234, .55); will-change: transform; }
.big3 { position: absolute; font-size: min(120vh, 110vw); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(232, 182, 74, .5); transform: scale(calc(1.4 - var(--t) * .5)) rotate(calc(var(--t) * -8deg)); }
.s2-lines { position: relative; text-align: center; padding: 0 20px; }
.s2-lines p { opacity: 0; }
.s2-lines .l1 { font-size: clamp(38px, 6vw, 90px); line-height: 1; margin-top: 20px; opacity: clamp(0, calc((var(--t) - .12) * 8), 1); }
.s2-lines .l2 { font-size: clamp(38px, 6vw, 90px); line-height: 1; color: var(--gold); opacity: clamp(0, calc((var(--t) - .3) * 8), 1); }
.s2-lines .l3 { font-size: clamp(28px, 3.4vw, 46px); margin-top: 26px; transform: rotate(-3deg); opacity: clamp(0, calc((var(--t) - .55) * 8), 1); }

/* s3 · the North */
.s3 { background: linear-gradient(#01030a 0%, #050d22 40%, #0b1834 70%, #16264a 100%); }
.stars { position: absolute; inset: 0 0 35% 0; }
.stars i { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; animation: twinkle 3.2s ease-in-out infinite alternate; }
.stars i:nth-child(2) { animation-delay: -1.6s; animation-duration: 2.4s; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.sky { position: absolute; left: 0; top: 0; width: 100%; height: 78%; filter: blur(1.5px) saturate(1.2); mix-blend-mode: screen; opacity: calc(.55 + min(var(--t) * 3, 1) * .45); }
.moon {
  position: absolute; top: 13%; right: 11%; width: clamp(46px, 5.5vw, 84px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, rgba(0,0,0,.08) 0 9%, transparent 10%), radial-gradient(circle at 38% 64%, rgba(0,0,0,.07) 0 13%, transparent 14%), radial-gradient(circle at 34% 32%, #fffdf0, #ebe5cb 60%, #cfc6a4);
  box-shadow: 0 0 40px 8px rgba(255, 248, 215, .18), 0 0 140px 40px rgba(160, 200, 255, .08);
  transform: translateY(calc(var(--t) * -24px));
}
.winter { position: absolute; top: calc(13% + clamp(46px, 5.5vw, 84px) + 18px); right: 11%; color: #9fb0d4; text-align: right; opacity: clamp(0, calc((var(--t) - .05) * 8), 1); }
.winter b { color: var(--snow); font-size: 15px; font-variant-numeric: tabular-nums; }
.winter span { color: #6f7fa3; }
.range { position: absolute; left: 0; bottom: 0; width: 100%; will-change: transform; }
.range.r0 { height: 62%; transform: translate3d(calc(var(--t) * -1.5%), calc((1 - min(var(--t) * 4, 1)) * 50px), 0); }
.range.r1 { height: 50%; transform: translate3d(calc(var(--t) * -3%), calc((1 - min(var(--t) * 4, 1)) * 90px), 0); }
.range.r2 { height: 38%; transform: translate3d(calc(var(--t) * -5%), calc((1 - min(var(--t) * 4, 1)) * 140px), 0); }
.mist { position: absolute; left: 0; right: 0; pointer-events: none; }
.mist.m0 { bottom: 22%; height: 30%; background: linear-gradient(transparent, rgba(120, 150, 215, .1) 60%, transparent); }
.mist.m1 { bottom: 14%; height: 24%; background: linear-gradient(transparent, rgba(150, 175, 225, .1) 60%, transparent); }
.ground { position: absolute; left: 0; bottom: 0; width: 100%; height: 25%; transform: translateY(calc((1 - min(var(--t) * 4, 1)) * 60px)); }
.team {
  position: absolute; bottom: calc(13% + 20px); left: 0; display: flex; align-items: flex-end; height: clamp(54px, 9vh, 96px);
  transform: translateX(calc(-100% + var(--tm, 0) * (100vw + 100%)));
  filter: drop-shadow(0 8px 6px rgba(20, 30, 60, .35));
}
.team::after { content: ""; position: absolute; left: 4%; right: 8%; top: 52%; height: 1.5px; background: #e8b64a; opacity: .8; z-index: -1; }
.rig { height: 118%; flex-shrink: 0; margin-right: -2%; animation: rig .38s ease-in-out infinite alternate; }
@keyframes rig { to { transform: translateY(-2px) rotate(-.6deg); } }
.dogs { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.sdog { height: 78%; overflow: visible; animation: bound .36s ease-in-out infinite alternate; }
.sdog:nth-child(even) { animation-delay: -.18s; }
.sdog:last-child { height: 84%; }
@keyframes bound { from { transform: translateY(0) rotate(0); } to { transform: translateY(-9%) rotate(-3deg); } }
.sdog .fur { fill: #f6f7fa; }
.sdog .shade { fill: #d4dcea; }
.sdog .leg { fill: #eef1f7; transform-box: fill-box; transform-origin: 50% 0; animation: stride .36s ease-in-out infinite alternate; }
.sdog .leg.b { animation-delay: -.18s; }
@keyframes stride { from { transform: rotate(32deg); } to { transform: rotate(-32deg); } }
.sdog .ink { fill: #15161a; }
.sdog .tail { fill: none; stroke: #f6f7fa; stroke-width: 5; stroke-linecap: round; }
.s3-text { position: absolute; top: 12%; left: clamp(16px, 7vw, 120px); right: 16px; max-width: 820px; }
.s3 .mega { text-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.facts { list-style: none; display: flex; gap: 0; margin-top: 30px; }
.facts li { padding: 0 28px; border-left: 1px solid rgba(232, 182, 74, .35); opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s var(--ease); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts span { display: block; color: #8fa2c8; text-transform: uppercase; }
.facts b { display: block; font-weight: 400; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; color: var(--snow); margin-top: 4px; }
.s3.f1 .facts li:nth-child(1), .s3.f2 .facts li:nth-child(2), .s3.f3 .facts li:nth-child(3) { opacity: 1; transform: none; }
.smile { max-width: 50ch; margin-top: 26px; font-size: clamp(15px, 1.2vw, 18px); color: #b9c4db; opacity: clamp(0, calc((var(--t) - .42) * 7), 1); }
.smile em { color: var(--snow); font-style: italic; font-family: var(--serif); font-size: 1.2em; }
.north-hand { position: absolute; right: 9%; bottom: 36%; text-align: right; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.1; color: var(--snow); transform: rotate(-3deg); text-shadow: 0 2px 12px rgba(0, 0, 30, .6); opacity: clamp(0, calc((var(--t) - .55) * 7), 1); }
@media (max-width: 700px) {
  .s3-text { top: 11%; }
  .s3 .mega { font-size: 14vw; }
  .facts { flex-direction: column; gap: 10px; margin-top: 20px; }
  .facts li, .facts li:first-child { padding: 0 0 0 12px; border-left: 1px solid rgba(232, 182, 74, .35); }
  .facts b { font-size: 24px; }
  .smile { display: none; }
  .moon { top: 31%; right: 9%; width: 52px; } .winter { right: 9%; top: calc(31% + 66px); font-size: 10px; } .winter b { font-size: 13px; }
  .north-hand { bottom: 32%; right: 6%; font-size: 21px; }
  .ground { height: 22%; } .team { bottom: calc(10% + 30px); height: 48px; }
}

/* s4 */
.s4 { background: radial-gradient(circle at 50% 58%, #2a1a06 0%, #0b0806 55%, #050404 100%); }
.ember { position: absolute; left: 50%; top: 58%; width: 80vmin; height: 80vmin; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 40, .35), transparent 60%); filter: blur(30px); animation: emb 3s ease-in-out infinite alternate; }
@keyframes emb { to { opacity: .6; scale: 1.1; } }
.s4-top { position: absolute; top: 11%; left: 0; right: 0; text-align: center; }
.s4-top .mega { font-size: clamp(48px, 8vw, 130px); }
.anchor-forge { position: absolute; left: 50%; top: 60%; width: min(40vh, 62vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, #fff6d8, rgba(255, 200, 90, .6) 30%, transparent 70%); opacity: 0; pointer-events: none; }
.shock { position: absolute; left: 50%; top: 60%; width: min(40vh, 62vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 3px solid var(--gold-hi); opacity: 0; }
.s4.impact .flash { animation: flash .9s ease-out; }
.s4.impact .shock { animation: shock 1.1s var(--ease); }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes shock { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(3.2); border-width: 1px; } }
.spec { position: absolute; max-width: 200px; color: var(--snow-dim); opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease); }
.spec b { display: block; color: var(--gold); margin-bottom: 4px; font-weight: 700; }
.spec::before { content: ""; position: absolute; width: 9vw; height: 1px; background: var(--line); top: 7px; }
.sp1 { top: 42%; left: 9%; } .sp1::before { left: calc(100% + 12px); }
.sp2 { top: 42%; right: 9%; text-align: right; } .sp2::before { right: calc(100% + 12px); }
.sp3 { top: 74%; left: 9%; } .sp3::before { left: calc(100% + 12px); }
.sp4 { top: 74%; right: 9%; text-align: right; } .sp4::before { right: calc(100% + 12px); }
.s4.specs .spec { opacity: 1; transform: none; }
.s4.specs .sp2 { transition-delay: .1s; } .s4.specs .sp3 { transition-delay: .2s; } .s4.specs .sp4 { transition-delay: .3s; }
@media (max-width: 800px) {
  .spec { max-width: 140px; font-size: 10px; } .spec::before { display: none; }
  .sp1, .sp2 { top: auto; bottom: 170px; } .sp3, .sp4 { top: auto; bottom: 100px; }
  .sp1, .sp3 { left: 16px; } .sp2, .sp4 { right: 16px; }
  .anchor-forge, .shock { top: 46%; }
}

/* s5 */
.s5 { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
.s5-intro { font-size: clamp(30px, 4vw, 60px); margin-top: 14px; }
.spell { position: relative; display: flex; font-size: min(30vw, 44vh); line-height: .9; margin: 2vh 0; }
.spell span { display: inline-block; opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .4s, transform .6s var(--ease), filter .4s; }
.spell span.on { opacity: 1; transform: none; }
.spell .e { position: absolute; left: 100%; color: var(--snow-dim); }
.spell .e.bite { -webkit-mask-image: radial-gradient(circle at 100% 32%, transparent 24%, #000 25%); mask-image: radial-gradient(circle at 100% 32%, transparent 24%, #000 25%); }
.spell .e.gone { opacity: 0; transform: translate(12vw, 50vh) rotate(70deg); transition: opacity 1.2s ease-in, transform 1.2s ease-in; }
.s5-hehe { font-size: clamp(24px, 3vw, 40px); transform: rotate(-2deg); opacity: 0; transition: opacity .5s; }
.s5.hehe .s5-hehe { opacity: 1; }
.rubber {
  position: absolute; right: 12%; top: 18%; font-size: clamp(36px, 5vw, 72px); color: var(--gold);
  border: 4px solid var(--gold); padding: 4px 24px; border-radius: 10px;
  opacity: 0; transform: rotate(-12deg) scale(2.6); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
  box-shadow: inset 0 0 0 3px transparent;
}
.s5.stamped .rubber { opacity: .95; transform: rotate(-12deg) scale(1); }
@media (max-width: 700px) { .rubber { right: 8%; top: auto; bottom: 16%; } }

/* s6 */
.s6 { background: radial-gradient(ellipse at 50% 100%, #1b2440, transparent 60%); }
.pack {
  position: absolute; top: 44%; left: 0; display: flex; align-items: center; gap: 2.2vh; height: 14vh;
  transform: translateX(calc(-100% + var(--pk, 0) * (100vw + 100%))) translateY(-50%);
}
.pack .rope { position: absolute; left: 0; right: 60px; top: 55%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px); }
.pup {
  position: relative; width: 12vh; height: 12vh; border-radius: 50%; flex-shrink: 0;
  background: url(logo.jpg) 50% 42% / 175% no-repeat; border: 2px solid var(--gold);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
  animation: gallop .38s ease-in-out infinite alternate;
}
.pup:nth-child(odd) { animation-delay: .19s; }
.pup:nth-child(3n) { animation-duration: .33s; }
@keyframes gallop { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-14px) rotate(4deg); } }
.sled { width: 18vh; flex-shrink: 0; order: -1; transform: scaleX(-1); }
.s6-pack-caption { position: absolute; top: 62%; left: 0; right: 0; text-align: center; font-size: clamp(24px, 3vw, 40px); opacity: calc(1 - clamp(0, calc((var(--t) - .38) * 8), 1)); }
.s6-final { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 16px; opacity: clamp(0, calc((var(--t) - .5) * 6), 1); }
.s6-final .anchor-final { width: min(34vh, 60vw); aspect-ratio: 1; border-radius: 50%; margin: 3vh 0 1vh; }
.s6-final .mega { font-size: clamp(52px, 9vw, 150px); margin-top: 0; }

/* ---------- SECTIONS ---------- */
.sec-intro { max-width: 760px; margin: 0 auto 60px; text-align: center; padding: 0 16px; }
.sec-intro h2 { font-size: clamp(48px, 7vw, 110px); line-height: .92; margin-top: 16px; }
.sec-intro p { color: var(--snow-dim); margin-top: 18px; font-size: clamp(16px, 1.3vw, 19px); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- CARD ---------- */
.card-sec { padding: 22vh 16px 16vh; position: relative; z-index: 7; }
.card-wrap { perspective: 2200px; display: flex; justify-content: center; }
.card {
  position: relative; width: min(1000px, 96vw); aspect-ratio: 2 / 1.25;
  transform: translateX(-25%) rotateX(8deg); transform-style: preserve-3d; transition: transform 1.4s var(--ease);
}
.card.open { transform: none; }
.card-inside { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.half { background: #f6f1e4; color: #2b2419; padding: clamp(18px, 3vw, 44px); position: relative; overflow: hidden; }
.half.left { visibility: hidden; }
.half.right { border-radius: 0 10px 10px 0; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9); background: #f6f1e4 linear-gradient(90deg, rgba(0, 0, 0, .08), transparent 8%); display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 1.4vw, 18px); }
.note { font-size: clamp(18px, 2.2vw, 30px); line-height: 1.25; color: #2b2419; }
.cover { position: absolute; top: 0; right: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.4s var(--ease); }
.card.open .cover { transform: rotateY(-180deg); }
.cover-front, .cover-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 10px 10px 0; overflow: hidden; }
.cover-front {
  background: #fbf8f2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3%;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9); border: 6px solid var(--red);
}
.cover-stars { position: absolute; inset: 0; background-image: radial-gradient(#4a6fc4 1.6px, transparent 2px), radial-gradient(var(--red) 1.6px, transparent 2px); background-size: 36px 36px; background-position: 0 0, 18px 18px; opacity: .45; }
.cover-front img { position: relative; width: 48%; border-radius: 50%; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
.cover-title { position: relative; font-size: clamp(26px, 4vw, 56px); line-height: .95; text-align: center; color: #2b2419; }
.cover-title i { color: var(--red) !important; }
.cover-hint { position: relative; color: #7a7263; font-size: 11px; }
.cover-back { background: #f6f1e4; transform: rotateY(180deg); border-radius: 10px 0 0 10px; padding: clamp(18px, 3vw, 44px); box-shadow: inset -30px 0 40px -30px rgba(0, 0, 0, .25); }
.nrow { display: grid; grid-template-columns: clamp(64px, 8vw, 96px) 1fr; column-gap: 14px; align-items: baseline; border-bottom: 1px dashed rgba(43, 36, 25, .2); padding-bottom: clamp(6px, 1vw, 12px); }
.nrow:last-child { border-bottom: none; }
.nrow .lbl { font-family: var(--mono); font-size: clamp(9px, 1vw, 11px); letter-spacing: .12em; color: #8a8171; grid-row: span 2; }
.nrow .real { font-family: var(--mono); font-size: clamp(11px, 1.4vw, 16px); position: relative; justify-self: start; color: #5a5042; }
.nrow .real::after { content: ""; position: absolute; left: -4px; right: -4px; top: 55%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transform: scaleX(0) rotate(-2deg); }
.nrow .dog { font-family: var(--hand); font-size: clamp(18px, 2.4vw, 32px); color: #1d3f9a; line-height: 1.05; clip-path: inset(0 100% 0 0); transition: clip-path 1s ease; }
.card.open .nrow .real::after { transform: scaleX(1) rotate(-2deg); }
.card.open .nrow .dog { clip-path: inset(0 0 0 0); }
.nrow .copy-ca { font-family: var(--mono); font-size: 10px; color: var(--red); text-decoration: underline; margin-left: 8px; }
@media (max-width: 700px) {
  .card { aspect-ratio: auto; height: 118vw; width: 92vw; transform: rotateX(6deg); }
  .card.open { transform: none; }
  .card-inside { grid-template-columns: 1fr; }
  .half.left { display: none; }
  .half.right { border-radius: 10px; }
  .cover { width: 100%; transform-origin: top center; }
  .card.open .cover { transform: rotateX(180deg); opacity: 0; transition: transform 1.4s var(--ease), opacity .4s .9s; }
  .cover-front { border-radius: 10px; }
}

/* ---------- ROUTE ---------- */
.route-sec { padding: 14vh 16px 10vh; position: relative; z-index: 7; }
.route { position: relative; width: min(1000px, 100%); height: 1600px; margin: 0 auto; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail path { fill: none; vector-effect: non-scaling-stroke; }
.trail-bg { stroke: rgba(244, 241, 234, .12); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.trail-fg { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(232, 182, 74, .7)); }
.sled-dot { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: url(logo.jpg) center / cover; border: 2px solid var(--gold); box-shadow: 0 0 30px rgba(232, 182, 74, .5); z-index: 2; left: 25%; top: 60px; }
.stop { position: absolute; width: min(400px, 42%); transform: translateY(-50%); opacity: .25; transition: opacity .6s, transform .6s var(--ease); }
.stop.on { opacity: 1; }
.stop .sign { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #241800; background: var(--gold); padding: 5px 10px; border-radius: 4px; }
.stop .sign s { opacity: .55; margin-right: 6px; }
.stop h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; margin: 14px 0 12px; }
.stop p { color: var(--snow-dim); }
.stop.l { left: calc(25% + 70px); }
.stop.r { right: calc(25% + 70px); text-align: right; }
@media (max-width: 800px) {
  .route { height: auto; padding-left: 48px; display: flex; flex-direction: column; gap: 70px; }
  .trail { display: none; }
  .route::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold), rgba(232, 182, 74, .1)); }
  .sled-dot { display: none; }
  .stop, .stop.l, .stop.r { position: relative; left: auto; right: auto; top: auto !important; width: 100%; transform: none; text-align: left; }
}

/* ---------- FINALE ---------- */
.finale { overflow: hidden; position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16vh 16px 12vh; z-index: 7; }
.finale-glow { position: absolute; left: 50%; top: 30%; width: 120vmin; height: 120vmin; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 180, 70, .25), transparent 60%); opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.finale.lit .finale-glow { opacity: 1; }
.finale-candle { position: relative; width: 96px; margin-bottom: 30px; }
.finale-candle .flame { opacity: 0; transform: scale(.2); }
.finale.lit .finale-candle .flame { opacity: 1; transform: none; }
.finale-candle:not(.x):hover .candle3 { transform: rotate(-4deg); }
.finale-candle .candle3 { transition: transform .3s; }
.finale-title { font-size: clamp(52px, 9vw, 150px); line-height: .9; }
.finale-sub { color: var(--snow-dim); margin: 18px 0 38px; font-size: clamp(16px, 1.4vw, 20px); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 16px 26px; border-radius: 999px; border: 1px solid rgba(244, 241, 234, .25); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { border-color: var(--gold); transform: translateY(-3px); }
.btn.gold { background: var(--gold); color: #241800; border-color: var(--gold); font-weight: 700; }
.btn.gold:hover { background: var(--gold-hi); }
.ca { margin-top: 30px; display: inline-flex; gap: 12px; align-items: center; padding: 12px 18px; border: 1px dashed var(--line); border-radius: 12px; max-width: 94vw; }
.ca #caText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca .copy { color: var(--gold); }
.ca:hover { border-color: var(--gold); }


.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% calc(100% + 60px); visibility: hidden; background: var(--gold); color: #241800; padding: 12px 20px; border-radius: 999px; font-family: var(--mono); font-size: 13px; z-index: 250; transition: translate .35s cubic-bezier(.2, 1.4, .4, 1); }
.toast.show { translate: -50% 0; visibility: visible; }
.floaty { position: fixed; font-family: var(--hand); font-size: 34px; color: var(--snow); pointer-events: none; z-index: 260; animation: floatUp 1.6s ease-out forwards; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
@keyframes floatUp { from { opacity: 1; transform: translate(-50%, 0) rotate(var(--r)); } to { opacity: 0; transform: translate(-50%, -150px) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  .grain, .pup, .cue-line, .sdog, .sdog .leg, .rig, .stars i { animation: none !important; }
}

.taped { position: absolute; right: 9%; bottom: 9%; width: 42%; background: #fff; padding: 6px 6px 22px; transform: rotate(5deg); box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.taped::before { content: ""; position: absolute; left: 30%; top: -10px; width: 40%; height: 20px; background: rgba(232, 182, 74, .55); transform: rotate(-4deg); }
.taped img { width: 100%; display: block; }
.taped span { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-family: var(--hand); font-size: clamp(11px, 1.2vw, 15px); color: #2b2419; }

/* ---------- RECEIPTS (Elon's tweets) ---------- */
.receipts { position: relative; z-index: 7; padding: 22vh 16px 8vh; }
.thread { position: relative; width: min(600px, 100%); margin: 0 auto; perspective: 1400px; }
.tw {
  display: block; position: relative; background: #000; border: 1px solid #2f3336; border-radius: 18px; padding: 16px 18px 12px;
  color: #e7e9ea; font-family: -apple-system, "Segoe UI", system-ui, sans-serif; text-align: left;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(232, 182, 74, 0);
  opacity: 0; transform: translateY(60px) rotateX(12deg);
  transition: opacity 1s, transform 1s var(--ease), box-shadow .3s, border-color .3s;
}
.tw.in { opacity: 1; transform: none; }
.tw:hover { border-color: rgba(232, 182, 74, .6); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 50px -10px rgba(232, 182, 74, .35); }
.tw1.in { transform: rotate(-1.2deg); } .tw2.in { transform: rotate(1deg); }
.tw1.in:hover, .tw2.in:hover { transform: rotate(0) translateY(-4px); }
.tw-head { display: flex; align-items: center; gap: 10px; }
.tw-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3a4150, #111); }
.tw-who { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.tw-name { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 3px; }
.tw-name .badge { width: 17px; height: 17px; }
.tw-handle { color: #71767b; font-size: 15px; }
.tw .xlogo { width: 20px; height: 20px; fill: #e7e9ea; flex-shrink: 0; }
.tw-text { font-size: 23px; line-height: 1.3; margin: 12px 0; letter-spacing: -.01em; }
.tw-text.big { font-size: clamp(28px, 4vw, 38px); font-weight: 600; }
.tw-media { border: 1px solid #2f3336; border-radius: 16px; overflow: hidden; }
.tw-media img { width: 100%; display: block; }
.tw-time { color: #71767b; font-size: 15px; padding: 14px 0 12px; border-bottom: 1px solid #2f3336; }
.tw-time span { font-size: 12px; }
.tw-stats { display: flex; align-items: center; gap: 26px; padding-top: 12px; color: #71767b; font-size: 14px; }
.tw-stats span { display: inline-flex; align-items: center; gap: 6px; }
.tw-stats svg { width: 18px; height: 18px; }
.tw-stats .lk { color: #f91880; }
.tw-stats .tw-open { margin-left: auto; color: var(--gold); font-family: var(--mono); font-size: 12px; }
.tw-reply { color: #71767b; font-size: 12px; margin-bottom: 10px; letter-spacing: 0; }
.tw-reply b { color: #1d9bf0; font-weight: 400; }
.gap { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.gap-line { width: 2px; height: 48px; background: linear-gradient(var(--gold), rgba(232, 182, 74, .2)); }
.gap-line:last-child { background: linear-gradient(rgba(232, 182, 74, .2), var(--gold)); }
.gap-pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); background: rgba(232, 182, 74, .08); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 30px -6px rgba(232, 182, 74, .5); }
.gap-pill b { font-size: 16px; color: var(--snow); font-variant-numeric: tabular-nums; }
.note { position: absolute; font-size: 28px; line-height: 1.05; color: var(--snow); opacity: 0; transition: opacity .8s .5s; pointer-events: none; }
.note.in { opacity: 1; }
.note::after { font-size: 34px; color: var(--gold); position: absolute; }
.n1 { left: calc(100% + 30px); top: 38%; transform: rotate(6deg); width: 180px; }
.n1::after { content: "←"; left: -40px; top: 4px; }
.n2 { right: calc(100% + 30px); bottom: 70px; transform: rotate(-6deg); width: 160px; text-align: right; }
.n2::after { content: "→"; right: -40px; top: 4px; }
@media (max-width: 1000px) {
  .note { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; text-align: center; margin: 14px 0 0; font-size: 24px; }
  .note::after { display: none; }
}
a.hero-q:hover .dim { color: var(--gold); }
