/* T-Transit · Fieldwork concept
   Sapphire ink, warm light text, one precise red.
   Home: enquiry sheet. Chemistry: dossier. Request: intake form. */

@font-face {
  font-family: Fieldwork;
  src: url('/assets/design81/IBMPlexSans.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 85% 100%;
  font-display: swap;
}

@font-face {
  font-family: 'TT Brand Slogan';
  src: url('/assets/brand/tt-slogan.woff') format('woff');
  font-display: swap;
}

:root {
  --ink-950: #040d1c;
  --ink-900: #07162c;
  --ink-800: #0b2040;
  --ink-700: #102c57;
  --ink-600: #1a3f78;
  --sapphire: #2f6bd8;
  --warm: #f5eddd;
  --warm-soft: #ddd6c6;
  --warm-dim: #c1bbae;
  --paper: #ece3d1;
  --paper-deep: #e0d5bf;
  --paper-line: #b3a78f;
  --on-paper: #0b1d3a;
  --on-paper-dim: #47526a;
  --red: #dc112c;
  --red-deep: #b80d24;
  --red-hot: #ff5466;
  --hair: rgba(245, 237, 221, .15);
  --hair-2: rgba(245, 237, 221, .34);
  --plate: #0a1d3c;
  --gutter: clamp(18px, 5vw, 80px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color: var(--warm);
  background: var(--ink-900);
  font: 400 16px/1.55 Fieldwork, system-ui, sans-serif;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; width: 100%; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #8fb8ff; outline-offset: 3px; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 640px at 94% -140px, rgba(47, 107, 216, .38), transparent 70%),
    radial-gradient(820px 620px at -12% 420px, rgba(26, 63, 120, .3), transparent 70%),
    var(--ink-900);
  background-repeat: no-repeat;
}
main { overflow-x: clip; }
.shell { width: min(100% - var(--gutter) * 2, 1376px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 40; transform: translateY(-160%); padding: 10px 16px; background: var(--warm); color: var(--ink-900); font-weight: 600; }
.skip:focus { transform: none; }

/* ── Header ─────────────────────────────────────────────── */
.header { position: relative; z-index: 20; background: rgba(4, 13, 28, .5); border-bottom: 1px solid var(--hair); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { width: 176px; display: block; flex: none; position: relative; padding-bottom: 6px; }
.wordmark img { height: auto; }
.wordmark span {
  position: absolute; left: 27.39%; top: calc((100% - 6px) * .836);
  color: #e3e7e8; font: 400 9px/1.15 'TT Brand Slogan', serif; text-transform: uppercase; white-space: nowrap;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 48px); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.desktop-nav a, .locale, .mobile-nav summary, .mobile-nav a {
  min-height: 44px; display: inline-flex; align-items: center; color: var(--warm); text-decoration: none;
}
.desktop-nav a { position: relative; font-size: 13px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--red-hot);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.desktop-nav a:hover::after, .desktop-nav a[aria-current]::after { transform: scaleX(1); }
.locale {
  min-width: 44px; justify-content: center; padding-inline: 10px; border: 1px solid var(--hair-2); border-radius: 2px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; transition: background-color .2s, color .2s, border-color .2s;
}
.locale:hover { background: var(--warm); color: var(--ink-900); border-color: var(--warm); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  cursor: pointer; list-style: none; gap: 10px; padding-inline: 10px; border: 1px solid var(--hair-2); border-radius: 2px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; user-select: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
summary::-webkit-details-marker { display: none; }
.mobile-nav summary::before { content: ''; width: 16px; height: 8px; border-block: 2px solid currentColor; }
.mobile-nav summary:hover { background: rgba(245, 237, 221, .1); }
.mobile-nav[open] summary { background: var(--warm); color: var(--ink-900); border-color: var(--warm); }
.mobile-nav[open] summary::before { height: 2px; border-bottom-width: 0; }
.mobile-nav nav {
  position: absolute; z-index: 30; right: 0; top: calc(100% + 10px); width: min(264px, calc(100vw - var(--gutter) * 2));
  padding: 6px; background: var(--ink-800); border: 1px solid var(--hair-2); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .7);
  counter-reset: menu;
}
.mobile-nav nav a {
  counter-increment: menu; display: flex; gap: 14px; min-height: 52px; padding-inline: 14px;
  font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--hair);
}
.mobile-nav nav a:last-child { border-bottom: 0; }
.mobile-nav nav a::before { content: counter(menu, decimal-leading-zero); font-size: 11px; letter-spacing: .1em; color: var(--warm-dim); }
.mobile-nav nav a[aria-current] { background: rgba(245, 237, 221, .08); box-shadow: inset 3px 0 0 var(--red); }

/* ── Type and controls ──────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: clamp(14px, 1.6vw, 22px);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ''; flex: none; width: 28px; height: 2px; background: var(--red-hot); }
h1, h2 { font-weight: 560; font-stretch: 88%; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(33px, 10vw, 54px); overflow-wrap: anywhere; }
h2 { font-size: clamp(28px, 3.6vw, 54px); }
.lede { max-width: 46ch; margin-top: clamp(14px, 1.8vw, 26px); color: var(--warm-soft); font-size: clamp(16px, 1.25vw, 19px); }
.k { display: block; margin-bottom: 6px; color: var(--warm-dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(20px, 2.4vw, 34px); }
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 18px 12px 20px; border: 1px solid transparent; border-radius: 2px; text-align: left; line-height: 1.2;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease);
}
.button span { display: inline-block; transition: transform .3s var(--ease); }
.button:hover span { transform: translate(3px, -3px); }
.button:active { transform: translateY(1px); }
.primary { color: #fff; background: var(--red); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.primary:hover { background: var(--red-deep); }
.secondary { color: var(--warm); border-color: var(--hair-2); }
.secondary:hover { background: var(--warm); color: var(--ink-900); border-color: var(--warm); }
.email {
  min-height: 44px; display: inline-flex; align-items: center; margin-top: 16px; font-weight: 500;
  text-decoration-color: var(--red-hot); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.email:hover { color: #fff; }

/* Photographs: caption chip and crop marks */
figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: 6px 10px; background: rgba(4, 13, 28, .82);
  color: var(--warm); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
}
.lead-image::before, .process-photos::before, .checklist figure::before {
  content: ''; position: absolute; inset: 10px; z-index: 1; pointer-events: none; opacity: .85;
  background:
    linear-gradient(var(--warm), var(--warm)) top left / 14px 1px no-repeat,
    linear-gradient(var(--warm), var(--warm)) top left / 1px 14px no-repeat,
    linear-gradient(var(--warm), var(--warm)) top right / 14px 1px no-repeat,
    linear-gradient(var(--warm), var(--warm)) top right / 1px 14px no-repeat,
    linear-gradient(var(--warm), var(--warm)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--warm), var(--warm)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--warm), var(--warm)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--warm), var(--warm)) bottom right / 1px 14px no-repeat;
}
.lead-image { position: relative; overflow: hidden; background: var(--ink-700); }
.lead-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-image::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 22, 44, 0) 50%, rgba(7, 22, 44, .5)), rgba(26, 63, 120, .16);
}

