:root {
  --ink: #0a0b0d;
  --ink-soft: #17191d;
  --paper: #f2eee5;
  --paper-deep: #e5ded1;
  --orange: #ff5b35;
  --orange-dark: #dc3e1b;
  --muted: #8a8984;
  --line: rgba(10, 11, 13, 0.18);
  --line-dark: rgba(242, 238, 229, 0.18);
  --page: min(1240px, calc(100vw - 64px));
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
  --ink: #f3efe6;
  --ink-soft: #e7e0d4;
  --paper: #111216;
  --paper-deep: #25262a;
  --muted: #74736f;
  --line: rgba(242, 238, 229, 0.18);
  --line-dark: rgba(10, 11, 13, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.025;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; }

::selection { color: #fff; background: var(--orange); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--orange);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.section-shell,
.header-inner {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  place-items: center;
  font: 600 18px var(--mono);
  transform: rotate(-4deg);
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font: 700 16px var(--serif); letter-spacing: 0.12em; }
.brand-copy small { font: 500 9px var(--mono); letter-spacing: 0.12em; opacity: 0.65; }

.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.desktop-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; justify-self: end; gap: 8px; }
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.icon-button:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
.icon-button svg { width: 19px; height: 19px; }

.mobile-menu-toggle { display: none; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform 180ms ease; }
.mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { display: none; }

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  background: var(--ink);
  color: var(--paper);
}

.hero-copy {
  display: flex;
  min-height: 720px;
  min-width: 0;
  overflow: hidden;
  padding: clamp(72px, 8vw, 120px) max(32px, calc((100vw - 1240px) / 2));
  padding-right: clamp(48px, 7vw, 110px);
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font: 500 10px var(--mono);
  letter-spacing: 0.15em;
}
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }

.hero h1 {
  max-width: 790px;
  margin: 0;
  font: 900 clamp(50px, 5.4vw, 82px)/1.08 var(--serif);
  letter-spacing: -0.07em;
}
.hero h1 span { display: inline-block; white-space: nowrap; }

.hero-role {
  width: fit-content;
  margin: 0 0 22px;
  padding: 7px 10px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font: 600 10px var(--mono);
  letter-spacing: .1em;
}

.hero-lede {
  max-width: 640px;
  margin: 38px 0 0;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.9;
}

.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 42px; }
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid var(--orange);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}
.button-primary { color: #fff; background: var(--orange); }
.button:hover { transform: translateY(-3px); }
.text-link { font-size: 13px; font-weight: 600; }
.text-link span { display: inline-block; margin-left: 8px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(5px); }

.hero-stats {
  display: flex;
  gap: 0;
  margin: 70px 0 0;
  padding: 0;
}
.hero-stats div { min-width: 120px; padding-right: 28px; border-right: 1px solid var(--line-dark); }
.hero-stats div + div { padding-left: 28px; }
.hero-stats dt { margin-bottom: 4px; font: 600 23px var(--mono); }
.hero-stats dd { margin: 0; color: color-mix(in srgb, var(--paper) 52%, transparent); font-size: 11px; }

.workbench {
  display: grid;
  min-width: 0;
  border-left: 1px solid var(--line-dark);
  grid-template-rows: 50px 1fr auto;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--ink-soft);
  background-size: 32px 32px;
}

