/* 00-tokens.css */
/* Metric-matched fallbacks keep layout stable while the web fonts load.
   Values measured in Chromium against the real Google Fonts files (canvas
   measureText over representative page copy; fontaine formula):
     size-adjust = webfont width / fallback width
     ascent/descent-override = webfont metric / size-adjust
   Headings use Space Grotesk 500-700, so its fallback is Arial Bold. */
@font-face {
  font-family: "Space Grotesk Fallback";
  font-weight: 500 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Arial");
  size-adjust: 101.82%;
  ascent-override: 96.25%;
  descent-override: 28.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 106.95%;
  ascent-override: 90.69%;
  descent-override: 22.44%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 500 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Arial");
  size-adjust: 101.59%;
  ascent-override: 95.48%;
  descent-override: 23.62%;
  line-gap-override: 0%;
}

:root {
  --ink: #151918;
  --ink-2: #1d2423;
  --ink-3: #26302e;
  --paper: #f5f3ee;
  --paper-2: #ebe7de;
  --surface: #fff;
  --muted: #5a625f;
  --line: rgba(21, 25, 24, 0.14);
  --line-strong: rgba(21, 25, 24, 0.32);
  --accent: #23685e;
  --accent-deep: #1a4f47;
  --accent-soft: #dcebe6;
  --accent-on-dark: #86bdb2;
  /* hero (ink section): brand sand, as in the design prototype */
  --hero-fg: #f1dfd1;
  --hero-fg-muted: rgba(241, 223, 209, 0.78);
  --hero-line: rgba(241, 223, 209, 0.35);
  --issue: #a3452a;
  --on-dark: #eef0ec;
  --on-dark-muted: #b4bcb8;
  --line-dark: rgba(238, 240, 236, 0.16);

  --font-display: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.6vw, 1.7rem);
  --step-3: clamp(1.65rem, 1.4rem + 1.2vw, 2.45rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.6vw, 4.9rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --nav-h: 68px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(21, 25, 24, 0.06), 0 12px 32px rgba(21, 25, 24, 0.08);
  --shadow-lift: 0 2px 4px rgba(21, 25, 24, 0.08), 0 22px 48px rgba(21, 25, 24, 0.16);

  --m-micro: 120ms;
  --m-quick: 200ms;
  --m-base: 320ms;
  --m-sheet: 420ms;
  --m-draw: 900ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-draw: cubic-bezier(0.45, 0, 0.2, 1);

  --focus: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --m-micro: 1ms;
    --m-quick: 1ms;
    --m-base: 1ms;
    --m-sheet: 1ms;
    --m-draw: 1ms;
  }
}

/* 01-base.css */
*, *::before, *::after { box-sizing: border-box; }

/* Author display rules (.btn, .chip-add, .atlas-tools…) would otherwise beat the
   UA [hidden] rule and show JS-only controls to visitors without JavaScript. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img { max-width: min(100%, var(--nw, 100%)); height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
dd { margin: 0; }
table { border-collapse: collapse; }
main:focus { outline: none; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------- sections */
main > section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
main > section:not(.hero) { scroll-margin-top: var(--nav-h); }

.sect--dark {
  --focus: var(--accent-on-dark);
  background:
    linear-gradient(var(--line-dark) 1px, transparent 1px) 0 0 / 100% 64px,
    var(--ink);
  background-blend-mode: normal;
  color: var(--on-dark);
}
.sect--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(21, 25, 24, 0.86) 40%, var(--ink) 100%);
}
.sect--dark > .wrap { position: relative; }

.shead { max-width: 60rem; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.sect--dark .eyebrow { color: var(--accent-on-dark); }
.shead h2 { font-size: var(--step-4); max-width: 13.5em; text-wrap: balance; }
.shead__intro { margin-top: var(--space-5); font-size: var(--step-1); color: var(--muted); max-width: 36em; }
.sect--dark .shead__intro { color: var(--on-dark-muted); }

.shead--notes .shead__intro {
  font-size: var(--step-0);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
}

/* ----------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  transition: background var(--m-quick) var(--ease), color var(--m-quick) var(--ease), border-color var(--m-quick) var(--ease), transform var(--m-quick) var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform var(--m-quick) var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--step--1); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-deep); --btn-bd: var(--accent-deep); }
.btn--ghost, .btn--outline { --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover, .btn--outline:hover { --btn-bd: var(--ink); background: rgba(21, 25, 24, 0.04); }
.btn--text { --btn-fg: var(--accent); padding-inline: 4px; min-height: 40px; }
.btn--text:hover { text-decoration: underline; text-underline-offset: 4px; }
.sect--dark .btn--ghost, .sect--dark .btn--outline { --btn-fg: var(--on-dark); --btn-bd: var(--line-dark); }
.sect--dark .btn--ghost:hover, .sect--dark .btn--outline:hover { --btn-bd: var(--on-dark); background: rgba(238, 240, 236, 0.06); }
.sect--dark .btn--text { --btn-fg: var(--accent-on-dark); }

.chip-add {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  font-size: var(--step--1); font-weight: 500;
  background: transparent; color: var(--ink);
  border: 1px dashed var(--line-strong); border-radius: 999px;
  transition: background var(--m-quick) var(--ease), border-color var(--m-quick) var(--ease), color var(--m-quick) var(--ease);
}
.chip-add .i { width: 16px; height: 16px; transition: transform var(--m-quick) var(--ease); }
.chip-add:hover { border-color: var(--accent); color: var(--accent); }
.chip-add[aria-pressed="true"] { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-deep); }
.chip-add[aria-pressed="true"] .i { transform: rotate(45deg); }
.chip-add--icon { width: 40px; padding: 0; justify-content: center; }
.sect--dark .chip-add { color: var(--on-dark); border-color: var(--line-dark); }
.sect--dark .chip-add:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.sect--dark .chip-add[aria-pressed="true"] { background: rgba(134, 189, 178, 0.14); border-color: var(--accent-on-dark); color: var(--accent-on-dark); }

.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: background var(--m-quick) var(--ease), border-color var(--m-quick) var(--ease);
}
.iconbtn:hover { background: var(--paper-2); border-color: var(--line-strong); }
.iconbtn .i { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--m-base) var(--ease), background var(--m-base) var(--ease);
}
.nav[data-scrolled] { border-bottom-color: var(--line); background: rgba(245, 243, 238, 0.97); }
.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  min-height: var(--nav-h); display: flex; align-items: center; gap: var(--space-5);
}
.nav__brand { flex: none; border-radius: var(--radius); }
.nav__logo { width: 42px; height: 42px; border-radius: 3px; }
.nav__menu { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; min-width: 0; }
.nav__links { display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.nav__links a {
  position: relative; display: block; padding: 10px 2px;
  font-size: var(--step--1); font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--ink);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--m-base) var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--accent-deep); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; place-items: center; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.nav__toggle .i { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .no-js .nav__inner { flex-wrap: wrap; padding-block: 8px; }
  .no-js .nav__menu { width: 100%; margin: 0; }
  .no-js .nav__cta { display: none; }

  .js .nav__toggle { display: grid; }
  .js .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--m-base) var(--ease), transform var(--m-base) var(--ease), visibility 0s linear var(--m-base);
  }
  .js .nav[data-open] .nav__menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav__links { flex-direction: column; gap: 0; overflow: visible; }
  .js .nav__links a { padding: 14px 0; font-family: var(--font-display); font-size: var(--step-2); border-bottom: 1px solid var(--line); }
  .js .nav__links a::after { display: none; }
  .js .nav__cta { margin-top: var(--space-5); }
}

/* ------------------------------------------------------ toast + bar */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--on-dark); font-size: var(--step--1);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform var(--m-base) var(--ease), opacity var(--m-base) var(--ease);
}
.toast[data-show] { transform: translate(-50%, 0); opacity: 1; }

