/*
 * officeunbound.com
 *
 * One stylesheet. Editorial rather than "card grid": hairline rules, a strong
 * left column for section labels, serif display type over a technical sans,
 * and monospace for labels, statuses and diagram text. One accent colour
 * (copper), used sparingly — the logo's lifted tile, primary actions, and
 * the marks that matter.
 */

/* ------------------------------------------------------------- fonts -- */

@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------ tokens -- */

:root {
  --navy: #14243A;
  --navy-deep: #0D1828;
  --navy-soft: #24364F;
  --charcoal: #2B3038;
  --ink: #18212D;
  --text: #2E3540;
  --muted: #5C6470;
  --faint: #868C95;
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --paper-3: #E6E1D6;
  --white: #FFFFFF;
  --line: #D8D2C6;
  --line-strong: #B9B2A4;
  --teal: #2D6A68;
  --teal-soft: #DCE8E6;
  --copper: #C4572E;
  --copper-deep: #A4451F;
  --copper-soft: #F3E0D6;

  --st-available: #2F6E47;
  --st-available-bg: #E0EEE4;
  --st-development: #8A5A0E;
  --st-development-bg: #F5E9D2;
  --st-planned: #3E5878;
  --st-planned-bg: #E2E8F0;
  --st-evaluation: #66605A;
  --st-evaluation-bg: #ECE8E1;

  --serif: "Source Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 3px;
  --header-h: 4.25rem;
}

/* -------------------------------------------------------------- base -- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.nav-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper-deep); }

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

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.6em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); line-height: 1.15; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.003em; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 1rem; }

p, ul, ol, dl, table, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 0.3em; }
strong, b { font-weight: 600; color: var(--ink); }
small { font-size: 0.875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 0.05em 0.3em; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; color: #fff; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 1.75rem; height: 1.75rem; fill: var(--navy); }
.brand__lift { fill: var(--copper); }
.brand__name { font: 400 1.18rem/1 var(--sans); letter-spacing: -0.01em; }
.brand__name b { font-weight: 600; }

.nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1rem; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.15rem; }
.nav__list > li + li { margin-top: 0; }
.nav__item { position: relative; }
.nav__top {
  font: 500 0.94rem/1 var(--sans); color: var(--charcoal);
  background: none; border: 0; padding: 0.7rem 0.75rem; cursor: pointer; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav__top::after {
  content: ""; width: 0.38rem; height: 0.38rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-0.12rem) rotate(45deg); opacity: 0.6; transition: transform 0.15s;
}
.nav__top[aria-expanded="true"]::after { transform: translateY(0.08rem) rotate(-135deg); }
.nav__top:hover, .nav__top[aria-expanded="true"] { background: var(--paper-2); color: var(--ink); }
.nav__item.is-current > .nav__top { color: var(--ink); box-shadow: inset 0 -2px 0 var(--copper); border-radius: 0; }

.nav__panel {
  display: none; position: absolute; top: calc(100% + 0.35rem); left: 0; min-width: 17rem;
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--navy);
  box-shadow: 0 12px 28px -12px rgba(13, 24, 40, 0.25); padding: 0.5rem 0;
}
.nav__top[aria-expanded="true"] + .nav__panel { display: block; }
.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__panel li + li { margin-top: 0; }
.nav__panel a { display: block; padding: 0.5rem 1.1rem; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav__panel a:hover, .nav__panel a:focus-visible { background: var(--paper); color: var(--ink); }
.nav__panel a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--copper); }

.nav__actions { display: flex; align-items: center; gap: 0.9rem; }
.nav__contact { color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.nav__contact.is-current { box-shadow: inset 0 -2px 0 var(--copper); }

.nav-toggle { display: none; }

@media (max-width: 63.99rem) {
  .site-header__bar { justify-content: space-between; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.55rem; background: none; border: 1px solid var(--line-strong);
    padding: 0.5rem 0.8rem; font: 500 0.9rem/1 var(--sans); color: var(--ink); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1rem; height: 1.5px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -5px; }
  .nav-toggle__bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start; overflow-y: auto;
    padding: 0.5rem var(--gutter) 2rem; border-top: 1px solid var(--line);
  }
  .site-header.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__top { width: 100%; justify-content: space-between; padding: 1rem 0; font-size: 1.05rem; border-radius: 0; }
  .nav__top:hover, .nav__top[aria-expanded="true"] { background: none; }
  .nav__item.is-current > .nav__top { box-shadow: none; }
  .nav__panel { position: static; border: 0; box-shadow: none; padding: 0 0 0.75rem; min-width: 0; background: none; }
  .nav__panel a { padding: 0.55rem 0 0.55rem 0.9rem; border-left: 1px solid var(--line); }
  .nav__actions { flex-direction: column; align-items: stretch; padding-top: 1.25rem; }
  .nav__contact { padding: 0.5rem 0; font-size: 1.05rem; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 500 1rem/1.2 var(--sans); padding: 0.8rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: var(--copper-deep); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { padding: 0.55rem 0.95rem; font-size: 0.92rem; }
.on-dark .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.on-dark .btn--secondary:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.arrow-link { font-weight: 500; text-decoration: none; color: var(--teal); }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; }

/* -------------------------------------------------------- page heads -- */

