/* Super Humanoids
   Palette is sampled from the renders: the page is the studio the robots stand in. */
@font-face { font-family: "Geist"; src: url(assets/fonts/geist.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --ground: #1d1e1f;      /* concrete in shadow, matches render edges */
  --slab: #252728;        /* raised panels */
  --paper: #ecebe7;       /* text */
  --dust: #9c9d9a;        /* secondary text */
  --line: rgb(236 235 231 / .12);
  --blue: #5479ea;        /* anodized blue of the test cube; links + focus */
  --ax-x: #e5533d;        /* coordinate-frame colours, used only on telemetry */
  --ax-y: #58b368;
  --ax-z: #5479ea;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.23, 1, .32, 1);       /* strong ease-out */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: 76px; -webkit-tap-highlight-color: transparent; }
section[id] { scroll-margin-top: 0; }
button, a { touch-action: manipulation; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: #fff; }
html { scrollbar-color: #4a4c4e var(--ground); }
h1, h2 { text-wrap: balance; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ground); padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  padding: 18px max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left));
  transition: background .25s var(--ease), backdrop-filter .25s var(--ease);
}
.nav.solid { background: rgb(29 30 31 / .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mark { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mark circle { fill: var(--ground); stroke: var(--blue); stroke-width: 1.8; }
.nav nav { position: relative; display: flex; gap: 28px; margin-left: auto; }
.nav nav a[aria-current] { color: var(--paper); }
.nav-mark { position: absolute; left: 0; bottom: -7px; width: 1px; height: 1px; background: var(--paper); transform-origin: left;
  opacity: 0; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav nav a { font-size: 14px; color: var(--dust); transition: color .2s; }
.nav-cta { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s; }

/* ---------- buttons ---------- */
.btn {
  color: inherit; background: none; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid rgb(236 235 231 / .28);
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--paper); }
    .nav nav a:hover { color: var(--paper); }
  .nav-cta:hover { border-color: var(--paper); }
}
.btn:active { transform: scale(.97); }
.btn:disabled { cursor: progress; opacity: .8; }
.btn:disabled:active { transform: none; }
.btn.solid { background: var(--paper); color: var(--ground); border-color: var(--paper); }
.btn.solid:hover { background: #fff; }
.btn.big { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* ---------- scroll-scrubbed stages ---------- */
.scrub { position: relative; height: var(--len); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seq { position: absolute; inset: 0; width: 100%; height: 100%; }
/* first frame as a poster: paints before scripts run and stays if they never do */
.stage { background: var(--ground) center / cover no-repeat; }
.hero .stage { background-image: url(assets/frames/humanoid/d/0000.webp); }
.bodies .stage { background-image: url(assets/frames/quadruped/d/0000.webp); }
@media (max-width: 720px) {
  .hero .stage { background-image: url(assets/frames/humanoid/m/0000.webp); }
  .bodies .stage { background-image: url(assets/frames/quadruped/m/0000.webp); }
}
.seq-b { opacity: 0; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* boot: the studio lights come up from the floor while a scan line climbs the body */
.boot { display: none; }
.js .boot {
  display: block; position: absolute; inset: -2% 0 0; pointer-events: none;
  background: linear-gradient(to top, transparent 0, var(--ground) 16%, var(--ground) 100%);
  transition: transform 1.7s var(--ease-in-out) .1s;
}
.js .boot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgb(236 235 231 / .55); transition: opacity .6s var(--ease) 1.4s; }
.js.ready .boot { transform: translateY(-104%); }
.js.ready .boot::before { opacity: 0; }
.scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgb(29 30 31 / .92) 0%, rgb(29 30 31 / .35) 34%, transparent 58%),
    linear-gradient(to bottom, rgb(29 30 31 / .55), transparent 18%);
}
.scrim.side { background:
    linear-gradient(to right, rgb(29 30 31 / .9) 0%, rgb(29 30 31 / .5) 30%, transparent 52%),
    linear-gradient(to bottom, rgb(29 30 31 / .5), transparent 16%);
}

/* hero */
.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(36px, 9vh, 96px);
  width: min(820px, 100% - 2 * var(--gutter));
}
.hero-title {
  font-weight: 300;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: .96;
  letter-spacing: -.038em;
  margin-left: -.03em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; transition: transform 1.3s var(--ease); }
/* intro states only exist when JS runs, so a failed script never hides the headline */
.js .hero-title .line > span { transform: translateY(105%); }
.hero-title .line + .line > span { transition-delay: .12s; }
.js.ready .hero-title .line > span { transform: none; }
.lede { max-width: 33em; margin-top: 28px; font-size: clamp(16px, 1.3vw, 19px); color: #cfceca; }
.lede, .actions { transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.js .lede, .js .actions { opacity: 0; transform: translateY(14px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; transition-delay: .62s; }
.js.ready .lede, .js.ready .actions { opacity: 1; transform: none; }

.telemetry {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 9vh, 96px);
  width: 260px; padding: 16px 18px 14px;
  background: rgb(29 30 31 / .8);   /* opaque instead of backdrop blur: blurring a canvas that changes every frame is costly */
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px;
  transition: opacity 1s var(--ease) .9s;
}
.js .telemetry { opacity: 0; }
.js.ready .telemetry { opacity: 1; }
.telemetry header { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.telemetry header strong { display: block; font-weight: 500; font-size: 14px; }
.telemetry header span { color: var(--dust); font-size: 12px; }
.triad { width: 30px; height: 30px; flex: none; stroke-width: 2.2; stroke-linecap: round; }
.ax-x { stroke: var(--ax-x); } .ax-y { stroke: var(--ax-y); } .ax-z { stroke: var(--ax-z); }
.telemetry dl { padding: 8px 0; }
.telemetry dl div { display: flex; justify-content: space-between; padding: 4px 0; }
.telemetry dt { color: var(--dust); }
.telemetry dd { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.telemetry footer { display: flex; justify-content: space-between; color: var(--dust); font: 400 11px var(--mono); padding-top: 8px; border-top: 1px solid var(--line); }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--paper); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- problem ---------- */
.problem { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: end; }
.big { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.16; letter-spacing: -.025em; font-weight: 350; max-width: 22em; }
.aside { color: var(--dust); font-size: 18px; max-width: 26em; }

/* ---------- bodies ---------- */
.body-panel {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(420px, 100% - 2 * var(--gutter));
}
.body-head { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -.034em; font-weight: 350; margin-bottom: 40px; }
.body-list { position: relative; display: grid; }
.body-list li { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.body-list li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.body-list h3 { font-size: 22px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 10px; }
.body-list p { color: #c9c8c4; max-width: 30em; }
.spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.spec dt { color: var(--dust); font-size: 12px; }
.spec dd { font-size: 15px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.body-rail { margin-top: 32px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.body-rail i { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* ---------- live simulation ---------- */
.live { padding: clamp(110px, 18vh, 200px) 0 0; }
.live-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 6vh, 64px); }
.live-head p { color: var(--dust); font-size: 18px; max-width: 34em; }
.live-stage {
  position: relative; height: min(84svh, 860px); min-height: 520px;
  width: min(1600px, 100% - 2 * var(--gutter)); margin-inline: auto;
  border-radius: 16px; overflow: hidden; isolation: isolate;
  background: var(--ground) url(assets/frames/quadruped/d/0045.webp) center / cover no-repeat;
}
.live-stage canvas:focus-visible { outline-offset: -4px; }
.live-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity .6s var(--ease); }
.live-stage.is-live canvas { opacity: 1; }
.live-stage.is-dragging canvas { cursor: grabbing; }
.live-poster {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px;
  background: radial-gradient(ellipse at center, rgb(29 30 31 / .2), rgb(29 30 31 / .75));
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.is-live .live-poster { opacity: 0; visibility: hidden; }
.live-note { color: #cfceca; font-size: 14px; max-width: 30em; }
.live-ui { position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px;
  background: linear-gradient(to top, rgb(29 30 31 / .85), transparent); pointer-events: none; }
.live-ui > * { pointer-events: auto; }
.live-ui[hidden] { display: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(236 235 231 / .08); border: 1px solid var(--line); }
.seg button { font: 500 14px var(--sans); color: var(--dust); background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ground); }
.live-hint { flex: 1 1 260px; color: #cfceca; font-size: 14px; }
.live-actions { display: flex; gap: 8px; }
.live-actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; background: rgb(29 30 31 / .5); }
.live-actions .btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.live-status { flex-basis: 100%; color: #e2b34a; font-size: 14px; min-height: 0; }
.live-status:empty { display: none; }
.live-clock { position: absolute; top: 16px; right: 18px; font: 400 12px var(--mono); color: var(--dust); font-variant-numeric: tabular-nums; }

/* ---------- approach ---------- */
.approach { padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.approach h2, .roadmap h2, .contact h2, .live h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1.02; letter-spacing: -.036em; font-weight: 350; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(56px, 8vh, 96px); counter-reset: s; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font: 500 12px var(--mono); color: var(--dust); }
.steps h3 { font-size: 22px; font-weight: 500; letter-spacing: -.015em; margin: 22px 0 10px; }
.steps p { color: var(--dust); max-width: 28em; }

/* ---------- roadmap ---------- */
.roadmap { background: var(--slab); padding: clamp(100px, 15vh, 170px) 0; }
.roadmap .sub { color: var(--dust); margin-top: 18px; max-width: 34em; font-size: 18px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vh, 90px); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.timeline li { position: relative; padding: 36px 32px 0 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--slab); border: 1px solid var(--dust); }
.timeline li::before { transition: background .25s var(--ease), border-color .25s var(--ease); }
.timeline li.is-reached::before { background: var(--paper); border-color: var(--paper); }
.timeline li.is-reached h3 { color: var(--paper); }
.timeline h3 { transition: color .25s var(--ease); }
.timeline .track { position: absolute; left: 0; right: 0; top: 6px; height: 1px; padding: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.timeline .track::before { display: none; }
.problem .big .w { transition: opacity .2s linear; }
.timeline h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; }
.timeline p { color: var(--dust); font-size: 15px; }

/* ---------- today ---------- */
.today { padding: clamp(100px, 15vh, 170px) 0 0; }
.today-card { border: 1px solid var(--line); border-radius: 16px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; }
.state { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--dust); font-size: 14px; }
.state i { width: 8px; height: 8px; border-radius: 50%; background: #e2b34a; box-shadow: 0 0 0 4px rgb(226 179 74 / .16); }
.today h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.today-card > p:last-child { color: #c9c8c4; font-size: 18px; }

/* ---------- contact + footer ---------- */
.contact { padding: clamp(140px, 24vh, 260px) 0; text-align: center; }
.contact h2 { font-size: clamp(44px, 6.6vw, 96px); font-weight: 300; letter-spacing: -.038em; text-wrap: balance; }
.contact p { color: var(--dust); max-width: 32em; margin: 28px auto 40px; font-size: 18px; }
.foot { display: flex; justify-content: space-between; gap: 40px; padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dust); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .problem, .today-card, .live-head { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding: 0 0 40px 40px; }
  .timeline .track { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(0); }
  .foot { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 720px) {
  .nav { gap: 16px; padding-block: 14px; }
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-copy { bottom: 28px; }
  .lede { margin-top: 18px; }
  .actions .btn { flex: 1 1 auto; }
  .telemetry { top: 72px; bottom: auto; right: 16px; width: auto; padding: 10px 12px; font-size: 12px; }
  .telemetry header { display: none; }
  .telemetry dl { padding: 0; }
  .telemetry dl div { gap: 16px; padding: 2px 0; }
  .telemetry dl div:nth-child(n+3) { display: none; }
  .telemetry footer { padding-top: 6px; }
  .scroll-cue { display: none; }
  .scrim { background:
      linear-gradient(to top, rgb(29 30 31 / .96) 0%, rgb(29 30 31 / .6) 40%, transparent 64%),
      linear-gradient(to bottom, rgb(29 30 31 / .6), transparent 22%); }
  .scrim.side { background: linear-gradient(to top, rgb(29 30 31 / .96) 0%, rgb(29 30 31 / .7) 42%, transparent 66%),
      linear-gradient(to bottom, rgb(29 30 31 / .6), transparent 18%); }
  .body-panel { top: auto; bottom: 28px; transform: none; }
  .body-head { font-size: 30px; margin-bottom: 20px; }
  .spec { gap: 20px; }
}

@media (max-width: 720px) {
  .live-head { grid-template-columns: 1fr; }
  .live-stage { width: 100%; border-radius: 0; height: 78svh; min-height: 480px; background-image: url(assets/frames/quadruped/m/0044.webp); }
  .live-ui { padding: 14px 16px; }
  .live-hint { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-title .line > span, .js .lede, .js .actions, .js .telemetry { transition: opacity .3s; transform: none; }
  .js .boot { display: none; }
  .body-list li { transform: none; }
  .live-stage canvas, .live-poster { transition-duration: .2s; }
  .scroll-cue span { animation: none; }
}