.actionbar { display: none; }
@media (max-width: 899px) {
  .js .actionbar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; gap: var(--space-2);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(245, 243, 238, 0.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform var(--m-base) var(--ease);
  }
  .js .actionbar[data-show] { transform: none; }
  .js .actionbar .btn { flex: 1; padding-inline: 10px; white-space: normal; text-align: center; line-height: 1.2; }
  .toast { bottom: 84px; }
}

/* 02-hero.css */
/* Dark hero carrying the ConX mark: two perforated plates forming an X.
   No photograph is used, so nothing here depends on low-resolution imagery. */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(-1 * var(--nav-h));
  padding-block: calc(var(--nav-h) + clamp(28px, 4.5vh, 64px)) clamp(48px, 7vw, 104px);
  background: var(--ink); color: var(--hero-fg);
  --focus: var(--accent-on-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(241, 223, 209, 0.045) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(241, 223, 209, 0.045) 1px, transparent 1px) 0 0 / 88px 88px;
  mask-image: radial-gradient(120% 100% at 20% 30%, #000 30%, transparent 78%);
}
.hero__grid { position: relative; }
.hero__copy { max-width: min(760px, 100%); }

/* --- the X motif ------------------------------------------------------- */
.hero__motif {
  position: absolute; z-index: -1; pointer-events: none;
  top: clamp(-170px, -9vw, -60px); right: clamp(-150px, -8vw, -40px);
  width: clamp(300px, 46vw, 780px); aspect-ratio: 1;
}
.hero__motif::before {
  content: ""; position: absolute; inset: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(42, 99, 96, 0.55), rgba(42, 99, 96, 0.12) 55%, transparent 72%);
  filter: blur(26px);
}
.hero__x { position: relative; width: 100%; height: 100%; }
.hero__x .xp-teal path { fill: #2a6360; }
.hero__x .xp-ink path { fill: #0d1012; }
.hero__sweep {
  position: absolute; inset: -10% -40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(134, 189, 178, 0.14) 50%, transparent 58%);
  transform: translateX(-60%); opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  /* plates slide in along their diagonals and lock once (about 0.9s) */
  .js .hero__x .xp-teal { animation: plate-teal 860ms var(--ease) 80ms both; }
  .js .hero__x .xp-ink { animation: plate-ink 860ms var(--ease) 160ms both; }
  .js .hero__sweep { animation: hero-sweep 1700ms var(--ease-draw) 320ms both; }
  /* scroll-driven parallax where supported: motion follows the reader, never loops */
  @supports (animation-timeline: view()) {
    .hero__motif { animation: motif-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes plate-ink { from { transform: rotate(45deg) translateX(-130px); opacity: 0; } to { transform: rotate(45deg); opacity: 1; } }
@keyframes plate-teal { from { transform: rotate(-45deg) translateX(130px); opacity: 0; } to { transform: rotate(-45deg); opacity: 1; } }
@keyframes hero-sweep { 0% { transform: translateX(-60%); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(60%); opacity: 0; } }
@keyframes motif-drift { from { transform: translate3d(0, -2.5%, 0) rotate(-2.5deg); } to { transform: translate3d(0, 9%, 0) rotate(2.5deg); } }

/* --- copy -------------------------------------------------------------- */
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
.hero__tags li {
  padding: 7px 13px; border: 1px solid var(--hero-line); border-radius: 2px;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hero-fg-muted); background: rgba(13, 16, 18, 0.35);
}
.hero__h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 4.1rem); line-height: 1.04; letter-spacing: -0.025em;
  max-width: 15em; color: var(--hero-fg); text-wrap: balance;
}
.hero__lede { margin-top: var(--space-4); font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem); line-height: 1.7; color: var(--hero-fg-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero .btn--ghost { --btn-fg: var(--hero-fg); --btn-bd: rgba(241, 223, 209, 0.4); }
.hero .btn--ghost:hover { --btn-bd: var(--hero-fg); background: rgba(241, 223, 209, 0.07); }

.hero__proof {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin-top: var(--space-6); border: 1px solid rgba(241, 223, 209, 0.22);
  font-size: var(--step--1); font-weight: 500; color: var(--hero-fg-muted);
  background: rgba(13, 16, 18, 0.4);
}
.hero__proof li { padding: 11px 16px; }
.hero__proof li + li { border-left: 1px solid rgba(241, 223, 209, 0.22); }
@media (max-width: 599px) {
  .hero__proof { grid-template-columns: 1fr; }
  .hero__proof li + li { border-left: 0; border-top: 1px solid rgba(241, 223, 209, 0.22); }
}

/* --- nav while it sits over the dark hero ------------------------------ */
.nav[data-over-hero] {
  background: linear-gradient(to bottom, rgba(13, 16, 18, 0.72), rgba(13, 16, 18, 0.22));
  backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent;
}
.nav[data-over-hero] .nav__links a { color: var(--hero-fg); }
.nav[data-over-hero] .nav__links a::after { background: var(--accent-on-dark); }
.nav[data-over-hero] .nav__links a[aria-current="true"] { color: var(--accent-on-dark); }
.nav[data-over-hero] .nav__toggle { color: var(--hero-fg); border-color: rgba(241, 223, 209, 0.4); }
.nav[data-over-hero] .nav__logo { box-shadow: 0 0 0 1px rgba(241, 223, 209, 0.25); }
@media (max-width: 899px) {
  .js .nav[data-over-hero][data-open] { background: var(--paper); }
  .js .nav[data-over-hero][data-open] .nav__links a { color: var(--ink); }
  .js .nav[data-over-hero][data-open] .nav__toggle { color: var(--ink); border-color: var(--line-strong); }
}

@media (max-width: 760px) {
  .hero__motif { top: -74px; right: -84px; width: min(320px, 76vw); opacity: 0.62; }
  .hero__motif::before { filter: blur(18px); }
}

/* 02b-states.css */
/* The four-state illustrative drawing, shown on the dark Delivery section.
   Corner register marks are drawn once for all frame types in 06-ink.css. */
.drawfig {
  position: relative; max-width: 1000px; margin: 0 auto clamp(36px, 5vw, 64px);
  padding: var(--space-4); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.drawfig__stage { position: relative; }
.hero-draw__svg { width: 100%; height: auto; }

.drawfig__steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-4); border: 1px solid var(--line-dark); }
.no-js .drawfig__steps { display: none; }
.drawfig__step {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 58px; padding: 9px 12px; text-align: left;
  font-size: var(--step--1); font-weight: 500; line-height: 1.25;
  background: transparent; border: 0; color: var(--on-dark-muted);
  transition: color var(--m-quick) var(--ease), background var(--m-quick) var(--ease);
}
li + li > .drawfig__step { border-left: 1px solid var(--line-dark); }
.drawfig__step::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--accent-on-dark); transform: scaleX(0); transform-origin: left;
  transition: transform var(--m-base) var(--ease);
}
.drawfig__step:hover { color: var(--on-dark); background: rgba(238, 240, 236, 0.05); }
.drawfig__step[aria-pressed="true"] { color: var(--on-dark); }
.drawfig__step[aria-pressed="true"]::after { transform: scaleX(1); }
.drawfig__n { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-on-dark); }
.drawfig__cap { margin-top: var(--space-3); font-size: var(--step--1); color: var(--on-dark-muted); }
@media (max-width: 599px) {
  .drawfig { padding: var(--space-3); }
  .drawfig__step { font-size: 0.72rem; padding: 7px 8px; }
}