/* ── Roles: who sends, who coordinates, what comes back ─── */
.roles { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--hair-2); }
.roles li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--hair); }
.roles li::before {
  content: ''; position: absolute; z-index: 1; left: 4px; top: 19px; width: 12px; height: 12px;
  border: 1.5px solid var(--warm); border-radius: 50%; background: var(--ink-900);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
.roles li::after { content: ''; position: absolute; left: 9.5px; top: 31px; bottom: -20px; width: 1px; background: var(--hair-2); transition: background-color .35s; }
.roles li:last-child::after { display: none; }
.roles li:nth-child(2)::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 17, 44, .24); }
.who { display: block; color: var(--warm-dim); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.roles li:nth-child(2) .who { color: var(--red-hot); }
.what { display: block; margin-top: 4px; font-weight: 500; line-height: 1.35; }

/* ── Home: enquiry sheet ────────────────────────────────── */
.lead-home {
  width: min(100% - var(--gutter) * 2, 1376px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 44px;
}
.lead-copy { min-width: 0; }
.sheet {
  position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--hair-2); background: rgba(9, 26, 54, .78); box-shadow: 0 36px 70px -36px rgba(0, 0, 0, .75);
}
.sheet::before, .sheet::after, .form-panel::before, .form-panel::after {
  content: ''; position: absolute; z-index: 3; width: 18px; height: 18px; pointer-events: none;
}
.sheet::before, .form-panel::before { top: -7px; left: -7px; border-top: 2px solid var(--red-hot); border-left: 2px solid var(--red-hot); }
.sheet::after, .form-panel::after { bottom: -7px; right: -7px; border-bottom: 2px solid var(--red-hot); border-right: 2px solid var(--red-hot); }
.sheet-head, .form-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.sheet-head { border-bottom: 1px solid var(--hair); color: var(--warm-dim); }
.sheet-head span:first-child { color: var(--warm); }
.lead-home .lead-image { aspect-ratio: 16 / 9; }
.lead-home .lead-image img { object-position: 56% 50%; transform-origin: 56% 50%; }
.sheet[data-pick="2"] .lead-image img { object-position: 34% 62%; transform: scale(1.12); }
.sheet[data-pick="3"] .lead-image img { object-position: 72% 38%; transform: scale(1.2); }
.lead-home .lead-image::after {
  background:
    repeating-linear-gradient(90deg, rgba(245, 237, 221, .6) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat,
    linear-gradient(180deg, rgba(7, 22, 44, 0) 50%, rgba(7, 22, 44, .5)), rgba(26, 63, 120, .16);
}
.sheet-tabs { display: flex; border-block: 1px solid var(--hair); }
.sheet-tabs button {
  position: relative; flex: 1 1 auto; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px; border: 0; border-right: 1px solid var(--hair); border-radius: 0; background: transparent; color: var(--warm);
  font-size: 13px; font-weight: 600; line-height: 1.1; cursor: pointer; transition: background-color .3s, color .3s;
}
.sheet-tabs button:last-child { border-right: 0; }
.sheet-tabs button i { display: none; font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--warm-dim); font-variant-numeric: tabular-nums; }
.sheet-tabs button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.sheet-tabs button:hover { background: rgba(245, 237, 221, .08); }
.sheet-tabs button:active { background: rgba(245, 237, 221, .16); }
.sheet-tabs button[aria-pressed="true"] { background: var(--warm); color: var(--ink-900); }
.sheet-tabs button[aria-pressed="true"] i { color: var(--red-deep); }
.sheet-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.sheet-tabs button:focus-visible { outline-offset: -4px; outline-color: var(--sapphire); }

/* Drawing plate */
.plate {
  position: relative; min-width: 0; color: var(--warm);
  background:
    linear-gradient(rgba(245, 237, 221, .055) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(245, 237, 221, .055) 1px, transparent 1px) 0 0 / 24px 100%,
    radial-gradient(80% 90% at 40% 45%, rgba(47, 107, 216, .3), transparent 72%),
    var(--plate);
}
.plate svg { display: block; width: 100%; height: auto; }
.spec-obj { opacity: 0; visibility: hidden; }
.spec-obj.is-on { opacity: 1; visibility: visible; }
.ln, .fd { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ln.thin { stroke-width: 1; opacity: .6; }
.ln.mask { fill: var(--plate); }
.fd.teeth { stroke-width: 14; opacity: .5; }
.fd.axis { stroke-width: 1; stroke-dasharray: 12 4 2 4; opacity: .45; }
.fd.glyph { fill: currentColor; stroke: none; font-size: 14px; font-weight: 500; opacity: .8; }
.co path { fill: none; stroke: var(--red-hot); stroke-width: 1.2; }
.co circle { fill: var(--red); }
.co text { fill: #fff; font-size: 13px; font-weight: 600; text-anchor: middle; }

/* Title block */
.sheet-block { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--hair); }
.cell { min-width: 0; padding: 12px 14px; border-top: 1px solid var(--hair); }
.cell:first-child { border-top: 0; }
.cell strong { display: block; font-weight: 600; line-height: 1.3; }
.points { display: grid; gap: 7px; counter-reset: point; }
.points li { counter-increment: point; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; font-weight: 500; line-height: 1.4; }
.points li::before {
  content: counter(point); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
}
.sheet-route {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; min-height: 56px;
  padding: 11px 14px 13px; border-top: 1px solid var(--hair-2); color: var(--warm); text-decoration: none; transition: background-color .25s;
}
.sheet-route .k { margin: 0; }
.sheet-route > i {
  width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--hair-2); border-radius: 50%;
  font-style: normal; font-size: 13px; line-height: 1; transition: transform .35s var(--ease), background-color .25s, border-color .25s;
}
.route-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; }
.route-line b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.route-line b + b::before { content: ''; width: clamp(10px, 3vw, 40px); height: 1px; background: currentColor; opacity: .5; }
.sheet-route:hover { background: rgba(245, 237, 221, .07); }
.sheet-route:hover > i { transform: translateY(3px); background: var(--red); border-color: var(--red); }

