@font-face { font-family: 'Hanken Grotesk'; font-weight: 300; font-display: swap; src: url(fonts/hanken-grotesk-300.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-400.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400.woff2) format('woff2'); }

:root {
  --bg: #0F1114;
  --bg-2: #15181C;
  --ink: #E4E6E9;
  --ink-2: #A3A9B1;
  --mute: #6C737C;
  --line: rgba(228, 230, 233, 0.09);
  --line-2: rgba(228, 230, 233, 0.16);
  --accent: #93B4D4;
  --signal: #C25247;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.glow { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 0; pointer-events: none; will-change: transform; }
.glow::before, .glow i {
  content: ''; position: absolute; left: -400px; top: -400px; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(147, 180, 212, 0.10), rgba(147, 180, 212, 0.035) 45%, rgba(147, 180, 212, 0) 100%);
}
.glow i { background: radial-gradient(closest-side, rgba(194, 82, 71, 0.13), rgba(194, 82, 71, 0.03) 50%, rgba(194, 82, 71, 0) 100%); opacity: var(--hot, 0); }

/* soft reveals */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.6s var(--ease), transform 1.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-copy > *, .js .hud { opacity: 0; animation: rise 1.8s var(--ease) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .5s; }
.js .hero-copy > :nth-child(2) { animation-delay: .7s; }
.js .hero-copy > :nth-child(3) { animation-delay: .95s; }
.js .hero-copy > :nth-child(4) { animation-delay: 1.2s; }
.js .hud { animation-delay: 1.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gut);
  background: rgba(15, 17, 20, 0);
  border-bottom: 1px solid transparent;
  transition: background .8s var(--ease), border-color .8s var(--ease);
}
.top.scrolled { background: var(--bg); border-bottom-color: var(--line); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: square; }
.mark span { font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.mark em { font-style: normal; font-size: 13px; color: var(--mute); padding-left: 10px; border-left: 1px solid var(--line-2); }
nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .4s var(--ease); }
nav a:hover { color: var(--ink); }
.nav-cta { color: var(--ink) !important; border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 2px; }

main { position: relative; z-index: 1; }
section { padding: 0 var(--gut); }

.kicker, .hud-t, .n, dt, .phases span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mute);
}

/* hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  padding-top: 120px; padding-bottom: clamp(40px, 8vh, 88px);
}
.hero-copy { max-width: 560px; }
.kicker { margin-bottom: 20px; }
h1 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; }
.lede { margin-top: 24px; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 44ch; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.cta {
  display: inline-block; text-decoration: none; font-size: 15px; font-weight: 500;
  background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 2px;
  transition: background .5s var(--ease);
}
.cta:hover { background: #C9CDD2; }
.link { font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .4s var(--ease); }
.link:hover { color: var(--ink); }

.hud { width: 248px; padding: 16px 0 0; border-top: 1px solid var(--line-2); }
.hud-t { display: flex; justify-content: space-between; margin-bottom: 12px; }
.phases { list-style: none; margin: 0; padding: 0; }
.phases li {
  position: relative; display: flex; gap: 14px; align-items: baseline;
  padding: 8px 0; font-size: 14px; color: var(--mute); transition: color 1.2s var(--ease);
}
.phases li i { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--line); }
.phases li i::after {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.phases li.on { color: var(--ink); }
.phases li.on span { color: var(--accent); }
.hud-n { margin-top: 14px; font-size: 12px; color: var(--mute); line-height: 1.5; }

/* method: a scroll story over the fixed scene */
.method { padding-top: clamp(96px, 16vh, 180px); }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.025em; max-width: 18ch; }
.method-head .kicker { margin-bottom: 16px; }
.story { list-style: none; margin: 0; padding: 0; }
.beat { min-height: 92vh; min-height: 92svh; display: flex; align-items: center; }
.beat-in {
  max-width: 380px; padding: 28px 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.6s var(--ease), transform 1.8s var(--ease);
}
.beat.in .beat-in { opacity: 1; transform: none; }
.beat .n { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mute); }
.beat .n span { color: var(--accent); }
.beat h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.025em; margin: 14px 0 14px; }
.beat p:last-child { color: var(--ink-2); font-size: 17px; max-width: 32ch; }

/* fit */
.fit {
  min-height: 100vh; min-height: 100svh; align-content: center; align-items: center;
  padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(64px, 10vh, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
}
.fit-head p { margin-top: 20px; color: var(--ink-2); max-width: 44ch; }
.specs { margin: 0; border-top: 1px solid var(--line-2); }
.specs div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { padding-top: 3px; }
.specs dd { margin: 0; font-size: 15px; }

/* faq */
.faq {
  padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(64px, 10vh, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
}
.faq-list { border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-size: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .6s var(--ease);
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 32px 20px 0; color: var(--ink-2); font-size: 15px; max-width: 60ch; }
details a { color: var(--ink); }

/* close */
.close { padding-top: clamp(80px, 14vh, 160px); padding-bottom: clamp(80px, 12vh, 140px); text-align: center; }
.close h2 { margin: 0 auto 32px; }
.mail { display: block; margin-top: 20px; font-size: 14px; color: var(--mute); text-decoration: none; }
.mail:hover { color: var(--ink-2); }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gut) 32px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--mute);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink-2); }

@media (max-width: 900px) {
  .fit, .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .top { padding-top: 14px; padding-bottom: 14px; }
  .mark em { display: none; }
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); align-content: end; padding-top: 50vh; padding-top: 50svh; gap: 28px; padding-bottom: 36px; }
  .hud { width: 100%; }
  .phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .phases li { flex-direction: column; gap: 2px; font-size: 13px; }
  .hud-n { display: none; }
  .beat { align-items: flex-end; padding-bottom: 9vh; padding-bottom: 9svh; }
  .beat-in { padding: 20px 0 0; border-top: 1px solid var(--line-2); width: 100%; max-width: none;
}
  .beat h3 { margin: 8px 0 8px; }
  .specs div { grid-template-columns: 92px minmax(0, 1fr); }
}