/* --- drawing vocabulary (dark) ---------------------------------------- */
.hero-draw__svg text { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: var(--on-dark-muted); letter-spacing: 0.04em; }
.d-bubble circle { fill: var(--ink); stroke: var(--on-dark-muted); stroke-width: 1; }
.d-bubble text { text-anchor: middle; fill: var(--on-dark); }
.d-axis { stroke: rgba(238, 240, 236, 0.22); stroke-width: 1; stroke-dasharray: 10 3 2 3; }
.d-level path { stroke: var(--on-dark-muted); stroke-width: 1; fill: none; }
.d-level .d-tri { fill: var(--on-dark-muted); stroke: none; }
.d-ground { stroke: var(--on-dark); stroke-width: 1.6; }
.d-hatch { stroke: rgba(238, 240, 236, 0.28); stroke-width: 1; }
.d-struct { fill: none; stroke-linecap: square; }
.d-struct--existing { stroke: var(--on-dark-muted); stroke-width: 1.4; stroke-dasharray: 5 4; opacity: 0.6; }
.d-struct--model { stroke: var(--on-dark); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.d-survey circle { fill: none; stroke: #d4775a; stroke-width: 1.4; }
.d-survey path { stroke: #d4775a; stroke-width: 1; }
.d-cloud { fill: none; stroke: var(--accent-on-dark); stroke-width: 2.6; stroke-linecap: round; opacity: 0.8; }
.d-scan__wedge { fill: var(--accent-on-dark); opacity: 0.1; transform-origin: 176px 388px; }
.d-scan__station { fill: var(--on-dark); }
.d-duct { fill: rgba(134, 189, 178, 0.16); stroke: var(--accent-on-dark); stroke-width: 1.4; }
.d-pipe { fill: none; stroke: var(--accent-on-dark); stroke-width: 3; stroke-linecap: round; }
.d-clash circle { fill: var(--ink-2); stroke: #d4775a; stroke-width: 1.8; }
.d-clash__x { stroke: #d4775a; stroke-width: 2; }
.d-clash__tick { fill: none; stroke: var(--accent-on-dark); stroke-width: 2.4; opacity: 0; }
.d-tag path { stroke: var(--on-dark-muted); stroke-width: 1; fill: none; }
.d-tag rect { fill: var(--ink); stroke: var(--accent-on-dark); stroke-width: 1.4; }
.d-tag .d-tag__tick { stroke: var(--accent-on-dark); stroke-width: 2; }
.d-tag .d-tag__lines { stroke: rgba(238, 240, 236, 0.35); stroke-width: 2; }
.d-plates .xp-ink path { fill: #0d1012; }
.d-plates .xp-teal path { fill: #2a6360; }
.d-titleblock rect { fill: var(--ink); stroke: var(--on-dark-muted); stroke-width: 1; }
.d-titleblock text { font-size: 9.5px; fill: var(--on-dark); letter-spacing: 0.08em; }

/* --- state reveal (cumulative; no-JS shows the complete state 4) ------- */
.d-layer { transition: opacity var(--m-base) var(--ease); }
.drawfig[data-state="1"] .d-s2,
.drawfig[data-state="1"] .d-s3,
.drawfig[data-state="1"] .d-s4,
.drawfig[data-state="2"] .d-s3,
.drawfig[data-state="2"] .d-s4,
.drawfig[data-state="3"] .d-s4 { opacity: 0; }
.drawfig[data-state="3"] .d-cloud,
.drawfig[data-state="4"] .d-cloud { opacity: 0.3; }
.drawfig[data-state="3"] .d-struct--existing,
.drawfig[data-state="4"] .d-struct--existing { opacity: 0.2; }
.drawfig:not([data-state="2"]) .d-scan__wedge { opacity: 0; }
.drawfig[data-state="4"] .d-survey { opacity: 0; }
.drawfig[data-state="4"] .d-clash circle { stroke: var(--accent-on-dark); }
.drawfig[data-state="4"] .d-clash__x { opacity: 0; }
.drawfig[data-state="4"] .d-clash__tick { opacity: 1; }
.d-survey, .d-clash circle, .d-clash__x, .d-clash__tick { transition: opacity var(--m-base) var(--ease), stroke var(--m-base) var(--ease); }

@media (prefers-reduced-motion: no-preference) {
  .drawfig[data-state="2"] .d-scan__wedge { animation: scan-sweep 1100ms var(--ease-draw) both; }
  .drawfig[data-state="3"] .d-struct--model { animation: stroke-draw var(--m-draw) var(--ease-draw) both; }
  .drawfig[data-state="4"] .d-tag { animation: tag-in var(--m-base) var(--ease) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
  .drawfig[data-state="4"] .d-plates .xp-ink { animation: plate-ink 620ms var(--ease) both; }
  .drawfig[data-state="4"] .d-plates .xp-teal { animation: plate-teal 620ms var(--ease) both; }
}
@keyframes scan-sweep { from { transform: rotate(-38deg); opacity: 0; } 30% { opacity: 0.14; } to { transform: rotate(0deg); opacity: 0.1; } }
@keyframes stroke-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tag-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 03-work.css */
.work { background: var(--paper); }

/* ------------------------------------------------------------ toolbar */
.atlas-tools {
  display: grid; gap: var(--space-4);
  margin-bottom: var(--space-7); padding: var(--space-5);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.atlas-search { position: relative; }
.atlas-search__i { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.atlas-search input {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px;
  font-size: var(--step-1); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color var(--m-quick) var(--ease), background var(--m-quick) var(--ease);
}
.atlas-search input:focus { background: var(--surface); border-color: var(--accent); }
.atlas-facets { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .atlas-facets { grid-template-columns: auto 1fr auto; gap: var(--space-5); } }
.facet { margin: 0; padding: 0; border: 0; min-width: 0; }
.facet legend {
  padding: 0; margin-bottom: 6px;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.facet__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.facet__btn {
  min-height: 38px; padding: 0 14px; font-size: var(--step--1); font-weight: 500;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background var(--m-quick) var(--ease), color var(--m-quick) var(--ease), border-color var(--m-quick) var(--ease);
}
.facet__btn:hover { border-color: var(--ink); }
.facet__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.atlas-status { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 40px; border-top: 1px solid var(--line); padding-top: var(--space-3); }
.atlas-status p { font-size: var(--step--1); color: var(--muted); }

[data-item][hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  [data-item].is-entering { animation: row-in var(--m-base) var(--ease) both; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- cases */
.cases { display: grid; gap: clamp(28px, 4vw, 48px); }
.case__card {
  display: grid; gap: var(--space-5);
  padding: clamp(16px, 2.4vw, 28px);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--m-base) var(--ease), box-shadow var(--m-base) var(--ease);
}
.case__card:hover, .case__card:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .case__card { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
  .case:nth-child(even) .case__card { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .case:nth-child(even) .case__media { order: 2; }
  .case--flagship .case__card { background: var(--ink); color: var(--on-dark); border-color: var(--ink); --focus: var(--accent-on-dark); }
}
@media (max-width: 899px) {
  .case--flagship .case__card { background: var(--ink); color: var(--on-dark); border-color: var(--ink); --focus: var(--accent-on-dark); }
}

/* Specimen frame: keyline, photo never above native size. Corner register
   marks are drawn once for all frame types in 06-ink.css. */
.spec { position: relative; padding: 8px; background: var(--paper); border: 1px solid var(--line-strong); max-width: 560px; }
.spec__img { width: 100%; aspect-ratio: 797 / 420; object-fit: cover; background: var(--paper-2); }
.case__label {
  display: block; margin-top: 8px; padding: 6px 10px;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink);
}
.case--flagship .spec { background: var(--ink-2); border-color: var(--line-dark); }
.case--flagship .case__label { background: var(--ink-2); color: var(--on-dark); border-left-color: var(--accent-on-dark); }

.case__body { display: grid; gap: var(--space-4); align-content: start; }
.case__logo { max-height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 3px; box-sizing: content-box; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case__tags li { padding: 4px 10px; font-size: 0.78rem; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 999px; }
.case__title { font-size: var(--step-3); text-wrap: balance; }
.case__scale { padding: 10px 14px; border: 1px dashed var(--line-dark); }
.case__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.case__facts li { position: relative; }
.case__facts li + li::before { content: ""; position: absolute; left: -10px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.case__lines { display: grid; gap: var(--space-4); }
.case__line dt { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.case--flagship .case__line dt { color: var(--accent-on-dark); }
.case__line dd { color: var(--muted); }
.case--flagship .case__line dd { color: var(--on-dark-muted); }
.case__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.case--flagship .chip-add { color: var(--on-dark); border-color: var(--line-dark); }
.case--flagship .btn--primary { --btn-bg: var(--accent-on-dark); --btn-fg: var(--ink); --btn-bd: var(--accent-on-dark); }
.case--flagship .btn--primary:hover { --btn-bg: #a6d0c7; --btn-bd: #a6d0c7; }
.case--flagship .case__tags li { border-color: var(--line-dark); }

/* ------------------------------------------------------------- ledger */
.ledger { margin-top: clamp(56px, 7vw, 96px); }
.ledger__head { display: grid; gap: var(--space-3); padding-bottom: var(--space-5); border-bottom: 1.5px solid var(--ink); margin-bottom: var(--space-2); }
@media (min-width: 900px) { .ledger__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: end; gap: var(--space-7); } }
.ledger__title { font-size: var(--step-3); }
.ledger__note { font-size: var(--step--1); color: var(--muted); max-width: 38em; }
.ledger__list { display: grid; }
@media (min-width: 900px) { .ledger__list { grid-template-columns: 1fr 1fr; column-gap: var(--space-7); } }
.ledger__row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--line);
}
.ledger__img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-strong); background: var(--paper-2); }
.ledger__name { font-size: var(--step-1); font-weight: 600; }
.ledger__meta { font-size: var(--step--1); color: var(--muted); margin-top: 2px; }
@media (max-width: 479px) {
  .ledger__row { grid-template-columns: 88px minmax(0, 1fr) auto; gap: var(--space-3); }
  .ledger__img { width: 88px; }
}

.atlas-empty { margin-top: var(--space-6); padding: var(--space-6); text-align: center; border: 1px dashed var(--line-strong); background: var(--surface); }
.atlas-empty p { margin-bottom: var(--space-4); font-family: var(--font-display); font-size: var(--step-1); }

/* ---------------------------------------------------- case files */
.dossiers { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: var(--space-7); }
.js .dossiers { display: none; }
.dossier { background: var(--surface); border: 1px solid var(--line-strong); padding: clamp(18px, 3vw, 40px); }
.dossier__head { padding-bottom: var(--space-4); margin-bottom: var(--space-5); border-bottom: 1.5px solid var(--ink); }
.dossier__boundary {
  display: inline-block; margin-bottom: var(--space-3); padding: 4px 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--accent-deep);
}
.dossier__title { font-size: var(--step-3); }
.dossier__grid { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 1000px) { .dossier__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.dossier__visual { min-width: 0; }

.lt { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.lt__cell { flex: 0 1 auto; max-width: 100%; }
.lt__cell--lead { flex-basis: 100%; }
.lt__item {
  position: relative; display: block; max-width: 100%; padding: 6px; margin: 0;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px;
  transition: transform var(--m-base) var(--ease), box-shadow var(--m-base) var(--ease), opacity var(--m-base) var(--ease), border-color var(--m-base) var(--ease);
}
.lt__img { background: var(--paper-2); }
.lt__cap {
  position: absolute; left: 12px; bottom: 12px; padding: 2px 8px;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--on-dark); border-radius: 2px;
}
.lt[data-lifted] .lt__item:not([aria-pressed="true"]) { opacity: 0.45; }
.lt[data-lifted] .lt__item[aria-pressed="true"] { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--ink); }
.lt__item:hover { border-color: var(--ink); opacity: 1 !important; }
.lt__note { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); }
/* Narrow screens: a swipeable strip, so the case narrative is reached quickly.
   Cells never exceed the image's native width (img max-width stays --nw). */
@media (max-width: 999px) {
  .sheet .lt {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px 2px 12px; margin-inline: -2px; scrollbar-width: thin;
  }
  .sheet .lt__cell, .sheet .lt__cell--lead { flex: 0 0 auto; width: min(86%, 560px); scroll-snap-align: start; }
  .sheet .lt__item { width: 100%; }
  .sheet .lt[data-lifted] .lt__item:not([aria-pressed="true"]) { opacity: 1; }
  .sheet .lt[data-lifted] .lt__item[aria-pressed="true"] { transform: none; }
}
.no-js .lt__cap { display: none; }

.dossier__facts { display: grid; border: 1px solid var(--line-strong); margin-bottom: var(--space-5); }
.dossier__facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--space-3); padding: 10px 14px; }
.dossier__facts > div + div { border-top: 1px solid var(--line); }
.dossier__facts dt { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
@media (max-width: 479px) { .dossier__facts > div { grid-template-columns: 1fr; gap: 2px; } }
.dossier__sec { margin-top: var(--space-5); }
.dossier__sec h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
.dossier__sec p, .dossier__sec li { color: var(--muted); }
.dossier__sec li { position: relative; padding-left: 18px; margin-top: 6px; }
.dossier__sec li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 1.5px; background: var(--accent); }
.dossier__cols { display: grid; gap: 0 var(--space-6); }
@media (min-width: 640px) { .dossier__cols { grid-template-columns: 1fr 1fr; } }
.dossier__sec--boundary { padding: var(--space-4); border: 1px dashed var(--line-strong); background: var(--paper); }
.dossier__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.sheet .dossier__back { display: none; }

/* Dialog */
.sheet {
  width: min(100vw - 24px, 1320px); max-width: none; height: calc(100dvh - 24px); max-height: none;
  margin: auto; padding: 0; border: 1px solid var(--ink); border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lift); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(21, 25, 24, 0.62); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in var(--m-sheet) var(--ease) both; }
  .sheet[open]::backdrop { animation: fade-in var(--m-sheet) var(--ease) both; }
  .sheet .dossier.is-swap { animation: row-in var(--m-base) var(--ease) both; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet__bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 10px clamp(12px, 2vw, 20px); border-bottom: 1px solid var(--line-strong); background: var(--surface);
}
.sheet__brand { display: flex; align-items: center; gap: var(--space-3); }
.sheet__mark { width: 28px; height: 28px; }
.sheet__mark .xp-ink path, .sent__mark .xp-ink path { fill: #12201f; }
.sheet__mark .xp-teal path, .sent__mark .xp-teal path { fill: #2a6360; }
.sheet__count { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.sheet__ctrl { display: flex; gap: 6px; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(12px, 2.5vw, 32px); }
.sheet .dossier { border: 0; padding: 0; background: transparent; }
html.is-locked { overflow: hidden; }

/* 03b-rail.css */
/* Project rail: all 19 projects as small sharp photos. Every photo stays at or
   below its native width (rail 200px, peek 304px; smallest source is 338px). */
.ledger__peek { display: block; line-height: 0; }
.rail { margin-bottom: clamp(28px, 4vw, 48px); }
.rail__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-4);
}
.rail__label { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.rail__boundary { margin-top: 2px; font-size: var(--step--1); color: var(--muted); max-width: 52em; }
.rail__nav { display: flex; gap: 6px; flex: none; }
.no-js .rail__nav { display: none; }

.rail__track {
  display: flex; gap: 12px; padding: 2px 2px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
  /* No scroll-behavior here: on a snap container it suppresses Chromium LCP
     reporting entirely (Lighthouse NO_LCP). The arrow buttons scroll smoothly in JS. */
}
.rail__item { flex: 0 0 auto; scroll-snap-align: start; }
.rail__item[hidden] { display: none !important; }
.rail__link {
  display: block; width: 200px; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--m-quick) var(--ease), border-color var(--m-quick) var(--ease), box-shadow var(--m-quick) var(--ease);
}
.rail__link:hover, .rail__link:focus-visible { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow); }
.rail__img {
  width: 200px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2);
  filter: saturate(0.82) contrast(1.04); transition: filter var(--m-base) var(--ease);
}
.rail__link:hover .rail__img, .rail__link:focus-visible .rail__img { filter: none; }
.rail__title { display: block; padding: 8px 10px 0; font-family: var(--font-display); font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.rail__meta { display: block; padding: 2px 10px 10px; font-size: 0.74rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .rail__item.is-entering { animation: row-in var(--m-base) var(--ease) both; }
}

/* hover preview, pointer devices only */
.peek {
  position: fixed; z-index: 60; width: 320px; padding: 8px;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--m-micro) var(--ease), transform var(--m-micro) var(--ease);
}
.peek[data-show] { opacity: 1; transform: none; }
.peek__img { width: 304px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.peek__title { margin-top: 8px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; }
.peek__meta { font-size: 0.76rem; color: var(--muted); }
.peek__boundary { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 0.7rem; color: var(--accent-deep); }
@media (max-width: 899px) { .peek { display: none; } }
@media (pointer: coarse) { .peek { display: none; } }

/* case photo wipes in once on first view */
@media (prefers-reduced-motion: no-preference) {
  .case[data-seen-ready] .spec__img { clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease-draw); }
  .case[data-seen] .spec__img { clip-path: inset(0 0 0 0); }
}

@media print {
  .rail, .peek { display: none !important; }
}

/* 04-sections.css */
/* ============================================================ lifecycle */
.life__table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); }
.life__table { width: 100%; min-width: 860px; font-size: var(--step--1); }
.life__table th, .life__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
.life__table thead th { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-on-dark); }
.life__table tbody th { font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; width: 13rem; color: var(--on-dark); }
.life__table td { color: var(--on-dark-muted); }
.js .life[data-enhanced] .life__table-wrap { display: none; }

.life__ribbon { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: var(--space-6); }
.life__ribbon::before {
  content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 15px; height: 2px; background: var(--line-dark);
}
.life__fill {
  position: absolute; left: calc(100% / 12); top: 15px; height: 2px; background: var(--accent-on-dark);
  width: calc((100% - 100% / 6) * var(--p, 0)); transition: width var(--m-sheet) var(--ease);
}
.life__tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 4px 6px; min-height: 76px; background: transparent; border: 0; color: var(--on-dark-muted);
  font-size: var(--step--1); font-weight: 500; line-height: 1.25; text-align: center;
  transition: color var(--m-quick) var(--ease);
}
.life__dot {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--line-dark);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background var(--m-quick) var(--ease), border-color var(--m-quick) var(--ease), color var(--m-quick) var(--ease), transform var(--m-base) var(--ease);
}
.life__tab:hover { color: var(--on-dark); }
.life__tab:hover .life__dot { border-color: var(--on-dark); }
.life__tab[aria-selected="true"] { color: var(--on-dark); }
.life__tab[aria-selected="true"] .life__dot { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--ink); transform: scale(1.12); }
.life__nav { display: none; }
@media (max-width: 759px) {
  .life__ribbon { grid-template-columns: repeat(6, 44px); justify-content: space-between; }
  .life__tab .life__label { display: none; }
  .life__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: calc(-1 * var(--space-4)) 0 var(--space-5); }
  .life__nav p { font-family: var(--font-display); font-weight: 600; }
  .life__nav .iconbtn { color: var(--on-dark); border-color: var(--line-dark); }
  .life__nav .iconbtn:hover { background: var(--ink-2); }
}