/* ── Home: process ──────────────────────────────────────── */
.section { padding-block: clamp(48px, 7vw, 112px); }
#process { border-top: 1px solid var(--hair); scroll-margin-top: 12px; }
.process { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: clamp(24px, 3.6vw, 52px); }
.process-steps { min-width: 0; }
.process-stage { min-width: 0; order: -1; }
.process details { border-top: 1px solid var(--hair-2); }
.process details:last-child { border-bottom: 1px solid var(--hair-2); }
.process summary {
  min-height: 72px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 30px; gap: 14px; align-items: center; padding-block: 14px;
  cursor: pointer; list-style: none; font-size: clamp(19px, 2vw, 28px); font-weight: 560; letter-spacing: -.02em; line-height: 1.15;
}
.process summary::after {
  content: ''; width: 30px; height: 30px; border: 1px solid var(--hair-2); border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease), background-color .25s, border-color .25s;
}
.process details[open] summary::after {
  transform: rotate(180deg); border-color: var(--red);
  background: linear-gradient(#fff, #fff) center / 12px 1.5px no-repeat, var(--red);
}
.process summary:hover::after { border-color: var(--warm); }
.step-index { color: var(--warm-dim); font-size: 13px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.process details[open] .step-index { color: var(--red-hot); }
.step-copy { max-width: 58ch; padding: 0 12px 24px 38px; color: var(--warm-soft); }
.step-copy .k { margin: 16px 0 3px; color: var(--red-hot); }
.step-copy strong { display: block; color: var(--warm); font-size: 17px; font-weight: 600; line-height: 1.3; }
.process-photos { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-700); }
.process-photos img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; }
.process-photos img.active { z-index: 1; opacity: 1; }
.process-photos [data-frame="3"] { object-position: 56% 50%; }
.process-rail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair-2); }
.process-rail::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 33.333%; height: 3px; background: var(--red);
  transform: translateX(calc(var(--at, 0) * 100%)); transition: transform .6s var(--ease);
}
.process[data-active="2"] { --at: 1; }
.process[data-active="3"] { --at: 2; }
.process-rail button {
  width: 100%; min-height: 52px; display: grid; gap: 2px; align-content: center; justify-items: start; padding: 8px 6px 8px 0;
  border: 0; background: none; color: var(--warm-dim); font-size: 12px; font-weight: 500; text-align: left; line-height: 1.2;
  overflow-wrap: anywhere; cursor: pointer; transition: color .25s;
}
.process-rail button i { font-style: normal; font-size: 11px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.process-rail button:hover, .process-rail button[aria-pressed="true"] { color: var(--warm); }
.process-rail button[aria-pressed="true"] i { color: var(--red-hot); }

/* ── Paper bands: directions and dossier ────────────────── */
.band { background: var(--paper); color: var(--on-paper); }
.band :focus-visible { outline-color: var(--sapphire); }
.topic-list { margin-top: clamp(24px, 3.6vw, 48px); border-bottom: 1px solid var(--on-paper); counter-reset: topic; }
.topic-list a {
  counter-increment: topic; position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 12px; align-items: center;
  padding: 18px 8px; border-top: 1px solid var(--on-paper); text-decoration: none;
  transition: color .35s var(--ease), padding .45s var(--ease);
}
.topic-list a::before { content: counter(topic, decimal-leading-zero); color: var(--red-deep); font-size: 13px; font-weight: 500; letter-spacing: .1em; }
.topic-list a::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink-800);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.topic-list strong { grid-column: 1; font-size: clamp(19px, 5.6vw, 26px); font-weight: 560; font-stretch: 88%; letter-spacing: -.03em; line-height: 1.08; overflow-wrap: anywhere; }
.topic-list span { grid-column: 1; color: var(--on-paper-dim); transition: color .35s; }
.topic-list b {
  grid-area: 1 / 2 / 4 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 400; transition: transform .45s var(--ease);
}
.topic-list a:hover, .topic-list a:focus-visible { color: var(--warm); padding-inline: 16px 8px; }
.topic-list a:hover::before, .topic-list a:focus-visible::before { color: var(--red-hot); }
.topic-list a:hover::after, .topic-list a:focus-visible::after { transform: scaleY(1); }
.topic-list a:hover span, .topic-list a:focus-visible span { color: var(--warm-soft); }
.topic-list a:hover b, .topic-list a:focus-visible b { transform: rotate(45deg); }

