  @property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

  :root {
    --bg: oklch(14% 0.02 260);
    --surface: oklch(18% 0.025 260 / .7);
    --line: oklch(40% 0.04 230 / .35);
    --text: oklch(94% 0.01 240);
    --muted: oklch(70% 0.02 240);
    --cyan: oklch(82% 0.14 200);
    --amber: oklch(82% 0.15 75);
    --green: oklch(80% 0.18 150);
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --sans: "Space Grotesk", system-ui, sans-serif;
    --max: 1120px;
    color-scheme: dark;
  }

  * { box-sizing: border-box; margin: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--sans);
    overflow-x: hidden;
  }
  /* HUD grid backdrop */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(60rem 40rem at 75% -10%, oklch(60% 0.15 220 / .18), transparent 60%),
      radial-gradient(40rem 30rem at -10% 40%, oklch(60% 0.15 75 / .08), transparent 60%),
      linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
  }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

  .wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
  .mono { font-family: var(--mono); }
  .eyebrow {
    font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
    color: var(--cyan);
  }
  section { padding-block: clamp(4rem, 10vw, 7rem); }
  h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; margin-top: .75rem; text-wrap: balance; }

  /* ---------- nav ---------- */
  nav {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(12px);
    background: oklch(14% 0.02 260 / .6);
    border-bottom: 1px solid var(--line);
  }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
  .logo { font: 700 1rem var(--mono); letter-spacing: .1em; }
  .logo span { color: var(--cyan); }
  nav ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; font: .8rem var(--mono); color: var(--muted); }
  nav ul a:hover { color: var(--text); }
  @media (max-width: 640px) { nav ul { display: none; } }

  /* ---------- hero ---------- */
  .hero { padding-top: clamp(3rem, 9vw, 6rem); }
  .hero .wrap { display: grid; gap: 3rem; grid-template-columns: 1.2fr 1fr; align-items: center; }
  @media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
  .hero h1 {
    font-size: clamp(3rem, 9vw, 6rem); line-height: 1.05; letter-spacing: -.03em; margin-top: 1rem;
    padding-bottom: .08em; /* room for descenders; background-clip:text clips at the box edge */
    background: linear-gradient(180deg, var(--text) 40%, oklch(70% 0.06 220));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .thesis { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-top: 1.25rem; max-width: 30ch; text-wrap: balance; }
  .thesis em { font-style: normal; color: var(--amber); }
  .pillars { margin-top: 1.25rem; font: .8rem var(--mono); color: var(--muted); letter-spacing: .06em; }
  .pillars b { color: var(--cyan); font-weight: 400; }
  .cta { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
  .btn {
    font: 600 .85rem var(--mono); padding: .8rem 1.2rem; border-radius: 6px;
    border: 1px solid var(--line); transition: .2s;
  }
  .btn.primary { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
  .btn.primary:hover { box-shadow: 0 0 24px oklch(82% 0.14 200 / .5); }
  .btn:not(.primary):hover { border-color: var(--cyan); color: var(--cyan); }

  /* terminal */
  .term {
    background: oklch(11% 0.02 260 / .85); border: 1px solid var(--line); border-radius: 10px;
    font: .85rem/1.9 var(--mono); box-shadow: 0 30px 80px -20px oklch(0% 0 0 / .7), 0 0 0 1px oklch(82% 0.14 200 / .06);
    overflow: hidden;
  }
  .term-bar { display: flex; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
  .term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
  .term-bar small { margin-left: auto; color: var(--muted); font-size: .7rem; }
  .term pre { padding: 1rem 1.2rem 1.3rem; white-space: pre-wrap; font: inherit; }
  .term .l { display: block; opacity: 0; animation: type .01s forwards; }
  .term .p { color: var(--cyan); }
  .term .ok { color: var(--green); }
  .term .dim { color: var(--muted); }
  .term .amb { color: var(--amber); }
  .cursor { display: inline-block; width: .55em; height: 1.1em; background: var(--cyan); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
  @keyframes type { to { opacity: 1; } }
  @keyframes blink { 50% { opacity: 0; } }

  /* ---------- proof strip ---------- */
  .proof { padding-block: 0; }
  .proof .wrap {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  }
  @media (max-width: 760px) { .proof .wrap { grid-template-columns: repeat(2, 1fr); } }
  .stat { padding: 1.6rem 1.4rem; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; }
  @media (max-width: 760px) {
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  }
  .stat strong { display: block; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1; letter-spacing: -.02em; }
  .stat strong span { color: var(--cyan); }
  .stat p { margin-top: .6rem; font: .75rem/1.5 var(--mono); color: var(--muted); }

  /* ---------- systems map ---------- */
  .systems-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
  .sys {
    flex: 1 1 190px;
    container-type: inline-size;
    position: relative; padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); transition: border-color .25s, transform .25s;
  }
  .sys:hover { border-color: var(--cyan); transform: translateY(-3px); }
  .sys .idx { font: .7rem var(--mono); color: var(--muted); }
  .sys h3 { font-size: 1.35rem; margin-top: .4rem; display: flex; align-items: center; gap: .5rem; }
  .sys h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
  .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding: 0; list-style: none; }
  .chips li { font: .72rem var(--mono); padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }

  /* ---------- work ---------- */
  .work-grid { display: grid; gap: 1rem; margin-top: 2.5rem; grid-template-columns: repeat(2, 1fr); }
  @media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
  .card {
    --angle: 0deg;
    position: relative; display: flex; flex-direction: column; gap: .8rem;
    padding: 1.8rem; border-radius: 12px; background: var(--surface);
    border: 1px solid transparent;
    background:
      linear-gradient(oklch(17% 0.025 260), oklch(17% 0.025 260)) padding-box,
      conic-gradient(from var(--angle), var(--line) 0 70%, var(--cyan) 85%, var(--line)) border-box;
  }
  .card:hover { animation: spin 3s linear infinite; }
  @keyframes spin { to { --angle: 360deg; } }
  .card.feature { grid-column: 1 / -1; }
  .card .tag { display: flex; gap: .75rem; align-items: center; font: .72rem var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
  .live { color: var(--green); display: inline-flex; align-items: center; gap: .4rem; }
  .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(80% 0.18 150 / .7); } 100% { box-shadow: 0 0 0 10px transparent; } }
  .card h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; }
  .card p { color: var(--muted); max-width: 60ch; }
  .card .metric { font: 600 .85rem var(--mono); color: var(--amber); }
  .card .more { margin-top: auto; font: 600 .8rem var(--mono); color: var(--cyan); }
  .card .more::after { content: " →"; transition: margin .2s; }
  .card:hover .more::after { margin-left: .3rem; }

  /* ---------- timeline: full-bleed equalizer ---------- */
  .track {
    --H: 118px;                                   /* bar zone height; the line sits at its bottom */
    --gutter: max(16px, calc((100vw - var(--max)) / 2));
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
    margin-top: 2.5rem; margin-inline: calc(50% - 50vw);   /* break out of .wrap to the screen edges */
    padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--line) transparent;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
  }
  .stop {
    --c: oklch(76% 0.15 calc(15 + var(--i) * 28));   /* walk the rainbow, stop by stop */
    position: relative; scroll-snap-align: start; color: inherit;
    padding: calc(var(--H) + 1.1rem) 1rem 0 0;
  }
  .stop .bar {
    position: absolute; left: 3px; top: calc(var(--H) - var(--y) * var(--unit, 15px)); width: 12px; height: calc(var(--y) * var(--unit, 15px));
    background: linear-gradient(var(--c), color-mix(in oklch, var(--c) 40%, transparent)); border-radius: 3px 3px 0 0; opacity: .55;
    transition: opacity .2s, transform .2s; transform-origin: bottom;
  }
  .stop::after { content: ""; position: absolute; left: 0; right: 0; top: var(--H); height: 2px; background: var(--c); opacity: .7; }
  .stop::before {
    content: ""; position: absolute; z-index: 1; top: calc(var(--H) - 5px); left: 2px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--bg); border: 2px solid var(--c);
  }
  .stop.key .bar, .stop.now .bar { opacity: .95; }
  .stop.key::before, .stop.now::before { background: var(--c); box-shadow: 0 0 14px var(--c); }
  .stop.now::before { animation: pulse-c 2s infinite; }
  @keyframes pulse-c { 50% { box-shadow: 0 0 0 6px transparent, 0 0 22px var(--c); } }
  .stop:hover .bar, a.stop:focus-visible .bar { opacity: 1; transform: scaleY(1.08); }
  a.stop b::after { content: " →"; color: var(--c); }
  a.stop:hover b { color: var(--c); }
  .stop time { font: .7rem var(--mono); color: var(--c); }
  .stop b { display: block; font-size: .95rem; margin-top: .2rem; }
  .stop span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: .3rem; }
  /* never show the sideways scrollbar; the fade + scroll-drive carry the affordance */
  .track { scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }

  /* scroll-driven: the section pins and vertical scrolling slides the years past.
     Browsers without scroll timelines keep the plain sideways-scrolling strip above. */
  @supports (animation-timeline: view()) {
    #timeline { view-timeline-name: --tl; height: 260vh; padding-block: 0; }
    #timeline > .wrap {
      position: sticky; top: 60px; height: calc(100vh - 60px);
      display: flex; flex-direction: column; justify-content: center;
    }
    #timeline .track {
      --H: 200px; --unit: 27px;               /* more room while pinned: taller bars */
      width: max-content; overflow: visible; grid-auto-columns: 190px;
      scroll-snap-type: none; mask-image: none;
      animation: tl-slide linear both; animation-timeline: --tl; animation-range: contain 0% contain 100%;
    }
    @keyframes tl-slide { to { transform: translateX(calc(100vw - 100%)); } }
    @media (max-width: 640px) { #timeline { height: 300vh; } #timeline .track { grid-auto-columns: 160px; } }
  }
  .legend { margin-top: 1rem; font: .72rem var(--mono); color: var(--muted); }
  .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rainbow); margin-right: .4rem; }

  /* ---------- off the clock ---------- */
  .otc-grid { display: grid; gap: 1rem; margin-top: 2.5rem; grid-template-columns: 1fr 2fr; }
  @media (max-width: 860px) { .otc-grid { grid-template-columns: 1fr; } }
  .panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 1.4rem; }
  .panel h3 { font: 600 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
  .panel h3 a { float: right; color: var(--cyan); }
  .tracks { list-style: none; padding: 0; display: grid; gap: .25rem; }
  .tracks button {
    width: 100%; display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem;
    background: none; border: 0; border-radius: 6px; color: var(--text); font: 500 .95rem var(--sans);
    cursor: pointer; text-align: left;
  }
  .tracks button:hover, .tracks button[aria-pressed="true"] { background: oklch(82% 0.14 200 / .08); }
  .tracks button::before {
    content: "▶"; display: grid; place-items: center; width: 28px; height: 28px; flex: none;
    border: 1px solid var(--line); border-radius: 50%; font-size: .6rem; color: var(--cyan);
  }
  .tracks button[aria-pressed="true"]::before { content: "♪"; border-color: var(--cyan); box-shadow: 0 0 10px oklch(82% 0.14 200 / .5); }
  .sc-slot iframe { width: 100%; height: 120px; border: 0; margin-top: 1rem; border-radius: 6px; }
  .videos { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
  .videos figure:first-child { grid-column: 1 / -1; } /* newest set, featured */
  @media (max-width: 640px) { .videos { grid-template-columns: 1fr; } }
  .vid { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
  .vid button { all: unset; cursor: pointer; position: absolute; inset: 0; }
  .vid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.7); transition: .3s; }
  .vid button:hover img { filter: none; transform: scale(1.04); }
  .vid button::after {
    content: "▶"; position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 50%; background: oklch(14% 0.02 260 / .7); border: 1px solid var(--cyan); color: var(--cyan);
  }
  .vid iframe { width: 100%; height: 100%; border: 0; }
  .vid-title { margin-top: .5rem; font: .75rem/1.4 var(--mono); color: var(--muted); }

  /* ---------- contact ---------- */
  .contact { text-align: center; }
  .contact h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
  .contact .cta { justify-content: center; }
  footer { border-top: 1px solid var(--line); padding-block: 1.5rem; font: .72rem var(--mono); color: var(--muted); }
  footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

  /* ---------- scroll reveal ---------- */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes rise { from { opacity: 0; transform: translateY(32px); } }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .term .l { opacity: 1; }
  }

