/* ═══════════════════════════════════════════════════════════
   amylifecycle
   Light only by design. Accent lock #0067b8. Radius lock 0.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:            #ffffff;
  --surface:       #f4f6f8;
  --surface-2:     #e9edf1;
  --line:          #dde3e9;
  --line-strong:   #c3ccd6;

  --ink:           #12161d;
  --ink-2:         #39424f;
  --ink-muted:     #5c6675;

  --accent:        #0067b8;
  --accent-deep:   #004c86;
  --accent-tint:   #e9f2fa;

  --warn:          #9c3d00;
  --warn-bg:       #fdf0e6;

  --shell:  min(1360px, 100%);
  --pad:    clamp(20px, 4.2vw, 60px);
  --read:   68ch;

  --t--1:   13px;
  --t-0:    15px;
  --t-1:    17px;
  --t-2:    20px;
  --t-3:    26px;
  --t-4:    clamp(29px, 3.2vw, 40px);
  --t-5:    clamp(36px, 4.8vw, 60px);

  --mono:   ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Source Sans 3",
               system-ui, -apple-system, sans-serif;
  font-size: var(--t-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: "Segoe UI Variable Display", "Segoe UI", "Source Sans 3",
               system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
img { max-width: 100%; display: block; }

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

.shell { width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.tnum  { font-variant-numeric: tabular-nums; }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal;
  line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ═══ NAV ═════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 64px; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }

.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.02em; flex-shrink: 0;
}
.brand-mark {
  width: 20px; height: 20px; flex-shrink: 0;
  display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 2px;
}
.brand-mark i { background: var(--accent); display: block; }
.brand-mark i:nth-child(2) { background: var(--accent-deep); opacity: .55; }
.brand-mark i:nth-child(3) { background: var(--accent); opacity: .32; }
.brand-mark i:nth-child(4) { background: var(--accent-deep); }

.nav-links { display: flex; gap: clamp(14px, 2vw, 26px); white-space: nowrap; }
.nav-links a {
  color: var(--ink-2); padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.nav-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--bg);
  height: 36px; padding: 0 12px; min-width: 0;
  width: clamp(150px, 19vw, 240px);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.nav-search .material-symbols-outlined { font-size: 19px; color: var(--ink-muted); flex-shrink: 0; }
.nav-search input {
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink); width: 100%; min-width: 0;
}
.nav-search input::placeholder { color: var(--ink-muted); }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}

/* ═══ SEARCH STATUS ═══════════════════════════════════════ */
.search-status {
  background: var(--accent-tint); border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--accent-deep);
}
.search-status[hidden] { display: none !important; }
.search-status .shell { display: flex; align-items: center; gap: 12px; padding-block: 11px; }
.search-status button {
  margin-left: auto; background: transparent; border: 1px solid currentColor;
  color: inherit; font: inherit; font-size: 13px; font-weight: 600;
  padding: 4px 12px; cursor: pointer;
}
.search-status button:hover { background: rgba(0,103,184,.1); }

/* ═══ BUTTONS & LINKS ═════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px;
  font: inherit; font-size: var(--t-1); font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.arrow {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent); font-weight: 600; font-size: var(--t-0);
  background: none; border: 0; font-family: inherit; cursor: pointer; padding: 0;
}
.arrow .material-symbols-outlined { font-size: 18px; transition: transform .2s var(--ease); }
.arrow:hover { color: var(--accent-deep); }
.arrow:hover .material-symbols-outlined { transform: translateX(4px); }

/* ═══ SECTION FRAME ═══════════════════════════════════════ */
.section { padding-block: clamp(58px, 7vw, 100px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 42px);
}
.section-head h2 { font-size: var(--t-4); line-height: 1.1; }
.section-head p { color: var(--ink-muted); font-size: var(--t-1); max-width: 50ch; margin-top: 8px; }

/* ═══ HERO ══ asymmetric split ════════════════════════════ */
.hero { border-bottom: 1px solid var(--line); }
.hero .shell {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 76px); align-items: center;
  padding-block: clamp(48px, 6.5vw, 88px);
}
.hero h1 { font-size: var(--t-5); line-height: 1.05; max-width: 15ch; }
.hero-lede {
  margin-top: 22px; font-size: var(--t-2); line-height: 1.5;
  color: var(--ink-muted); max-width: 47ch;
}
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }

