@font-face {
  font-family: "DM Sans";
  src: url("../public/fonts/dm-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../public/fonts/fraunces-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../public/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --bg: #f6f5f1;
  --bg-2: #eeece6;
  --surface: #ffffff;
  --surface-2: #f9f8f5;
  --line: rgba(16, 18, 28, 0.09);
  --line-strong: rgba(16, 18, 28, 0.16);
  --text: #12131a;
  --muted: #555a69;
  --faint: #7d8292;
  --violet: #5a49e0;
  --teal: #0b8f88;
  --amber: #c95a24;
  --grad: linear-gradient(100deg, #5a49e0 0%, #0b8f88 55%, #c95a24 100%);
  --glow-a: rgba(90, 73, 224, 0.16);
  --glow-b: rgba(11, 143, 136, 0.12);
  --shadow: 0 1px 2px rgba(16, 18, 28, 0.04), 0 12px 32px -12px rgba(16, 18, 28, 0.12);
  --spot: rgba(90, 73, 224, 0.07);
  --track: rgba(16, 18, 28, 0.07);
  --ink-on-accent: #ffffff;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b10;
    --bg-2: #0f1117;
    --surface: #12141c;
    --surface-2: #161924;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #eceef4;
    --muted: #a1a6b6;
    --faint: #7f8597;
    --violet: #9a8cff;
    --teal: #4fd6cc;
    --amber: #ffa071;
    --grad: linear-gradient(100deg, #a89bff 0%, #4fd6cc 55%, #ffa071 100%);
    --glow-a: rgba(124, 106, 255, 0.22);
    --glow-b: rgba(79, 214, 204, 0.12);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    --spot: rgba(154, 140, 255, 0.09);
    --track: rgba(255, 255, 255, 0.07);
    --ink-on-accent: #0a0b10;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0b10;
  --bg-2: #0f1117;
  --surface: #12141c;
  --surface-2: #161924;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eceef4;
  --muted: #a1a6b6;
  --faint: #7f8597;
  --violet: #9a8cff;
  --teal: #4fd6cc;
  --amber: #ffa071;
  --grad: linear-gradient(100deg, #a89bff 0%, #4fd6cc 55%, #ffa071 100%);
  --glow-a: rgba(124, 106, 255, 0.22);
  --glow-b: rgba(79, 214, 204, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  --spot: rgba(154, 140, 255, 0.09);
  --track: rgba(255, 255, 255, 0.07);
  --ink-on-accent: #0a0b10;
  color-scheme: dark;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body::before {
  /* fine grain so large flat areas feel like material, not a void */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.footer {
  position: relative;
  z-index: 1;
}

main {
  padding-top: 68px;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  width: 26px;
  height: 26px;
}

.brand__mark rect {
  fill: var(--violet);
  transform-box: fill-box;
  transform-origin: center;
  animation: bar 1.6s ease-in-out infinite;
}

.brand__mark rect:nth-child(2) { fill: var(--teal); animation-delay: -0.4s; }
.brand__mark rect:nth-child(3) { fill: var(--violet); animation-delay: -0.8s; }
.brand__mark rect:nth-child(4) { fill: var(--amber); animation-delay: -1.2s; }

@keyframes bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--text);
  background: var(--track);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--track);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.icon-moon { opacity: 0; transform: rotate(-40deg) scale(0.6); }
.icon-sun { opacity: 1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .icon-sun { opacity: 0; transform: rotate(40deg) scale(0.6); }
}

:root[data-theme="dark"] .icon-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(40deg) scale(0.6); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(32px, 7vw, 96px) 0 0;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at 72% 38%, var(--glow-a), transparent 70%),
    radial-gradient(30% 35% at 18% 70%, var(--glow-b), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.pulse-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 92px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 11ch;
}

.hero h1 em,
.section h2 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.03em;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  padding-right: 0.04em;
}

@keyframes sheen {
  to { background-position: 100% 0; }
}

.hero__lede {
  max-width: 54ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button--primary {
  background: var(--text);
  color: var(--bg);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px var(--violet);
}

.button--ghost {
  border: 1px solid var(--line-strong);
}

.button--ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* the voice visual */

.voice {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.voice__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.voice__status {
  position: absolute;
  left: 50%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.voice__state {
  min-width: 9ch;
  color: var(--text);
}

.voice__metric {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
}

.voice__metric b {
  display: inline-block;
  min-width: 3ch;
  text-align: right;
  color: var(--text);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* ticker */

.ticker {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}

.ticker li::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gutter) 0;
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section__label {
  margin-bottom: 18px;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.section__intro {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- capability grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--spot), transparent 60%);
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 1;
}

.card--wide {
  grid-column: span 2;
  flex-direction: row;
}

.card--wide:last-child {
  grid-column: 1 / -1;
}

.card__viz {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--surface-2), transparent),
    var(--bg-2);
  overflow: hidden;
}

.card--wide .card__viz {
  flex: 1 1 48%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 26px 26px 28px;
}

.card--wide .card__body {
  flex: 1 1 52%;
  justify-content: center;
  padding: 34px;
}

.card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.card .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.stat b {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat span {
  color: var(--faint);
  font-size: 14px;
}

/* viz: turn timeline */

.viz-turn {
  align-content: center;
  gap: 12px;
  padding: 30px 34px;
  place-items: stretch;
}

.turn-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.turn-row:nth-child(1) { --c: var(--faint); }
.turn-row:nth-child(2) { --c: var(--violet); }
.turn-row:nth-child(3) { --c: var(--teal); }
.turn-row:nth-child(4) { --c: var(--amber); }

.turn-row {
  position: relative;
}

.turn-row::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 10px;
  border-radius: 99px;
  background: var(--track);
}

.turn-bar {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  height: 10px;
  border-radius: 99px;
  background: var(--c);
  transform-origin: left;
  opacity: 0.9;
}

.turn-bar--you { margin-left: 0; width: 38%; }
.turn-bar--think { margin-left: 30%; width: 22%; }
.turn-bar--voice { margin-left: 40%; width: 56%; }
.turn-bar--face { margin-left: 41%; width: 55%; }

.is-live .turn-bar {
  animation: grow 6s cubic-bezier(0.3, 0.6, 0.2, 1) infinite;
}

.is-live .turn-bar--think { animation-delay: 0.3s; }
.is-live .turn-bar--voice { animation-delay: 0.5s; }
.is-live .turn-bar--face { animation-delay: 0.55s; }

@keyframes grow {
  0% { transform: scaleX(0); opacity: 0; }
  8% { opacity: 0.9; }
  45%, 85% { transform: scaleX(1); opacity: 0.9; }
  100% { transform: scaleX(1); opacity: 0; }
}

.turn-cursor {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: calc(34px + 64px);
  width: 1px;
  background: var(--text);
  opacity: 0;
}

.is-live .turn-cursor {
  animation: sweep 6s linear infinite;
}

@keyframes sweep {
  0% { transform: translateX(0); opacity: 0; }
  5% { opacity: 0.35; }
  85% { opacity: 0.35; }
  100% { transform: translateX(var(--sweep, 300px)); opacity: 0; }
}

/* viz: waveform and mouth */

.viz-wave {
  grid-template-columns: 1fr auto;
  gap: 22px;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 90px;
}

.wave-bars i {
  width: 5px;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(var(--violet), var(--teal));
  transform: scaleY(0.12);
}

.is-live .wave-bars i {
  animation: speak 1.3s ease-in-out infinite;
}

.wave-bars i:nth-child(3n) { animation-duration: 0.9s; }
.wave-bars i:nth-child(4n) { animation-duration: 1.6s; }
.wave-bars i:nth-child(5n) { animation-duration: 1.1s; }

@keyframes speak {
  0%, 100% { transform: scaleY(0.12); }
  25% { transform: scaleY(0.8); }
  50% { transform: scaleY(0.35); }
  70% { transform: scaleY(0.95); }
}

.mouth {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.mouth i {
  width: 30px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text);
  transform: scaleY(0.25);
}

.is-live .mouth i {
  animation: lips 1.3s ease-in-out infinite;
}

@keyframes lips {
  0%, 100% { transform: scaleY(0.25) scaleX(1); }
  25% { transform: scaleY(1) scaleX(0.85); }
  50% { transform: scaleY(0.45) scaleX(1.1); }
  70% { transform: scaleY(0.9) scaleX(0.7); }
}

/* viz: local chip */

.viz-local {
  align-content: center;
  gap: 16px;
}

.chip {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, var(--line) 9px 10px) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9px, var(--line) 9px 10px) bottom / 100% 6px no-repeat,
    var(--surface);
}

.chip__die {
  display: grid;
  gap: 8px;
  width: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.chip__label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vram {
  display: flex;
  height: 12px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.vram i {
  height: 100%;
  transform-origin: left;
}

.vram__game {
  width: 58%;
  background: var(--faint);
  opacity: 0.55;
}

.vram__ai {
  width: 30%;
  background: linear-gradient(90deg, var(--teal), var(--violet));
}

.is-live .vram__ai {
  animation: fill 4s ease-in-out infinite;
}

@keyframes fill {
  0%, 100% { transform: scaleX(0.55); }
  50% { transform: scaleX(1); }
}

.chip__legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.chip__legend b {
  font-weight: 400;
}

.chip__legend b:last-child {
  color: var(--teal);
}

.offline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.offline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent);
}

/* viz: commit grid */

.commit-grid {
  display: grid;
  grid-template-columns: repeat(18, 9px);
  grid-auto-rows: 9px;
  gap: 4px;
}

.commit-grid i {
  border-radius: 2px;
  background: var(--track);
  transition: background-color 0.6s ease;
}

.commit-grid i[data-l="1"] { background: color-mix(in srgb, var(--teal) 30%, transparent); }
.commit-grid i[data-l="2"] { background: color-mix(in srgb, var(--teal) 60%, transparent); }
.commit-grid i[data-l="3"] { background: var(--teal); }
.commit-grid i[data-l="4"] { background: var(--violet); }

/* viz: eval bars */

.viz-eval {
  align-content: center;
  gap: 16px;
  place-items: stretch;
  padding: 28px 26px;
}

.eval-row {
  display: grid;
  grid-template-columns: 48px 1fr 42px;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.eval-row b {
  font-weight: 400;
  color: var(--text);
  text-align: right;
}

.eval-track {
  height: 14px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.eval-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.eval-fill--before {
  width: 3%;
  min-width: 4px;
  background: var(--amber);
}

.eval-fill--after {
  width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transition-delay: 0.35s;
}

.is-live .eval-fill {
  transform: scaleX(1);
}

.eval-note {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

/* viz: keys */

.viz-keys {
  padding: 28px;
}

.keys {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 460px;
}

.keys i {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 -2px 0 var(--line);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.keys i.wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.keys i.space {
  grid-column: span 6;
  aspect-ratio: auto;
}

/* ---------- approach ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}

.principle.is-in::before {
  width: 64px;
}

.principle__n {
  display: block;
  margin-bottom: 16px;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 20px;
  font-style: normal;
}

.principle h3 {
  font-size: clamp(21px, 2.1vw, 25px);
  line-height: 1.22;
}

.principle p {
  margin-top: 14px;
  color: var(--muted);
}

/* ---------- direction ---------- */

.direction {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 80px);
}

.direction .section__head {
  position: sticky;
  top: 110px;
  align-self: start;
}

.direction__body {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 18px;
}

.direction__lead {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.questions {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.questions li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
}

.questions li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 15px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--track);
  color: var(--violet);
  font-family: var(--mono);
  font-size: 12px;
}


/* ---------- contact ---------- */

.section--contact {
  padding-bottom: clamp(60px, 8vw, 100px);
}

.contact {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: clamp(36px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px circle at var(--mx) var(--my), var(--spot), transparent 60%),
    radial-gradient(70% 120% at 100% 0%, var(--glow-a), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact h2 {
  max-width: 14ch;
  font-size: clamp(34px, 5.4vw, 68px);
}

.contact__email {
  display: inline-block;
  margin-top: 32px;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s ease;
  padding-bottom: 4px;
}

.contact__email:hover {
  background-size: 100% 2px;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact__links a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  opacity: 0.6;
}

.contact__links a:hover {
  background: var(--track);
  transform: translateY(-2px);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .card.reveal.is-in:hover {
  transform: translateY(-3px);
  transition: opacity 0.9s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .topnav {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .voice {
    max-width: 380px;
    grid-row: 1;
    margin-bottom: -12px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .direction {
    grid-template-columns: 1fr;
  }

  .direction .section__head {
    position: static;
    margin-bottom: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card--wide {
    grid-column: auto;
    flex-direction: column;
  }

  .card--wide .card__viz {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .card--wide .card__body {
    padding: 26px 22px 28px;
  }

  .card__body {
    padding: 24px 22px 26px;
  }

  .voice {
    max-width: 240px;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .viz-wave {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .commit-grid {
    grid-template-columns: repeat(16, 8px);
    grid-auto-rows: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .turn-bar,
  .eval-fill {
    transform: none;
    opacity: 0.9;
  }

  .wave-bars i:nth-child(odd) { transform: scaleY(0.6); }
  .wave-bars i:nth-child(even) { transform: scaleY(0.3); }
  .mouth i { transform: scaleY(0.6); }
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
}