/* ---------- polish ---------- */
/* anchor jumps land below the sticky nav */
[id] { scroll-margin-top: 72px; }

/* ==========================================================================
   Look: "Spectrum + bars" (chosen from the theme lab, Nov 2026).
   Rainbow accents over the dark base, equalizer bars under each hero.
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
:root {
  --rainbow: linear-gradient(90deg, #ff5f6d, #ffb347, #ffe259, #6ee7b7, #38bdf8, #818cf8, #c084fc);
}
body::before {
  background:
    radial-gradient(50rem 30rem at 80% -10%, rgb(129 140 248 / .16), transparent 60%),
    radial-gradient(40rem 30rem at 0% 50%, rgb(255 95 109 / .08), transparent 60%);
  mask-image: none;
}
nav { border-bottom: 0; }
nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rainbow); }
.hero h1 {
  background: var(--rainbow); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: spectrum-shift 12s ease-in-out infinite alternate;
}
@keyframes spectrum-shift { to { background-position: 100% 0; } }
.thesis em { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow::before { content: ""; display: inline-block; width: 2.2em; margin-right: .7em; border-radius: 2px; background: var(--rainbow); height: 3px; vertical-align: .2em; }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { box-shadow: -4px 0 0 #ff5f6d, 4px 0 0 #38bdf8; }
.stat:nth-child(1) strong span { color: #ff5f6d; }
.stat:nth-child(2) strong span { color: #ffb347; }
.stat:nth-child(3) strong span { color: #6ee7b7; }
.stat:nth-child(4) strong span { color: #818cf8; }
.sys:nth-child(5n+1) { --c: #ff5f6d; }
.sys:nth-child(5n+2) { --c: #ffb347; }
.sys:nth-child(5n+3) { --c: #6ee7b7; }
.sys:nth-child(5n+4) { --c: #38bdf8; }
.sys:nth-child(5n+5) { --c: #c084fc; }
.sys h3::before { background: var(--c); box-shadow: 0 0 12px var(--c); }
.sys:hover { border-color: var(--c); }
.sys { border-top: 2px solid var(--c); }
.card {
  background:
    linear-gradient(oklch(17% 0.025 260), oklch(17% 0.025 260)) padding-box,
    conic-gradient(from var(--angle), #ff5f6d, #ffb347, #ffe259, #6ee7b7, #38bdf8, #818cf8, #c084fc, #ff5f6d) border-box;
}
.card:not(:hover) {
  background:
    linear-gradient(oklch(17% 0.025 260), oklch(17% 0.025 260)) padding-box,
    linear-gradient(var(--line), var(--line)) border-box;
}

.hero { padding-bottom: calc(110px + 2.5rem); }
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 0; right: 0; bottom: 0; height: 110px;
  background: url("eq-spectrum.svg") repeat-x left bottom / auto 110px;
  mask-image: linear-gradient(to top, #000 25%, transparent);
  opacity: .7;
}
@media (prefers-reduced-motion: reduce) { .hero h1 { animation: none !important; } }

/* Contact headshot: circle with a slowly turning rainbow ring */
.headshot {
  --angle: 0deg;
  display: block; width: 132px; height: 132px; margin: 0 auto 1.5rem; padding: 3px;
  border-radius: 50%; object-fit: cover; filter: saturate(.85);
  background: conic-gradient(from var(--angle), #ff5f6d, #ffb347, #ffe259, #6ee7b7, #38bdf8, #818cf8, #c084fc, #ff5f6d);
  box-shadow: 0 0 40px oklch(70% 0.15 280 / .25);
  animation: spin 12s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .headshot { animation: none; } }

/* Front page: the hero already says the name, so the nav logo fades in only after scrolling past it */
@supports (animation-timeline: scroll()) {
  .logo-late { animation: logo-in linear both; animation-timeline: scroll(root); animation-range: 200px 420px; }
  @keyframes logo-in { from { opacity: 0; transform: translateY(-6px); pointer-events: none; } to { opacity: 1; transform: none; } }
}

/* Centered eyebrow (Contact): mirror the rainbow dash so the text sits on the center line */
.contact .eyebrow::after { content: ""; display: inline-block; width: 2.2em; margin-left: .7em; border-radius: 2px; background: var(--rainbow); height: 3px; vertical-align: .2em; transform: scaleX(-1); }

/* Contact optical balance: equal-width buttons, and the period hangs past the line so the text's ink centers */
.contact .cta .btn { min-width: 18em; justify-content: center; text-align: center; }
.contact h2 .hang { margin-right: -.3em; }
@media (max-width: 520px) { .contact .cta .btn { min-width: 0; flex: 1; } }

/* Secondary buttons: visible at rest (faint cyan border + tint), full cyan on hover */
.btn:not(.primary) { border-color: oklch(82% 0.14 200 / .45); background: oklch(82% 0.14 200 / .06); color: var(--text); }
.btn:not(.primary):hover { border-color: var(--cyan); color: var(--cyan); background: oklch(82% 0.14 200 / .1); }