.plate {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  padding: 20px 20px 62px; margin: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, #2f92e0 0%, transparent 58%),
    linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.plate svg { width: 100%; height: 100%; display: block; }
.plate figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 16px;
  color: rgba(255,255,255,.84); font-size: var(--t--1); line-height: 1.5;
}

/* ═══ DEADLINE BOARD ══ dense data table ══════════════════
   Semantic status colour is separate from the accent and is
   used only inside the status pills. */
.board-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--bg); }
table.board { width: 100%; border-collapse: collapse; min-width: 820px; }
.board thead th {
  text-align: left; font-weight: 700; font-size: var(--t--1); color: var(--ink-muted);
  padding: 13px 20px; background: var(--surface);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.board td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr:hover { background: var(--surface); }
.board-date { white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.board-in {
  display: block; font-size: var(--t--1); font-weight: 400;
  color: var(--ink-muted); margin-top: 4px; font-variant-numeric: tabular-nums;
}
.board-what { font-weight: 600; color: var(--ink); font-size: var(--t-1); line-height: 1.35; }
.board-what a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.board-what a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.board-who {
  display: block; color: var(--ink-muted); margin-top: 6px;
  max-width: 54ch; font-size: 14px; line-height: 1.55;
}
.pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border: 1px solid currentColor; white-space: nowrap;
}
.pill-past { color: var(--ink-muted); }
.pill-now  { color: var(--warn); background: var(--warn-bg); }
.pill-next { color: var(--accent-deep); background: var(--accent-tint); }

.board-foot {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px 24px;
  align-items: center; font-size: var(--t--1); color: var(--ink-muted);
}
.board-foot .sp { flex: 1; }

/* ═══ DEADLINE DETAIL ═════════════════════════════════════ */
.dl-card {
  border: 1px solid var(--line); background: var(--bg);
  padding: clamp(24px, 3vw, 38px); margin-bottom: 16px;
}
.dl-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.dl-head {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: baseline; justify-content: space-between;
}
.dl-card h2 { font-size: var(--t-3); line-height: 1.2; }
.dl-when { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-when span { display: block; font-weight: 400; font-size: var(--t--1); color: var(--ink-muted); margin-top: 3px; }
.dl-card > p { margin-top: 14px; font-size: var(--t-1); line-height: 1.65; color: var(--ink-2); max-width: var(--read); }
.dl-card h3 { font-size: var(--t-1); margin-top: 24px; }

.checks { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; max-width: var(--read); }
.checks li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 12px; font-size: var(--t-0); line-height: 1.6; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 0; }
.checks .material-symbols-outlined {
  font-size: 19px; color: var(--accent); flex-shrink: 0; margin-top: 1px;
}
.dl-src { margin-top: 20px; font-size: var(--t--1); color: var(--ink-muted); }
.dl-src a { color: var(--accent); border-bottom: 1px solid transparent; }
.dl-src a:hover { border-bottom-color: currentColor; }

/* ═══ SELECTED WORK ══ bento ══════════════════════════════ */
.bento {
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(258px, auto)); gap: 14px;
}
.bento > *:nth-child(1) { grid-row: span 2; }

