/* ============================================================
   CHY3 — cinematic editorial system
   Archivo + JetBrains Mono · one signal accent · sharp geometry
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #07090b;
  --ink-soft: #0a0d10;
  --ink-elev: #0e1216;
  --paper: #f1ede4;
  --paper-dim: #d6d0c4;
  --body-muted: #a3a59f;
  --body-soft: #747873;
  --line: rgba(241, 237, 228, 0.13);
  --line-strong: rgba(241, 237, 228, 0.28);
  --signal: #ff5a36;
  --signal-deep: #d9421f;
  --signal-soft: rgba(255, 90, 54, 0.12);
  --font-display: 'Archivo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-body: 'Archivo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1320px;
  --head-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- typography primitives ---------- */

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.4vw, 7.5rem);
  font-weight: 560;
  font-stretch: 108%;
  line-height: 0.92;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 540;
  font-stretch: 106%;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.muted {
  color: var(--body-soft);
}

.kicker,
.section-label,
.meta-label,
.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-muted);
}

.kicker-dot {
  width: 7px;
  height: 7px;
  background: var(--signal);
  flex: none;
}

.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--signal);
  flex: none;
}

.meta-label {
  color: var(--body-soft);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, gap 180ms ease;
}

.text-link:hover {
  color: var(--signal);
  border-color: var(--signal);
  gap: 16px;
}

.text-link-ink {
  color: var(--ink);
  border-color: rgba(7, 9, 11, 0.32);
}

.text-link-ink:hover {
  color: var(--signal-deep);
  border-color: var(--signal-deep);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn-arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 200ms var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.btn-signal:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(241, 237, 228, 0.04);
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: #171b1f;
  border-color: #171b1f;
}

.btn-outline-ink {
  background: transparent;
  border-color: rgba(7, 9, 11, 0.45);
  color: var(--ink);
}

.btn-outline-ink:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-sm {
  min-height: 40px;
  padding: 0 15px;
  font-size: 9.5px;
}

/* ---------- status ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-muted);
  white-space: nowrap;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--body-soft);
  flex: none;
}

.status[data-tone='live'] i {
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(241, 237, 228, 0.08);
}

.status[data-tone='beta'] i,
.status[data-tone='now'] i {
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.status[data-tone='next'] i {
  background: transparent;
  border: 1px solid var(--body-soft);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--head-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-head.is-scrolled,
.site-head.is-open {
  background: rgba(7, 9, 11, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-head.is-open {
  background: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: var(--max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--paper);
  transition: transform 500ms var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(18deg);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: 0.16em;
  line-height: 1;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.1vw, 30px);
  margin-left: auto;
}

.head-nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-muted);
  transition: color 160ms ease;
}

.head-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.head-nav a:hover {
  color: var(--paper);
}

.head-nav a:hover::after {
  transform: scaleX(1);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.head-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-muted);
  transition: color 160ms ease;
}

.head-github:hover {
  color: var(--signal);
}

.head-github-arrow {
  font-size: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}

.lang-opt {
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--body-soft);
  transition: color 160ms ease, background 160ms ease;
}

.lang-opt + .lang-opt {
  border-left: 1px solid var(--line);
}

.lang-opt:hover {
  color: var(--paper);
}

.lang-opt.is-active {
  background: var(--paper);
  color: var(--ink);
}

.menu {
  display: none;
  position: static;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  list-style: none;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin-left: auto;
  background: var(--paper);
  transition: transform 220ms var(--ease), width 220ms var(--ease);
}

.menu[open] .menu-toggle span:first-child {
  width: 20px;
  transform: translateY(3.5px) rotate(45deg);
}

.menu[open] .menu-toggle span:last-child {
  width: 20px;
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  inset: var(--head-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px var(--pad) 36px;
  background: var(--ink);
  overflow-y: auto;
}

.menu-nav {
  display: flex;
  flex-direction: column;
}

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.menu-nav span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--signal);
}

.menu-nav strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body-muted);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--head-h) + 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  background:
    radial-gradient(1100px 700px at 78% 34%, rgba(255, 90, 54, 0.1), transparent 62%),
    radial-gradient(900px 600px at 18% 88%, rgba(241, 237, 228, 0.045), transparent 70%),
    var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  opacity: 0.3;
  filter: grayscale(0.86) contrast(1.1) brightness(0.78);
  transform: scale(1.02);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2) 64%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2) 64%, transparent 96%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.95) 0%, rgba(7, 9, 11, 0.72) 42%, rgba(7, 9, 11, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 9, 11, 0.7), transparent 30%, rgba(7, 9, 11, 0.92) 100%);
}

.hero-inner {
  display: grid;
  flex: 1;
  align-content: center;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(16px, 4vh, 48px);
  padding-bottom: clamp(24px, 5vh, 64px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-copy .kicker {
  margin-bottom: clamp(22px, 3vh, 34px);
  animation: hero-in 900ms var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 7.7vw, 7.4rem);
  font-weight: 570;
  font-stretch: 112%;
  line-height: 0.88;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.hero-line {
  display: block;
  white-space: nowrap;
  animation: hero-in 1000ms var(--ease) both;
}

.hero-line:nth-child(2) {
  animation-delay: 90ms;
}

.hero-line-accent {
  color: var(--signal);
}

.hero-lede {
  max-width: 40ch;
  margin-top: clamp(24px, 3.4vh, 36px);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 1.65;
  color: var(--body-muted);
  text-wrap: pretty;
  animation: hero-in 1000ms var(--ease) 160ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vh, 38px);
  animation: hero-in 1000ms var(--ease) 240ms both;
}

.hero-foot-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-meta-sep {
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.hero-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}

.hero-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.hero-scroll-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-scroll-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- orbit graphic ---------- */

