:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-2: #e9e0d2;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #101a25;
  --ink-soft: #3f4b55;
  --navy: #14283a;
  --orange: #a63b00;
  --orange-bright: #c54800;
  --orange-fill: #a63b00;
  --orange-panel: #9f3700;
  --blue: #6f879a;
  --blue-soft: #dce5e9;
  --clay: #b98e69;
  --line: #cfc4b5;
  --focus: #0a5ea8;
  --success: #175f4b;
  --shadow: 0 18px 50px rgb(31 35 38 / 12%);
  --wrap: min(1240px, calc(100% - 40px));
  --radius: 8px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d151d;
  --paper-2: #16212b;
  --surface: #131f29;
  --surface-strong: #1b2a35;
  --ink: #f4efe5;
  --ink-soft: #c6d0d6;
  --navy: #081018;
  --orange: #ffad7a;
  --orange-bright: #ffc09a;
  --orange-fill: #963400;
  --orange-panel: #8f3100;
  --blue: #a8becd;
  --blue-soft: #243744;
  --clay: #d0ab8b;
  --line: #3b4b57;
  --focus: #75bfff;
  --success: #79d2b6;
  --shadow: 0 18px 50px rgb(0 0 0 / 34%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #0d151d;
    --paper-2: #16212b;
    --surface: #131f29;
    --surface-strong: #1b2a35;
    --ink: #f4efe5;
    --ink-soft: #c6d0d6;
    --navy: #081018;
    --orange: #ffad7a;
    --orange-bright: #ffc09a;
    --orange-fill: #963400;
    --orange-panel: #8f3100;
    --blue: #a8becd;
    --blue-soft: #243744;
    --clay: #d0ab8b;
    --line: #3b4b57;
    --focus: #75bfff;
    --success: #79d2b6;
    --shadow: 0 18px 50px rgb(0 0 0 / 34%);
  }
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  min-height: 44px;
  padding: 10px 16px;
  transform: translateY(-140%);
  background: #08233a;
  color: #fff;
  border-radius: 4px;
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  background: var(--orange-fill);
  color: #fff;
  border-radius: 4px 14px 4px 4px;
  font-family: var(--font-mono);
  letter-spacing: -0.08em;
}

.brand span:last-child {
  color: var(--orange);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

main {
  display: block;
}

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

.section--compact {
  padding-block: 54px;
}

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

.section--ink {
  background: var(--navy);
  color: #f7f1e8;
}

.section--ink .eyebrow,
.section--ink .micro,
.section--ink .lede,
.section--ink .boundary,
.section--ink .muted {
  color: #d9e3e9;
}

.section--ink a {
  color: #fff;
}

.section--orange {
  background: var(--orange-panel);
  color: #fff;
}

.section--orange .eyebrow,
.section--orange .micro,
.section--orange .lede,
.section--orange .boundary {
  color: #fff4ec;
}

.hero {
  padding: clamp(64px, 8vw, 110px) 0 clamp(76px, 9vw, 132px);
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 86px);
}

.hero-grid--reverse,
.split--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6.5vw, 6.4rem);
  letter-spacing: -0.066em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1.1em;
}

.lede {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.58;
}