.workbench-topbar {
  display: flex;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  font: 500 9px var(--mono);
  letter-spacing: 0.13em;
}
.workbench-topbar i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.workbench-screen { display: flex; min-height: 400px; padding: 54px 42px; flex-direction: column; justify-content: flex-end; }
.signal-grid { display: flex; height: 150px; align-items: flex-end; gap: 8px; margin-bottom: 48px; }
.signal-grid span { width: calc(100% / 12); height: var(--h); border: 1px solid var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.signal-grid span:nth-child(3n + 2) { background: var(--orange); }
.workbench-label { margin: 0 0 15px; color: var(--orange); font: 500 10px var(--mono); letter-spacing: 0.14em; }
.workbench-screen h2 { margin: 0; font: 700 clamp(29px, 3.2vw, 48px)/1.25 var(--serif); letter-spacing: -0.045em; }
.workbench-screen > p:last-child { max-width: 480px; margin: 20px 0 0; color: color-mix(in srgb, var(--paper) 58%, transparent); font-size: 13px; line-height: 1.75; }

.workbench-log { border-top: 1px solid var(--line-dark); }
.workbench-log div { display: grid; padding: 16px 22px; grid-template-columns: 36px 1fr; border-bottom: 1px solid var(--line-dark); }
.workbench-log div:last-child { border-bottom: 0; }
.workbench-log span { color: var(--orange); font: 500 10px var(--mono); }
.workbench-log p { margin: 0; color: color-mix(in srgb, var(--paper) 68%, transparent); font-size: 11px; line-height: 1.6; }

.capability-board {
  display: grid;
  min-width: 0;
  border-left: 1px solid var(--line-dark);
  grid-template-rows: 50px minmax(220px, .72fr) auto;
  background:
    radial-gradient(circle at 72% 23%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 34%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--ink-soft);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.capability-board-topbar {
  display: flex;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  font: 500 9px var(--mono);
  letter-spacing: .13em;
}

.capability-board-topbar i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.capability-intro {
  display: flex;
  min-height: 260px;
  padding: 44px 36px 34px;
  flex-direction: column;
  justify-content: flex-end;
}

.capability-intro span {
  margin-bottom: 15px;
  color: var(--orange);
  font: 500 10px var(--mono);
  letter-spacing: .12em;
}

.capability-intro strong {
  font: 700 clamp(31px, 3.3vw, 50px)/1.24 var(--serif);
  letter-spacing: -.05em;
}

.capability-list { margin: 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; }
.capability-list li {
  display: grid;
  min-height: 94px;
  padding: 18px 22px;
  align-items: center;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  border-bottom: 1px solid var(--line-dark);
  transition: background 180ms ease, padding-left 180ms ease;
}
.capability-list li:last-child { border-bottom: 0; }
.capability-list li:hover { padding-left: 28px; background: color-mix(in srgb, var(--orange) 11%, transparent); }
.capability-list > li > span { color: var(--orange); font: 500 10px var(--mono); }
.capability-list div { display: grid; gap: 6px; }
.capability-list strong { font: 700 17px var(--serif); }
.capability-list small { color: color-mix(in srgb, var(--paper) 52%, transparent); font: 500 9px var(--mono); line-height: 1.5; }
.capability-list b { color: color-mix(in srgb, var(--paper) 42%, transparent); font: 500 8px var(--mono); letter-spacing: .1em; }

.ticker { overflow: hidden; border-block: 1px solid var(--line); color: var(--ink); background: var(--orange); }
.ticker-track { display: flex; width: max-content; height: 42px; align-items: center; gap: 26px; animation: ticker 26s linear infinite; font: 600 10px var(--mono); letter-spacing: 0.14em; }
.ticker-track i { font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-heading {
  display: flex;
  padding: 112px 0 48px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading h2 { margin: 0; font: 800 clamp(38px, 5vw, 68px)/1.08 var(--serif); letter-spacing: -0.06em; }
.section-heading > p { max-width: 360px; margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.featured-grid {
  display: grid;
  padding: 42px 0 120px;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.featured-grid-single { grid-template-columns: 1fr; }
.feature-card { position: relative; display: grid; min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.feature-card-main { grid-row: span 2; }
.feature-card:not(.feature-card-main) { grid-template-columns: minmax(190px, .75fr) 1fr; }
.card-cover { position: relative; display: flex; min-height: 280px; overflow: hidden; padding: 24px; flex-direction: column; justify-content: space-between; color: #f2eee5; background: #111216; }
.feature-card-main .card-cover { min-height: 460px; }
.cover-index, .cover-note { z-index: 2; font: 500 9px var(--mono); letter-spacing: 0.13em; }
.cover-note { align-self: flex-end; }

.cover-workflow {
  background:
    radial-gradient(circle at 78% 15%, rgba(255,91,53,.58), transparent 25%),
    linear-gradient(140deg, #111216 0 50%, #1e2025 50%);
}
.cover-workflow::after, .cover-models::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(242,238,229,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(242,238,229,.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.workflow-graphic { z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; }
.workflow-graphic b { display: grid; width: 90px; height: 90px; border: 1px solid rgba(242,238,229,.8); place-items: center; font: 600 16px var(--serif); }
.workflow-graphic b:nth-of-type(2) { color: #fff; border-color: var(--orange); background: var(--orange); transform: rotate(6deg); }
.workflow-graphic i { font: normal 19px var(--mono); }

.cover-models { min-height: 100%; background: #d9d2c5; color: #111216; }
.model-orbits { position: absolute; inset: 18% 14%; z-index: 1; border: 1px solid #111216; border-radius: 50%; }
.model-orbits::before, .model-orbits::after { position: absolute; inset: 16%; border: 1px solid #111216; border-radius: 50%; content: ""; }
.model-orbits::after { inset: 34%; background: var(--orange); border-color: var(--orange); }
.model-orbits i { position: absolute; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: #111216; }
.model-orbits i:nth-child(1) { top: -4px; left: 50%; }.model-orbits i:nth-child(2) { top: 50%; right: -4px; }
.model-orbits i:nth-child(3) { bottom: -4px; left: 40%; }.model-orbits i:nth-child(4) { top: 45%; left: -4px; }
.model-orbits i:nth-child(5) { top: 23%; left: 19%; }.model-orbits i:nth-child(6) { right: 19%; bottom: 23%; }
.cover-models strong { z-index: 2; align-self: flex-end; font: 600 58px var(--mono); }

.cover-thought { min-height: 100%; color: #111216; background: var(--orange); }
.cover-thought::after { position: absolute; top: -40px; right: -30px; width: 170px; height: 170px; border: 1px solid rgba(17,18,22,.35); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(17,18,22,.05), 0 0 0 54px rgba(17,18,22,.05); }
.cover-thought blockquote { z-index: 2; margin: auto 0; font: 700 22px/1.65 var(--serif); }

.feature-body { position: relative; padding: 28px; }
.feature-card-main .feature-body { padding: 34px; }
.meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 500 9px var(--mono); letter-spacing: .1em; }
.tag { display: inline-flex; min-height: 23px; padding: 0 8px; align-items: center; border: 1px solid currentColor; color: var(--ink); font: 600 10px var(--sans); letter-spacing: .08em; }
.tag-orange { color: #fff; border-color: var(--orange); background: var(--orange); }
.feature-body h3 { max-width: 720px; margin: 18px 48px 12px 0; font: 700 clamp(19px, 2vw, 31px)/1.45 var(--serif); letter-spacing: -.035em; }
.feature-card-main .feature-body h3 { font-size: clamp(27px, 3vw, 42px); }
.feature-body h3 a { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size 220ms ease; }
.feature-body h3 a:hover { background-size: 100% 1px; }
.feature-body p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.arrow-link, .row-arrow { display: grid; width: 38px; height: 38px; border: 1px solid var(--line); place-items: center; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.arrow-link { position: absolute; top: 28px; right: 28px; }
.arrow-link:hover, .row-arrow:hover { color: #fff; background: var(--orange); border-color: var(--orange); transform: rotate(8deg); }

.content-library { color: var(--paper); background: var(--ink); }
.section-heading-light { border-color: var(--line-dark); }
.section-heading-light > p { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.library-grid { display: grid; padding: 52px 0 120px; grid-template-columns: repeat(4, 1fr); }
.library-card { position: relative; min-height: 390px; padding: 26px; border: 1px solid var(--line-dark); border-right: 0; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.library-card:last-child { border-right: 1px solid var(--line-dark); }
.library-card:hover { z-index: 2; color: #111216; background: var(--orange); transform: translateY(-8px); }
.library-number { font: 500 10px var(--mono); }
.library-symbol { position: absolute; top: 22px; right: 24px; font: 400 25px var(--mono); }
.library-card h3 { margin: 190px 0 4px; font: 700 34px var(--serif); }
.library-card > p { margin: 0 0 22px; font: 500 9px var(--mono); letter-spacing: .15em; }
.library-card small { display: block; max-width: 180px; color: color-mix(in srgb, currentColor 62%, transparent); font-size: 12px; line-height: 1.75; }

.knowledge-section { overflow: hidden; color: var(--paper); background: var(--ink); }
.knowledge-map {
  --knowledge-text: #f2eee5;
  position: relative;
  height: 720px;
  margin: 48px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  color: var(--knowledge-text);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,91,53,.12), transparent 38%),
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.06) 0 1px, transparent 2px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #101216;
  background-size: auto, 45px 45px, 64px 64px, 64px 64px, auto;
}

.knowledge-map::before {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 3;
  color: color-mix(in srgb, var(--knowledge-text) 40%, transparent);
  content: "LIVE CONTENT GRAPH / DRAG-FREE OVERVIEW";
  font: 500 8px var(--mono);
  letter-spacing: .14em;
}

.knowledge-lines { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(255, 91, 53, .32); stroke-width: 1; }
.knowledge-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.knowledge-node-article {
  display: flex;
  width: min(225px, 22vw);
  min-height: 145px;
  padding: 19px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--knowledge-text) 54%, transparent);
  background: color-mix(in srgb, #101216 88%, transparent);
  box-shadow: 9px 9px 0 rgba(255, 91, 53, .14);
  backdrop-filter: blur(7px);
}
.knowledge-node-article:hover { z-index: 5; color: #111216; border-color: var(--orange); background: var(--orange); transform: translate(-50%, -50%) translateY(-5px); }
.knowledge-node-article small { font: 600 8px var(--mono); letter-spacing: .12em; opacity: .62; }
.knowledge-node-article strong { margin-block: 14px; font: 700 16px/1.55 var(--serif); }
.knowledge-node-article span { align-self: flex-end; font: 500 9px var(--mono); }

.knowledge-node-tag {
  display: inline-flex;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  background: #101216;
  font: 500 9px var(--mono);
  white-space: nowrap;
}
.knowledge-node-tag small { display: grid; width: 16px; height: 16px; border-radius: 50%; color: #111216; background: var(--orange); place-items: center; font-size: 7px; }
.knowledge-node-tag:hover { z-index: 6; color: #111216; background: var(--orange); transform: translate(-50%, -50%) scale(1.08); }
.knowledge-node-tag:hover small { color: var(--orange); background: #111216; }

.knowledge-legend {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--knowledge-text) 50%, transparent);
  font: 500 8px var(--mono);
  letter-spacing: .08em;
}
.knowledge-legend i, .knowledge-legend b { width: 20px; height: 10px; border: 1px solid var(--knowledge-text); }
.knowledge-legend b { margin-left: 10px; border-color: var(--orange); border-radius: 999px; }
.knowledge-mobile-list { display: none; }
.knowledge-index-link { display: flex; width: fit-content; margin: 0 0 110px auto; padding-bottom: 7px; gap: 18px; border-bottom: 1px solid var(--orange); font-size: 12px; font-weight: 600; }
.knowledge-index-link:hover { color: var(--orange); }

.latest-section { padding-bottom: 120px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.content-filter { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 11px; }
.content-filter:hover, .content-filter.is-active { color: #fff; border-color: var(--orange); background: var(--orange); }
.tag-filter-panel { margin: -45px 0 34px; padding: 18px 20px 20px; border: 1px solid var(--line); }
.tag-filter-heading { display: flex; margin-bottom: 14px; justify-content: space-between; gap: 24px; color: var(--muted); font: 500 9px var(--mono); letter-spacing: .1em; }
.tag-filter-heading a { color: var(--ink); }
.tag-filter-heading a:hover { color: var(--orange); }
.tag-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter { display: inline-flex; min-height: 31px; padding: 0 11px; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 10px; }
.tag-filter small { color: var(--muted); font: 500 8px var(--mono); }
.tag-filter:hover, .tag-filter.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.tag-filter:hover small, .tag-filter.is-active small { color: color-mix(in srgb, #fff 62%, transparent); }
.post-row { display: grid; min-height: 150px; padding: 28px 0; align-items: center; grid-template-columns: 110px 130px 1fr 50px; gap: 24px; border-bottom: 1px solid var(--line); transition: opacity 180ms ease; }
.post-row[hidden] { display: none; }
.post-row time { font: 500 32px var(--mono); }
.post-row time span { display: block; margin-bottom: 4px; color: var(--orange); font-size: 9px; letter-spacing: .12em; }
.post-type { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.post-type small { color: var(--muted); font-size: 10px; }
.post-copy h3 { margin: 0 0 8px; font: 700 clamp(19px, 2.2vw, 28px)/1.4 var(--serif); letter-spacing: -.03em; }
.post-copy h3 a:hover { color: var(--orange); }
.post-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.article-tag { display: inline-flex; min-height: 26px; padding: 0 8px; align-items: center; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 500 9px var(--mono); letter-spacing: .04em; }
.article-tag:hover { color: #fff; border-color: var(--orange); background: var(--orange); }
.row-arrow { justify-self: end; }
.empty-state { padding: 50px; border: 1px solid var(--line); text-align: center; color: var(--muted); }

.series-section { color: var(--paper); background: var(--ink); }
.series-grid { display: grid; padding: 52px 0 120px; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.series-card { display: flex; min-height: 440px; padding: 28px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-dark); background: var(--ink-soft); transition: transform 180ms ease; }
.series-card:hover { transform: translateY(-7px); }
.series-card.series-orange { color: #111216; border-color: var(--orange); background: var(--orange); }
.series-card.series-outline { background: transparent; }
.series-top { display: flex; justify-content: space-between; font: 500 9px var(--mono); letter-spacing: .12em; }
.series-card > div:nth-child(2) > p:first-child { margin: 0 0 10px; font: 500 9px var(--mono); letter-spacing: .14em; }
.series-card h3 { margin: 0 0 18px; font: 700 34px var(--serif); }
.series-card > div:nth-child(2) > p:last-child { max-width: 290px; margin: 0; color: color-mix(in srgb, currentColor 65%, transparent); font-size: 12px; line-height: 1.8; }
.series-card > a { display: flex; padding-top: 18px; justify-content: space-between; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: 12px; font-weight: 600; }

.about-section { display: grid; min-height: 650px; padding-block: 110px; align-items: center; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.about-mark { display: grid; width: min(380px, 35vw); aspect-ratio: 1; border: 1px solid var(--line); place-items: center; background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--orange) 8%, transparent) 12px 13px); }
.about-mark span { display: grid; width: 55%; aspect-ratio: 1; color: #fff; background: var(--orange); place-items: center; font: 600 clamp(76px, 10vw, 150px) var(--mono); transform: rotate(-6deg); box-shadow: 22px 22px 0 var(--ink); }
.about-copy h2 { margin: 0 0 30px; font: 800 clamp(34px, 4.4vw, 64px)/1.2 var(--serif); letter-spacing: -.06em; }
.about-copy > p:not(.eyebrow, .signature) { max-width: 680px; color: var(--muted); font-size: 15px; line-height: 2; }
.signature { margin-top: 32px; font: 500 11px var(--mono); letter-spacing: .1em; }

.lab-section { display: grid; padding-block: 120px; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 8vw; }
.lab-intro { position: sticky; top: 120px; align-self: start; }
.lab-intro h2 { margin: 0 0 28px; font: 800 clamp(48px, 6vw, 80px)/1 var(--serif); letter-spacing: -.07em; }
.lab-intro > p:last-child { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.lab-projects { display: grid; grid-template-columns: repeat(2, 1fr); }
.lab-card {
  display: flex;
  min-height: 330px;
  padding: 26px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.lab-card:nth-child(even) { border-left: 0; }
.lab-card:nth-child(n + 3) { border-top: 0; }
.lab-card:hover { z-index: 2; transform: translateY(-7px); box-shadow: 12px 12px 0 color-mix(in srgb, var(--orange) 22%, transparent); }
.lab-card-accent { color: #111216; border-color: var(--orange); background: var(--orange); }
.lab-card > div { display: flex; justify-content: space-between; font: 500 9px var(--mono); letter-spacing: .12em; }
.lab-card > div b { font-weight: 500; opacity: .58; }
.lab-card h3 { margin: auto 0 18px; font: 700 28px/1.35 var(--serif); letter-spacing: -.04em; }
.lab-card p { margin: 0 0 28px; color: color-mix(in srgb, currentColor 62%, transparent); font-size: 12px; line-height: 1.85; }
.lab-card > small { padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); font: 500 8px var(--mono); letter-spacing: .1em; }

.site-footer { padding: 70px max(32px, calc((100vw - 1240px) / 2)) 24px; color: var(--paper); background: var(--ink); }
.footer-main { display: flex; padding-bottom: 70px; justify-content: space-between; }
.footer-brand { margin-bottom: 24px; }
.footer-main > div:first-child > p { color: color-mix(in srgb, var(--paper) 48%, transparent); font-size: 12px; }
.footer-links { display: flex; gap: 100px; }
.footer-links div { display: grid; align-content: start; gap: 12px; min-width: 80px; font-size: 12px; }
.footer-links strong { margin-bottom: 8px; color: color-mix(in srgb, var(--paper) 40%, transparent); font: 500 9px var(--mono); letter-spacing: .14em; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; padding-top: 22px; justify-content: space-between; border-top: 1px solid var(--line-dark); color: color-mix(in srgb, var(--paper) 42%, transparent); font: 500 9px var(--mono); letter-spacing: .12em; }

.search-dialog { width: min(680px, calc(100vw - 32px)); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.search-dialog::backdrop { background: rgba(5,6,8,.78); backdrop-filter: blur(7px); }
.search-panel { padding: 34px; }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; }
.search-head p { margin: 0 0 8px; color: var(--orange); font: 500 9px var(--mono); letter-spacing: .14em; }
.search-head h2 { margin: 0; font: 700 32px var(--serif); }
.search-close { color: var(--ink); border-color: var(--line); font: 300 24px var(--sans); }
.search-field { display: flex; margin-top: 28px; padding: 0 16px; align-items: center; gap: 12px; border: 1px solid var(--line); }
.search-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.search-field svg { width: 20px; flex: 0 0 auto; }
.search-field input { width: 100%; height: 56px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-results { display: grid; gap: 0; max-height: 330px; margin-top: 18px; overflow-y: auto; }
.search-hint, .search-empty { margin: 20px 0; color: var(--muted); font-size: 12px; }
.search-result { display: grid; padding: 16px 4px; grid-template-columns: 76px 1fr auto; gap: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.search-result span:first-child { color: var(--orange); font: 500 9px var(--mono); letter-spacing: .08em; }
.search-result span:last-child { transition: transform 180ms ease; }
.search-result:hover span:last-child { transform: translateX(4px); }
.search-shortcut { margin: 26px 0 0; color: var(--muted); font-size: 10px; }
kbd { padding: 3px 6px; border: 1px solid var(--line); font: 500 9px var(--mono); }

/* Tutorial */
.reading-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 60; height: 3px; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--orange); }
.article-hero { color: var(--paper); background: var(--ink); }
.article-hero-inner { width: min(980px, calc(100vw - 64px)); margin-inline: auto; padding: 82px 0 92px; }
.back-link { display: inline-block; margin-bottom: 70px; color: color-mix(in srgb, var(--paper) 58%, transparent); font: 500 10px var(--mono); letter-spacing: .08em; }
.back-link:hover { color: var(--orange); }
.article-kicker { display: flex; align-items: center; gap: 14px; color: color-mix(in srgb, var(--paper) 55%, transparent); font: 500 9px var(--mono); letter-spacing: .12em; }
.article-hero h1 { max-width: 960px; margin: 30px 0; font: 800 clamp(45px, 6.2vw, 86px)/1.17 var(--serif); letter-spacing: -.065em; }
.article-deck { max-width: 750px; margin: 0; color: color-mix(in srgb, var(--paper) 66%, transparent); font: 400 clamp(16px, 1.6vw, 20px)/1.9 var(--sans); }
.article-meta { display: grid; margin-top: 68px; padding-top: 25px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.article-meta div { display: grid; gap: 7px; }
.article-meta span { color: color-mix(in srgb, var(--paper) 42%, transparent); font-size: 9px; }
.article-meta strong { font: 500 11px var(--mono); letter-spacing: .04em; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.article-hero .article-tag { color: color-mix(in srgb, var(--paper) 65%, transparent); border-color: var(--line-dark); }

.tag-directory-hero { padding: 80px 0 90px; color: var(--paper); background: var(--ink); }
.tag-directory-hero .back-link { margin-bottom: 74px; }
.tag-directory-hero h1 { max-width: 990px; margin: 25px 0 28px; font: 800 clamp(44px, 6.4vw, 86px)/1.18 var(--serif); letter-spacing: -.065em; }
.tag-directory-hero > div > p:not(.eyebrow) { max-width: 660px; margin: 0; color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: 16px; line-height: 1.9; }
.tag-directory-hero dl { display: flex; margin: 62px 0 0; gap: 54px; }
.tag-directory-hero dl div { display: grid; gap: 3px; }
.tag-directory-hero dt { color: var(--orange); font: 500 28px var(--mono); }
.tag-directory-hero dd { margin: 0; color: color-mix(in srgb, var(--paper) 48%, transparent); font-size: 10px; }
.tag-directory { padding-block: 72px 130px; }
.tag-cloud { display: grid; margin-bottom: 90px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tag-cloud a { display: flex; min-height: 74px; padding: 18px; align-items: center; justify-content: space-between; gap: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color 180ms ease, background 180ms ease; }
.tag-cloud a:hover { color: #fff; background: var(--orange); }
.tag-cloud span { font: 600 13px var(--sans); }
.tag-cloud small { font: 500 9px var(--mono); opacity: .6; }
.tag-groups { display: grid; gap: 90px; }
.tag-group { scroll-margin-top: 105px; }
.tag-group > header { display: grid; margin-bottom: 22px; align-items: end; grid-template-columns: 64px 1fr; gap: 20px; }
.tag-group > header > span { color: var(--orange); font: 500 11px var(--mono); }
.tag-group header p { margin: 0 0 6px; color: var(--muted); font: 500 8px var(--mono); letter-spacing: .12em; }
.tag-group h2 { margin: 0; font: 800 clamp(30px, 4vw, 51px)/1.2 var(--serif); letter-spacing: -.045em; }
.tag-article-list { border-top: 1px solid var(--line); }
.tag-article-list a { display: grid; min-height: 90px; padding: 18px 0; align-items: center; grid-template-columns: 100px 1fr 100px 32px; gap: 20px; border-bottom: 1px solid var(--line); }
.tag-article-list a:hover strong { color: var(--orange); }
.tag-article-list span, .tag-article-list small { color: var(--muted); font: 500 9px var(--mono); }
.tag-article-list strong { font: 700 18px/1.5 var(--serif); transition: color 180ms ease; }
.tag-article-list b { justify-self: end; font-weight: 400; }

.article-layout { display: grid; padding-block: 72px 130px; grid-template-columns: 190px minmax(0, 720px) 170px; justify-content: space-between; gap: 46px; }
.article-layout-standalone { grid-template-columns: minmax(0, 720px) 170px; justify-content: center; }
.series-nav, .article-toc { position: sticky; top: 115px; height: max-content; }
.series-nav > p, .article-toc > p { margin: 0 0 20px; color: var(--muted); font: 500 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.series-nav ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.series-nav li { border-bottom: 1px solid var(--line); }
.series-nav a { display: grid; padding: 13px 4px; grid-template-columns: 28px 1fr; color: var(--muted); font-size: 11px; line-height: 1.6; }
.series-nav a span { font: 500 9px var(--mono); }
.series-nav li.is-current a { color: var(--ink); font-weight: 700; }
.series-nav li.is-current a span { color: var(--orange); }
.series-progress { display: grid; margin-top: 25px; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted); font-size: 9px; }
.series-progress strong { color: var(--ink); font: 500 9px var(--mono); }
.series-progress i { height: 3px; grid-column: 1 / -1; background: var(--paper-deep); }
.series-progress b { display: block; width: 40%; height: 100%; background: var(--orange); }

.article-content { min-width: 0; font-family: var(--serif); }
.article-content p { margin: 0 0 26px; font-size: 16px; line-height: 2.05; }
.article-content .article-lead { margin-bottom: 38px; font-size: 21px; font-weight: 600; line-height: 1.9; }
.article-content h2 { margin: 76px 0 24px; padding-top: 12px; border-top: 3px solid var(--ink); font: 800 33px/1.45 var(--serif); letter-spacing: -.035em; }
.article-content h3 { margin: 45px 0 18px; font: 700 21px/1.5 var(--serif); }
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 { scroll-margin-top: 110px; }
.article-content h4 { margin: 35px 0 15px; font: 700 17px/1.55 var(--serif); }
.article-content h5,
.article-content h6 { margin: 30px 0 12px; font: 700 14px/1.6 var(--sans); letter-spacing: .02em; }
.article-content strong { font-weight: 800; }
.article-content em { text-underline-offset: .18em; }
.article-content a:not(.article-next a) {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--orange) 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.article-content a:not(.article-next a):hover { color: var(--orange-dark); text-decoration-color: currentColor; }
.article-content > ul,
.article-content > ol { margin: 0 0 30px; padding-left: 1.55em; }
.article-content li { margin: 8px 0; padding-left: .3em; font-size: 16px; line-height: 1.9; }
.article-content li::marker { color: var(--orange); font-family: var(--mono); font-size: .8em; font-weight: 600; }
.article-content li > ul,
.article-content li > ol { margin: 8px 0 12px; padding-left: 1.35em; }
.article-content .contains-task-list { padding-left: 0; list-style: none; }
.article-content .task-list-item { padding-left: 0; }
.article-content .task-list-item input[type="checkbox"] { width: 16px; height: 16px; margin: 0 9px 0 0; vertical-align: -.15em; accent-color: var(--orange); }
.article-content :not(pre) > code {
  padding: .16em .42em;
  border: 1px solid color-mix(in srgb, var(--orange) 24%, var(--line));
  color: var(--orange-dark);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
  font: 500 .84em/1.5 var(--mono);
  overflow-wrap: anywhere;
}
.article-content > pre {
  margin: 35px 0 55px;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.12);
  color: #d8d8d4;
  background: #111216;
  font: 400 12px/1.9 var(--mono);
  tab-size: 2;
}
.article-content > pre code { padding: 0; border: 0; color: inherit; background: none; font: inherit; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 42px auto 14px; border: 1px solid var(--line); }
.article-content > figure:not(.article-figure) { margin: 48px 0 60px; }
.article-content > figure:not(.article-figure) img { margin: 0; }
.article-content > figure figcaption { margin-top: 12px; color: var(--muted); font: 400 11px/1.7 var(--sans); text-align: center; }
.article-content table { display: block; width: 100%; margin: 42px 0 55px; overflow-x: auto; border-collapse: collapse; font: 400 13px/1.65 var(--sans); }
.article-content th,
.article-content td { min-width: 120px; padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { color: var(--ink); background: var(--paper-deep); font-weight: 700; }
.article-content tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper-deep) 42%, transparent); }
.article-content > hr { height: 1px; margin: 64px 0; border: 0; background: var(--line); }
.article-content del { color: var(--muted); text-decoration-thickness: 1px; }
.article-content mark { padding: .08em .22em; color: var(--ink); background: color-mix(in srgb, var(--orange) 34%, transparent); }
.article-content kbd { padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--paper-deep); font: 500 11px var(--mono); }
.article-content details { margin: 32px 0; padding: 18px 20px; border: 1px solid var(--line); }
.article-content summary { cursor: pointer; font: 700 14px var(--sans); }
.article-content details[open] summary { margin-bottom: 18px; }
.article-content .footnotes { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--sans); }
.article-content .footnotes::before { display: block; margin-bottom: 18px; content: "注释"; color: var(--ink); font: 700 13px var(--sans); }
.article-content .footnotes ol { padding-left: 1.4em; }
.article-content .footnotes li,
.article-content .footnotes p { font-size: 12px; line-height: 1.75; }
.article-summary { margin: 40px 0 70px; padding: 28px 32px; border: 1px solid var(--line); border-left: 4px solid var(--orange); background: color-mix(in srgb, var(--paper-deep) 56%, transparent); }
.article-summary p { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.article-summary ul { margin: 0; padding-left: 20px; }
.article-summary li { margin: 9px 0; font-size: 13px; line-height: 1.7; }
.article-figure { margin: 54px 0 72px; }
.workflow-figure { display: grid; padding: 42px 30px; align-items: center; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; color: #f2eee5; background: #111216; }
.workflow-figure div { display: grid; aspect-ratio: 1; border: 1px solid rgba(242,238,229,.25); place-items: center; align-content: center; gap: 5px; text-align: center; }
.workflow-figure div:nth-of-type(4) { color: #fff; border-color: var(--orange); background: var(--orange); }
.workflow-figure small { color: inherit; opacity: .55; font: 500 8px var(--mono); }
.workflow-figure strong { font-size: 16px; }
.workflow-figure span { font: 400 8px var(--sans); opacity: .65; }
.workflow-figure > i { font: normal 12px var(--mono); }
.article-figure figcaption { margin-top: 12px; color: var(--muted); font: 400 10px var(--sans); text-align: center; }
.code-block { margin: 35px 0 55px; color: #d8d8d4; background: #111216; font-family: var(--mono); }
.code-block > div { display: flex; height: 42px; padding: 0 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); color: #83847f; font-size: 9px; }
.copy-code { padding: 5px 9px; border: 1px solid rgba(255,255,255,.18); color: inherit; background: transparent; cursor: pointer; font-size: 9px; }
.code-block pre { margin: 0; padding: 24px; overflow-x: auto; font-size: 11px; line-height: 2; white-space: pre-wrap; }
.article-quote, .article-content > blockquote { margin: 50px 0; padding: 15px 0 15px 35px; border-left: 5px solid var(--orange); font: 700 25px/1.75 var(--serif); }
.article-content > blockquote p { margin: 0; font: inherit; }
.checklist { display: grid; margin: 50px 0; padding: 32px; gap: 14px; border: 1px solid var(--line); }
.checklist h3 { margin: 0 0 8px; }
.checklist label { display: flex; align-items: center; gap: 10px; font: 400 12px var(--sans); }
.checklist input { width: 16px; height: 16px; accent-color: var(--orange); }
.article-endnote { margin: 80px 0 60px; padding: 40px; color: #f2eee5; background: var(--orange); }
.article-endnote span { font: 600 9px var(--mono); letter-spacing: .15em; }
.article-endnote p { margin: 25px 0 0; font-size: 24px; font-weight: 700; line-height: 1.7; }
.article-next { display: grid; padding-top: 28px; border-top: 1px solid var(--line); gap: 15px; }
.article-next > span { color: var(--muted); font: 500 9px var(--mono); letter-spacing: .14em; }
.article-next a { display: flex; justify-content: space-between; gap: 20px; font: 700 20px/1.5 var(--serif); }
.article-next a:hover { color: var(--orange); }

.article-toc nav { display: grid; border-left: 1px solid var(--line); }
.article-toc nav a { position: relative; padding: 7px 0 7px 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.article-toc nav a:hover, .article-toc nav a.is-active { color: var(--ink); }
.article-toc nav a.is-active::before { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; content: ""; background: var(--orange); }
.share-button { width: 100%; min-height: 38px; margin-top: 26px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 10px; }
.share-button:hover { color: #fff; border-color: var(--orange); background: var(--orange); }
.article-footer { padding-top: 28px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.65,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  :root { --page: min(100% - 48px, 960px); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 680px; padding-inline: max(24px, calc((100vw - 960px) / 2)); }
  .capability-board { min-height: 680px; border-top: 1px solid var(--line-dark); border-left: 0; }
  .capability-intro { padding-inline: max(24px, calc((100vw - 960px) / 2)); }
  .capability-list li { padding-inline: max(24px, calc((100vw - 960px) / 2)); }
  .workbench { min-height: 650px; border-top: 1px solid var(--line-dark); border-left: 0; }
  .workbench-screen { padding-inline: max(24px, calc((100vw - 960px) / 2)); }
  .workbench-log { display: grid; grid-template-columns: repeat(3, 1fr); }
  .workbench-log div { border-right: 1px solid var(--line-dark); border-bottom: 0; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-main { grid-row: auto; grid-column: 1 / -1; }
  .feature-card:not(.feature-card-main) { grid-template-columns: 1fr; }
  .cover-models, .cover-thought { min-height: 300px; }
  .article-layout { grid-template-columns: 150px minmax(0, 1fr); justify-content: center; }
  .article-layout-standalone { grid-template-columns: minmax(0, 720px); }
  .article-toc { display: none; }
  .tag-cloud { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: grid; }
  .mobile-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line-dark);
    color: var(--paper);
    background: var(--ink);
  }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .library-card:nth-child(2) { border-right: 1px solid var(--line-dark); }
  .library-card { min-height: 320px; }
  .library-card h3 { margin-top: 130px; }
  .series-grid { grid-template-columns: 1fr; }
  .series-card { min-height: 340px; }
  .knowledge-map { display: none; }
  .knowledge-mobile-list { display: grid; margin: 36px 0 28px; border-top: 1px solid var(--line-dark); }
  .knowledge-mobile-list a { display: grid; padding: 22px 0; grid-template-columns: 82px 1fr 36px; gap: 8px 18px; border-bottom: 1px solid var(--line-dark); }
  .knowledge-mobile-list span { color: var(--orange); font: 600 9px var(--mono); letter-spacing: .1em; }
  .knowledge-mobile-list strong { font: 700 18px/1.55 var(--serif); }
  .knowledge-mobile-list small { grid-column: 2; color: color-mix(in srgb, var(--paper) 45%, transparent); font: 500 9px/1.6 var(--mono); }
  .knowledge-mobile-list b { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end; font: 400 18px var(--mono); }
  .knowledge-index-link { margin-bottom: 88px; }
  .lab-section { grid-template-columns: 1fr; gap: 54px; }
  .lab-intro { position: static; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .series-nav { position: static; display: none; }
}

@media (max-width: 720px) {
  :root { --page: calc(100vw - 32px); }
  .header-inner { height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy small { display: none; }
  .header-actions .theme-toggle { display: none; }
  .mobile-nav { top: 64px; }
  .hero-copy { min-height: 660px; padding: 72px 20px 62px; }
  .hero-role { margin-bottom: 18px; }
  .hero h1 { max-width: 100%; font-size: clamp(38px, 10.5vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }
  .hero-lede { max-width: 100%; margin-top: 28px; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 34px; }
  .hero-stats { margin-top: 52px; }
  .hero-stats div { min-width: 0; padding-right: 16px; flex: 1; }
  .hero-stats div + div { padding-left: 16px; }
  .hero-stats dt { font-size: 17px; }
  .hero-stats dd { font-size: 9px; }
  .workbench { min-height: 580px; }
  .capability-board { min-height: 0; grid-template-rows: 44px auto auto; }
  .capability-board-topbar { padding-inline: 16px; }
  .capability-intro { min-height: 250px; padding: 38px 20px 30px; }
  .capability-intro strong { font-size: 31px; }
  .capability-list li { min-height: 88px; padding: 16px 20px; grid-template-columns: 28px 1fr; }
  .capability-list li:hover { padding-left: 20px; }
  .capability-list b { display: none; }
  .capability-list small { font-size: 8px; }
  .workbench-screen { min-height: 360px; padding: 40px 20px; }
  .signal-grid { height: 110px; margin-bottom: 38px; gap: 5px; }
  .workbench-log { grid-template-columns: 1fr; }
  .workbench-log div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .section-heading { padding: 82px 0 36px; align-items: flex-start; flex-direction: column; gap: 22px; }
  .section-heading h2 { font-size: 43px; }
  .featured-grid { padding: 28px 0 88px; grid-template-columns: 1fr; }
  .feature-card-main { grid-column: auto; }
  .feature-card-main .card-cover { min-height: 350px; }
  .feature-card:not(.feature-card-main) { grid-template-columns: 1fr; }
  .workflow-graphic { gap: 5px; }
  .workflow-graphic b { width: 68px; height: 68px; font-size: 13px; }
  .feature-body, .feature-card-main .feature-body { padding: 24px; }
  .feature-body h3, .feature-card-main .feature-body h3 { margin-right: 38px; font-size: 24px; }
  .arrow-link { top: 22px; right: 22px; }
  .library-grid { grid-template-columns: 1fr; padding-bottom: 88px; }
  .library-card, .library-card:nth-child(2) { min-height: 250px; border-right: 1px solid var(--line-dark); border-bottom: 0; }
  .library-card:last-child { border-bottom: 1px solid var(--line-dark); }
  .library-card h3 { margin-top: 76px; }
  .latest-section { padding-bottom: 88px; }
  .filter-bar { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .content-filter { flex: 0 0 auto; }
  .tag-filter-panel { margin-top: -35px; }
  .tag-filter-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .tag-filter-list { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tag-filter { flex: 0 0 auto; }
  .post-row { padding: 25px 0; grid-template-columns: 60px 1fr 38px; gap: 16px; }
  .post-row time { align-self: start; font-size: 23px; }
  .post-type { display: none; }
  .post-copy h3 { font-size: 18px; }
  .post-copy p { display: none; }
  .post-tags { margin-top: 10px; }
  .article-tag { min-height: 24px; font-size: 8px; }
  .row-arrow { width: 34px; height: 34px; }
  .series-grid { padding-bottom: 88px; }
  .knowledge-mobile-list a { grid-template-columns: 64px 1fr 30px; gap: 7px 12px; }
  .knowledge-mobile-list strong { font-size: 16px; }
  .knowledge-index-link { margin-bottom: 78px; }
  .lab-section { padding-block: 88px; }
  .lab-intro h2 { font-size: 52px; }
  .lab-projects { grid-template-columns: 1fr; }
  .lab-card { min-height: 280px; }
  .lab-card:nth-child(even), .lab-card:nth-child(n + 3) { border-top: 0; border-left: 1px solid var(--line); }
  .about-section { min-height: auto; padding-block: 88px; grid-template-columns: 1fr; gap: 70px; }
  .about-mark { width: min(300px, 78vw); }
  .about-copy h2 { font-size: 38px; }
  .site-footer { padding: 60px 20px 22px; }
  .footer-main { flex-direction: column; gap: 55px; }
  .footer-links { gap: 60px; }
  .footer-bottom { gap: 10px; flex-direction: column; }
  .search-panel { padding: 24px; }

  .article-hero-inner { width: calc(100vw - 40px); padding: 52px 0 60px; }
  .back-link { margin-bottom: 48px; }
  .article-hero h1 { margin-block: 25px; font-size: 42px; line-height: 1.25; }
  .article-deck { font-size: 15px; }
  .article-meta { margin-top: 46px; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .tag-directory-hero { padding: 52px 0 66px; }
  .tag-directory-hero .back-link { margin-bottom: 48px; }
  .tag-directory-hero h1 { font-size: 41px; }
  .tag-directory-hero dl { margin-top: 42px; }
  .tag-directory { padding-block: 52px 90px; }
  .tag-cloud { margin-bottom: 66px; grid-template-columns: repeat(2, 1fr); }
  .tag-cloud a { min-height: 62px; padding: 13px; }
  .tag-groups { gap: 66px; }
  .tag-group > header { grid-template-columns: 38px 1fr; gap: 10px; }
  .tag-article-list a { grid-template-columns: 1fr 28px; gap: 7px 12px; }
  .tag-article-list span, .tag-article-list small { grid-row: 2; }
  .tag-article-list small { justify-self: end; }
  .tag-article-list b { grid-column: 2; grid-row: 1; }
  .article-layout { padding-block: 52px 90px; }
  .article-content .article-lead { font-size: 18px; }
  .article-content p { font-size: 15px; line-height: 2; }
  .article-content h2 { margin-top: 58px; font-size: 27px; }
  .workflow-figure { padding: 24px 18px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .workflow-figure > i { display: none; }
  .article-quote, .article-content > blockquote { padding-left: 24px; font-size: 20px; }
  .article-summary, .checklist { padding: 23px; }
  .article-endnote { padding: 28px; }
  .article-endnote p { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
