/* B-SIDE STAGE landing — static, no external requests */
@font-face { font-family: "RoadRage"; src: url("assets/fonts/RoadRage.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bebas"; src: url("assets/fonts/BebasNeue.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DoHyeon"; src: url("assets/fonts/DoHyeon-sub.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #0d0c0a;
  --ink-2: #17150f;
  --paper: #f3ecd8;
  --yellow: #ffd21f;
  --yellow-2: #ffb800;
  --orange: #ff6a1a;
  --blood: #b3121b;
  --cyan: #2ff3ff;
  --green: #5cf08a;
  --muted: #b9b0a0;
  --radius: 14px;
  --display: "RoadRage", "Bebas", Impact, sans-serif;
  --label: "Bebas", "DoHyeon", Impact, sans-serif;
  --ko: "DoHyeon", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mx: 0; --my: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--ko); font-size: 18px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; color: var(--yellow); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(14px, 3vw, 36px);
  background: linear-gradient(to bottom, rgba(13,12,10,.85), rgba(13,12,10,0));
  transition: background .3s;
}
.topbar.solid { background: rgba(13,12,10,.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,210,31,.25); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-splat { width: 30px; height: 30px; background: url("favicon.svg") center / contain no-repeat; transition: transform .3s cubic-bezier(.2,1.8,.4,1); }
.brand:hover .brand-splat { transform: rotate(-15deg) scale(1.15); }
.brand-text { font-family: var(--display); font-size: 26px; letter-spacing: .02em; color: var(--yellow); }
.topnav { display: flex; gap: 22px; }
.topnav a { text-decoration: none; font-size: 17px; color: var(--muted); transition: color .2s; }
.topnav a:hover { color: var(--yellow); }
.sound-toggle {
  display: flex; align-items: center; gap: 6px; font-family: var(--label); font-size: 16px; letter-spacing: .08em;
  background: transparent; color: var(--muted); border: 1px solid rgba(243,236,216,.25); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.sound-toggle[aria-pressed="true"] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.snd-ic { width: 14px; height: 14px; background: currentColor; clip-path: polygon(0 35%, 35% 35%, 75% 0, 75% 100%, 35% 65%, 0 65%); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--yellow); position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ko); font-size: 20px; text-decoration: none; color: var(--ink); background: var(--bg);
  padding: 14px 26px; border: 0; border-radius: 10px; cursor: pointer;
  box-shadow: 0 6px 0 #8a6a00, 0 14px 30px rgba(255,200,0,.25);
  transition: transform .15s cubic-bezier(.3,1.6,.5,1), box-shadow .15s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg) scale(1.04); box-shadow: 0 9px 0 #8a6a00, 0 20px 40px rgba(255,200,0,.4); }
.btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 #8a6a00; }
.btn-mini { font-size: 16px; padding: 8px 14px; box-shadow: 0 4px 0 #8a6a00; }
.btn-ghost { --bg: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(243,236,216,.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); color: var(--yellow); }
.btn-play {
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.0) 0 18px, rgba(0,0,0,.09) 18px 36px);
  background-size: 51px 51px; animation: tapeMove 1.2s linear infinite;
}
.btn-play::after {
  content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 2px solid var(--yellow);
  opacity: 0; animation: ping 2.2s ease-out infinite;
}
.btn-ic { width: 0; height: 0; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.btn-huge { font-size: clamp(22px, 3.4vw, 34px); padding: 20px 40px; }
@keyframes tapeMove { to { background-position: 51px 0; } }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 96px 20px 80px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)); filter: saturate(1.15) contrast(1.05); }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 45%, rgba(13,12,10,.25), rgba(13,12,10,.85) 70%),
  linear-gradient(to bottom, rgba(13,12,10,.2), rgba(13,12,10,.95)); }
.scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; pointer-events: none; }
.hero-float { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fl { position: absolute; display: block; background: var(--yellow);
  -webkit-mask: url("assets/img/splat1.webp") center / contain no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  mask: url("assets/img/splat1.webp") center / contain no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  transform: translate(calc(var(--mx) * var(--d, 1) * 30px), calc(var(--my) * var(--d, 1) * 30px)) rotate(var(--r, 0deg));
  opacity: .55; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.fl-a { --d: .6; --r: -20deg; width: 180px; height: 120px; left: 6%; top: 18%; }
.fl-b { --d: 1.2; --r: 30deg; width: 120px; height: 90px; right: 8%; top: 22%; background: var(--orange); }
.fl-c { --d: .9; --r: 160deg; width: 220px; height: 150px; left: 10%; bottom: 10%; background: var(--cyan); opacity: .25; }
.fl-d { --d: 1.6; --r: 80deg; width: 140px; height: 100px; right: 12%; bottom: 16%; background: var(--blood); opacity: .6;
  -webkit-mask-image: url("assets/img/splat2.webp"), radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: url("assets/img/splat2.webp"), radial-gradient(closest-side, #000 55%, transparent 100%); }

.hero-inner { text-align: center; max-width: 900px; }
.kicker { font-family: var(--ko); color: var(--muted); letter-spacing: .1em; margin: 0 auto 8px; width: fit-content; display: flex; align-items: center; gap: 8px; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 10px #ff2a2a; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.logo { position: relative; display: inline-block; margin: 0 auto; padding: 20px 50px 10px; line-height: .9; }
.logo-splat { position: absolute; inset: -30% -22% -10% -22%; background: var(--yellow); z-index: -1; opacity: .9;
  -webkit-mask: url("assets/img/splat1.webp") center / contain no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  mask: url("assets/img/splat1.webp") center / contain no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  animation: splatIn .55s .15s cubic-bezier(.2,1.6,.4,1) both; }
.logo::before { content: ""; position: absolute; left: -8%; right: -8%; top: 4%; height: 62%; z-index: -1; background: var(--yellow);
  -webkit-mask: url("assets/img/brush01.webp") center / 100% 100% no-repeat; mask: url("assets/img/brush01.webp") center / 100% 100% no-repeat;
  transform: rotate(-4deg); animation: brushIn .45s cubic-bezier(.2,1.2,.4,1) both; filter: drop-shadow(0 10px 16px rgba(0,0,0,.6)); }
@keyframes brushIn { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.logo-b { display: block; font-family: var(--display); font-size: clamp(76px, 15vw, 190px); color: var(--ink); letter-spacing: .01em;
  transform: rotate(-4deg); animation: slam .5s cubic-bezier(.2,1.4,.4,1) both; }
.logo-stage { display: inline-block; margin-top: -4px; transform: rotate(-4deg) translateX(18%); animation: slam .5s .25s cubic-bezier(.2,1.4,.4,1) both; }
.logo-stage span { display: inline-block; font-family: var(--display); font-size: clamp(36px, 6vw, 72px); color: #fff; padding: 4px 22px 0;
  background: var(--ink); border: 4px solid var(--ink);
  border-image: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--ink) 12px 24px) 8; }
@keyframes slam { 0% { opacity: 0; transform: rotate(-4deg) scale(2.6); filter: blur(6px); } 70% { opacity: 1; filter: blur(0); } 100% { transform: rotate(-4deg) scale(1); } }
.logo-stage { animation-name: slamStage; }
@keyframes slamStage { 0% { opacity: 0; transform: rotate(-4deg) translateX(18%) scale(2.6); } 100% { opacity: 1; transform: rotate(-4deg) translateX(18%) scale(1); } }
@keyframes splatIn { 0% { transform: scale(.1) rotate(-30deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.hero.shake { animation: shake .35s .3s both; }
@keyframes shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }

.hero-line { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.15; margin: 26px 0 10px; text-shadow: 0 4px 20px rgba(0,0,0,.8); }
.hero-sub { color: #e2d9c4; font-size: clamp(17px, 1.8vw, 21px); margin: 0 auto 28px; max-width: 34em; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin: 16px 0 0; font-size: 15px; color: var(--muted); letter-spacing: .06em; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(243,236,216,.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--yellow); border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- hazard tape marquee ---------- */
.tape-wrap { position: relative; z-index: 2; overflow: hidden; margin-top: -50px; padding: 24px 0; }
.tape { position: relative; overflow: hidden; transform: rotate(-2deg) scaleX(1.03);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 26px, #1a1a1a 26px 52px); padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.tape-track { display: flex; width: max-content; gap: 40px; padding: 8px 0; background: var(--yellow); animation: marquee 26s linear infinite; }
.tape-track span, .tape-track b { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 40px); color: var(--ink); white-space: nowrap; }
.tape-track b { font-family: var(--ko); }
.tape-track span::after, .tape-track b::after { content: "✦"; margin-left: 40px; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; padding: clamp(80px, 11vw, 150px) clamp(16px, 4vw, 48px); }
.sec-head { max-width: 860px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.eyebrow { font-family: var(--label); letter-spacing: .25em; color: var(--yellow); margin: 0 0 10px; font-size: 18px; }
.sec-head h2 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.12; }
.lead { color: #d8cfba; font-size: clamp(17px, 1.7vw, 20px); margin: 18px auto 0; max-width: 36em; }

.what { background: radial-gradient(ellipse at top, #241f14, var(--ink) 60%); }
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); max-width: 1200px; margin: 0 auto; }
.beat { background: var(--ink-2); border-radius: var(--radius); padding: 12px 12px 22px; border: 1px solid rgba(255,210,31,.14); }
.beat-shot { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.beat-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.beat:hover .beat-shot img { transform: scale(1.08); }
.beat-tag { display: inline-block; margin: 16px 8px 4px; font-family: var(--display); font-size: 22px; color: var(--ink); background: var(--yellow); padding: 2px 10px; transform: rotate(-3deg); }
.beat:nth-child(2) .beat-tag { background: var(--green); }
.beat:nth-child(3) .beat-tag { background: var(--orange); }
.beat h3 { font-size: 34px; margin: 4px 8px 6px; }
.beat p:last-child { margin: 0 8px; color: #d0c7b2; }

/* tilt + reveal */
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .25s; will-change: transform; }
.tilt:hover { box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,210,31,.4); }
.reveal { opacity: 0; transform: translateY(40px) scale(.97); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.8,.2,1) var(--delay, 0s), transform .7s cubic-bezier(.2,1.3,.3,1) var(--delay, 0s); }

/* tools */
.tools { background: var(--ink); }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.tool { position: relative; padding: 26px 22px; border-radius: var(--radius); background: linear-gradient(160deg, #1f1b12, #121110); border: 1px solid rgba(243,236,216,.12); overflow: hidden; cursor: default; }
.tool::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(var(--glow, rgba(47,243,255,.35)), transparent 70%); opacity: 0; transition: opacity .3s; }
.tool:hover::before, .tool:focus-visible::before { opacity: 1; }
.tool:nth-child(1) { --glow: rgba(47,243,255,.45); --c: var(--cyan); }
.tool:nth-child(2) { --glow: rgba(92,160,255,.45); --c: #6fb0ff; }
.tool:nth-child(3) { --glow: rgba(200,120,255,.45); --c: #c98bff; }
.tool:nth-child(4) { --glow: rgba(255,150,40,.45); --c: var(--orange); }
.tool svg { width: 58px; height: 58px; fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.2,1.8,.4,1); filter: drop-shadow(0 0 8px var(--c)); }
.tool:hover svg { transform: rotate(-12deg) scale(1.2); }
.tool h3 { font-family: var(--label); font-size: 32px; letter-spacing: .05em; margin-top: 14px; color: var(--c); }
.tool h3 small { display: block; font-family: var(--ko); font-size: 17px; color: var(--paper); letter-spacing: 0; }
.tool p { margin: 8px 0 0; color: #cfc6b0; }

/* erase mini game */
.erase { background: linear-gradient(to bottom, var(--ink), #1a160d 50%, var(--ink)); }
.erase-stage { position: relative; max-width: 1000px; margin: 0 auto; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 3px var(--yellow); touch-action: none; }
.erase-under, .erase-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.erase-canvas { cursor: crosshair; }
.erase-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(13,12,10,.8); padding: 10px 18px; border-radius: 999px; font-size: 18px; pointer-events: none; display: flex; gap: 10px; align-items: center; transition: opacity .3s; animation: bob 1.4s ease-in-out infinite; }
.erase-hint .hand { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(255,210,31,.3); }
.erase.touched .erase-hint { opacity: 0; }
@keyframes bob { 50% { transform: translate(-50%, -62%); } }
.erase-stamp { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.erase-stamp span { font-family: var(--display); font-size: clamp(36px, 8vw, 96px); color: var(--ink); background: var(--green); padding: 6px 28px; transform: rotate(-8deg) scale(0); border: 6px solid var(--ink); box-shadow: 0 10px 0 rgba(0,0,0,.4); }
.erase.done .erase-stamp span { animation: stamp .5s cubic-bezier(.2,1.8,.4,1) forwards; }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(3); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
.erase-meter { position: absolute; left: 16px; right: 16px; top: 14px; height: 10px; border-radius: 6px; background: rgba(0,0,0,.6); overflow: hidden; }
.erase-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .15s; }
.erase-reset { position: absolute; right: 14px; bottom: 14px; font-size: 16px; padding: 8px 14px; background: rgba(13,12,10,.7); }

/* clips */
.clips { background: var(--ink); }
.phones { display: flex; justify-content: center; gap: clamp(16px, 3vw, 44px); max-width: 1100px; margin: 0 auto; }
.phone { margin: 0; flex: 0 1 280px; }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; border: 8px solid #222; box-shadow: 0 0 0 2px #444, 0 30px 60px rgba(0,0,0,.6); background: #000; }
.phone:nth-child(1) { transform: rotate(-4deg); }
.phone:nth-child(3) { transform: rotate(4deg); }
.phone:nth-child(2) { margin-top: 40px; }
.phone.in:nth-child(1) { transform: rotate(-4deg); }
.phone.in:nth-child(3) { transform: rotate(4deg); }
.phone figcaption { text-align: center; margin-top: 14px; font-size: 19px; }

/* endings */
.endings { background: url("assets/img/backdrop.webp") center / cover no-repeat, var(--ink); background-blend-mode: luminosity; }
.endings::before { content: ""; position: absolute; inset: 0; background: rgba(13,12,10,.86); }
.endings > * { position: relative; }
.end-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 1200px; margin: 0 auto; }
.end-grid > .end { flex: 0 1 270px; }
.end { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 3px solid var(--paper); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.end:nth-child(odd) { --rot: -1.5deg; } .end:nth-child(even) { --rot: 1.5deg; }
.end.in { transform: rotate(var(--rot)); }
.end img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.end:hover img { transform: scale(1.07); }
.end figcaption, .end-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.9)); font-size: 16px; color: var(--paper); }
.end b, .end-cap b { display: block; font-family: var(--label); font-weight: 400; font-size: 24px; color: var(--yellow); letter-spacing: .04em; }
.end-secret { padding: 0; cursor: pointer; font: inherit; color: inherit; perspective: 900px; background: transparent; aspect-ratio: 3 / 2; border-color: var(--yellow); }
.end-face { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .7s cubic-bezier(.3,1.4,.4,1); text-align: left; }
.end-face img { height: 100%; }
.end-back { transform: rotateY(180deg); }
.end-secret.flipped .end-front { transform: rotateY(-180deg); }
.end-secret.flipped .end-back { transform: rotateY(0); }
.end-front::after { content: "?"; position: absolute; top: 10px; right: 14px; font-family: var(--display); font-size: 40px; color: var(--yellow); animation: blink 1.2s steps(2) infinite; }

/* trailer */
.trailer { background: var(--ink); }
.trailer-box { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 3px #2b2618; }
.trailer-video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.trailer-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 0; cursor: pointer; }
.trailer-play span { width: 110px; height: 110px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255,210,31,.6); animation: pulse 1.8s infinite; transition: transform .2s; }
.trailer-play span::before { content: ""; margin-left: 8px; border-left: 34px solid var(--ink); border-top: 22px solid transparent; border-bottom: 22px solid transparent; }
.trailer-play:hover span { transform: scale(1.12) rotate(-6deg); }
.trailer.playing .trailer-play { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 30px rgba(255,210,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,31,0); } }

/* journey */
.journey { background: linear-gradient(to bottom, var(--ink), #15120b); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: repeating-linear-gradient(to bottom, var(--yellow) 0 18px, #222 18px 36px); border-radius: 3px; }
.tl { position: relative; width: calc(50% - 40px); padding: 20px 22px; margin-bottom: 26px; border-radius: 12px; background: linear-gradient(160deg, #24201a, #16140f); border: 2px solid rgba(243,236,216,.18); }
.tl:nth-child(odd) { margin-right: auto; }
.tl:nth-child(even) { margin-left: auto; }
.tl::after { content: ""; position: absolute; top: 28px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.tl:nth-child(odd)::after { right: -52px; }
.tl:nth-child(even)::after { left: -52px; }
.tl-scene { display: inline-block; font-family: var(--label); letter-spacing: .12em; font-size: 16px; color: var(--ink); background: var(--paper); padding: 2px 10px; border-radius: 3px; }
.tl h3 { font-size: 28px; margin: 10px 0 4px; }
.tl p { margin: 0; color: #d5ccb6; }
.tl-hot { border-color: var(--yellow); box-shadow: 0 0 40px rgba(255,210,31,.25); }
.tl-hot .tl-scene { background: var(--yellow); }
.tl-next { border-style: dashed; border-color: var(--cyan); }
.tl-next .tl-scene { background: var(--cyan); }
.tl-next::after { background: var(--cyan); box-shadow: 0 0 0 3px var(--cyan), 0 0 20px var(--cyan); animation: blink 1s steps(2) infinite; }

/* final */
.final { text-align: center; overflow: hidden; padding-bottom: clamp(100px, 12vw, 160px); }
.final-bg { position: absolute; inset: 0; background: url("assets/img/title-screen.webp") center / cover no-repeat; filter: blur(3px) brightness(.26) saturate(1.2); transform: scale(1.1); }
.final > *:not(.final-bg) { position: relative; }
.final h2 { font-size: clamp(36px, 6vw, 76px); margin: 30px 0 30px; text-shadow: 0 6px 30px rgba(0,0,0,.9); }
.slate { width: min(420px, 80vw); margin: 0 auto; }
.slate-top { height: 54px; background: url("assets/img/slate-stripes.webp") center / cover; border-radius: 6px 6px 0 0; transform-origin: 4% 100%; transform: rotate(-18deg); box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.slate.clap .slate-top { animation: clap .45s cubic-bezier(.6,0,.4,1); }
.slate:hover .slate-top { transform: rotate(-24deg); }
@keyframes clap { 0% { transform: rotate(-18deg); } 50% { transform: rotate(0); } 70% { transform: rotate(-4deg); } 100% { transform: rotate(-18deg); } }
.slate-body { display: flex; flex-direction: column; gap: 6px; padding: 26px 20px; background: url("assets/img/slate.webp") center / cover; border-radius: 0 0 8px 8px; font-family: var(--display); font-size: clamp(24px, 3.6vw, 36px); color: #f4f0e6; box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.slate-body span + span { font-family: var(--label); font-size: .75em; color: var(--muted); letter-spacing: .1em; }

.foot { padding: 40px 20px 60px; text-align: center; color: var(--muted); font-size: 15px; border-top: 1px solid rgba(243,236,216,.1); }
.foot-brand { font-family: var(--label); font-size: 22px; letter-spacing: .15em; color: var(--paper); }
.foot a { color: var(--yellow); }

/* click splats */
.splat-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.pop { position: absolute; width: 120px; height: 80px; margin: -40px 0 0 -60px; background: var(--c, var(--yellow));
  -webkit-mask: url("assets/img/splat1.webp") center / contain no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  mask: url("assets/img/splat1.webp") center / contain no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  animation: pop .7s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes pop { 0% { transform: scale(.1) rotate(var(--r)); opacity: 1; } 40% { transform: scale(1.1) rotate(var(--r)); opacity: .95; } 100% { transform: scale(1.25) rotate(var(--r)); opacity: 0; } }
.confetti { position: absolute; width: 10px; height: 16px; background: var(--c); border-radius: 2px; animation: fall var(--t, 1.2s) cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--x), var(--y)) rotate(var(--rot)); opacity: 0; } }

/* intersect the splat with a soft radial fade so the bitmap edge never shows (must come after the mask shorthands) */
.fl, .pop, .logo-splat { -webkit-mask-composite: source-in; mask-composite: intersect; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topnav { display: none; }
  .beats { grid-template-columns: 1fr; max-width: 560px; }
  .phones { gap: 10px; }
  .phone:nth-child(2) { margin-top: 24px; }
  .phone video { border-width: 5px; border-radius: 18px; }
  .phone figcaption { font-size: 15px; }
  .timeline::before { left: 14px; }
  .tl { width: auto; margin-left: 44px !important; margin-right: 0 !important; }
  .tl::after { left: -40px !important; right: auto !important; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar { gap: 8px; }
  .sound-toggle .snd-label { display: none; }
  .brand-text { font-size: 22px; }
  .tool-grid { grid-template-columns: 1fr; }
  .logo { padding: 16px 20px 8px; }
  .fl-a, .fl-b { width: 90px; height: 60px; }
  .fl-c, .fl-d { display: none; }
  .phones { flex-direction: column; align-items: center; }
  .phone { flex-basis: auto; width: min(260px, 72vw); }
  .phone:nth-child(2) { margin-top: 0; }
  .erase-stage { aspect-ratio: 4 / 3; }
  .end-grid > .end { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-video { transform: none; }
  .fl { transform: rotate(var(--r, 0deg)); }
  .tape-track { animation: none; }
}