/* ── Closing band ───────────────────────────────────────── */
.closing { border-top: 1px solid var(--hair); background: linear-gradient(180deg, rgba(16, 44, 87, .55), rgba(7, 22, 44, 0)); }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.closing-copy { min-width: 0; }
.closing .lede { margin-top: 0; }
.closing .roles { margin-top: 12px; }

/* ── Chemistry: dossier ─────────────────────────────────── */
.lead-dossier { display: grid; grid-template-columns: minmax(0, 1fr); }
.lead-dossier .lead-copy { padding: 28px var(--gutter) 8px; }
.lead-dossier .lead-image { aspect-ratio: 4 / 3; }
[data-page="chemistry"] .lead h1 { font-size: clamp(24px, 7.6vw, 44px); }
.tag {
  position: relative; z-index: 2; min-width: 0; margin: 16px var(--gutter) 28px; padding: 18px 16px 6px;
  background: var(--paper); color: var(--on-paper);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
}
.tag::before {
  content: ''; position: absolute; top: 14px; right: 16px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-900); box-shadow: 0 0 0 3px rgba(11, 29, 58, .16);
}
.tag-title { padding: 0 32px 12px 10px; border-bottom: 1px solid var(--on-paper); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tag a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 8px; align-items: center; min-height: 50px; padding: 6px 2px 6px 10px;
  border-bottom: 1px solid var(--paper-line); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: padding .35s var(--ease), background-color .25s;
}
.tag li:last-child a { border-bottom: 0; }
.tag a i { color: var(--red-deep); font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.tag a b { color: var(--red-deep); font-weight: 400; transition: transform .35s var(--ease); }
.tag a:hover { padding-left: 16px; background: var(--paper-deep); }
.tag a:hover b { transform: translateY(3px); }
.tag a:focus-visible { outline-offset: -3px; outline-color: var(--sapphire); }

.checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.checklist-plate { border: 1px solid var(--on-paper); box-shadow: 0 30px 50px -34px rgba(11, 29, 58, .7); }
.hl { transition: opacity .35s; }
.checklist[data-focus] .hl { opacity: .28; }
.checklist[data-focus] .hl[data-hl="0"] { opacity: .5; }
.checklist[data-focus="1"] .hl[data-hl="1"],
.checklist[data-focus="2"] .hl[data-hl="2"],
.checklist[data-focus="3"] .hl[data-hl="3"] { opacity: 1; }
.checklist dl { counter-reset: entry; border-bottom: 1px solid var(--on-paper); }
.checklist dl > div {
  counter-increment: entry; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px;
  padding: 20px 10px 22px 0; border-top: 1px solid var(--on-paper); scroll-margin-top: 20px;
  transition: background-color .3s, box-shadow .3s, padding .4s var(--ease);
}
.checklist dl > div::before { content: counter(entry, decimal-leading-zero); grid-row: 1 / 3; padding-top: 5px; color: var(--red-deep); font-size: 13px; font-weight: 500; letter-spacing: .1em; }
.checklist dt { font-size: clamp(20px, 2.1vw, 29px); font-weight: 560; font-stretch: 88%; letter-spacing: -.025em; line-height: 1.12; }
.checklist dd { grid-column: 2; max-width: 52ch; color: var(--on-paper-dim); }
.checklist dl > div.is-focus, .checklist dl > div:target { padding-left: 12px; background: var(--paper-deep); box-shadow: inset 3px 0 0 var(--red); }
.checklist figure { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-deep); }
.checklist figure img { position: absolute; inset: 0; height: 100%; object-fit: cover; }