.life__panel:focus-visible { outline-offset: 6px; }
.life__cells { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .life__cells { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .life__cells { grid-template-columns: repeat(4, 1fr); } }
.life__cell { padding: var(--space-5); background: var(--ink-2); border: 1px solid var(--line-dark); border-top: 3px solid var(--line-dark); }
.life__cell h3 { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--space-3); display: flex; align-items: center; gap: 8px; }
.life__cell p { color: var(--on-dark); }
.life__cell--condition { border-top-color: var(--issue); }
.life__cell--condition h3::before { content: ""; width: 10px; height: 10px; border: 2px solid #d4775a; border-radius: 2px; }
.life__cell--value { border-top-color: var(--accent-on-dark); }
.life__cell--value h3::before { content: ""; width: 10px; height: 10px; background: var(--accent-on-dark); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .life__panel.is-swap .life__cell { animation: row-in var(--m-base) var(--ease) both; }
  .life__panel.is-swap .life__cell:nth-child(2) { animation-delay: 50ms; }
  .life__panel.is-swap .life__cell:nth-child(3) { animation-delay: 100ms; }
  .life__panel.is-swap .life__cell:nth-child(4) { animation-delay: 150ms; }
}
.life__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); }
.life__foot p { color: var(--on-dark-muted); font-size: var(--step--1); }