.work {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px; padding: clamp(26px, 2.6vw, 38px); overflow: hidden; min-height: 258px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work:hover { transform: translateY(-4px); box-shadow: 0 16px 38px -16px rgba(18,22,29,.34); }

.work-a {
  color: #fff;
  background:
    radial-gradient(105% 80% at 82% 4%, #3d9ae8 0%, transparent 55%),
    linear-gradient(200deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.work-b {
  color: var(--ink); border: 1px solid var(--line);
  background: var(--surface);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px);
}
.work-c { color: #fff; background: linear-gradient(140deg, #253040 0%, #12161d 100%); }

.work-meta { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: var(--t--1); }
.work-meta span { padding-left: 12px; border-left: 1px solid currentColor; opacity: .78; }
.work-meta span:first-child { padding-left: 0; border-left: 0; }

.work h3 { font-size: var(--t-3); line-height: 1.16; margin-top: 14px; }
.work-a h3, .work-c h3 { color: #fff; }
.work-lede { margin-top: 10px; font-size: var(--t-1); line-height: 1.5; max-width: 41ch; }
.work-a .work-lede, .work-c .work-lede { color: rgba(255,255,255,.84); }
.work-b .work-lede { color: var(--ink-2); }

.work-outcome {
  margin-top: 16px; padding-top: 14px; font-size: var(--t-0);
  border-top: 1px solid currentColor; max-width: 43ch; line-height: 1.5;
}
.work-a .work-outcome, .work-c .work-outcome { color: rgba(255,255,255,.74); }
.work-b .work-outcome { color: var(--ink-muted); border-top-color: var(--line-strong); }

.work-foot { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-0); }
.work-a .work-foot, .work-c .work-foot { color: #fff; }
.work-b .work-foot { color: var(--accent); }
.work-foot .material-symbols-outlined { font-size: 18px; transition: transform .2s var(--ease); }
.work:hover .work-foot .material-symbols-outlined { transform: translateX(4px); }

/* ═══ DELIVERED ══ stat-led record cards ══════════════════
   Infrastructure delivery is credentialed by scale, so the
   figures lead and the prose follows. Deliberately not the
   bento: building a tool and commissioning an estate are
   different kinds of evidence and should not share a grid. */
.record {
  border: 1px solid var(--line); background: var(--bg);
  padding: clamp(26px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.record + .record { border-top: 0; }
.record-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; }
.record h3 { font-size: var(--t-3); line-height: 1.18; }
.record-year { font-size: var(--t--1); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.record-scope { margin-top: 10px; font-size: var(--t-2); line-height: 1.5; color: var(--ink-2); max-width: 50ch; }
.record-note { margin-top: 14px; font-size: var(--t-0); line-height: 1.65; color: var(--ink-muted); max-width: 62ch; }
.record .arrow { margin-top: 18px; }

.record-figs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, auto);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.fig { background: var(--bg); padding: 16px 18px; text-align: right; }
.fig b {
  display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600;
  letter-spacing: -0.025em; color: var(--accent); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fig span { display: block; margin-top: 6px; font-size: var(--t--1); color: var(--ink-muted); }

@media (max-width: 860px) {
  .record { grid-template-columns: 1fr; }
  .record-figs { grid-auto-flow: row; grid-auto-columns: auto; }
  .fig { text-align: left; }
}

/* ═══ CAPABILITIES ══ bordered definition grid ════════════ */
.caps { border-top: 1px solid var(--line); background: var(--surface); }
.caps .shell { padding-block: clamp(52px, 6vw, 84px); }
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cap {
  background: var(--surface); padding: clamp(24px, 2.4vw, 34px);
  display: flex; flex-direction: column; gap: 10px;
}
.cap .material-symbols-outlined { font-size: 26px; color: var(--accent); }
.cap h3 { font-size: var(--t-2); line-height: 1.25; }
.cap p { font-size: var(--t-0); color: var(--ink-muted); line-height: 1.55; }
.cap ul { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.cap li {
  font-size: var(--t--1); color: var(--ink-2);
  border: 1px solid var(--line-strong); padding: 3px 9px; background: var(--bg);
}

/* ═══ TOOLKIT STEPS ══ horizontal snap rail ═══════════════ */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(244px, 25%);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.rail::-webkit-scrollbar { height: 7px; }
.rail::-webkit-scrollbar-track { background: var(--surface); }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); }

.step {
  scroll-snap-align: start; border: 1px solid var(--line); background: var(--bg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 208px;
}
.step-n { font-size: var(--t--1); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h4 { font-size: var(--t-1); line-height: 1.3; }
.step p { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
.step .sig {
  margin-top: auto; padding-top: 12px; font-family: var(--mono);
  font-size: 12px; color: var(--ink-2); word-break: break-all;
}
.rail-hint { margin-top: 2px; font-size: var(--t--1); color: var(--ink-muted); }

/* ═══ RUNBOOK ══ vertical timeline ════════════════════════ */
.track { border-left: 2px solid var(--line); margin-left: 6px; }
.stop { position: relative; padding: 0 0 38px 32px; }
.stop:last-child { padding-bottom: 0; }
.stop::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--line-strong);
}
.stop[data-key]::before { background: var(--accent); border-color: var(--accent); }
.stop-when { font-size: var(--t--1); color: var(--ink-muted); }
.stop h3 { font-size: var(--t-2); line-height: 1.3; margin-top: 5px; }
.stop p { margin-top: 8px; font-size: var(--t-0); color: var(--ink-muted); max-width: 66ch; line-height: 1.65; }

/* ═══ RADAR ══ dense dated feed ═══════════════════════════
   Curated links with attribution, not original writing. Kept
   visually distinct from the essay list on purpose: this is a
   feed and should read as one. */
.feed-day { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: clamp(14px, 3vw, 36px); }
.feed-day + .feed-day { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.feed-date {
  font-size: var(--t--1); font-weight: 700; color: var(--ink-muted);
  font-variant-numeric: tabular-nums; padding-top: 13px;
}
.feed-item { padding: 12px 0; }
.feed-item + .feed-item { border-top: 1px solid var(--line); }
.feed-item h3 { font-size: var(--t-1); font-weight: 600; line-height: 1.4; }
.feed-item h3 a { border-bottom: 1px solid transparent; }
.feed-item h3 a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.feed-item h3 .material-symbols-outlined {
  font-size: 15px; color: var(--ink-muted); vertical-align: baseline; margin-left: 3px;
}
.feed-why { margin-top: 5px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); max-width: 74ch; }
.feed-src {
  display: inline-block; margin-top: 7px; font-size: 12px; color: var(--ink-muted);
  border: 1px solid var(--line-strong); padding: 2px 8px; background: var(--surface);
}
.feed-note {
  margin-top: 20px; font-size: var(--t--1); color: var(--ink-muted);
  border-left: 3px solid var(--line-strong); padding-left: 14px; max-width: 66ch; line-height: 1.6;
}

@media (max-width: 700px) {
  .feed-day { grid-template-columns: 1fr; gap: 6px; }
  .feed-date { padding-top: 0; }
}

/* ═══ RUNBOOK ══ phased timeline ══════════════════════════ */
.phase { position: relative; }
.phase + .phase { margin-top: 8px; }
.phase-name {
  position: relative; font-size: var(--t-1); font-weight: 700;
  color: var(--accent-deep); padding: 0 0 18px 32px; margin: 0;
}
/* A bar, not a square. The step markers are squares, so the phase
   marker has to read as a different kind of thing rather than as
   another step sitting one line above the first one. */
.phase-name::before {
  content: ""; position: absolute; left: -13px; top: 7px;
  width: 24px; height: 4px; background: var(--accent);
}
.phase:first-child .phase-name { padding-top: 0; }
.phase + .phase .phase-name { padding-top: 26px; }
.phase + .phase .phase-name::before { top: 33px; }

.watch {
  margin-top: 10px; display: flex; gap: 9px; align-items: flex-start;
  font-size: var(--t-0); line-height: 1.6; color: var(--warn);
  background: var(--warn-bg); border: 1px solid #f2ddcb;
  padding: 11px 14px; max-width: 64ch;
}
.watch .material-symbols-outlined { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.stop .arrow { margin-top: 12px; }

.runbook-actions {
  margin-top: clamp(30px, 4vw, 46px); padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.runbook-actions p { font-size: var(--t--1); color: var(--ink-muted); max-width: 44ch; }

@media print {
  .watch { border-color: #999; background: none; color: #000; }
  .phase-name::before, .stop::before { display: none; }
  .track { border-left: 0; margin-left: 0; }
  .stop, .phase-name { padding-left: 0; }
  .runbook-actions { display: none; }
}

/* ═══ WRITING ══ year-grouped editorial list ══════════════ */
.year {
  display: grid; grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px); padding-top: 26px; border-top: 1px solid var(--line);
}
.year + .year { margin-top: 36px; }
.year-label { font-size: var(--t-1); font-weight: 700; color: var(--ink-muted); padding-top: 13px; }

.post {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline; gap: 18px;
  padding: 16px 14px; margin-inline: -14px;
  transition: background .16s var(--ease);
}
.post:hover { background: var(--surface); }
.post h3, .post h4 { font-size: var(--t-2); font-weight: 600; line-height: 1.3; }
.post p { font-size: 14px; color: var(--ink-muted); margin-top: 4px; max-width: 64ch; line-height: 1.5; }
.post-meta { font-size: var(--t--1); color: var(--ink-muted); white-space: nowrap; }

/* ═══ ABOUT ══ full-width statement ═══════════════════════ */
.about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.about .shell { padding-block: clamp(52px, 6vw, 88px); }
.about h2 { font-size: var(--t-4); line-height: 1.15; max-width: 20ch; }
.about-body { margin-top: 22px; max-width: var(--read); }
.about-body p { font-size: var(--t-2); line-height: 1.6; color: var(--ink-2); }
.about-body p + p { margin-top: 18px; }
.about-facts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 62px); }
.about-facts > div { max-width: 30ch; }
.about-facts dt { font-size: var(--t--1); font-weight: 700; color: var(--ink-muted); margin-bottom: 6px; }
.about-facts dd { font-size: var(--t-1); color: var(--ink); line-height: 1.5; }

/* ═══ CONTACT ══ accent band ══════════════════════════════ */
.band { background: var(--accent); color: #fff; }
.band .shell {
  padding-block: clamp(50px, 6vw, 80px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
.band h2 { font-size: var(--t-4); line-height: 1.14; color: #fff; max-width: 18ch; }
.band-lede { margin-top: 14px; font-size: var(--t-1); color: rgba(255,255,255,.86); max-width: 44ch; line-height: 1.55; }
.band-links { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.band-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--t-2); font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 3px;
  transition: border-color .18s var(--ease);
}
.band-link:hover { border-bottom-color: #fff; }
.band-link .material-symbols-outlined { font-size: 21px; }

.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field { flex: 1 1 210px; min-width: 0; }
.field label { display: block; font-size: var(--t--1); font-weight: 600; color: rgba(255,255,255,.92); margin-bottom: 6px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  font: inherit; font-size: var(--t-1); color: #fff;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.55);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.field input::placeholder { color: rgba(255,255,255,.72); }
.field input:hover { background: rgba(255,255,255,.19); }
.field input:focus {
  outline: none; border-color: #fff; background: rgba(255,255,255,.21);
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}
.field input[aria-invalid="true"] { border-color: #ffd3c7; background: rgba(255,80,40,.2); }

.btn-submit {
  align-self: flex-end; height: 46px; padding: 0 28px;
  background: #fff; color: var(--accent-deep); border: 1px solid #fff;
  font: inherit; font-size: var(--t-1); font-weight: 700; cursor: pointer;
  transition: background .16s var(--ease), transform .1s var(--ease);
}
.btn-submit:hover { background: var(--accent-tint); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit[disabled] { opacity: .6; cursor: progress; }

.band-form-title { font-size: var(--t-2); font-weight: 600; color: #fff; margin-bottom: 14px; }
.form-msg {
  margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 20px;
  display: flex; align-items: center; gap: 6px; color: #fff;
}
.form-msg .material-symbols-outlined { font-size: 18px; }
.form-note { margin-top: 10px; font-size: var(--t--1); color: rgba(255,255,255,.8); }
.form-note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.form-done { display: flex; align-items: center; gap: 10px; font-size: var(--t-2); font-weight: 600; color: #fff; }
.form-done .material-symbols-outlined { font-size: 26px; }

/* ═══ EMPTY STATE ═════════════════════════════════════════ */
.empty {
  border: 1px dashed var(--line-strong); background: var(--surface);
  padding: 34px 26px; text-align: center; color: var(--ink-muted); font-size: var(--t-1);
}
.empty strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: var(--t-2); }
.empty[hidden] { display: none !important; }

/* ═══ ARTICLE PAGES ═══════════════════════════════════════ */
.crumbs {
  border-bottom: 1px solid var(--line);
  font-size: var(--t--1); color: var(--ink-muted);
}
.crumbs .shell { display: flex; align-items: center; gap: 8px; padding-block: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .material-symbols-outlined { font-size: 15px; opacity: .6; }

.article { padding-block: clamp(40px, 5vw, 68px) clamp(56px, 7vw, 96px); }
.article .shell { max-width: min(1360px, 100%); }
.doc-head { max-width: 74ch; }
.doc-head h1 { font-size: clamp(31px, 4vw, 50px); line-height: 1.08; }
.doc-sub { margin-top: 16px; font-size: var(--t-2); color: var(--ink-muted); line-height: 1.5; max-width: 58ch; }
.doc-meta {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 24px;
}
.doc-meta dt { font-size: var(--t--1); color: var(--ink-muted); font-weight: 700; margin-bottom: 3px; }
.doc-meta dd { font-size: var(--t-0); color: var(--ink); }
.doc-link {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 600; font-size: var(--t-0);
}
.doc-link:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc-link .material-symbols-outlined { font-size: 17px; }

.prose { margin-top: 38px; max-width: var(--read); }
.prose h2 { font-size: var(--t-3); line-height: 1.25; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; font-size: var(--t-1); line-height: 1.75; color: var(--ink-2); }
.prose ul { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.prose li { font-size: var(--t-1); line-height: 1.68; color: var(--ink-2); padding-left: 20px; position: relative; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 8px; height: 1px; background: var(--line-strong);
}
.prose strong { color: var(--ink); }
.prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--surface); border: 1px solid var(--line); padding: 1px 5px; color: var(--ink);
}
.prose pre {
  margin-top: 18px; background: var(--surface); border: 1px solid var(--line);
  padding: 18px 20px; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.75; }
.prose blockquote {
  margin: 26px 0 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--accent);
  font-size: var(--t-2); line-height: 1.55; color: var(--ink);
}
.prose .callout {
  margin-top: 28px; background: var(--accent-tint); border: 1px solid #bcd9f0;
  padding: 20px 22px; font-size: var(--t-0); line-height: 1.62; color: var(--accent-deep);
}
.prose .callout strong { display: block; margin-bottom: 5px; color: var(--accent-deep); }

.article-foot {
  margin-top: clamp(48px, 6vw, 76px); padding-top: 30px;
  border-top: 1px solid var(--line); max-width: var(--read);
}
.article-foot h2 { font-size: var(--t-2); }
.next-list { margin-top: 16px; display: flex; flex-direction: column; }
.next-list a {
  padding: 15px 14px; margin-inline: -14px;
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: baseline;
  transition: background .16s var(--ease);
}
.next-list a:hover { background: var(--surface); }
.next-list strong { font-size: var(--t-1); font-weight: 600; color: var(--ink); }
.next-list span { font-size: var(--t--1); color: var(--ink-muted); white-space: nowrap; }

/* ═══ INDEX PAGES ═════════════════════════════════════════ */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .shell { padding-block: clamp(44px, 5.5vw, 76px); }
.page-head h1 { font-size: var(--t-5); line-height: 1.06; max-width: 18ch; }
.page-head p { margin-top: 18px; font-size: var(--t-2); color: var(--ink-muted); max-width: 58ch; line-height: 1.5; }

/* ═══ FOOTER ══════════════════════════════════════════════ */
footer { border-top: 1px solid var(--line); padding-block: 46px 30px; font-size: 14px; color: var(--ink-muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 34px; }
.foot-grid h2 { font-size: var(--t--1); font-weight: 700; color: var(--ink); margin: 0 0 13px; }
.foot-grid li + li { margin-top: 9px; }
.foot-grid a { color: var(--ink-muted); }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot-blurb { max-width: 38ch; line-height: 1.6; }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.foot-bottom .sp { flex: 1; }
.foot-bottom a:hover { color: var(--accent); }

/* ═══ SCROLL REVEAL ═══════════════════════════════════════
   The hidden state exists only once JS confirms it can
   reveal, so no-JS and reduced-motion readers get the page
   complete at rest. */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); }
.reveal-on .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ═══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero .shell { grid-template-columns: 1fr; }
  .plate { aspect-ratio: 1 / 1; order: -1; max-height: 500px; }
  .hero h1 { max-width: 18ch; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .band .shell { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; inset: 64px 0 auto;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
  }
  .nav.is-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-search {
    display: flex; position: absolute; top: 64px; inset-inline: 0;
    width: auto; margin: 0; height: 44px;
  }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento > *:nth-child(1) { grid-row: auto; min-height: 300px; }
  .cap-grid { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: minmax(230px, 78%); }
  .year { grid-template-columns: 1fr; gap: 8px; }
  .year-label { padding-top: 0; }
  .about-facts { flex-direction: column; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .post { grid-template-columns: 1fr; gap: 4px; }
  .next-list a { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stop { padding-left: 24px; }
  .plate { aspect-ratio: 3 / 4; }
  .dl-head { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .rail { scroll-snap-type: none; }
}

@media print {
  .nav, .band, .search-status, .plate, footer .foot-grid { display: none; }
  body { font-size: 11pt; }
  .prose { max-width: none; }
}
