@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #000;
  --ink: #f4f5f7;
  --soft: #c3c7ce;
  --mute: #8a9099;
  --line: rgba(255, 255, 255, 0.12);
  --ice: #cfdcf2;
  --pad: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .9, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
main { position: relative; z-index: 2; }
h2 { font-weight: 900; font-size: clamp(40px, 6vw, 104px); line-height: .92; letter-spacing: -0.045em; }
.label { font-size: 14px; font-weight: 700; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 28px; height: 1px; background: var(--ice); }

/* scene */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; opacity: 0; transition: opacity 2s ease; display: block; }
#scene.on { opacity: 1; }
.no-webgl body { background: radial-gradient(120% 80% at 50% 100%, #0d1118, #000 60%); }
.shade { position: fixed; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; }

/* chrome */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad); font-size: 14px; font-weight: 700;
  mix-blend-mode: difference;
}
.nav-name { font-weight: 900; letter-spacing: -0.02em; font-size: 16px; }
.nav-links { display: flex; gap: 28px; }
.nav-links span { display: inline-block; transition: transform .4s var(--ease); }
.nav-links a:hover span { transform: translate(3px, -3px); }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 51; }
.progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* 1. hero */
.hero { height: 260vh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sign { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(26px, 6vh, 64px);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-line { font-size: clamp(17px, 1.6vw, 23px); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.hero-line span { color: var(--mute); font-weight: 500; }
.scroll-cue { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; }
.scroll-cue span { position: relative; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 2.2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { to { top: 100%; } }

/* 2. words */
.words { height: 560vh; position: relative; }
.words-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.morph { position: absolute; inset: 0; width: 100%; height: 100%; }
.words-cap {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(26px, 7vh, 72px);
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end;
}
.wc-num { font-size: 13px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.wc-num b { color: var(--ink); }
.wc-lines { position: relative; height: 3.2em; font-size: clamp(17px, 1.5vw, 22px); width: min(44ch, 100%); justify-self: end; }
.wc { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease); line-height: 1.4; color: var(--soft); }
.wc.on { opacity: 1; transform: none; }
.wc strong { color: var(--ink); font-weight: 900; }

/* 3. machine */
.machine { padding: 10vh 0; }
.machine-frame { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; clip-path: inset(18% 22% 18% 22%); }
.machine-frame img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.torch {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--tx, 50%) var(--ty, 50%), transparent 0, transparent 13vmax, rgba(0,0,0,.86) 27vmax, rgba(0,0,0,.95) 60vmax);
}
.machine-cap { position: absolute; left: var(--pad); bottom: clamp(26px, 7vh, 72px); max-width: 520px; }
.machine-cap .kicker { font-size: 14px; font-weight: 700; color: var(--mute); margin-bottom: 14px; }
.machine-cap h2 { font-size: clamp(40px, 6.4vw, 112px); }
.machine-cap p:last-child { margin-top: 16px; font-size: clamp(16px, 1.3vw, 19px); color: var(--soft); line-height: 1.45; }

/* 4. me */
.me { padding: clamp(120px, 22vh, 240px) var(--pad); }
.quote { font-weight: 900; font-size: clamp(38px, 6.6vw, 124px); line-height: .94; letter-spacing: -0.05em; max-width: 15ch; }
.quote .w { display: inline-block; opacity: .1; }
.me-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: clamp(70px, 12vh, 140px); padding-top: 28px; border-top: 1px solid var(--line); }
.me-body { font-size: clamp(18px, 1.7vw, 26px); line-height: 1.45; color: var(--soft); max-width: 46ch; letter-spacing: -0.01em; }

/* 5. deck */
.deck { height: 300vh; position: relative; }
.deck-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 80px var(--pad) 32px; }
.deck-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(28px, 5vh, 56px); }
.deck-head h2 { font-size: clamp(36px, 4.6vw, 80px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px); perspective: 1600px; }
.pcard {
  position: relative; aspect-ratio: 5 / 2.5; max-height: 30vh; width: 100%;
  background: linear-gradient(160deg, #111318 0%, #050608 70%);
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: clamp(18px, 2vw, 30px);
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  will-change: transform;
}
.pcard::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.06); border-radius: 9px; pointer-events: none; }
.pc-n { position: absolute; top: 16px; left: 18px; font-size: 13px; font-weight: 900; color: var(--ice); font-variant-numeric: tabular-nums; }
.pc-n2 { top: auto; left: auto; bottom: 16px; right: 18px; transform: rotate(180deg); }
.pcard h3 { font-size: clamp(22px, 2.2vw, 36px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.pcard p { margin-top: 10px; color: var(--mute); font-size: clamp(14px, 1.02vw, 16px); line-height: 1.4; max-width: 34ch; }

/* 6. live */
.live { padding: clamp(110px, 18vh, 200px) var(--pad); }
.live-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(40px, 7vh, 80px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.lcard {
  position: relative; display: flex; flex-direction: column;
  background: #07080a; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .4s;
  transform-style: preserve-3d;
}
.lcard::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(207,220,242,.13), transparent 60%);
}
.lcard:hover { border-color: rgba(255,255,255,.3); }
.lcard:hover::before { opacity: 1; }
.plate {
  height: clamp(150px, 15vw, 210px); display: flex; align-items: center; justify-content: center; gap: 14px;
  background: #f3f4f6; border-bottom: 1px solid var(--line);
}
.plate img { max-width: 72%; max-height: 64%; object-fit: contain; transition: transform .7s var(--ease); }
.lcard:hover .plate img { transform: scale(1.05); }
.plate-bone { background: #f4f1ea; }
.plate-dark { background: #0d0e11; }
.plate-dark img.mark { width: 64px; height: 64px; max-width: none; }
.plate-dark b { font-weight: 900; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -0.035em; }
.plate-black { background: #000; }
.lc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.lc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lc-top h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.lc-top span { font-size: 13px; color: var(--mute); font-weight: 700; white-space: nowrap; }
.lc-body p { margin-top: 10px; color: var(--soft); line-height: 1.45; font-size: 16px; }
.url { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink); }
.url i { font-style: normal; display: inline-block; transition: transform .45s var(--ease); }
.lcard:hover .url i { transform: translate(4px, -4px); }
.lcard-dark { grid-column: span 3; flex-direction: row; }
.lcard-dark .plate { width: 40%; height: auto; min-height: 150px; border-bottom: 0; border-right: 1px solid var(--line); }
.lcard-dark .url { color: var(--mute); }
.redact { display: inline-block; position: relative; width: 62%; height: 46px; background: #15171b; overflow: hidden; color: transparent; }
.redact::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26%; left: -30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); animation: sweep 4.5s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes sweep { 0%, 55% { left: -30%; } 100% { left: 110%; } }

/* 7. before */
.before { padding: clamp(80px, 12vh, 140px) var(--pad); }
.rows { list-style: none; margin-top: 36px; }
.row { display: grid; grid-template-columns: 1fr 1.6fr 2fr; gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.yr { font-weight: 900; font-size: clamp(36px, 4vw, 64px); letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.yr em { font-style: normal; color: var(--mute); font-size: .4em; letter-spacing: -0.02em; margin-left: 8px; }
.yr em::before { content: "to "; }
.row h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 900; letter-spacing: -0.025em; }
.role { color: var(--mute); font-weight: 700; margin-top: 6px; font-size: 15px; }
.what { color: var(--soft); line-height: 1.5; font-size: clamp(15px, 1.15vw, 18px); max-width: 46ch; }

/* 8. close */
.close { min-height: 100vh; display: flex; flex-direction: column; padding: 0 var(--pad) 28px; }
.close-in { margin: auto 0; }
.close-kicker { font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; color: var(--soft); }
.close-cta {
  display: inline-flex; align-items: flex-start; gap: .16em; margin-top: 16px;
  font-weight: 900; font-size: clamp(42px, 7.4vw, 140px); line-height: .9; letter-spacing: -0.055em;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 3px no-repeat; padding-bottom: .08em;
  transition: background-size .8s cubic-bezier(.7,0,.2,1);
}
.close-cta:hover { background-size: 100% 3px; }
.close-cta i { font-style: normal; font-size: .55em; transition: transform .5s var(--ease); }
.close-cta:hover i { transform: translate(.08em, -.08em); }
.foot { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .lcard-dark { grid-column: auto; flex-direction: column; }
  .lcard-dark .plate { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .pcard { aspect-ratio: 4 / 4.4; }
  .me-grid, .row { grid-template-columns: 1fr; gap: 14px; }
  .words-cap { grid-template-columns: 1fr; gap: 10px; }
  .wc-lines { justify-self: start; height: 4.4em; }
  .deck-head, .live-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .scroll-cue { display: none; }
  .machine-frame { clip-path: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span::after, .redact::after { animation: none; }
  .hero, .words, .deck { height: auto; }
  .hero-stage, .words-stage, .deck-stage { position: relative; height: 100vh; }
  .machine-frame { clip-path: none; }
  .quote .w { opacity: 1; }
}