/* ============================================================= services */
.services { background: var(--surface); }
.services__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) {
  .services__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .services__side { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.services .shead { margin-bottom: var(--space-6); }
.qualified {
  position: relative; padding: var(--space-5); background: var(--paper);
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
}
.qualified__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2);
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--issue);
}
.qualified__label::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--issue); border-radius: 2px; }
.qualified p:last-child { font-size: var(--step--1); color: var(--muted); }

.layers { display: grid; counter-reset: layer; }
.layer {
  position: relative; padding: var(--space-5) 0 var(--space-6) var(--space-5);
  border-top: 1px solid var(--line-strong);
  transition: background var(--m-base) var(--ease);
}
.layer::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top; transition: transform var(--m-base) var(--ease);
}
.layer:hover, .layer.is-active { background: linear-gradient(90deg, var(--paper), transparent 70%); }
.layer:hover::before, .layer.is-active::before { transform: scaleY(1); }
.layer__head { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); }
.layer__n {
  flex: none; font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1.2px var(--accent);
}
.layer__title { font-size: var(--step-2); }
.layer__items { display: grid; gap: 8px var(--space-6); }
@media (min-width: 700px) { .layer__items { grid-template-columns: 1fr 1fr; } }
.layer__items li { position: relative; padding-left: 22px; color: var(--muted); font-size: var(--step--1); }
.layer__items li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ============================================================= evidence */
.evidence { background: var(--paper); }
.ev { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ev__card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--m-base) var(--ease), box-shadow var(--m-base) var(--ease); }
.ev__card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.ev__media { position: relative; display: grid; place-items: center; min-height: 220px; padding: var(--space-4); background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.ev__img { width: auto; max-height: 260px; border: 1px solid var(--line-strong); }
.ev__frame { width: 100%; max-width: 300px; height: auto; }
.ev__frame rect, .ev__frame path { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.ev__frame .ev__frame-x { stroke-dasharray: 4 5; }
.ev__pending-note {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: 4px 10px; white-space: nowrap;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 2px;
}
.ev__sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(134, 189, 178, 0.55), transparent);
  transform: translateX(-120%); opacity: 0; pointer-events: none; mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .ev__media[data-scanned] .ev__sweep { animation: sweep 1600ms var(--ease-draw) both; }
}
@keyframes sweep { 0% { transform: translateX(-120%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(320%); opacity: 0; } }
.ev__body { padding: var(--space-5); display: grid; gap: var(--space-2); }
.ev__status { justify-self: start; padding: 3px 9px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-deep); border-radius: 2px; }
.ev__card--pending .ev__status { background: var(--paper-2); color: var(--muted); }
.ev__title { font-size: var(--step-1); }
.ev__body p:last-child { font-size: var(--step--1); color: var(--muted); }

