@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-subtle: #f0f3f6;
  --ink: #142033;
  --ink-soft: #34445a;
  --muted: #66758a;
  --line: #d9e0e7;
  --line-strong: #b9c4d0;
  --blue: #1456a0;
  --blue-dark: #0d3b70;
  --blue-soft: #e8f1fb;
  --teal: #18736d;
  --red: #a6333e;
  --green: #277554;
  --amber: #956713;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(26, 43, 66, 0.09);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--blue-dark); }

code, pre { font-family: var(--mono); }

code {
  padding: 0.1em 0.32em;
  color: #243750;
  background: #edf1f5;
  border-radius: 4px;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

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

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 8px 0 0 -2px var(--blue), -8px 0 0 -2px var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 8px 11px;
  color: var(--ink-soft);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.site-nav .nav-accent {
  margin-left: 6px;
  color: #fff;
  background: var(--blue-dark);
}

.site-nav .nav-accent:hover { color: #fff; background: var(--blue); }

.hero {
  padding: clamp(58px, 7vw, 92px) 0 46px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(42px, 6vw, 76px);
}

.hero-grid > * { min-width: 0; }

.eyebrow,
.section-label,
.kicker,
.process-index,
.repo-kind {
  margin: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 17ch;
  margin: 14px 0 0;
  font-size: clamp(2.55rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.button::after { content: "↗"; margin-left: 8px; }
.button.internal::after { content: "→"; }
.button.primary { color: #fff; border-color: var(--blue-dark); background: var(--blue-dark); }
.button.dark { color: #fff; border-color: var(--ink); background: var(--ink); }
.button:hover { color: var(--blue-dark); border-color: var(--blue); background: var(--blue-soft); }
.button.primary:hover, .button.dark:hover { color: #fff; background: var(--blue); }

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0c1523;
  box-shadow: var(--shadow);
}

.hero-frame::before {
  content: "VALIDATION / 2026-07-14 / EPISODE 050";
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(8, 18, 32, 0.78);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.hero-frame img,
.hero-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.device-hero .hero-frame::before { content: "SROI V2 / HANDHELD CONFIGURATION"; }

.media-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  color: #d7e0ec;
  background: #101d2d;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.035em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: var(--mono); font-size: 1.23rem; font-weight: 500; }
.metric span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.78rem; }

.section {
  padding: clamp(64px, 8vw, 104px) 0;
  border-bottom: 1px solid var(--line);
}

.section.white { background: var(--surface); }
.section.subtle { background: var(--surface-subtle); }
.section.dark { color: #eef3f8; background: #111e2e; }
.section.dark .section-label { color: #8fc1ff; }
.section.dark .section-head p, .section.dark .card p { color: #bac6d4; }

.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: 32px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: -4px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }

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

.card {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 { margin: 10px 0 8px; font-size: 1.14rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }
.dark .card { border-color: #314155; background: #172638; }

.release-card { position: relative; padding-top: 52px; }
.release-card.recommended { border-top: 3px solid var(--blue); }
.status {
  position: absolute;
  top: 18px;
  left: 24px;
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dataset-id {
  margin: 12px 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link::after { content: " ↗"; }
.card-link.internal::after { content: " →"; }

.contract {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.contract-card {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
}

.contract-card h3 { margin: 11px 0 7px; font-size: 1.35rem; }
.contract-card p { margin: 0 0 18px; color: var(--muted); }

.tensor {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface-subtle);
  font-family: var(--mono);
  font-size: 0.77rem;
  overflow-wrap: anywhere;
}

.note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  color: var(--ink-soft);
  background: var(--blue-soft);
  font-size: 0.9rem;
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--ink-soft); background: var(--surface-subtle); font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }

.pipeline-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.pipeline-node {
  position: relative;
  min-width: 0;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
}

.pipeline-node:last-child { border-right: 0; }
.pipeline-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 22px;
  right: -10px;
  width: 20px;
  color: var(--blue);
  background: var(--surface);
  text-align: center;
}

.pipeline-node span { color: var(--blue); font-family: var(--mono); font-size: 0.66rem; }
.pipeline-node strong { display: block; margin-top: 9px; font-size: 0.89rem; }
.pipeline-node small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.72rem; line-height: 1.42; }

.example-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 15px 18px;
  border: 1px solid #bbcadb;
  border-radius: var(--radius);
  background: #edf4fc;
}

.example-banner strong { font-size: 0.94rem; }
.example-banner span { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }

.process-list { position: relative; }
.process-list::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 31px;
  width: 1px;
  background: var(--line-strong);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 0.84fr) minmax(380px, 1.16fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.process-step:last-child { border-bottom: 1px solid var(--line); }

.step-marker {
  z-index: 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.process-copy { padding-top: 3px; }
.process-copy h3 { margin: 8px 0; font-size: 1.32rem; }
.process-copy > p { margin: 0; color: var(--muted); }

.io-grid {
  display: grid;
  gap: 7px;
  margin-top: 17px;
  font-size: 0.78rem;
}

.io-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 9px;
}

.io-row dt { color: var(--muted); font-family: var(--mono); text-transform: uppercase; }
.io-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.process-media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0e1826;
}

.process-media img, .process-media video { width: 100%; display: block; aspect-ratio: 16 / 7; object-fit: cover; }
.process-media.portrait img { aspect-ratio: 2 / 1; object-fit: contain; background: #fff; }

.media-caption {
  display: block;
  padding: 10px 13px;
  color: #d5dfeb;
  background: #101d2d;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.45;
}

.metadata-visual {
  min-height: 250px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.metadata-pane { padding: 20px; background: var(--surface); }
.metadata-pane h4 { margin: 0 0 13px; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; }
.file-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #edf0f3; font-family: var(--mono); font-size: 0.7rem; }
.file-row:last-child { border-bottom: 0; }
.file-row span:last-child { color: var(--muted); }

.axis-visual {
  min-height: 250px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px;
  color: #dce7f3;
  background: #101d2d;
}

.frame-box { padding: 18px; border: 1px solid #42566d; border-radius: 8px; }
.frame-box strong { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 0.72rem; }
.axis { display: block; margin: 4px 0; font-family: var(--mono); font-size: 0.73rem; }
.axis.x { color: #ff818d; }.axis.y { color: #78d7a9; }.axis.z { color: #72b7ff; }
.axis-arrow { color: #8fc1ff; font-size: 1.5rem; }

.qc-summary {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
}

.qc-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qc-status { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--green); font-family: var(--mono); font-size: 0.76rem; }
.qc-status::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; }
.fact-list { margin: 0; padding: 0; list-style: none; }
.fact-list li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list span { color: var(--muted); text-align: right; }

.file-tree {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid #34475e;
  border-radius: var(--radius);
  color: #dbe8f5;
  background: #101d2d;
  font-size: 0.78rem;
  line-height: 1.8;
}

.file-tree .hot { color: #8fc1ff; }
.file-tree .dim { color: #8d9db0; }

.lineage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.lineage-block { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lineage-block h3 { margin: 0 0 12px; }
.lineage-block p { margin: 0; color: var(--muted); }
.sum-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 22px; background: var(--line); }
.sum-part { padding: 16px; background: var(--surface-subtle); }
.sum-part strong { display: block; font-family: var(--mono); font-size: 1.15rem; }
.sum-part span { color: var(--muted); font-size: 0.72rem; }
.sum-total { padding: 16px; color: #fff; background: var(--blue-dark); }

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  gap: 12px;
}

.photo-mosaic figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.photo-mosaic img { width: 100%; height: 330px; display: block; object-fit: cover; }
.photo-mosaic figcaption { padding: 10px 13px; color: var(--muted); font-size: 0.78rem; }

.system-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.system-step { position: relative; padding: 25px; background: var(--surface); }
.system-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 32px; right: -12px; width: 24px; color: var(--blue); background: var(--surface); text-align: center; }
.system-step h3 { margin: 12px 0 7px; font-size: 1.15rem; }
.system-step p { margin: 0; color: var(--muted); }

.recorder-layout { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); gap: 34px; align-items: start; }
.recorder-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.recorder-photo img { width: 100%; display: block; }
.timeline { border-left: 1px solid var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 24px 26px; }
.timeline-item::before { content: ""; position: absolute; top: 7px; left: -5px; width: 9px; height: 9px; background: var(--blue); border-radius: 50%; }
.timeline-item h3 { margin: 0 0 5px; font-size: 1rem; }
.timeline-item p { margin: 0; color: var(--muted); }

.repo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.repo-card { min-width: 0; padding: 22px; border: 1px solid #34475e; border-radius: var(--radius); background: #172638; }
.repo-card h3 { margin: 13px 0 7px; font-size: 1rem; }
.repo-card p { margin: 0; color: #bac6d4; font-size: 0.85rem; }

.footer {
  padding: 34px 0;
  color: #aebbc9;
  background: #0d1724;
  font-size: 0.82rem;
}

.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: #c5d8ec; text-decoration: none; }

/* Warm SROI visual theme — retains the technical typography and content system. */
:root {
  --bg: #f5f2e9;
  --surface: #fffdf8;
  --surface-subtle: #ece7da;
  --ink: #17231b;
  --ink-soft: #425148;
  --muted: #627066;
  --line: #d9d8ce;
  --line-strong: #bfc5b9;
  --blue: #226646;
  --blue-dark: #174730;
  --blue-soft: #e5ebe2;
  --teal: #226646;
  --red: #d93a46;
  --green: #277554;
  --amber: #956713;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(28, 43, 33, 0.12);
}

body {
  background:
    radial-gradient(circle at 84% 4%, rgba(242, 184, 75, 0.16), transparent 28rem),
    var(--bg);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: clip;
}

a { color: var(--blue); }
a:hover { color: #a92332; }

code {
  color: #324239;
  background: #eaece5;
  border-radius: 5px;
}

.site-header {
  border-bottom-color: rgba(23, 35, 27, 0.11);
  background: rgba(245, 242, 233, 0.88);
  backdrop-filter: blur(16px);
}

.nav-wrap { min-height: 72px; }

.brand {
  gap: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  border: 0;
  border-radius: 48% 48% 54% 54%;
  background: #d93a46;
  transform: rotate(45deg);
  box-shadow: inset -4px -4px 0 rgba(133, 19, 35, 0.16);
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 6px;
  top: -4px;
  left: 0;
  background: #226646;
  border-radius: 100% 0;
  transform: rotate(-38deg);
  box-shadow: none;
}

.site-nav { gap: 6px; }

.site-nav a {
  padding: 8px 12px;
  color: #4b5b51;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.site-nav .nav-accent {
  color: #fff;
  background: var(--ink);
}

.site-nav .nav-accent:hover { background: var(--blue-dark); }

.hero {
  padding: clamp(64px, 9vw, 112px) 0 56px;
  border-bottom: 0;
  background: transparent;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: clamp(44px, 7vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a92332;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #d93a46;
}

.hero h1 {
  max-width: 15ch;
  margin-top: 12px;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.01;
}

.hero-lede {
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.55vw, 1.2rem);
}

.button-row { gap: 12px; margin-top: 30px; }

.button {
  min-height: 48px;
  padding: 11px 18px;
  border-color: var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary {
  color: #fff;
  border-color: #d93a46;
  background: #d93a46;
  box-shadow: 0 10px 25px rgba(217, 58, 70, 0.2);
}

.button:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 35, 27, 0.12);
}

.button.primary:hover,
.button.dark:hover {
  color: #fff;
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.hero-frame {
  overflow: hidden;
  border: 8px solid rgba(255, 253, 248, 0.9);
  border-radius: 42% 42% 28px 28px;
  background: #d8ddd5;
  box-shadow: var(--shadow);
}

.hero-frame::before {
  top: 18px;
  left: 20px;
  color: #fff;
  background: rgba(23, 35, 27, 0.76);
  border-radius: 999px;
}

.hero-frame img,
.hero-frame video {
  min-height: 470px;
  aspect-ratio: 1 / 1.03;
}

.media-meta {
  padding: 12px 16px;
  color: #edf3ea;
  background: var(--blue-dark);
}

.metrics {
  margin-top: 44px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.metric { padding: 23px 22px 20px; }
.metric:first-child { padding-left: 0; }
.metric strong { color: var(--ink); font-size: 1.45rem; }

.section {
  padding: clamp(76px, 9vw, 120px) 0;
  border-bottom: 0;
}

.section.white { background: var(--surface); }

.section.subtle {
  border-top: 1px solid rgba(23, 35, 27, 0.08);
  border-bottom: 1px solid rgba(23, 35, 27, 0.08);
  background: var(--surface-subtle);
}

.section.dark { background: #17231b; }
.section.dark .section-label, .repo-kind { color: #f2b84b; }
.section.dark .section-head p, .section.dark .card p { color: #bdc9bf; }

.section-label,
.kicker,
.process-index { color: #a92332; }

.section-head { grid-template-columns: 190px minmax(0, 760px); }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3.05rem); line-height: 1.12; }

.card,
.contract-card,
.lineage-block,
.qc-panel {
  border-color: rgba(23, 35, 27, 0.13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(28, 43, 33, 0.045);
}

.release-card.recommended { border-top-color: #d93a46; }

.status {
  color: #8d1f2c;
  background: #f8dfe1;
  border-radius: 999px;
}

.contract-card { border-top-color: var(--blue); }

.tensor,
.metadata-pane { background: #f0f1eb; }

.note {
  border-left-color: var(--blue);
  color: #34483b;
  background: #e2e9df;
}

.table-wrap,
.pipeline-map,
.process-media,
.file-tree,
.recorder-photo,
.photo-mosaic figure,
.system-loop,
.repo-card {
  border-radius: var(--radius);
}

.data-table th { background: #eceee7; }

.pipeline-map {
  border-color: rgba(23, 35, 27, 0.14);
  box-shadow: 0 12px 30px rgba(28, 43, 33, 0.05);
}

.pipeline-node span,
.pipeline-node:not(:last-child)::after { color: #d93a46; }

.example-banner {
  border-color: #c6cfbf;
  border-radius: 18px;
  background: #e5ebe2;
}

.process-list::before { background: #b9c4b8; }

.step-marker {
  color: #fff;
  border-color: #d93a46;
  background: #d93a46;
  box-shadow: 0 8px 18px rgba(217, 58, 70, 0.18);
}

.process-media {
  border: 6px solid rgba(255, 253, 248, 0.82);
  background: #17231b;
  box-shadow: 0 16px 40px rgba(28, 43, 33, 0.11);
}

.media-caption,
.file-tree,
.axis-visual { background: #17231b; }

.media-caption { color: #dfe8dc; }

.qc-status { color: var(--blue); }
.qc-status::before { background: var(--blue); }

.file-tree { border-color: #3e5244; }
.file-tree .hot { color: #f8d478; }

.sum-total { background: var(--blue-dark); }

.photo-mosaic figure { box-shadow: 0 12px 32px rgba(28, 43, 33, 0.08); }

.system-loop {
  border-color: rgba(23, 35, 27, 0.13);
  background: rgba(23, 35, 27, 0.13);
  box-shadow: 0 12px 32px rgba(28, 43, 33, 0.05);
}

.system-step:not(:last-child)::after { color: #d93a46; }
.timeline-item::before { background: #d93a46; }

.repo-card {
  border-color: #405345;
  background: #213128;
}

.footer { background: #101a14; }
.footer a { color: #d6e2d7; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 19ch; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pipeline-map { grid-template-columns: repeat(3, 1fr); }
  .pipeline-node:nth-child(3) { border-right: 0; }
  .pipeline-node:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .pipeline-node:nth-child(3)::after { display: none; }
  .process-step { grid-template-columns: 64px minmax(0, 1fr); }
  .process-media { grid-column: 2; }
  .qc-summary { grid-column: 2; }
  .grid-4, .repo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-mosaic { grid-template-columns: 1.3fr 1fr; }
  .photo-mosaic figure:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .shell { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 58px; }
  .brand span:last-child { display: none; }
  .site-nav a { padding: 7px 8px; font-size: 0.8rem; }
  .site-nav a:first-child { display: none; }
  .site-nav .nav-accent { display: none; }
  .hero { padding-top: 46px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.3rem); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-top: 1px solid var(--line); }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-child(even) { border-right: 0; }
  .metric:first-child, .metric:nth-child(2) { border-top: 0; }
  .metric:last-child { grid-column: 1 / -1; }
  .section-head { grid-template-columns: 1fr; gap: 13px; margin-bottom: 28px; }
  .grid-2, .grid-3, .grid-4, .contract, .lineage, .qc-summary, .recorder-layout, .repo-grid { grid-template-columns: 1fr; }
  .pipeline-map { grid-template-columns: 1fr 1fr; }
  .pipeline-node { border-bottom: 1px solid var(--line); }
  .pipeline-node:nth-child(even) { border-right: 0; }
  .pipeline-node:nth-child(3) { border-right: 1px solid var(--line); }
  .pipeline-node:nth-child(3)::after { display: block; }
  .pipeline-node:nth-child(even)::after { display: none; }
  .process-list::before { left: 23px; }
  .process-step { grid-template-columns: 48px minmax(0, 1fr); gap: 15px; }
  .step-marker { width: 48px; height: 48px; }
  .process-media { grid-column: 1 / -1; }
  .qc-summary { grid-column: 1 / -1; }
  .example-banner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .metadata-visual { grid-template-columns: 1fr; }
  .axis-visual { grid-template-columns: 1fr; }
  .axis-arrow { transform: rotate(90deg); text-align: center; }
  .photo-mosaic { grid-template-columns: 1fr; }
  .photo-mosaic figure:last-child { grid-column: auto; }
  .photo-mosaic img { height: 270px; }
  .system-loop { grid-template-columns: 1fr; }
  .system-step:not(:last-child)::after { top: auto; right: 22px; bottom: -15px; transform: rotate(90deg); }
  .sum-row { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

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