/* ==========================================================
   Crossing the Line — styles
   ========================================================== */
:root {
  --bg: #050505;
  --bg-2: #0c0c0e;
  --card: #111114;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #6b6b75;
  --cyan: #00ffcc;
  --cyan-2: #00e6b8;
  --pink: #e6004d;
  --pink-2: #ff2e74;
  --grad: linear-gradient(100deg, var(--cyan) 0%, #7cf3ff 40%, var(--pink-2) 100%);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--cyan); color: #000; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--cyan); color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* custom cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor span {
  display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid #fff; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
}
.cursor.hover span { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ------------------ typography ------------------ */
.kicker { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 18px; }
.h1, .h2, h1, h3 { font-family: var(--f-display); letter-spacing: -.02em; margin: 0; }
.h1 { font-size: clamp(40px, 7vw, 96px); line-height: .98; font-weight: 800; }
.h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.02; font-weight: 800; max-width: 16ch; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 56ch; margin: 22px 0 0; }
.muted { color: var(--dim); margin-top: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.u { background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.u:hover { background-size: 100% 1px; color: var(--cyan); }
.c-cyan { color: var(--cyan); }

/* ------------------ buttons ------------------ */
.btn {
  --bgc: var(--cyan);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  background: var(--bgc); color: #000; font-weight: 600; font-size: 16px; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 0 0 0 rgba(0, 255, 204, 0);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pink);
  transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit;
}
.btn:hover { box-shadow: 0 10px 40px -8px rgba(0, 255, 204, .5); color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: #000; box-shadow: inset 0 0 0 1px var(--text); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.link-arrow { font-weight: 600; color: var(--cyan); display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { transform: translateX(6px); }

/* ------------------ nav ------------------ */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(calc(100% - 24px), 1180px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(10, 10, 12, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translate(-50%, -140%); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { position: relative; width: 28px; height: 28px; display: grid; place-items: center; }
.logo-mark::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.logo-mark i, .logo-mark b { position: absolute; width: 8px; height: 8px; border-radius: 50%; top: 10px; }
.logo-mark i { left: 1px; background: var(--pink); animation: hop 3s var(--ease) infinite; }
.logo-mark b { right: 1px; background: var(--cyan); opacity: 0; animation: hop2 3s var(--ease) infinite; }
@keyframes hop { 0%, 40% { transform: translateX(0); opacity: 1; } 55% { transform: translateX(18px); opacity: 0; } 100% { opacity: 0; transform: translateX(18px); } }
@keyframes hop2 { 0%, 45% { opacity: 0; transform: translateX(-4px); } 60%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.logo-text { font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: .02em; line-height: 1; display: flex; flex-direction: column; }
.logo-text em { font-style: normal; color: var(--cyan); font-size: 10px; letter-spacing: .28em; margin-top: 3px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: rgba(5, 5, 5, .96); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 28px; gap: 6px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-display); font-size: 36px; font-weight: 800; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ------------------ hero ------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 140px var(--gutter) 90px; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); margin: 0 0 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, .6); } 70% { box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); } }
.hero-title { font-size: clamp(44px, 9.4vw, 150px); overflow-wrap: anywhere; line-height: .9; font-weight: 900; letter-spacing: -.045em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line { animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) { animation-delay: .12s; }
.hero-title .line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(40%); } to { clip-path: inset(0 0 0 0); transform: none; } }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-sub { max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); margin: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-hint { font-family: var(--f-mono); font-size: 12px; color: var(--dim); margin: 36px 0 0; }
.scroll-cue { position: absolute; z-index: 3; right: var(--gutter); bottom: 36px; width: 1px; height: 64px; background: var(--line-2); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--cyan); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ------------------ marquee ------------------ */
.marquee-wrap { border-block: 1px solid var(--line); background: var(--bg-2); transform: rotate(-1.5deg) scale(1.03); margin: 30px 0 40px; }
.marquee { display: flex; overflow: hidden; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex-shrink: 0; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3vw, 40px); white-space: nowrap; color: var(--text); }
.marquee-track span:nth-child(4n+1) { -webkit-text-stroke: 1px var(--text); color: transparent; }
.marquee-track i { color: var(--pink); font-style: normal; font-size: 22px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ------------------ sections ------------------ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* manifesto */
.manifesto-text { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -.02em; margin: 0; max-width: 22ch; }
.manifesto-text .w { color: rgba(255, 255, 255, .14); transition: color .4s; }
.manifesto-text .w.on { color: var(--text); }
.manifesto-text .w.hl.on { color: var(--cyan); }

/* ------------------ bento ------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.b-a { grid-column: span 3; grid-row: span 2; }
.b-b { grid-column: span 3; }
.b-c { grid-column: span 3; }
.b-d { grid-column: span 4; }
.b-e { grid-column: span 2; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .5s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card p { color: var(--muted); margin: 12px 0 0; }
.card .card-sub { color: var(--cyan); font-family: var(--f-mono); font-size: 13px; margin-top: 10px; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.num { font-family: var(--f-mono); font-size: 13px; color: var(--dim); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 255, 204, .12), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 255, 204, .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: "→"; color: var(--cyan); }
.card-art { position: absolute; right: -40px; bottom: -40px; width: 260px; color: rgba(255, 255, 255, .08); }
.card-art .orbit { fill: var(--cyan); transform-origin: 100px 100px; animation: spin 6s linear infinite; filter: drop-shadow(0 0 6px var(--cyan)); }
@keyframes spin { to { transform: rotate(360deg); } }
.code { margin: 22px 0 0; padding: 18px; border-radius: 14px; background: #0a0a0c; border: 1px solid var(--line); font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7; color: #d4d4d8; overflow-x: auto; }
.code b { color: var(--pink-2); font-weight: 400; } .code i { color: #c084fc; font-style: normal; }
.code u { color: var(--cyan); text-decoration: none; } .code s { color: #fde68a; text-decoration: none; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--cyan); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.mini-stats div { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.mini-stats strong { display: block; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); color: var(--cyan); }
.mini-stats span { font-size: 13px; color: var(--muted); }
.bars { display: grid; gap: 16px; margin-top: 26px; }
.bar { display: grid; grid-template-columns: 170px 1fr 48px; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.bar i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--grad); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.in .bar i::after, .bar.in i::after, .b-d.in .bar i::after { transform: scaleX(1); }
.bar b { font-family: var(--f-mono); color: var(--text); font-weight: 600; text-align: right; }
.card-accent { background: var(--pink); border-color: transparent; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.card-accent .big-quote { color: #fff; font-family: var(--f-display); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; font-weight: 600; margin: 0; }
.card-accent .link-arrow { color: #000; }

/* ------------------ stats ------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.stat { padding: 36px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 6.5vw, 96px); line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 16px 0 4px; font-weight: 600; }
.stat small { color: var(--dim); font-size: 14px; }

/* ------------------ approach (horizontal) ------------------ */
.approach { position: relative; height: 400vh; }
.approach-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.approach-head { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.approach-meter { margin-top: 28px; height: 2px; background: var(--line); max-width: 320px; }
.approach-meter span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--ap, 0)); }
.approach-track { display: flex; gap: 20px; padding: 48px var(--gutter) 0; will-change: transform; }
.step {
  flex: 0 0 min(440px, 82vw); min-height: 340px; padding: 36px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.step-n { font-family: var(--f-display); font-weight: 900; font-size: 120px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(0, 255, 204, .45); margin-bottom: auto; }
.step h3 { margin-top: 30px; }
.step-sub { font-family: var(--f-mono); color: var(--cyan); font-size: 13px; margin: 8px 0 0; }
.step p:last-child { color: var(--muted); margin: 14px 0 0; }
.step-end { background: var(--cyan); color: #000; justify-content: center; gap: 24px; }
.step-end h3 { font-size: clamp(32px, 3vw, 44px); margin: 0; }
.step-end .btn { --bgc: #000; background: #000; color: #fff; align-self: flex-start; }

/* ------------------ stack tabs ------------------ */
.stack { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.stack-tabs { display: flex; flex-direction: column; gap: 6px; }
.stack-tabs button {
  text-align: left; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: transparent;
  font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--muted); transition: all .3s var(--ease);
  display: flex; justify-content: space-between; align-items: center;
}
.stack-tabs button::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
.stack-tabs button:hover { color: var(--text); border-color: var(--line-2); }
.stack-tabs button[aria-selected="true"] { background: var(--text); color: #000; border-color: var(--text); }
.stack-tabs button[aria-selected="true"]::after { opacity: 1; transform: none; }
.stack-panel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: clamp(24px, 4vw, 48px); min-height: 360px; position: relative; overflow: hidden; }
.stack-panel h3 { font-size: clamp(28px, 3.4vw, 48px); font-weight: 800; }
.stack-panel .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.stack-panel .pill {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 15px;
  animation: pop .5s var(--ease) both; transition: background .25s, color .25s, border-color .25s;
}
.stack-panel .pill:hover { background: var(--cyan); color: #000; border-color: var(--cyan); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.95); } }
.stack-panel .big-ico { position: absolute; right: -10px; bottom: -40px; font-family: var(--f-display); font-weight: 900; font-size: 220px; line-height: 1; color: rgba(255, 255, 255, .03); pointer-events: none; }

/* ------------------ game ------------------ */
.game { max-width: 760px; margin: 0 auto; }
.game-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.game-hud div { padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.game-hud small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.game-hud strong { font-family: var(--f-display); font-size: 22px; }
#g-lives { color: var(--pink-2); letter-spacing: 2px; }
.game-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 120px -30px rgba(0, 255, 204, .25); touch-action: none; }
#game-canvas { width: 100%; height: auto; aspect-ratio: 720 / 560; background: #070709; }
.game-stage.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 5, .72); backdrop-filter: blur(6px); transition: opacity .3s; }
.game-overlay[hidden] { display: none; }
.overlay-card { text-align: center; max-width: 440px; }
.overlay-card h3 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; margin-bottom: 12px; }
.overlay-card p { color: var(--muted); margin: 0 0 22px; }
.overlay-card .kicker { margin-bottom: 10px; }
.controls { font-size: 13px; margin-top: 20px !important; }
kbd { display: inline-block; min-width: 26px; padding: 3px 7px; margin: 0 2px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 3px; font-family: var(--f-mono); font-size: 12px; color: var(--text); }
.g-cta { margin-top: 6px; }
.dpad { display: none; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 56px); gap: 8px; justify-content: center; margin-top: 16px; }
.dpad button { border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); font-size: 22px; touch-action: manipulation; }
.dpad button:active { background: var(--cyan); color: #000; }
.dpad [data-dir="up"] { grid-column: 2; }
.dpad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.dpad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.dpad [data-dir="right"] { grid-column: 3; grid-row: 2; }
@media (hover: none) { .dpad { display: grid; } }

/* ------------------ philosophy ------------------ */
.phil-list { border-top: 1px solid var(--line); }
.phil { border-bottom: 1px solid var(--line); }
.phil summary { list-style: none; display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; padding: 28px 0; cursor: pointer; transition: padding .4s var(--ease), color .3s; }
.phil summary::-webkit-details-marker { display: none; }
.phil summary:hover { padding-left: 16px; color: var(--cyan); }
.pn { font-family: var(--f-mono); color: var(--dim); }
.pt { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 4.2vw, 60px); letter-spacing: -.03em; text-transform: uppercase; line-height: 1; }
.px { font-size: 32px; font-weight: 300; justify-self: end; transition: transform .4s var(--ease); }
.phil[open] .px { transform: rotate(45deg); color: var(--pink-2); }
.phil p { margin: 0 0 30px 80px; max-width: 52ch; color: var(--muted); font-size: 19px; }