/* ========================================================== credentials */
.creds__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .creds__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.wall__label { font-size: var(--step--1); color: var(--on-dark-muted); margin-bottom: var(--space-4); max-width: 31em; }
.wall__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wall__tile {
  display: grid; place-items: center; min-height: 104px; padding: 16px;
  background: var(--paper); border-radius: var(--radius);
  transition: transform var(--m-quick) var(--ease), box-shadow var(--m-quick) var(--ease);
}
.wall__tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.wall__img { max-height: 58px; width: auto; object-fit: contain; }
@media (max-width: 479px) {
  .wall__grid { grid-template-columns: repeat(2, 1fr); }
  .wall__tile { min-height: 84px; padding: 12px; }
  .wall__img { max-height: 46px; }
}

.reg { border-top: 1px solid var(--line-dark); }
.reg__row { display: flex; align-items: center; gap: var(--space-3); padding-right: var(--space-2); border-bottom: 1px solid var(--line-dark); transition: background var(--m-quick) var(--ease); }
.reg__row:hover { background: var(--ink-2); }
.reg__link { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-4); padding: var(--space-4) var(--space-3); text-decoration: none; }
.reg__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--on-dark); }
.reg__meta { grid-column: 1; font-size: var(--step--1); color: var(--on-dark-muted); }
.reg__action { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-on-dark); }
.reg__action .i { width: 18px; height: 18px; transition: transform var(--m-quick) var(--ease); }
.reg__link:hover .reg__action .i { transform: translateX(3px); }
@media (max-width: 599px) {
  /* Link spans the row; the "Add to brief" chip drops to its own line so the
     title, description and action never compete for width. */
  .reg__row { flex-wrap: wrap; padding-right: 0; padding-bottom: var(--space-4); }
  .reg__link { flex: 1 1 100%; grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-2); }
  .reg__action { grid-column: 1; grid-row: auto; margin-top: var(--space-2); }
  .reg__row .chip-add { margin-left: var(--space-3); }
}

/* 04b-team.css */
/* ================================================================= team */
.team { background: var(--surface); }

.org-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.org-deploy {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  background: var(--accent-soft); color: var(--accent-deep); border: 1px solid rgba(35, 104, 94, 0.3); border-radius: 999px;
}
.org-deploy .i { width: 18px; height: 18px; }
.org-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step--1); color: var(--muted); }
.org-legend li { display: inline-flex; align-items: center; gap: 8px; }
.org-legend__key { width: 22px; height: 14px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--surface); }
.org-legend__key--management { background: var(--ink); }
.org-legend__key--lead { border-top: 4px solid var(--accent); }
.org-legend__key--specialist { border-color: var(--accent); }
.org-legend__key--request { border-style: dashed; border-color: var(--muted); background: var(--paper); }

.org-frame {
  position: relative; border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--paper);
}
.org-scroll { overflow-x: auto; padding: var(--space-6) var(--space-4); scrollbar-width: thin; }
.org-scroll:focus-visible { outline-offset: -4px; }
.org-hint { display: none; margin: 0; padding: 0 var(--space-4) var(--space-3); font-size: var(--step--1); color: var(--muted); }
@media (max-width: 1139px) { .no-js .org-hint { display: block; } }
.js .org-hint[data-show] { display: block; }
.team__foot { margin-top: var(--space-5); font-size: var(--step--1); color: var(--muted); max-width: 40em; }

/* --------------------------------------------------------------- chart */
/* Scaled by JS (--fit) so the whole chart fits the frame; below ~78% it
   switches to the stacked layout instead of shrinking further. */
.org {
  --gap: 28px; --line-c: var(--ink);
  position: relative; width: max-content; min-width: 1040px; margin-inline: auto;
  transform: scale(var(--fit, 1)); transform-origin: top center;
}
.org ul { position: relative; display: flex; justify-content: center; margin: 0; padding: var(--gap) 0 0; list-style: none; }
.org > ul { padding-top: 0; }
.org li { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--gap) 6px 0; }

/* base connectors (also the no-JS layer) */
.org li::before, .org li::after {
  content: ""; position: absolute; top: 0; width: 50%; height: var(--gap);
  border-top: 1.5px solid var(--line-c);
}
.org li::before { right: 50%; }
.org li::after { left: 50%; border-left: 1.5px solid var(--line-c); }
.org li:first-child::before, .org li:last-child::after { border: 0 none; }
.org li:last-child::before { border-right: 1.5px solid var(--line-c); border-radius: 0 8px 0 0; }
.org li:first-child::after { border-radius: 8px 0 0 0; }
.org li:only-child { padding-top: 0; padding-left: 0; padding-right: 0; }
.org li:only-child::before, .org li:only-child::after { display: none; }
.org ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: var(--gap); border-left: 1.5px solid var(--line-c); }
.org li.is-request::before, .org li.is-request::after { border-style: dashed; border-color: var(--muted); }

/* specialist support: stacked list with a side rail */
.org .org__ul--stack { flex-direction: column; align-items: stretch; padding: 14px 0 0 20px; }
.org .org__ul--stack::before { left: 9px; top: 0; height: 14px; }
.org .org__ul--stack > li { padding: 8px 0 0; align-items: stretch; }
.org .org__ul--stack > li:only-child { padding-top: 8px; }
.org .org__ul--stack > li::before {
  display: block; top: 32px; left: -11px; right: auto; width: 11px; height: 0;
  border: 0; border-top: 1.5px solid var(--line-c); border-radius: 0;
}
.org .org__ul--stack > li::after { display: block; top: 0; left: -11px; width: 0; height: 100%; border: 0; border-left: 1.5px solid var(--line-c); border-radius: 0; }
.org .org__ul--stack > li:last-child::after { height: 33px; }
.org .org__ul--stack > li.is-request::before { border-top-style: dashed; border-top-color: var(--muted); }
.org .org__ul--stack > li.is-request::after { border-left-style: solid; border-left-color: var(--line-c); }

/* ---------------------------------------------------------- wire layer */
.org__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.org__wire { fill: none; stroke: var(--line-c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.org__wire--request { stroke: var(--muted); }
/* with wires drawn, drop the CSS connectors */
.org[data-wires] li::before,
.org[data-wires] li::after,
.org[data-wires] ul ul::before { display: none; }
.org__wire.is-live { stroke: var(--accent); stroke-width: 2.6; }

@media (prefers-reduced-motion: no-preference) {
  .org[data-wires][data-reveal-ready] .org__wire {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 560ms var(--ease-draw), stroke 200ms var(--ease), stroke-width 200ms var(--ease);
    transition-delay: calc(var(--lvl, 0) * 110ms);
  }
  .org[data-wires][data-revealed] .org__wire { stroke-dashoffset: 0; }
  /* flow only while a reporting line is hovered or focused (user-driven) */
  .org__wire.is-live { animation: wire-flow 1.1s linear infinite; }
}
@keyframes wire-flow { from { stroke-dasharray: 0.012 0.016; stroke-dashoffset: 0.028; } to { stroke-dasharray: 0.012 0.016; stroke-dashoffset: 0; } }

/* --------------------------------------------------------------- nodes */
.org__node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 132px; max-width: 220px; min-height: 48px; padding: 9px 14px;
  text-align: center; line-height: 1.2;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 6px;
  transition: border-color var(--m-quick) var(--ease), box-shadow var(--m-quick) var(--ease), background var(--m-quick) var(--ease), transform var(--m-quick) var(--ease);
}
.org__title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; }
.org__disc { font-family: var(--font-display); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.org__badge {
  margin-top: 4px; padding: 2px 7px; border-radius: 2px;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--paper-2); color: var(--muted);
}