.orbit-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-left: auto;
  animation: hero-in 1300ms var(--ease) 120ms both;
}

.orbit-field {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 90, 54, 0.14), transparent 62%);
  filter: blur(6px);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  translate: -50% -50%;
  border: 1px solid var(--line);
}

.orbit-ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(241, 237, 228, 0.12);
}

.orbit-ring-2 {
  width: 70%;
  height: 70%;
  border-style: dashed;
  border-color: rgba(255, 90, 54, 0.32);
  animation: orbit-spin 72s linear infinite;
}

.orbit-ring-3 {
  width: 42%;
  height: 42%;
  border-color: rgba(241, 237, 228, 0.2);
  animation: orbit-spin 46s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffd2c2 0%, #ff7a52 22%, var(--signal) 46%, #7a1f0c 72%, #1b0c08 100%);
  box-shadow:
    0 0 40px rgba(255, 90, 54, 0.42),
    0 0 140px rgba(255, 90, 54, 0.22);
}

.orbit-core::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 198, 0.32);
}

.orbit-core-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(7, 9, 11, 0.12) 7px 8px);
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-muted);
  white-space: nowrap;
}

.orbit-node i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--paper);
  background: var(--ink);
  transform: rotate(45deg);
  flex: none;
}

.orbit-node::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.orbit-node-1 {
  top: 15%;
  left: 4%;
}

.orbit-node-1::after {
  left: 100%;
  margin-left: 8px;
}

.orbit-node-2 {
  top: 46%;
  right: 0;
  flex-direction: row-reverse;
}

.orbit-node-2::after {
  right: 100%;
  margin-right: 8px;
  background: linear-gradient(270deg, var(--line-strong), transparent);
}

.orbit-node-3 {
  bottom: 13%;
  left: 16%;
}

.orbit-node-3::after {
  left: 100%;
  margin-left: 8px;
}

.orbit-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--paper);
  animation: twinkle 4s ease-in-out infinite;
}

.orbit-star-1 {
  top: 26%;
  right: 14%;
}

.orbit-star-2 {
  bottom: 27%;
  right: 26%;
  animation-delay: 1.4s;
}

.orbit-star-3 {
  top: 58%;
  left: 8%;
  animation-delay: 2.6s;
}

@keyframes orbit-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-soft);
}

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

.ticker-set {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 17px 17px 17px 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body-muted);
  white-space: nowrap;
}

.ticker-set i {
  font-style: normal;
  color: var(--signal);
  font-size: 11px;
}

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

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

.section,
.feature,
.cta {
  scroll-margin-top: var(--head-h);
}

.section {
  padding-block: clamp(76px, 11vw, 150px);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 1000px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
}

.section-lede {
  max-width: 54ch;
  margin-top: 22px;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.66;
  color: var(--body-muted);
  text-wrap: pretty;
}

.section-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
}

/* ---------- project rows ---------- */

.project-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 230px 32px;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, padding 220ms var(--ease);
}