/* ------------------ quotes ------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { position: relative; overflow: hidden; margin: 0; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 70px; line-height: .6; color: var(--pink-2); margin-bottom: 10px; }
.quote figcaption { display: flex; gap: 14px; align-items: center; }
.quote figcaption b { display: block; }
.quote figcaption small { color: var(--dim); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; font-weight: 600; background: var(--grad); color: #000; }

/* ------------------ articles ------------------ */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article { position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease); }
.article:hover { transform: translateY(-4px); }
.article h3 { margin: 20px 0 12px; max-width: 26ch; }
.article p { color: var(--muted); margin: 0; }

/* ------------------ faq ------------------ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 120px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-weight: 600; font-size: 19px; position: relative; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--cyan); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa summary:hover { color: var(--cyan); }
.qa p { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }
details[open] > p { animation: fadeDown .45s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* ------------------ contact ------------------ */
.contact { position: relative; }
.contact::before { content: ""; position: absolute; left: 50%; top: 20%; width: 60vw; height: 60vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 255, 204, .09), transparent); pointer-events: none; z-index: -1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-list small { display: block; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-size: 18px; font-weight: 500; }
.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: rgba(17, 17, 20, .7); border: 1px solid var(--line); backdrop-filter: blur(10px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field span, .chips legend { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #0a0a0c;
  color: var(--text); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 255, 204, .12); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--pink-2); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; transition: all .2s var(--ease); user-select: none; }