.org__li--management > .org__node { min-width: 230px; padding: 13px 20px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.org__li--management > .org__node .org__title { font-size: 1.05rem; }
.org__li--lead > .org__node { min-width: 186px; border-top: 4px solid var(--accent); }
.org__li--lead > .org__node .org__title { font-size: 0.95rem; }
.org__li--coordinator > .org__node { min-width: 172px; border-color: var(--line-strong); }
.org__li--engineer > .org__node { min-width: 0; width: 92px; min-height: 58px; padding: 7px 5px; background: var(--paper); border-color: var(--line-strong); }
.org__li--engineer > .org__node .org__disc { font-size: 0.56rem; letter-spacing: 0.06em; }
.org__li--engineer > .org__node .org__title { font-size: 0.8rem; font-weight: 500; }
.org__li--group { align-items: stretch; }
.org__li--group > .org__node { width: 208px; max-width: none; background: var(--accent-soft); border-color: var(--accent); }
.org__li--group > .org__node .org__title { color: var(--accent-deep); }
.org__li--specialist > .org__node { width: 186px; max-width: none; align-items: flex-start; text-align: left; border-color: var(--accent); }
.org .is-request > .org__node { border-style: dashed; border-color: var(--muted); background: var(--paper); }

/* reporting-line trace */
.org__li.is-path > .org__node { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 104, 94, 0.22); }
.org__li--management.is-path > .org__node { box-shadow: 0 0 0 3px rgba(35, 104, 94, 0.5); }
.org__li.is-path > .org__node { transform: translateY(-1px); }
.org:not([data-wires]) li.is-path::before, .org:not([data-wires]) li.is-path::after { border-color: var(--accent); }
.org:not([data-wires]) li:has(> ul > li.is-path) > ul::before { border-color: var(--accent); }

/* node reveal */
@media (prefers-reduced-motion: no-preference) {
  .org[data-reveal-ready] .org__node {
    opacity: 0; transform: translateY(10px);
    transition: opacity var(--m-base) var(--ease), transform var(--m-base) var(--ease), border-color var(--m-quick) var(--ease), box-shadow var(--m-quick) var(--ease);
    transition-delay: calc(var(--lvl, 0) * 110ms);
  }
  .org[data-revealed] .org__node { opacity: 1; transform: none; }
}

/* ------------------------------------------------- stacked (narrow) --- */
.org[data-stacked] { min-width: 0; width: 100%; transform: none; }
.org[data-stacked] .org__wires { display: none; }
.org[data-stacked] ul { display: block; padding: 0; }
.org[data-stacked] ul ul { margin-left: 13px; padding-left: 20px; border-left: 1.5px solid var(--line-strong); }
.org[data-stacked] ul ul::before { display: none; }
.org[data-stacked] .org__ul--stack { margin-left: 13px; padding-left: 20px; }
.org[data-stacked] .org__ul--stack::before { display: none; }
.org[data-stacked] li { display: block; padding: 10px 0 0; }
.org[data-stacked] li::before, .org[data-stacked] li::after { display: none; }
.org[data-stacked] .org__node {
  width: auto; max-width: none; min-width: 0; min-height: 0;
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px;
  text-align: left; padding: 10px 14px;
}
.org[data-stacked] .org__node::before {
  content: ""; position: absolute; left: -21px; top: 22px; width: 19px; border-top: 1.5px solid var(--line-strong);
}
.org[data-stacked] > ul > li > .org__node::before { display: none; }
.org[data-stacked] .org__badge { margin-top: 0; }
.org[data-stacked] .is-request > .org__node::before { border-top-style: dashed; }

@media print {
  .org-scroll { overflow: visible; }
  .org { min-width: 0; transform: none; }
}

/* 05-contact.css */
/* ============================================================= contact */
.contact__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.contact .shead h2 { font-size: var(--step-4); }