.project-row:hover {
  background: rgba(241, 237, 228, 0.025);
  padding-left: 18px;
  padding-right: 0;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--body-soft);
  align-self: start;
  padding-top: 8px;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -0.032em;
  transition: color 200ms ease;
}

.project-row:hover .project-body h3 {
  color: var(--signal);
}

.project-body p {
  max-width: 62ch;
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body-muted);
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.project-arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--body-soft);
  justify-self: end;
  transition: color 200ms ease, transform 240ms var(--ease);
}

.project-row:hover .project-arrow,
.insight-row:hover .project-arrow,
.journal-row:hover .project-arrow {
  color: var(--signal);
  transform: translate(3px, -3px);
}

/* ---------- platform stages ---------- */

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 28px clamp(20px, 2.4vw, 34px) 26px;
  border-right: 1px solid var(--line);
  transition: background 220ms ease;
}

.stage:last-child {
  border-right: 0;
}

.stage:hover {
  background: rgba(241, 237, 228, 0.03);
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--signal);
}

.stage h3 {
  margin-top: 0;
  padding-top: 96px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stage p {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body-muted);
}

.stage-tool {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.stage::after {
  content: '↗';
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 16px;
  color: var(--body-soft);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 220ms ease, transform 220ms var(--ease), color 220ms ease;
}

.stage:hover::after {
  opacity: 1;
  transform: none;
  color: var(--signal);
}

/* ---------- feature / paper section ---------- */

.feature {
  position: relative;
  padding-block: clamp(76px, 10vw, 132px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 9, 11, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(7, 9, 11, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(100deg, transparent 30%, black 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, black 100%);
  pointer-events: none;
}

.feature .container {
  position: relative;
  z-index: 1;
}

.feature .section-label {
  color: rgba(7, 9, 11, 0.55);
}

.feature .section-label::before {
  background: var(--signal-deep);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
}

.feature-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.feature-pill {
  padding: 4px 8px;
  border: 1px solid rgba(7, 9, 11, 0.32);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(7, 9, 11, 0.7);
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.7vw, 4.4rem);
  font-weight: 550;
  font-stretch: 104%;
  line-height: 0.99;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.feature-title a {
  transition: color 200ms ease;
}

.feature-title a:hover {
  color: var(--signal-deep);
}

.feature-lede {
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.66;
  color: rgba(7, 9, 11, 0.66);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.feature-read {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(7, 9, 11, 0.55);
}

.feature-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid rgba(7, 9, 11, 0.2);
}

.feature-quote {
  display: block;
  height: 0.62em;
  font-family: var(--font-display);
  font-size: clamp(9rem, 16vw, 15rem);
  font-weight: 600;
  line-height: 0.72;
  color: var(--signal);
}

.feature-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-block: 22px;
  border-block: 1px solid rgba(7, 9, 11, 0.16);
}

.feature-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-meta .meta-label {
  color: rgba(7, 9, 11, 0.5);
}

.feature-meta .meta-value {
  color: var(--ink);
  font-size: 11px;
}

.feature-diagram {
  position: relative;
  height: 92px;
  margin-top: 26px;
  overflow: hidden;
}

.diagram-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(7, 9, 11, 0.14);
}

.diagram-line:nth-child(1) {
  top: 18px;
}

.diagram-line:nth-child(2) {
  top: 46px;
}

.diagram-line:nth-child(3) {
  top: 74px;
}

.diagram-dot {
  position: absolute;
  top: 42px;
  left: 34%;
  width: 9px;
  height: 9px;
  background: var(--signal);
  transform: rotate(45deg);
  box-shadow: 0 0 0 8px rgba(255, 90, 54, 0.14);
}

.feature-index {
  padding-block: clamp(64px, 8vw, 110px);
}

.feature-index .container {
  position: relative;
}

.feature-index-mark {
  position: absolute;
  top: 50%;
  right: 2%;
  width: 300px;
  height: 300px;
  translate: 0 -50%;
  pointer-events: none;
  opacity: 0.85;
}

.fim-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
}

.fim-ring-1 {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(7, 9, 11, 0.16);
}

.fim-ring-2 {
  width: 58%;
  height: 58%;
  border: 1px dashed rgba(255, 90, 54, 0.45);
}

.fim-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13%;
  height: 13%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #ffd0bf, var(--signal) 52%, #4a1205);
  box-shadow: 0 0 28px rgba(255, 90, 54, 0.3);
}

.feature-index-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.feature-title-large {
  max-width: 20ch;
  font-size: clamp(2.5rem, 5.6vw, 5.4rem);
}