.chips span:hover { border-color: var(--text); }
.chips input:checked + span { background: var(--cyan); color: #000; border-color: var(--cyan); }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-error { color: var(--pink-2); font-size: 14px; margin: 0; min-height: 1em; }
.form-note { font-size: 13px; color: var(--dim); margin: -6px 0 0; text-align: center; }

/* ------------------ footer ------------------ */
.footer { border-top: 1px solid var(--line); padding: 60px var(--gutter) 28px; overflow: hidden; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-top p { max-width: 38ch; color: var(--muted); margin: 0; }
.footer-top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-top nav a { color: var(--muted); } .footer-top nav a:hover { color: var(--cyan); }
.wordmark { display: flex; align-items: center; justify-content: center; gap: 2vw; margin: 60px 0 40px; font-family: var(--f-display); font-weight: 900; font-size: 9.5vw; line-height: .85; letter-spacing: -.05em; white-space: nowrap; }
.wordmark span:last-child { -webkit-text-stroke: 1.5px var(--text); color: transparent; transition: color .5s; }
.wordmark:hover span:last-child { color: var(--cyan); -webkit-text-stroke-color: var(--cyan); }
.wordmark i { width: .08em; align-self: stretch; background: var(--cyan); box-shadow: 0 0 30px var(--cyan); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--dim); }

/* ------------------ reveal ------------------ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* scroll-driven progress (progressive enhancement) */
@supports (animation-timeline: scroll()) {
  .progress { animation: prog linear both; animation-timeline: scroll(root); }
  @keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ------------------ responsive ------------------ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-a, .b-b, .b-c, .b-d, .b-e { grid-column: span 2; grid-row: auto; }
  .b-a { grid-column: span 2; }
  .quotes { grid-template-columns: 1fr; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static; }
  .stack { grid-template-columns: 1fr; }
  .stack-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .stack-tabs button { white-space: nowrap; flex-shrink: 0; }
  .stack-tabs button::after { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav > .btn { display: none; }
  .burger { display: block; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 16px 28px 0 !important; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .stat:nth-child(2n+1) { padding-left: 0 !important; }
  .articles { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr 44px; }
  .bar span { grid-column: 1 / -1; }
  .phil summary { grid-template-columns: 44px 1fr 32px; }
  .phil p { margin-left: 44px; }
  /* approach falls back to a vertical list */
  .approach { height: auto; }
  .approach-sticky { position: static; height: auto; padding: 80px 0; }
  .approach-track { flex-direction: column; transform: none !important; }
  .step { flex-basis: auto; min-height: 0; }
  .step-n { font-size: 80px; }
  .approach-meter { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row, .contact-list, .mini-stats { grid-template-columns: 1fr; }
  .game-hud { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .game-hud div { padding: 8px 10px; }
  .game-hud strong { font-size: 17px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .card-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .reveal { opacity: 1; transform: none; }
}