/* ── Request: intake ────────────────────────────────────── */
.request { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 56px; }
.request-intro { min-width: 0; }
.request h1 { font-size: clamp(32px, 9.4vw, 50px); }
.form-panel { position: relative; min-width: 0; background: var(--paper); color: var(--on-paper); color-scheme: light; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.form-panel :focus-visible { outline-color: var(--sapphire); }
.form-head { border-bottom: 1px solid var(--on-paper); color: var(--on-paper-dim); padding-inline: clamp(14px, 3vw, 32px); }
.form-head span:first-child { color: var(--on-paper); }
.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--on-paper); }
.mode-switch a {
  position: relative; min-height: 58px; display: flex; align-items: center; padding: 12px clamp(12px, 3vw, 32px);
  color: var(--on-paper-dim); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .25s, color .25s;
}
.mode-switch a + a { border-left: 1px solid var(--on-paper); }
.mode-switch a::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.mode-switch a:hover { color: var(--on-paper); background: rgba(11, 29, 58, .05); }
.mode-switch a[aria-current] { color: var(--on-paper); background: var(--paper-deep); }
.mode-switch a[aria-current]::before { transform: scaleX(1); }
.mode-switch a:focus-visible { outline-offset: -4px; }
form { display: grid; gap: 20px; padding: clamp(18px, 3vw, 32px) clamp(14px, 3vw, 32px) clamp(20px, 3vw, 36px); }
form label, .upload > label { display: block; position: relative; padding-right: 28px; font-size: 14px; font-weight: 600; }
form label span { color: var(--red-deep); }
.tick {
  position: absolute; right: 0; top: 1px; width: 18px; height: 18px; border: 1.5px solid var(--paper-line);
  transition: background-color .25s, border-color .25s;
}
.tick::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
label:has(:required:valid) .tick, label:has(input:not(:required):not(:placeholder-shown)) .tick { background: var(--red); border-color: var(--red); }
label:has(:required:valid) .tick::after, label:has(input:not(:required):not(:placeholder-shown)) .tick::after { transform: rotate(45deg) scale(1); }
input:not([type="file"]), textarea {
  display: block; width: calc(100% + 28px); min-height: 50px; margin-top: 8px; padding: 12px 14px;
  border: 1px solid var(--paper-line); border-bottom: 2px solid var(--on-paper); border-radius: 0;
  background: #f7f1e4; color: var(--on-paper); font-size: 16px; font-weight: 400;
  transition: background-color .2s, border-color .2s;
}
input:not([type="file"]):hover, textarea:hover { border-color: var(--on-paper-dim); border-bottom-color: var(--on-paper); }
input:not([type="file"]):focus, textarea:focus { background: #fcf8ee; }
textarea { resize: vertical; }
.upload { min-width: 0; padding: 16px; border: 1.5px dashed var(--on-paper-dim); background: rgba(11, 29, 58, .04); transition: border-color .25s, background-color .25s; }
.upload:hover, .upload:focus-within { border-color: var(--on-paper); background: rgba(11, 29, 58, .08); }
.upload:has(input:invalid) { border-color: var(--red-deep); }
.upload > label { padding-right: 0; }
input[type="file"] { display: block; width: 100%; max-width: 100%; min-height: 48px; margin-top: 10px; color: var(--on-paper); font-size: 14px; }
input::file-selector-button {
  min-height: 48px; margin-inline-end: 12px; padding-inline: 16px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--on-paper); color: var(--warm); font: inherit; font-weight: 600;
}
small { display: block; margin-top: 8px; color: var(--on-paper-dim); font-size: 13px; line-height: 1.45; }
form > button { justify-self: stretch; }
.form-note { color: var(--on-paper-dim); font-size: 14px; }
.form-status { padding: 12px 14px; border-left: 3px solid var(--red); background: var(--paper-deep); font-weight: 600; }
.request:has(form:valid) .roles li:first-child::before { background: var(--warm); box-shadow: 0 0 0 4px rgba(245, 237, 221, .18); }
.request:has(form:valid) .roles li:first-child::after { background: var(--red-hot); }

/* ── Footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--hair); background: var(--ink-950); color: var(--warm); }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 32px; padding-block: 30px; font-size: 14px; }
.footer > div { flex: 1 1 240px; }
.footer strong { font-size: 16px; font-weight: 600; }
.footer p { color: var(--warm-dim); }
.footer a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 5px; text-decoration-color: var(--hair-2); }
.footer a:hover { text-decoration-color: var(--red-hot); }
.preview-label { padding: 5px 9px; border: 1px solid var(--hair-2); color: var(--warm-dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 600px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .nav-inner { min-height: 66px; gap: 8px; }
  .nav-tools { gap: 6px; }
  .wordmark { width: clamp(116px, 38vw, 155px); }
}

@media (max-width: 480px) {
  .actions .button { flex: 1 1 100%; }
}

@media (min-width: 420px) {
  .sheet-tabs button { font-size: 14px; }
  .sheet-tabs button i { display: inline; }
  .route-line { font-size: 13px; }
  .process-rail button { font-size: 13px; }
}

/* ── From 600px ─────────────────────────────────────────── */
@media (min-width: 600px) {
  h1 { font-size: clamp(44px, 7vw, 60px); }
  .request h1 { font-size: clamp(40px, 4.6vw, 68px); }
  [data-page="chemistry"] .lead h1 { font-size: clamp(36px, 5.6vw, 50px); }
  form > button { justify-self: start; }
  .topic-list a { grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.2fr) 52px; gap: 16px; padding: 24px 12px; }
  .topic-list strong { grid-column: auto; font-size: clamp(24px, 2.7vw, 42px); }
  .topic-list span { grid-column: auto; }
  .topic-list b { grid-area: auto; justify-self: end; }
  .topic-list a:hover, .topic-list a:focus-visible { padding-inline: 24px 12px; }
  .checklist dl > div { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding-block: 24px 26px; }
  .checklist dl > div::before { padding-left: 12px; }
}