/* ---------- signals ---------- */

.section-signals {
  border-top: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 26px clamp(16px, 2vw, 30px) 0;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.4vw, 6.8rem);
  font-weight: 560;
  font-stretch: 108%;
  line-height: 0.84;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  color: var(--signal);
  font-size: 0.42em;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 2px;
}

.stat-unit {
  color: var(--paper);
  font-size: 0.55em;
  letter-spacing: -0.04em;
  vertical-align: baseline;
}

.stat-label {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-soft);
}

/* ---------- roadmap rows ---------- */

.milestone-list {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.milestone-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 130px 32px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, padding 220ms var(--ease);
}

.milestone-row:hover {
  background: rgba(241, 237, 228, 0.025);
  padding-left: 18px;
}

.milestone-q {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.milestone-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color 200ms ease;
}

.milestone-row:hover .milestone-body h3 {
  color: var(--signal);
}

.milestone-body p {
  max-width: 62ch;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--body-muted);
}

.milestone-arrow {
  justify-self: end;
  font-size: 18px;
  color: var(--body-soft);
  transition: color 200ms ease, transform 220ms var(--ease);
}

.milestone-row:hover .milestone-arrow {
  color: var(--signal);
  transform: translateX(4px);
}

/* ---------- CTA ---------- */

.cta {
  padding-block: clamp(76px, 10vw, 140px);
  background: var(--signal);
  color: var(--ink);
}

.cta-label {
  color: rgba(7, 9, 11, 0.6);
}

.cta-label::before {
  background: var(--ink);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
  margin-top: 26px;
}

.cta-title span {
  display: block;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  font-weight: 570;
  font-stretch: 108%;
  line-height: 0.9;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.cta-side p {
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(7, 9, 11, 0.7);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.site-foot {
  padding-top: clamp(64px, 8vw, 100px);
  background: #050607;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(40px, 6vw, 100px);
}

.foot-brand .brand {
  margin-bottom: 24px;
}

.foot-brand p {
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-muted);
}

.foot-community {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.foot-col h3 {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.foot-col a {
  font-size: 0.95rem;
  color: var(--body-muted);
  transition: color 160ms ease;
}

.foot-col a:hover {
  color: var(--signal);
}

.foot-wordmark {
  margin-top: clamp(56px, 9vw, 120px);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 21vw, 21rem);
  font-weight: 650;
  font-stretch: 115%;
  line-height: 0.7;
  letter-spacing: -0.055em;
  text-align: center;
  color: rgba(241, 237, 228, 0.045);
  user-select: none;
  pointer-events: none;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-soft);
}

/* ---------- collection heads ---------- */

.collection-head {
  padding-top: calc(var(--head-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(44px, 6vw, 72px);
}

.collection-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 28px;
}

.collection-title-row .display-1 {
  max-width: 15ch;
}

.collection-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
  padding-bottom: 8px;
}

.collection-count-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.collection-count-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-soft);
  text-align: right;
}

.collection-lede {
  max-width: 54ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.16vw, 1.1rem);
  line-height: 1.66;
  color: var(--body-muted);
  text-wrap: pretty;
}

.collection-body {
  border-top: 1px solid var(--line);
}

/* ---------- project cards ---------- */

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--ink);
  transition: background 220ms ease;
}

.project-card:hover {
  background: var(--ink-elev);
}

.project-card-lead {
  grid-column: 1 / -1;
  grid-row: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  padding: 0;
  min-height: 380px;
}

.project-card-lead .card-visual {
  height: 100%;
  min-height: 360px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.project-card-lead .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 3vw, 36px);
}

.card-visual {
  position: relative;
  height: 280px;
  flex: none;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 68% 34%, rgba(255, 90, 54, 0.16), transparent 70%),
    var(--ink-soft);
}

.card-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.card-orbit-1 {
  width: 78%;
  aspect-ratio: 1;
}

.card-orbit-2 {
  width: 50%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(255, 90, 54, 0.34);
}

.card-orbit-3 {
  width: 22%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 36% 32%, #ffd0bf, var(--signal) 48%, #4a1205);
  border: 0;
  box-shadow: 0 0 50px rgba(255, 90, 54, 0.3);
}

.card-index {
  position: absolute;
  left: 18px;
  bottom: -0.16em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 11vw, 10rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 237, 228, 0.24);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.card-lang,
.card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--body-soft);
}