.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.page-head h1 { max-width: 25ch; font-size: clamp(2rem, 1.45rem + 2vw, 2.95rem); }
.page-head .lede { max-width: 44rem; }

.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.75rem; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin: 0 0.55rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.eyebrow { font: 500 0.78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper-deep); margin-bottom: 1rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); line-height: 1.55; color: var(--charcoal); }

.page-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; margin: 1.75rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line-strong); max-width: 44rem; font-size: 0.95rem; color: var(--muted); }
.page-note__mark { font: 500 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--st-development); background: var(--st-development-bg); padding: 0.35rem 0.5rem; border-radius: 2px; }

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

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--alt { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--dark { background: var(--navy); color: #D5DBE4; }
.section--dark + .section, .section + .section--dark, .section--alt + .section, .section + .section--alt { border-top: 0; }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark a { color: #9FD0CB; }
.section--dark .eyebrow { color: #E9A483; }
.section--dark .muted { color: #9AA6B6; }

.section__head { max-width: 46rem; margin-bottom: 2.5rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section__head p { color: #AEB8C6; }

/* label column on the left, content on the right */
.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 17rem minmax(0, 1fr); }
  .split > .split__label { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
}
.split__label h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); }
.split__label p { color: var(--muted); font-size: 0.98rem; }
.split__body > :last-child { margin-bottom: 0; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }

.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.mono { font-family: var(--mono); }

/* columns separated by rules, not boxed cards */
.cols { display: grid; gap: 0; list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.cols > * { padding: 1.4rem 0; border-bottom: 1px solid var(--line); margin: 0; }
@media (min-width: 44rem) {
  .cols--2, .cols--3, .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 64rem) {
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cols h3 { margin-bottom: 0.4rem; }
.cols p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.cols .status { margin-top: 0.75rem; }
.section--dark .cols, .section--dark .cols > * { border-color: rgba(255, 255, 255, 0.14); }
.section--dark .cols p { color: #AEB8C6; }
.section--dark .steps, .section--dark .steps > li { border-color: rgba(255, 255, 255, 0.14); }
.section--dark .steps p { color: #AEB8C6; }
.section--dark .steps > li::before { color: #E9A483; }
.section--dark .note { background: var(--navy-deep); }
.section--dark table th, .section--dark table td { border-color: rgba(255, 255, 255, 0.14); }

.index-num { display: block; font: 500 0.78rem/1 var(--mono); color: var(--copper-deep); margin-bottom: 0.7rem; letter-spacing: 0.05em; }
.section--dark .index-num { color: #E9A483; }

/* ----------------------------------------------------------- statuses -- */

.status {
  display: inline-block; font: 500 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.32rem 0.5rem 0.3rem; border-radius: 2px; white-space: nowrap; vertical-align: middle;
}
.status--available { color: var(--st-available); background: var(--st-available-bg); }
.status--development { color: var(--st-development); background: var(--st-development-bg); }
.status--planned { color: var(--st-planned); background: var(--st-planned-bg); }
.status--evaluation { color: var(--st-evaluation); background: var(--st-evaluation-bg); box-shadow: inset 0 0 0 1px #D2CCC2; }
.status--current { color: #fff; background: var(--copper); }
.status--target { color: var(--teal); background: var(--teal-soft); }

.legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.88rem; color: var(--muted); }
.legend li + li { margin-top: 0; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }

.stage-pip { display: inline-block; width: 0.55rem; height: 0.55rem; background: var(--copper); border-radius: 50%; margin-right: 0.35rem; vertical-align: 0.05em; }

/* ------------------------------------------------------------- tables -- */

.table-wrap { overflow-x: auto; margin: 0 0 1.75rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
caption { text-align: left; font: 500 0.78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-bottom: 0.75rem; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); }
thead th { font: 500 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-top: 0; }
tbody th { font-weight: 600; color: var(--ink); }
td:last-child, th:last-child { padding-right: 0; }
.caps th[scope="row"] { width: 28%; }
.caps td:last-child { width: 10rem; }
.caps td:nth-child(2) { color: var(--muted); }
@media (max-width: 40rem) {
  .caps thead { display: none; }
  .caps tr { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .caps th, .caps td { border: 0; padding: 0; width: auto !important; }
  .caps td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .caps td:last-child { grid-column: 2; grid-row: 1; }
}

.compare th[scope="row"] { width: 18%; }
.compare td { width: 30%; }
.compare td:last-child { width: 22%; }

/* -------------------------------------------------------------- lists -- */

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.7rem; height: 0.38rem; border: solid var(--teal); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ticks--cols { columns: 2 16rem; column-gap: 2.5rem; }
.ticks--cols li { break-inside: avoid; }

.dashes { list-style: none; padding: 0; }
.dashes li { position: relative; padding-left: 1.3rem; }
.dashes li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }

.steps { list-style: none; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.steps > li::before { content: counter(step, decimal-leading-zero); font: 500 0.85rem/1.6 var(--mono); color: var(--copper-deep); }
.steps > li > * { grid-column: 2; }
.steps h3 { margin: 0 0 0.25rem; font-size: 1.03rem; }
.steps p { margin: 0; color: var(--muted); }
.steps--compact > li { padding: 0.7rem 0; }

.defs { display: grid; gap: 0; margin: 0 0 1.75rem; border-top: 1px solid var(--line); }
.defs > div { display: grid; gap: 0.25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) { .defs > div { grid-template-columns: 14rem minmax(0, 1fr); } }
.defs dt { font-weight: 600; color: var(--ink); }
.defs dd { margin: 0; color: var(--muted); }

/* ----------------------------------------------------------- callouts -- */

.note {
  border-left: 3px solid var(--st-development); background: var(--white); padding: 1.1rem 1.3rem; margin: 0 0 1.75rem;
  font-size: 0.98rem;
}
.note > :last-child { margin-bottom: 0; }
.note__title { display: block; font: 500 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--st-development); margin-bottom: 0.45rem; }
.note--limits { border-left-color: var(--copper); }
.note--limits .note__title { color: var(--copper-deep); }
.note--info { border-left-color: var(--teal); }
.note--info .note__title { color: var(--teal); }

.pull { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.3; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 1.25rem; max-width: 36rem; }

/* ----------------------------------------------------------- diagrams -- */

.diagram { margin: 0 0 2rem; background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.diagram__tag { font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--st-development); background: var(--st-development-bg); padding: 0.28rem 0.42rem; border-radius: 2px; margin-right: 0.35rem; }
.section--dark .diagram { background: var(--navy-deep); border-color: rgba(255, 255, 255, 0.12); }
.section--dark .diagram figcaption { color: #9AA6B6; border-color: rgba(255, 255, 255, 0.12); }

/* Shared diagram vocabulary. Every SVG uses these classes so they read as a set. */
.dg text { font-family: var(--mono); font-size: 12px; fill: var(--charcoal); }
.dg .t-title { font-family: var(--sans); font-weight: 600; font-size: 14px; fill: var(--ink); }
.dg .t-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--muted); }
.dg .t-small { font-size: 11px; fill: var(--muted); }
.dg .t-inv { fill: #fff; }
.dg .t-accent { fill: var(--copper-deep); }
.dg .box { fill: var(--white); stroke: var(--line-strong); stroke-width: 1; }
.dg .box-soft { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.dg .box-alt { fill: var(--paper-2); stroke: var(--line); stroke-width: 1; }
.dg .box-navy { fill: var(--navy); stroke: none; }
.dg .box-teal { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1; }
.dg .box-accent { fill: var(--copper-soft); stroke: var(--copper); stroke-width: 1; }
.dg .box-dashed { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 3; }
.dg .line { stroke: var(--line-strong); stroke-width: 1.25; fill: none; }
.dg .line-strong { stroke: var(--navy-soft); stroke-width: 1.5; fill: none; }
.dg .line-accent { stroke: var(--copper); stroke-width: 1.5; fill: none; }
.dg .line-dashed { stroke: var(--line-strong); stroke-width: 1.25; fill: none; stroke-dasharray: 4 3; }
.dg .dot { fill: var(--navy); }
.dg .dot-accent { fill: var(--copper); }
.dg .arrow { fill: var(--navy-soft); }
.dg .arrow-accent { fill: var(--copper); }

/* ------------------------------------------------------------ the FAQ -- */

.faq { border-top: 1px solid var(--line); margin-bottom: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font: 400 1.4rem/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--teal); }
.faq__answer { padding: 0 0 1.25rem; max-width: 46rem; }
.faq__answer > :last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group > h2 { font-size: 1.5rem; }

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

.phases { list-style: none; padding: 0; margin: 0; position: relative; }
.phases::before { content: ""; position: absolute; left: 0.95rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line-strong); }
.phase { position: relative; padding: 0 0 2.25rem 3.25rem; margin: 0; }
.phase::before {
  content: ""; position: absolute; left: 0.45rem; top: 0.35rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-strong);
}
.phase.is-current::before { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 4px var(--copper-soft); }
.phase__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.phase__num { font: 500 0.8rem/1 var(--mono); color: var(--copper-deep); letter-spacing: 0.06em; }
.phase h3 { margin: 0; font-size: 1.2rem; }
.phase p { color: var(--muted); max-width: 44rem; }
.phase ul { columns: 2 15rem; column-gap: 2rem; color: var(--text); font-size: 0.97rem; }
.phase li { break-inside: avoid; }
.phase--new .phase__badge { font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }

/* -------------------------------------------------------------- forms -- */

.form-layout { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 60rem) { .form-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.form { max-width: 40rem; }
.field { margin-bottom: 1.35rem; }
.field label, .field legend { display: block; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; font-size: 0.97rem; }
.field .optional { font-weight: 400; color: var(--faint); font-size: 0.88rem; margin-left: 0.3rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.15rem, calc(100% - 0.8rem) 1.15rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field .checks { display: grid; gap: 0.45rem 1.5rem; }
@media (min-width: 36rem) { .field .checks { grid-template-columns: 1fr 1fr; } }
.field .check { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 400; color: var(--text); font-size: 0.96rem; margin: 0; }
.field .check input { margin-top: 0.3rem; accent-color: var(--teal); }
.field .hint { font-size: 0.87rem; color: var(--muted); margin: 0.35rem 0 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--copper); }
.field .error { color: var(--copper-deep); font-size: 0.9rem; margin: 0.35rem 0 0; font-weight: 500; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-result { padding: 1.1rem 1.3rem; margin-bottom: 1.75rem; border-left: 3px solid var(--st-available); background: var(--white); }
.form-result--bad { border-left-color: var(--copper); }
.form-result--wait { border-left-color: var(--st-development); }
.form-result h2 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.4rem; }
.form-result p:last-child { margin-bottom: 0; }

.form-status { min-height: 1.4em; font-size: 0.92rem; color: var(--muted); margin: 0.75rem 0 0; }
.form-privacy { font-size: 0.87rem; color: var(--muted); margin-top: 1.25rem; }

.form-aside { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.form-aside h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.form-aside ul { padding-left: 1.1rem; color: var(--muted); font-size: 0.97rem; }
.form-aside + .form-aside { margin-top: 2rem; }

altcha-widget { display: block; max-width: 22rem; }

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

.cta-band { background: var(--navy); color: #C9D2DE; padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.cta-band__inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 56rem) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { margin: 0; max-width: 40rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn--secondary:hover { border-color: #fff; }

/* ------------------------------------------------------------ related -- */

.related { padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: var(--paper-2); }
.related__heading { font: 500 0.78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.25rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 48rem) { .related ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; } }
.related li { margin: 0; border-bottom: 1px solid var(--line-strong); }
.related a { display: block; padding: 1.1rem 0; text-decoration: none; color: var(--text); }
.related a:hover .related__title { color: var(--copper-deep); }
.related__title { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.related__title::after { content: " →"; color: var(--copper); }
.related__desc { display: block; font-size: 0.92rem; color: var(--muted); }

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

.site-footer { background: var(--navy-deep); color: #A5AFBD; font-size: 0.93rem; padding: 3.5rem 0 2rem; }
.site-footer a { color: #D3DAE3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; gap: 2.25rem 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 40rem) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .site-footer__top { grid-template-columns: 1.6fr repeat(6, minmax(0, 1fr)); } }
.site-footer__brand p { max-width: 20rem; }
.brand--footer { color: #fff; margin-bottom: 1rem; }
.brand--footer:hover { color: #fff; text-decoration: none !important; }
.brand--footer .brand__mark { fill: #E9E5DC; }
.site-footer__stage { font-size: 0.86rem; }
.site-footer__col h2 { font: 500 0.74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #7F8A9A; margin-bottom: 0.9rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li + li { margin-top: 0.45rem; }
.site-footer__base { padding-top: 1.5rem; display: grid; gap: 0.75rem; font-size: 0.82rem; color: #7F8A9A; }
@media (min-width: 56rem) { .site-footer__base { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.site-footer__base p { margin: 0; max-width: 52rem; }

/* --------------------------------------------------------------- home -- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--copper-deep); }
.hero .lede { max-width: 34rem; }
.hero__stage { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); max-width: 34rem; }
.hero__stage .status { margin-right: 0.4rem; }
.hero__figure { margin: 0; }
.hero__figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }

.scope { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0 0 2rem; list-style: none; padding: 0; }
@media (min-width: 44rem) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
@media (min-width: 64rem) { .scope { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scope li { padding: 1.25rem 0 1.4rem; border-bottom: 1px solid var(--line); margin: 0; }
.scope h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.scope h3 a { color: var(--ink); text-decoration: none; }
.scope h3 a:hover { color: var(--copper-deep); text-decoration: underline; }
.scope p { font-size: 0.94rem; color: var(--muted); margin: 0 0 0.5rem; }
.scope .replaces { font: 400 0.78rem/1.45 var(--mono); color: var(--faint); margin: 0; }

.concerns { columns: 2 18rem; column-gap: 3rem; list-style: none; padding: 0; margin: 0; }
.concerns li { break-inside: avoid; padding: 0.85rem 0; border-top: 1px solid var(--line); margin: 0; }
.concerns strong { display: block; margin-bottom: 0.15rem; }
.concerns span { color: var(--muted); font-size: 0.95rem; }

.models { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .models { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.models > div { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 56rem) { .models > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
.models h3 { margin-bottom: 0.35rem; }
.models p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

/* --------------------------------------------------------- utilities -- */

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2rem; }
.grid-2 { display: grid; gap: 2rem 3rem; }
@media (min-width: 52rem) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-2--wide-left { }
@media (min-width: 52rem) { .grid-2--wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .related, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* Diagrams keep a readable size on phones and scroll sideways instead of
   shrinking their labels to a few pixels. */
@media (max-width: 47.99rem) {
  .diagram, .hero__figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram svg, .hero__figure svg { min-width: 34rem; }
  .diagram figcaption::after, .hero__figure figcaption::after { content: " Scroll sideways to see the whole diagram."; }
}
.section--dark .pull { color: #fff; border-top-color: #fff; }

/* Project updates: one ruled entry per article, newest first. */
.updates { border-top: 2px solid var(--ink); }
.updates > article { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--line); }
.updates > article h2, .updates > article h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); margin-bottom: 0.75rem; }
.brand--footer .brand__name b { color: #fff; }