@media (min-width: 640px) {
  .sheet {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-areas: "head head" "photo photo" "tabs tabs" "draw block" "route route";
  }
  .sheet-head { grid-area: head; }
  .lead-home .lead-image { grid-area: photo; aspect-ratio: 3 / 1; }
  .sheet-tabs { grid-area: tabs; }
  .sheet-draw { grid-area: draw; }
  .sheet-block { grid-area: block; grid-template-rows: 1fr auto auto; border-top: 0; border-left: 1px solid var(--hair); }
  .sheet-route { grid-area: route; }
}

/* Roles laid out as a line when the column is wide enough */
@media (min-width: 640px) and (max-width: 859px), (min-width: 1180px) {
  .roles-home { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .roles-home li { padding: 24px 20px 0 0; border-bottom: 0; border-top: 1px solid var(--hair-2); }
  .roles-home li::before { left: 0; top: -7px; }
  .roles-home li::after { display: none; }
}

@media (min-width: 860px) {
  h1 { font-size: clamp(38px, 4.6vw, 76px); }
  .lead-home {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr;
    column-gap: clamp(36px, 4.5vw, 80px); row-gap: 36px; padding-block: clamp(40px, 4.4vw, 68px) clamp(48px, 5vw, 84px);
  }
  .lead-home .lead-copy { grid-area: 1 / 1; }
  .lead-home .sheet { grid-area: 1 / 2 / 3 / 3; align-self: start; }
  .lead-home .roles { grid-area: 2 / 1; align-self: end; }
  .process { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
  .process-stage { order: 0; position: sticky; top: 24px; }
  .closing-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 104px); align-items: start; }
  .closing-split { grid-template-rows: auto 1fr; row-gap: 28px; }
  .closing-split h2 { grid-area: 1 / 1; }
  .closing-split .closing-copy { grid-area: 2 / 1; }
  .closing-split .roles { grid-area: 1 / 2 / 3 / 3; margin-top: 0; }
}

/* Between 860 and 1179 the sheet column is narrow: stack drawing over title block */
@media (min-width: 860px) and (max-width: 1179px) {
  .sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "tabs" "draw" "block" "route"; }
  .sheet-block { grid-template-rows: none; border-left: 0; border-top: 1px solid var(--hair); }
}

@media (min-width: 900px) {
  [data-page="chemistry"] .lead h1 { font-size: clamp(34px, 3.9vw, 58px); }
  .lead-dossier {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto;
    min-height: min(780px, calc(100vh - 77px));
  }
  .lead-dossier .lead-image { grid-area: 1 / 1 / 3 / 2; aspect-ratio: auto; min-height: 560px; }
  .lead-dossier .lead-image::after {
    background: linear-gradient(90deg, rgba(7, 22, 44, 0) 62%, rgba(7, 22, 44, .6)), rgba(26, 63, 120, .16);
  }
  .lead-dossier .lead-copy {
    grid-area: 1 / 2; align-self: center;
    padding: clamp(48px, 5vw, 88px) max(var(--gutter), calc((100vw - 1376px) / 2)) 24px clamp(48px, 5.5vw, 96px);
  }
  .lead-dossier .tag {
    grid-area: 2 / 2; justify-self: start; width: min(390px, 100%);
    margin: 8px 0 clamp(40px, 4.5vw, 64px) -56px; rotate: -1.5deg;
  }
  .checklist { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(40px, 6vw, 96px); row-gap: 32px; align-items: start; }
  .checklist h2 { grid-area: 1 / 1; }
  .checklist-plate { grid-area: 1 / 2 / 4 / 3; position: sticky; top: 24px; }
  .checklist dl { grid-area: 2 / 1; }
  .checklist figure { grid-area: 3 / 1; }
  .request {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 6vw, 104px); row-gap: 40px; padding-block: clamp(48px, 6vw, 96px);
  }
  .request-intro { grid-area: 1 / 1; }
  .form-panel { grid-area: 1 / 2 / 3 / 3; align-self: start; }
  .request > .roles { grid-area: 2 / 1; align-self: start; }
}

@media (min-width: 1180px) {
  .lead-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
}