.card-index-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--body-soft);
}

.project-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.038em;
  transition: color 200ms ease;
}

.project-card-lead h2 {
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  max-width: 14ch;
}

.project-card:hover h2 {
  color: var(--signal);
}

.project-card p {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--body-muted);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 28px;
}

.card-repo {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--body-soft);
}

.card-arrow {
  font-size: 18px;
  color: var(--body-soft);
  transition: color 200ms ease, transform 220ms var(--ease);
}

.project-card:hover .card-arrow {
  color: var(--signal);
  transform: translate(3px, -3px);
}

/* ---------- insight list ---------- */

.insight-list {
  border-top: 1px solid var(--line);
}

.insight-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 120px 32px;
  gap: clamp(16px, 2vw, 30px);
  align-items: center;
  padding: 32px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, padding 220ms var(--ease);
}

.insight-row:hover {
  background: rgba(241, 237, 228, 0.025);
  padding-left: 18px;
}

.insight-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--body-soft);
  align-self: start;
  padding-top: 5px;
}

.insight-cat {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.insight-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -0.032em;
  transition: color 200ms ease;
}

.insight-row:hover .insight-body h3 {
  color: var(--signal);
}

.insight-body p {
  max-width: 64ch;
  margin-top: 9px;
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--body-muted);
}

.insight-read {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-soft);
  justify-self: end;
}

/* ---------- journal ---------- */

.journal-list {
  border-top: 1px solid var(--line);
}

.journal-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 140px 32px;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: start;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, padding 220ms var(--ease);
}

.journal-row:hover {
  background: rgba(241, 237, 228, 0.025);
  padding-left: 18px;
}

.journal-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--signal);
  padding-top: 5px;
}

.journal-desk {
  display: inline-block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.journal-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 200ms ease;
}

.journal-row:hover .journal-body h2 {
  color: var(--signal);
}

.journal-body p {
  max-width: 64ch;
  margin-top: 9px;
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--body-muted);
}

.journal-author {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-soft);
  justify-self: end;
  padding-top: 5px;
}

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  margin-left: 6px;
  padding-left: clamp(24px, 4vw, 50px);
  border-left: 1px solid var(--line);
}

.timeline-year {
  position: relative;
  margin-left: calc(clamp(24px, 4vw, 50px) * -1);
  padding-bottom: 10px;
}

.timeline-year span {
  padding-right: 18px;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--signal);
}

.timeline-year-next {
  margin-top: 56px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: 26px 0 48px;
}

.timeline-marker {
  position: absolute;
  top: 31px;
  left: calc(clamp(24px, 4vw, 50px) * -1);
  width: 9px;
  height: 9px;
  margin-left: -5px;
  background: var(--body-soft);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.timeline-marker[data-tone='now'] {
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-soft);
}

.timeline-marker[data-tone='next'] {
  background: var(--ink);
  border: 1px solid var(--body-soft);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.timeline-q {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.timeline-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.04em;
  transition: color 200ms ease;
}

.timeline-item:hover .timeline-body h2 {
  color: var(--signal);
}

.timeline-body p {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--body-muted);
}

.timeline-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.timeline-item:hover .timeline-link {
  color: var(--signal);
}

/* ---------- article ---------- */

.article-head {
  position: relative;
  padding-top: calc(var(--head-h) + clamp(48px, 7vw, 86px));
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(255, 90, 54, 0.08), transparent 65%),
    var(--ink);
}

.article-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--body-muted);
  transition: color 160ms ease;
}

.article-back:hover {
  color: var(--signal);
}

.back-arrow {
  font-size: 13px;
}

.article-kicker {
  margin-left: auto;
  color: var(--signal);
}

