@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=VT323&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f5f5;
  --surface: #e5e5e5;
  --ink: #111;
  --muted: #666;
  --line: #ccc;
  --acid: #fff;
  --mono: 'Silkscreen', 'Courier New', monospace;
  --sans: 'VT323', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 20px; -webkit-font-smoothing: none; }
a { color: inherit; text-decoration: none; }
.topbar, footer { height: 76px; padding: 0 6vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 16px var(--mono); letter-spacing: 0; }
.wordmark > span:last-child { font-family: var(--mono); }
.mark { width: 14px; height: 14px; display: inline-block; background: var(--ink); border-radius: 0; transform: rotate(0); }
.top-link, .eyebrow, .text-link, .panel-top, .panel-bottom, .hero-index, .specs > div > span, .motion-action small, footer > span, .back-top { font: 14px var(--mono); letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 26px; }
.top-link span { margin-left: 8px; }
.github-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); font: 13px var(--mono); letter-spacing: 0; }
.github-link:hover { background: #111; color: #fff; border-color: #111; }
.github-link svg { width: 14px; height: 14px; fill: currentColor; }
.hero { position: relative; min-height: 680px; padding: 76px 10vw 78px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 7vw; align-items: center; border-bottom: 1px solid var(--line); }
.hero-copy { z-index: 1; padding-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.live-dot, .panel-status i { width: 7px; height: 7px; display: inline-block; border-radius: 0; background: #111; }
h1 { margin: 28px 0 20px; font: 700 clamp(48px, 6.4vw, 88px)/.98 var(--mono); letter-spacing: -.06em; }
h1 em, .motion h2 em { font-family: var(--sans); font-weight: 400; font-style: normal; }
.intro { max-width: 310px; margin: 0; color: #454545; font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 18px; margin-top: 38px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.robot-panel { position: relative; max-width: 520px; width: 100%; height: 540px; justify-self: center; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); padding: 18px 20px 16px; transition: background .4s ease; }
.robot-panel.is-moving { background: #d8d8d8; }
.panel-top, .panel-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; pointer-events: none; }
.panel-status { display: inline-flex; align-items: center; gap: 7px; }
.panel-status i { width: 6px; height: 6px; background: #8a8a8a; }
.is-moving .panel-status i, .model-loaded .panel-status i { background: #111; animation: pulse 1s infinite alternate; }
.hero-viewer { position: absolute; inset: 36px 0 29px; overflow: hidden; }
#hero-model { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
#hero-model:active { cursor: grabbing; }
.hero-label { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: #303030; font: 11px var(--mono); letter-spacing: 0; white-space: nowrap; pointer-events: none; transform: translate(10px,-50%); transition: opacity .2s; }
.hero-label i { width: 6px; height: 6px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #111; box-shadow: 0 0 0 1px #f3f3f3; }
.hero-label--brain { transform: translate(10px,-120%); }
.hero-label--drivers { transform: translate(-110%,-50%); }
.hero-label--joints { transform: translate(10px,-10%); }
.hero-label.is-behind { opacity: .18; }
.hero-model-link { position: absolute; right: 14px; bottom: 12px; z-index: 2; padding: 8px 10px; background: rgba(245,245,245,.9); color: var(--ink); font: 8px var(--mono); letter-spacing: .06em; }
.hero-model-link:hover { background: #ccc; }
.hero-model-error { position: absolute; inset: 42% 12% auto; padding: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); text-align: center; font-size: 16px; }
.hero-index { position: absolute; bottom: 28px; left: 6vw; color: var(--muted); }
.section { padding: 112px 14vw; display: grid; grid-template-columns: 1fr 1fr; gap: 12vw; border-bottom: 1px solid var(--line); }
.section-heading h2, .motion h2 { margin: 25px 0 0; font: 700 clamp(28px, 3.6vw, 48px)/1.15 var(--mono); letter-spacing: -.06em; }
.section-heading h2 span { color: #777; }
.build-copy { padding-top: 50px; }
.build-copy > p, .motion-action > p { margin: 0; max-width: 440px; color: #454545; font-size: 14px; line-height: 1.9; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 46px; padding-top: 18px; border-top: 1px solid var(--line); }
.specs > div { display: flex; flex-direction: column; gap: 9px; }
.specs > div > span { color: var(--muted); font-size: 8px; }
.specs strong { font-size: 22px; font-weight: 500; letter-spacing: -.06em; }
.specs strong span { color: var(--muted); font-size: 12px; }
.model-callout { background: var(--surface); }
.model-callout-copy { align-self: center; padding-top: 20px; }
.model-callout-copy > p { max-width: 400px; margin: 0; color: #454545; font-size: 14px; line-height: 1.9; }
.motion { background: var(--ink); color: var(--paper); }
.motion .eyebrow, .motion-action small { color: #999; }
.motion h2 em { color: #fff; }
.motion-action { align-self: center; padding-top: 25px; }
.motion-action > p { color: #c4c4c4; }
button { margin-top: 30px; padding: 14px 18px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid #666; border-radius: 0; background: transparent; color: var(--paper); font: 10px var(--mono); letter-spacing: .08em; cursor: pointer; transition: background .2s, color .2s, border .2s; }
button:hover, button[aria-pressed="true"] { background: #f5f5f5; color: #111; border-color: #f3f3f3; }
.button-icon { font-size: 9px; }
.motion-action small { display: block; margin-top: 15px; font-size: 8px; }
footer { border-top: 0; border-bottom: 0; color: var(--muted); }
footer .wordmark { color: var(--ink); }
footer > span { font-size: 8px; }
.back-top { font-size: 9px; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }

@media (max-width: 760px) {
  .topbar, footer { height: 64px; padding: 0 22px; }
  .top-actions { gap: 10px; }
  .top-link { font-size: 11px; }
  .github-link { padding: 7px; font-size: 0; }
  .github-link svg { width: 16px; height: 16px; }
  .hero { min-height: 0; padding: 70px 24px 76px; grid-template-columns: 1fr; gap: 48px; }
  h1 { font-size: clamp(38px, 11vw, 64px); }
  .robot-panel { height: min(540px, 128vw); min-height: 420px; }
  .hero-index { left: 24px; bottom: 22px; }
  .section { padding: 76px 24px; grid-template-columns: 1fr; gap: 32px; }
  .build-copy { padding-top: 0; }
  .model-callout-copy { padding-top: 0; }
  .motion-action { padding-top: 0; }
  footer > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