/* ── Motion ─────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { opacity: 0; transform: translateY(-18px) rotate(-5deg); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes stage-1 { 40% { color: var(--red-hot); } }
@keyframes stage-2 { 40% { color: var(--red-hot); } }
@keyframes stage-3 { 40% { color: var(--red-hot); } }

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

  /* First screen arrives in order: words, then the working surface */
  .lead-copy > *, .request-intro > * { animation: rise .6s var(--ease) backwards; }
  .lead-copy > :nth-child(2), .request-intro > :nth-child(2) { animation-delay: .05s; }
  .lead-copy > :nth-child(3), .request-intro > :nth-child(3) { animation-delay: .1s; }
  .lead-copy > :nth-child(4), .request-intro > :nth-child(4) { animation-delay: .15s; }
  .sheet, .form-panel { animation: rise .7s var(--ease) .1s backwards; }
  .tag { animation: settle .7s var(--ease) .2s backwards; }
  .mobile-nav[open] nav { animation: drop .28s var(--ease) backwards; }

  /* Drawing: strokes run in sequence, then the numbered callouts land */
  .spec-obj.is-on .ln { animation: draw .6s var(--ease) backwards; }
  .spec-obj.is-on .ln:nth-child(2) { animation-delay: .04s; }
  .spec-obj.is-on .ln:nth-child(3) { animation-delay: .08s; }
  .spec-obj.is-on .ln:nth-child(4) { animation-delay: .12s; }
  .spec-obj.is-on .ln:nth-child(5) { animation-delay: .16s; }
  .spec-obj.is-on .ln:nth-child(6) { animation-delay: .2s; }
  .spec-obj.is-on .ln:nth-child(7) { animation-delay: .24s; }
  .spec-obj.is-on .ln:nth-child(8) { animation-delay: .28s; }
  .spec-obj.is-on .ln:nth-child(9) { animation-delay: .32s; }
  .spec-obj.is-on .ln:nth-child(10) { animation-delay: .36s; }
  .spec-obj.is-on .ln:nth-child(11) { animation-delay: .4s; }
  .spec-obj.is-on .ln:nth-child(12) { animation-delay: .44s; }
  .spec-obj.is-on .ln:nth-child(n + 13) { animation-delay: .48s; }
  .spec-obj.is-on .fd { animation: fade .45s ease .2s backwards; }
  .spec-obj.is-on .co { animation: pop .4s var(--ease) .5s backwards; }
  .spec-obj.is-on .co[data-co="2"] { animation-delay: .6s; }
  .spec-obj.is-on .co[data-co="3"] { animation-delay: .7s; }

  /* Selection: the photo re-crops, the list re-sets, the route ticks through */
  .lead-home .lead-image img { transition: object-position 1.1s var(--ease), transform 1.1s var(--ease); }
  .points li, .cell-name strong { animation: rise .45s var(--ease) backwards; }
  .points li:nth-child(2) { animation-delay: .07s; }
  .points li:nth-child(3) { animation-delay: .14s; }
  .sheet[data-pick="1"] .route-line b { animation: stage-1 .9s ease .2s; }
  .sheet[data-pick="2"] .route-line b { animation: stage-2 .9s ease .2s; }
  .sheet[data-pick="3"] .route-line b { animation: stage-3 .9s ease .2s; }
  .sheet[data-pick] .route-line b:nth-child(2) { animation-delay: .5s; }
  .sheet[data-pick] .route-line b:nth-child(3) { animation-delay: .8s; }

  /* Process: the next photograph wipes over the previous one */
  .process-photos img { transition: opacity 0s linear .8s; }
  .process-photos img.active { transition: none; animation: wipe .8s var(--ease) backwards; }
  .process details[open] .step-copy { animation: rise .45s var(--ease) backwards; }

  .form-status { animation: rise .4s var(--ease) backwards; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.hero-workbench{min-width:0;align-self:center;}
.sourcing-sheet{margin-block:clamp(22px,3vw,48px);color:var(--warm)}
.sourcing-sheet .sheet{background:var(--ink-900,#0a1d34);grid-template-areas:"head" "photo" "tabs" "draw" "block" "route"}
.sourcing-sheet .lead-image{aspect-ratio:4/1;min-height:96px;grid-area:photo}
.sourcing-sheet .sheet-head{grid-area:head}.sourcing-sheet .sheet-tabs{grid-area:tabs}
.sourcing-sheet .sheet-draw{grid-area:draw}.sourcing-sheet .sheet-block{grid-area:block}.sourcing-sheet .sheet-route{grid-area:route}
@media(min-width:760px){.sourcing-sheet .sheet{grid-template-columns:1fr 1fr;grid-template-areas:"head head" "photo tabs" "photo draw" "photo block" "route route"}.sourcing-sheet .lead-image{aspect-ratio:auto;min-height:280px}}
@media(min-width:860px){.hero-workbench{grid-area:1 / 2 / 3 / 3}}
.edition-links{display:flex;flex-wrap:wrap;gap:0 1.25rem;align-items:center;font-size:.9rem}
.edition-links a{display:inline-flex;align-items:center;min-height:44px}