.article-title {
  max-width: 19ch;
  margin-top: clamp(26px, 4vw, 42px);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  font-weight: 560;
  font-stretch: 106%;
  line-height: 0.94;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.article-lede {
  max-width: 62ch;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.62;
  color: var(--body-muted);
  text-wrap: pretty;
}

.article-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.article-fact .meta-value {
  font-size: 11.5px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(44px, 6vw, 76px);
}

.article-main {
  min-width: 0;
}

.article-aside {
  position: relative;
}

.aside-inner {
  position: sticky;
  top: calc(var(--head-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.aside-repo .btn {
  width: 100%;
  justify-content: space-between;
}

.toc-block .meta-label {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toc ul ul {
  margin-top: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.toc a {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--body-muted);
  transition: color 160ms ease;
}

.toc a:hover {
  color: var(--signal);
}

.article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-top-link {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-soft);
  transition: color 160ms ease;
}

.article-top-link:hover {
  color: var(--signal);
}

.article-nextprev {
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.nextprev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.nextprev-item a {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nextprev-item .meta-label {
  display: inline-flex;
  gap: 8px;
}

.nextprev-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  transition: color 180ms ease;
}

.nextprev-item a:hover strong {
  color: var(--signal);
}

.nextprev-next {
  text-align: right;
}

.nextprev-next .meta-label {
  justify-content: flex-end;
}

/* ---------- page / singleton ---------- */

.page-head {
  position: relative;
  padding-top: calc(var(--head-h) + clamp(54px, 8vw, 96px));
  padding-bottom: clamp(48px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(1000px 540px at 82% 30%, rgba(255, 90, 54, 0.1), transparent 66%),
    var(--ink);
}

.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.page-head-copy .display-1 {
  max-width: 14ch;
  margin-top: 26px;
}

.page-lede {
  max-width: 58ch;
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  line-height: 1.66;
  color: var(--body-muted);
}

.page-orbit {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 1;
}

.page-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.page-orbit-ring-1 {
  width: 100%;
  aspect-ratio: 1;
}

.page-orbit-ring-2 {
  width: 66%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(255, 90, 54, 0.3);
  animation: orbit-spin 70s linear infinite;
}

.page-orbit-ring-3 {
  width: 36%;
  aspect-ratio: 1;
  border-color: rgba(241, 237, 228, 0.22);
}

.page-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle at 36% 32%, #ffd0bf, var(--signal) 52%, #4a1205);
  box-shadow: 0 0 34px rgba(255, 90, 54, 0.36);
  border-radius: 50%;
}

.page-orbit-node {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--paper);
  transform: rotate(45deg);
}

.page-orbit-node-1 {
  top: 18%;
  left: 20%;
}

.page-orbit-node-2 {
  right: 12%;
  bottom: 26%;
  background: var(--signal);
}

.page-section {
  border-top: 0;
  padding-top: clamp(56px, 7vw, 84px);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.highlight {
  padding: 24px clamp(18px, 2.4vw, 32px) 28px;
  border-right: 1px solid var(--line);
}

.highlight:first-child {
  padding-left: 0;
}

.highlight:last-child {
  border-right: 0;
}

.highlight p {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--paper);
}

.page-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(52px, 7vw, 84px);
}

.aside-card {
  position: sticky;
  top: calc(var(--head-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.aside-mail {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--paper);
  transition: color 180ms ease;
}

.aside-mail:hover {
  color: var(--signal);
}

.page-next {
  padding-block: 44px;
  border-top: 1px solid var(--line);
}

.page-next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.page-next-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-muted);
  transition: color 180ms ease, padding 180ms var(--ease);
}

.page-next-links a:last-child {
  border-right: 0;
}

.page-next-links a:hover {
  color: var(--signal);
  padding-left: 10px;
}

/* ---------- prose ---------- */

.prose {
  color: var(--body-muted);
  font-size: clamp(1rem, 1.12vw, 1.075rem);
  line-height: 1.78;
}

.prose > * + * {
  margin-top: 1.45em;
}

.prose > p:first-of-type {
  font-size: 1.22em;
  line-height: 1.62;
  color: var(--paper);
}

.prose h2 {
  margin-top: 2.4em;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--paper);
  scroll-margin-top: calc(var(--head-h) + 24px);
}

.prose h3 {
  margin-top: 2em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
  font-weight: 520;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.prose p,
.prose li {
  max-width: 68ch;
}

.prose strong {
  color: var(--paper);
  font-weight: 560;
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255, 90, 54, 0.4);
  transition: text-decoration-color 160ms ease;
}

.prose a:hover {
  text-decoration-color: var(--signal);
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--signal);
}

.prose blockquote {
  margin-block: 2em;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--signal);
  font-family: var(--font-display);
  font-size: 1.35em;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.prose hr {
  margin-block: 2.6em;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--paper);
}

.prose pre {
  max-width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  overflow-x: auto;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.84rem;
  line-height: 1.65;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--paper);
  font-weight: 560;
}

.prose-page {
  max-width: 780px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

/* ---------- reading progress ---------- */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

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

@media (max-width: 1120px) {
  .head-nav {
    gap: 16px;
  }

  .head-github {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .project-row {
    grid-template-columns: 56px minmax(0, 1fr) 190px 24px;
  }

  .article-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 48px;
  }

  .page-body-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 48px;
  }
}