.details { border-top: 1px solid var(--line-dark); }
.details__row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-3); padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.details dt { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.details dd { font-size: var(--step-1); }
.details a { color: var(--accent-on-dark); text-decoration: none; }
.details a:hover { text-decoration: underline; text-underline-offset: 4px; }

.sent {
  display: flex; gap: var(--space-4); align-items: center;
  margin-bottom: var(--space-7); padding: var(--space-5);
  background: rgba(134, 189, 178, 0.12); border: 1px solid var(--accent-on-dark); border-radius: var(--radius);
}
.sent:focus { outline: none; box-shadow: 0 0 0 3px rgba(134, 189, 178, 0.35); }
.sent__stamp { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; }
.sent__mark { width: 34px; height: 34px; }
.sent__msg { font-size: var(--step-1); color: var(--on-dark); }
.sent__next { margin-top: 6px; }
.sent__next a { color: var(--accent-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .sent__mark .xp-ink { animation: plate-ink 620ms var(--ease) 200ms both; }
  .sent__mark .xp-teal { animation: plate-teal 620ms var(--ease) 200ms both; }
}

/* Brief sheet */
.brief {
  --focus: var(--accent);
  display: grid; gap: var(--space-5);
  padding: clamp(20px, 3vw, 40px);
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}
.brief > * { position: relative; }
/* The brief is a light sheet inside a dark section: restore light-surface button colours. */
.sect--dark .brief .btn--outline, .sect--dark .brief .btn--ghost { --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.sect--dark .brief .btn--outline:hover, .sect--dark .brief .btn--ghost:hover { --btn-bd: var(--ink); background: rgba(21, 25, 24, 0.04); }
.sect--dark .brief .btn--text { --btn-fg: var(--accent-deep); }
.brief__row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .brief__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { display: flex; align-items: center; gap: 4px; font-size: var(--step--1); font-weight: 600; }
.req { color: var(--issue); }
.field__ok { display: inline-grid; width: 18px; height: 18px; margin-left: 4px; color: var(--accent); opacity: 0; transform: scale(0.6); transition: opacity var(--m-quick) var(--ease), transform var(--m-quick) var(--ease); }
.field__ok .i { width: 18px; height: 18px; }
.field[data-valid] .field__ok { opacity: 1; transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color var(--m-quick) var(--ease), box-shadow var(--m-quick) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 104, 94, 0.2); }
.field [aria-invalid="true"] { border-color: var(--issue); box-shadow: 0 0 0 3px rgba(163, 69, 42, 0.14); }
.field__err { font-size: var(--step--1); color: var(--issue); font-weight: 500; }

.brief__picks { padding: var(--space-4); background: var(--accent-soft); border: 1px solid rgba(35, 104, 94, 0.35); border-radius: var(--radius); }
.brief__picks-title { font-family: var(--font-display); font-weight: 600; margin-bottom: var(--space-2); }
.brief__picks-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
.brief__picks-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; font-size: var(--step--1); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; }
.brief__picks-list button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; }
.brief__picks-list button:hover { background: var(--paper-2); }
.brief__picks-list .i { width: 14px; height: 14px; }
.brief__picks-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.brief__summary { padding: var(--space-4); border: 1.5px solid var(--issue); background: #fbeee9; border-radius: var(--radius); }
.brief__summary:focus { outline: none; box-shadow: 0 0 0 3px rgba(163, 69, 42, 0.25); }
.brief__summary p { font-weight: 600; color: var(--issue); margin-bottom: 4px; }
.brief__summary a { color: var(--ink); }
.brief__summary li { margin-top: 2px; }
.brief__prefill { font-size: var(--step--1); color: var(--accent-deep); }
.brief__submit { justify-self: start; min-width: 220px; }
.brief__submit[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }
@media (max-width: 599px) { .brief__submit { justify-self: stretch; } }

/* ============================================================== footer */
.foot { background: var(--paper); padding-block: var(--space-7) calc(var(--space-7) + env(safe-area-inset-bottom)); }
.foot__block { display: grid; border: 1px solid var(--line-strong); }
.foot__block > * { padding: var(--space-4) var(--space-5); }
@media (min-width: 900px) {
  .foot__block { grid-template-columns: auto 1fr auto; align-items: center; }
  .foot__block > * + * { border-left: 1px solid var(--line-strong); }
  .foot__copy { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 899px) { .foot__block > * + * { border-top: 1px solid var(--line-strong); } }
.foot__brand { display: inline-flex; }
.foot__logo { width: 52px; height: 52px; border-radius: 3px; }
.foot__nav ul { display: flex; flex-wrap: wrap; gap: 4px var(--space-5); }
.foot__nav a { font-size: var(--step--1); font-weight: 500; text-decoration: none; }
.foot__nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.foot__social { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.foot__social .i { width: 20px; height: 20px; color: var(--accent); }
.foot__social:hover { color: var(--accent); }
.foot__copy { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 899px) { .js body { padding-bottom: 72px; } }

/* =========================================================== utilities */
@media (forced-colors: active) {
  .chip-add[aria-pressed="true"], .facet__btn[aria-pressed="true"], .life__tab[aria-selected="true"] .life__dot, .hero-draw__step[aria-pressed="true"] { outline: 2px solid CanvasText; }
  .node.is-path { outline: 2px solid Highlight; }
}

@media print {
  .nav, .skip, .actionbar, .toast, .atlas-tools, .chip-add, .hero-draw__steps, .brief__picks, .sheet, .life__ribbon, .life__panel, .life__nav, .atlas-empty { display: none !important; }
  .js .dossiers, .js .life[data-enhanced] .life__table-wrap { display: block !important; }
  body, .sect--dark, .hero, .work, .services, .evidence, .team, .foot { background: #fff !important; color: #000 !important; }
  .sect--dark::before, .hero::after { display: none; }
  .sect--dark *, .case--flagship .case__card * { color: #000 !important; }
  .case--flagship .case__card { background: #fff; }
  main > section { padding-block: 24px; }
  .case__card, .dossier, .ev__card, .band, .reg__row { break-inside: avoid; }
  .life__table { min-width: 0; }
  .brief { box-shadow: none; }
}

/* 06-ink.css */
/* ============================================================ ink layer
   Spec-sheet treatment, applied last so it overrides section styles:
   1. photos read as ink drawings (grayscale + contrast, multiplied so white
      drops out); hover restores the real photograph
   2. one fixed 1px grid behind the whole page, 40px both directions
   3. small + register marks at the four corners of every frame
   4. 1px hairlines only, tabular figures, accent used sparingly
 * ===================================================================== */

:root {
  --cross: rgba(21, 25, 24, 0.55);
  --grid-line: rgba(0, 0, 0, 0.06);
}

/* --- 1. photos as drawings -------------------------------------------- */
.rail__img,
.ledger__img,
.spec__img,
.lt__img,
.peek__img,
.ev__img {
  filter: grayscale(1) contrast(1.6);
  mix-blend-mode: multiply;
  transition: filter var(--m-base) var(--ease);
}
/* hover or focus shows the photograph itself */
.rail__link:hover .rail__img,
.rail__link:focus-visible .rail__img,
.ledger__row:hover .ledger__img,
.case__card:hover .spec__img,
.case__card:focus-within .spec__img,
.lt__item:hover .lt__img,
.lt__item[aria-pressed="true"] .lt__img,
.ev__card:hover .ev__img {
  filter: none;
  mix-blend-mode: normal;
}
/* the flagship sits on ink: invert and screen so the drawing reads light */
.case--flagship .spec__img {
  filter: grayscale(1) contrast(1.45) invert(1);
  mix-blend-mode: screen;
}
.case--flagship .case__card:hover .spec__img { filter: none; mix-blend-mode: normal; }

/* --- 2. fixed 1px grid ------------------------------------------------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 40px);
}
/* light sections go transparent so the grid runs through the page */
.work, .evidence, .services, .team, .foot { background: transparent; }
.services, .team { background: rgba(255, 255, 255, 0.55); }
.org-frame { background: transparent; }
.hero, .sect--dark { position: relative; z-index: 0; }

/* --- 3. register marks at frame corners --------------------------------
   A print register mark straddles the corner: it is not a bracket drawn
   inward, it is a cross centred exactly ON the corner point. One pseudo
   element draws the four horizontal strokes, the other the four verticals -
   two 1px layers, four corners each. */
.spec, .drawfig, .org-frame, .ev__media, .brief, .atlas-tools, .rail__link, .hero-draw {
  position: relative;
}
.spec::before, .spec::after,
.drawfig::before, .drawfig::after,
.org-frame::before, .org-frame::after,
.ev__media::before, .ev__media::after,
.brief::before, .brief::after,
.atlas-tools::before, .atlas-tools::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-color: var(--cross);
  background-repeat: no-repeat;
}
/* ::before - horizontal stroke of each cross, 9x1px, centred on the corner x/y */
.spec::before, .drawfig::before, .org-frame::before, .ev__media::before, .brief::before, .atlas-tools::before {
  background-image: linear-gradient(var(--cross), var(--cross)), linear-gradient(var(--cross), var(--cross)),
                     linear-gradient(var(--cross), var(--cross)), linear-gradient(var(--cross), var(--cross));
  background-color: transparent;
  background-size: 9px 1px;
  background-position:
    -4px -0.5px, calc(100% - 5px) -0.5px,
    -4px calc(100% - 0.5px), calc(100% - 5px) calc(100% - 0.5px);
}
/* ::after - vertical stroke of each cross, 1x9px, same four corners */
.spec::after, .drawfig::after, .org-frame::after, .ev__media::after, .brief::after, .atlas-tools::after {
  background-image: linear-gradient(var(--cross), var(--cross)), linear-gradient(var(--cross), var(--cross)),
                     linear-gradient(var(--cross), var(--cross)), linear-gradient(var(--cross), var(--cross));
  background-color: transparent;
  background-size: 1px 9px;
  background-position:
    -0.5px -4px, calc(100% - 0.5px) -4px,
    -0.5px calc(100% - 5px), calc(100% - 0.5px) calc(100% - 5px);
}
/* these frames previously drew corner brackets - the crosses replace them */
.hero-draw::before, .hero-draw::after { content: none; }
.sect--dark .org-frame::before, .sect--dark .org-frame::after { --cross: rgba(238, 240, 236, 0.5); }
.drawfig::before, .drawfig::after { --cross: rgba(238, 240, 236, 0.5); }
.case--flagship .spec::before, .case--flagship .spec::after { --cross: rgba(238, 240, 236, 0.5); }

/* --- 4. hairlines, figures, restrained accent ------------------------- */
body { font-variant-numeric: tabular-nums lining-nums; }

.case__card, .ev__card, .rail__link, .atlas-tools, .spec, .org__node, .band,
.hero__proof, .hero__tags li, .dossier, .qualified, .case__scale, .atlas-empty,
.facet__btn, .chip-add, .iconbtn, .btn, .wall__tile, .life__table-wrap { border-width: 1px; }
.org__node, .spec, .ledger__head, .dossier__head { border-width: 1px; }
.ledger__head { border-bottom-width: 1px; }
.org__li--lead > .org__node { border-top-width: 2px; }
.life__cell { border-top-width: 2px; }
.band { border-top-width: 2px; }

/* accent stays for actions and live state; structure returns to ink */
.eyebrow { color: var(--ink); }
.sect--dark .eyebrow { color: var(--on-dark); }
.eyebrow::before { background: var(--accent); }
.layer__n { -webkit-text-stroke-color: var(--line-strong); }
.layer__items li::before { border-color: var(--ink); }
.dossier__sec h4 { color: var(--ink); }
.dossier__sec li::before { background: var(--ink); }
.case__line dt { color: var(--muted); }
.case--flagship .case__line dt { color: var(--on-dark-muted); }
.ev__status { background: var(--paper-2); color: var(--ink); }
.org__disc { color: var(--muted); }
.reg__action { color: var(--on-dark); }
.reg__link:hover .reg__action { color: var(--accent-on-dark); }
.details dd, .case__facts, .rail__meta, .ledger__meta, .reg__meta, .sheet__count, .lt__cap, .org__badge, .life__dot {
  font-variant-numeric: tabular-nums lining-nums;
}

@media print {
  body::before { display: none; }
  .rail__img, .ledger__img, .spec__img, .lt__img, .ev__img { filter: grayscale(1) contrast(1.5); mix-blend-mode: normal; }
}