.micro,
.boundary,
.muted {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.boundary {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 850;
}

.button:hover {
  background: var(--orange-fill);
  border-color: var(--orange-fill);
  color: #fff;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.section--ink .button {
  border-color: #fff;
  background: #fff;
  color: #101a25;
}

.section--ink .button--ghost {
  background: transparent;
  color: #fff;
}

.catalog-cover {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 110px;
  min-height: 560px;
  gap: 12px;
}

.catalog-cover .product-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-cover .product-tile:nth-child(1) {
  grid-column: 1 / 8;
  grid-row: 1 / 4;
}

.catalog-cover .product-tile:nth-child(2) {
  grid-column: 7 / 13;
  grid-row: 3 / 6;
  z-index: 2;
}

.catalog-cover .product-tile:nth-child(3) {
  grid-column: 2 / 7;
  grid-row: 4 / 6;
  z-index: 3;
}

.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tile__label {
  position: absolute;
  inset: auto 0 0;
  padding: 13px 14px;
  background: #081018;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-tile__label span {
  display: block;
  margin-top: 3px;
  color: #dbe7ed;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
}

.visual-plate {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-plate img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.visual-plate figcaption {
  padding: 15px 17px 17px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.visual-plate--proof img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

.section--ink .visual-plate,
.section--orange .visual-plate {
  border-color: rgb(255 255 255 / 28%);
  background: #f7f1e8;
  color: #101a25;
}

.section--ink .visual-plate figcaption,
.section--orange .visual-plate figcaption {
  color: #2d3b45;
}

.ownership-board,
.decision-board,
.route-board,
.status-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.ownership-card,
.decision-card,
.route-card,
.status-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
}

.ownership-card span,
.decision-card span,
.route-card span,
.status-card span,
.record-label {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ownership-card p,
.decision-card p,
.route-card p,
.status-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.link-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.link-index a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-weight: 800;
}

.link-index a::after {
  margin-left: auto;
  content: "↗";
  color: var(--orange);
}

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.product-card:nth-child(1) {
  grid-column: span 7;
}

.product-card:nth-child(2) {
  grid-column: span 5;
}

.product-card:nth-child(n + 3) {
  grid-column: span 4;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-card__body h3 {
  font-size: 1.18rem;
  line-height: 1.18;
}

.product-card__body p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.product-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.product-card__links a,
.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-card__links a:first-child {
  border-color: var(--orange-fill);
  background: var(--orange-fill);
  color: #fff;
}

.official-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.official-stage {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: #101a25;
}

.official-stage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.official-stage div {
  padding: 16px;
}

.official-stage b {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.official-stage p {
  margin: 0;
  color: #44515a;
  font-size: 0.8rem;
}

.step-rail {
  counter-reset: steps;
  border-top: 1px solid var(--line);
}

.step-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: steps;
}

.step-row::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 900;
}

.step-row p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.section--ink .step-row p {
  color: #d9e3e9;
}

.section--orange .step-row p {
  color: #fff4ec;
}

.record {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.record-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.record-row:last-child {
  border-bottom: 0;
}

.record-row > * {
  min-width: 0;
  padding: 16px 18px;
  overflow-wrap: anywhere;
}

.record-row > :first-child {
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.readiness-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.readiness-count {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist label {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.checklist input {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 72px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  content: "+";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 76ch;
  padding: 0 58px 24px 0;
  color: var(--ink-soft);
}

.source-log {
  border-top: 1px solid var(--line);
}

.source-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.source-entry time,
.source-entry .status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.source-entry .status {
  color: var(--success);
  text-align: right;
}

.source-entry p {
  margin: 0;
  color: var(--ink-soft);
}

.article-prose {
  max-width: 74ch;
}

.article-prose p + h3,
.article-prose ul + h3 {
  margin-top: 38px;
}

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

.article-prose li + li {
  margin-top: 8px;
}

.callout {
  padding: 24px;
  border-left: 5px solid var(--orange);
  background: var(--surface);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Surface components keep their own readable ink when placed on inverse bands. */
:is(.section--ink, .section--orange) :is(
  .ownership-card,
  .decision-card,
  .route-card,
  .status-card,
  .product-card,
  .record,
  .readiness,
  .callout
) {
  color: var(--ink);
}

:is(.section--ink, .section--orange) :is(
  .ownership-card,
  .decision-card,
  .route-card,
  .status-card,
  .product-card,
  .record,
  .readiness,
  .callout
) :is(p, .lede, .micro, .boundary, .muted) {
  color: var(--ink-soft);
}

:is(.section--ink, .section--orange) :is(
  .ownership-card,
  .decision-card,
  .route-card,
  .status-card,
  .product-card,
  .record,
  .readiness,
  .callout
) .eyebrow {
  color: var(--orange);
}

.route-card a,
.decision-card a,
.ownership-card a,
.status-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer {
  padding: 58px 0 30px;
  background: var(--navy);
  color: #f7f1e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(160px, 0.7fr));
  gap: 38px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand span:last-child {
  color: #ffad7a;
}

.site-footer p {
  max-width: 52ch;
  color: #d9e3e9;
}

.footer-links {
  display: grid;
  gap: 4px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 22%);
  color: #d9e3e9;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .hero-grid,
  .hero-grid--reverse,
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .link-index,
  .official-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-entry {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .source-entry .status {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --wrap: min(100% - 28px, 1240px);
  }

  body {
    font-size: 16px;
  }

  .header-row {
    min-height: 68px;
    gap: 8px;
  }

  .brand {
    font-size: 0.87rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    margin-right: 7px;
  }

  .site-nav[data-open="true"] {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .catalog-cover {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    min-height: 0;
  }

  .catalog-cover .product-tile:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .catalog-cover .product-tile img {
    aspect-ratio: 4 / 3;
  }

  .ownership-board,
  .decision-board,
  .route-board,
  .status-board,
  .link-index,
  .official-stages {
    grid-template-columns: 1fr;
  }

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

  .product-card:nth-child(n) {
    grid-column: auto;
  }

  .step-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .record-row {
    grid-template-columns: 1fr;
    padding: 13px 14px;
  }

  .record-row > * {
    padding: 0;
  }

  .record-row > :first-child {
    margin-bottom: 7px;
    border-right: 0;
    color: var(--orange);
  }

  .readiness-head {
    align-items: start;
    flex-direction: column;
  }

  .source-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .source-entry .status {
    grid-column: auto;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row,
  .product-card__links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .product-card__links a,
  .source-link {
    width: 100%;
  }
}

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

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