@media (max-width: 960px) {
  :root {
    --head-h: 64px;
  }

  .head-nav,
  .head-github {
    display: none;
  }

  .menu {
    display: block;
  }

  .head-tools {
    margin-left: auto;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--head-h) + 52px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 10px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(3.4rem, 13vw, 7rem);
  }

  .orbit-stage {
    width: min(100%, 420px);
    margin: 18px auto 0;
  }

  .hero-foot {
    margin-top: 12px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .feature-aside {
    min-height: 0;
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid rgba(7, 9, 11, 0.2);
  }

  .feature-quote {
    display: none;
  }

  .feature-diagram {
    display: none;
  }

  .feature-meta {
    max-width: 420px;
  }

  .feature-index-mark {
    display: none;
  }

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

  .stage {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage:last-child {
    border-bottom: 0;
  }

  .stage h3 {
    margin-top: 0;
    padding-top: 38px;
  }

  .stage p {
    max-width: 54ch;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

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

  .project-card-lead {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-card-lead .card-visual {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .card-visual {
    height: 240px;
  }

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

  .article-aside {
    display: none;
  }

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

  .page-orbit {
    display: none;
  }

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

  .page-aside {
    order: -1;
  }

  .aside-card {
    position: static;
  }

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

  .highlight {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
  }

  .highlight:last-child {
    border-bottom: 0;
  }

  .page-next-links {
    grid-template-columns: 1fr 1fr;
  }

  .page-next-links a:nth-child(2) {
    border-right: 0;
  }

  .page-next-links a:nth-child(3),
  .page-next-links a:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: clamp(58px, 12vw, 88px);
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
    line-height: 0.9;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .orbit-stage {
    width: min(100%, 330px);
  }

  .orbit-node {
    font-size: 8px;
  }

  .project-row,
  .milestone-row,
  .insight-row,
  .journal-row {
    grid-template-columns: 1fr 32px;
    gap: 12px;
    padding-block: 24px;
  }

  .project-index,
  .insight-index,
  .journal-date,
  .milestone-q {
    display: none;
  }

  .project-meta,
  .insight-read,
  .journal-author {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }

  .milestone-row .status {
    grid-column: 1 / 2;
    margin-top: 4px;
  }

  .journal-body {
    grid-column: 1 / 2;
  }

  .project-arrow,
  .milestone-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .journal-row .project-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .collection-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .collection-count {
    align-items: flex-start;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .collection-count-label {
    text-align: left;
  }

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

  .stat {
    min-height: 150px;
    padding-left: 18px;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
  }

  .stat-value {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .timeline {
    padding-left: 22px;
    margin-left: 4px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 38px;
  }

  .timeline-marker {
    left: -22px;
    top: 27px;
  }

  .timeline-year {
    margin-left: -22px;
  }

  .cta-actions,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: auto;
  }

  .article-title {
    font-size: clamp(2.3rem, 9vw, 3.6rem);
  }

  .article-lede {
    font-size: 1rem;
  }

  .article-facts {
    gap: 20px 28px;
  }

  .nextprev-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .nextprev-next {
    text-align: left;
  }

  .nextprev-next .meta-label {
    justify-content: flex-start;
  }

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

  .foot-wordmark {
    font-size: 26vw;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .page-next-links {
    grid-template-columns: 1fr;
  }

  .page-next-links a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-block: 16px;
  }

  .page-next-links a:last-child {
    border-bottom: 0;
  }

  .page-next-links a:nth-child(3),
  .page-next-links a:nth-child(4) {
    border-top: 0;
  }

  .article-back {
    order: 1;
    flex: 1 0 100%;
  }

  .article-topline {
    gap: 10px 14px;
  }

  .article-kicker {
    margin-left: 0;
    order: 2;
  }

  .article-topline .status {
    order: 3;
  }

  .feature-title {
    font-size: clamp(2.1rem, 8vw, 3.2rem);
  }

  .feature-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ticker-set {
    gap: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 420px) {
  .head-inner {
    gap: 12px;
  }

  .brand-word {
    font-size: 15px;
  }

  .lang-opt {
    padding-inline: 6px;
  }

  .stat-value {
    font-size: 2.6rem;
  }
}

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

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

  .ticker-track {
    animation: none;
  }

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