/* ==========================================================================
   Machard Holdings — "The Drawing Sheet"
   Every page is a drawing sheet: ruled frame, zone markers in the margin,
   dimensioned assemblies, a title block that closes the sheet.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Narrow';
  src: url('../fonts/archivo-narrow-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ground */
  --paper: #FBFAF7;
  --stone: #F2EEE7;
  --sand: #EAE1D4;

  /* Ink */
  --ink: #1B2733;
  --ink-soft: #55606B;
  --navy: #123B66;
  --deep: #0D2C4C;

  /* Annotation */
  --dim: #755A32;          /* dimension lines + ticks, AA against paper */
  --ochre: #C49A52;        /* soft ticks only, never meaning-bearing alone */
  --clay: #8A5236;         /* callouts, revision marks */
  --green: #4B6543;        /* JET accent, darkened from brand green for AA */
  --green-soft: #718463;

  /* Rules */
  --line: #CFC7B8;
  --line-fine: #E2DCD0;
  --line-strong: var(--deep);

  /* Metrics */
  --frame: clamp(14px, 3.2vw, 44px);   /* sheet margin, holds zone markers */
  --gutter: clamp(18px, 4vw, 56px);
  --measure: 68ch;
  --tight: -0.028em;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.75vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.75rem + 3.2vw, 4.6rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line) var(--stone);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  caret-color: var(--navy);
  /* The sheet's own grid: a drafting grid, not a decorative overlay. */
  background-image:
    linear-gradient(to right, rgba(18, 59, 102, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 59, 102, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

::selection { background: var(--navy); color: var(--paper); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--stone); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--stone); }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--dim); }

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

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: var(--tight);
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
  color: var(--deep);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.22; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

/* Annotation voice: drafting lettering, used for sheet data and measurement. */
.ann {
  font-family: 'Archivo Narrow', 'Archivo', sans-serif;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--deep); color: var(--paper);
  padding: 0.75rem 1.1rem; z-index: 100;
}
.skip:focus { left: var(--frame); top: 0.5rem; }

/* ---------- Sheet frame ------------------------------------------------- */

.sheet {
  max-width: 1460px;
  margin: 0 auto;
  padding-inline: var(--frame);
  position: relative;
}

/* The ruled border of the drawing, drawn once around the whole page body. */
.sheet-rule {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  position: relative;
}

/* Zone markers live in the sheet margin, beside the work — never above a heading. */
.zone {
  position: absolute;
  left: calc(var(--frame) * -1);
  top: 0;
  width: var(--frame);
  display: none;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  writing-mode: vertical-rl;
  padding-top: 0.6rem;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1100px) { .zone { display: block; } }

section { position: relative; }

.pad {
  padding: clamp(2.75rem, 6vw, 5.5rem) var(--gutter);
}
.pad-tight { padding: clamp(1.75rem, 3.5vw, 3rem) var(--gutter); }

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

/* ---------- Header: the sheet index ------------------------------------- */

.index-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-strong);
}
.index-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 var(--frame);
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-height: 78px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  padding-block: 0.6rem;
}
.mark-plate {
  width: 52px;
  height: 52px;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 3px;
}
.mark-plate img { width: 100%; }
.mark-name {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--deep);
  line-height: 1.1;
}
.mark-line {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  margin-top: 3px;
}

.index-nav { margin-left: auto; display: flex; align-items: stretch; }
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.index-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0.5rem clamp(0.6rem, 1.1vw, 1rem);
  text-decoration: none;
  color: var(--deep);
  border-left: 1px solid var(--line-fine);
  transition: background 160ms ease-out;
}
.index-list a:hover { background: var(--stone); }
.index-list a[aria-current='page'] { background: var(--sand); }
.index-list .no {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.index-list .nm { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.78rem 1.3rem;
  border: 1px solid var(--deep);
  background: var(--deep);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out;
  min-height: 46px;
}
.btn:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--deep); }
.btn-ghost:hover { background: var(--sand); }
.btn .tick { width: 14px; height: 8px; flex: none; }

.index-cta { display: flex; align-items: center; padding-left: clamp(0.5rem, 1.4vw, 1.2rem); }
.index-cta .btn { padding-block: 0.6rem; min-height: 42px; }

.menu-btn { display: none; }

@media (max-width: 1080px) {
  .index-inner { min-height: 66px; }
  .index-nav { display: none; }
  .index-cta { display: none; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--deep);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 0.9rem;
    align-self: center;
    cursor: pointer;
    min-height: 44px;
  }
  .menu-btn .bars { width: 18px; height: 12px; }
  .drawer[hidden] { display: none; }
  .drawer {
    border-top: 1px solid var(--line-strong);
    background: var(--paper);
  }
  .drawer ul { list-style: none; margin: 0; padding: 0; }
  .drawer a {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.95rem var(--frame);
    border-bottom: 1px solid var(--line-fine);
    text-decoration: none;
    color: var(--deep);
    min-height: 48px;
  }
  .drawer a[aria-current='page'] { background: var(--sand); }
  .drawer .no { font-family: 'Archivo Narrow', sans-serif; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--dim); }
  .drawer .cta-row { padding: 1rem var(--frame) 1.4rem; }
  .drawer .cta-row .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero -------------------------------------------------------- */

.hero { display: grid; gap: 0; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .hero-plate-wrap { border-left: 1px solid var(--line); }
}

.hero-body { padding: clamp(2.5rem, 5.5vw, 4.75rem) var(--gutter); display: flex; flex-direction: column; }
.hero h1 { max-width: 15ch; }
.hero-sub {
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
  font-weight: 400;
}

/* The brand line, set as a dimensioned span across the sheet. */
.brandline {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 600;
}
.brandline > span { white-space: nowrap; }
.brandline .span-rule { flex: 1; height: 9px; min-width: 32px; color: var(--dim); }
@media (max-width: 400px) { .brandline { flex-wrap: wrap; row-gap: 0.35rem; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.hero-plate-wrap { position: relative; display: flex; flex-direction: column; }
.plate { position: relative; background: var(--stone); overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.hero-plate-wrap .plate { flex: 1; min-height: 260px; }

.plate-caption {
  border-top: 1px solid var(--line);
  padding: 0.7rem var(--gutter) 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
}
.plate-caption .t { font-family: 'Archivo Narrow', sans-serif; font-size: 0.74rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--deep); font-weight: 600; }
.plate-caption .c { font-family: 'Archivo Narrow', sans-serif; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.plate-caption .c a { color: var(--ink-soft); }

/* ---------- The assembly: Strategy / Skills / Evidence / Implementation -- */

.assembly { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.assembly-lead { max-width: none; }
.assembly-lead p { max-width: 52ch; }
.assembly-figure { width: 100%; }
.assembly-figure svg { width: 100%; height: auto; display: block; overflow: visible; }

.node-title { font-family: 'Archivo', sans-serif; font-weight: 600; letter-spacing: -0.015em; fill: var(--deep); }
.node-body { font-family: 'Archivo', sans-serif; fill: var(--ink-soft); }
.node-key { font-family: 'Archivo Narrow', sans-serif; letter-spacing: 0.1em; fill: var(--dim); }
.dimline { stroke: var(--dim); stroke-width: 1; fill: none; }
.extline { stroke: var(--line); stroke-width: 1; fill: none; }
.nodebox { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; }
.hatch-fill { fill: url(#hatch); }

.chain-node { cursor: default; }
.chain-node .nodebox { transition: fill 200ms ease-out; }
.chain-node:hover .nodebox,
.chain-node:focus-visible .nodebox,
.chain-node.is-downstream .nodebox { fill: var(--sand); }
.chain-node:hover .nodebox,
.chain-node:focus-visible .nodebox { stroke-width: 2; }

/* Plotter draw-on: the one authored motion moment. */
.draws path, .draws line, .draws polyline, .draws rect, .draws circle { }
@media (prefers-reduced-motion: no-preference) {
  .js .draws .ink {
    stroke-dasharray: var(--len, 1200);
    stroke-dashoffset: var(--len, 1200);
  }
  /* The end state is declared, not inherited from the animation: if animations
     never tick (throttled tab, disabled motion), the drawing is still complete. */
  .js .draws.drawn .ink {
    stroke-dashoffset: 0;
    animation: plot 1100ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--i, 0) * 85ms);
  }
  .js .draws .fade { opacity: 0; }
  .js .draws.drawn .fade {
    opacity: 1;
    animation: appear 520ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(340ms + var(--i, 0) * 85ms);
  }
}
@keyframes plot { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.chain { display: block; }
.chain-parts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 820px) { .chain-parts { grid-template-columns: repeat(4, 1fr); } }

.chain-node {
  border-bottom: 1px solid var(--line);
  padding: clamp(1.2rem, 2.4vw, 1.7rem) clamp(1rem, 2vw, 1.5rem) clamp(1.4rem, 2.6vw, 1.9rem);
  position: relative;
  outline-offset: -3px;
}
@media (min-width: 820px) {
  .chain-node { border-right: 1px solid var(--line); }
  .chain-node:last-child { border-right: 0; }
}
.chain-node h3 { margin-top: 0.55rem; }
.chain-node p { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.4rem; }
.chain-node { transition: background 220ms ease-out; }
.chain-node:hover, .chain-node:focus-visible, .chain-node.is-downstream { background: var(--stone); }

.part-key {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  border: 1px solid var(--clay);
  border-radius: 50%;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
}

/* Flow marker between parts: down the column on small screens. */
@media (max-width: 819px) {
  .chain-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(clamp(1rem, 2vw, 1.5rem) + 0.9rem);
    bottom: -7px;
    width: 13px;
    height: 13px;
    background: var(--paper);
    border-right: 1px solid var(--dim);
    border-bottom: 1px solid var(--dim);
    transform: rotate(45deg);
    z-index: 1;
  }
}

.dim-rail { display: none; }
@media (min-width: 820px) {
  .dim-rail { display: block; width: 100%; height: 66px; }
}

.flow-rail { display: none; }
@media (min-width: 900px) {
  .flow-rail { display: block; width: 100%; height: 78px; }
}

.spine { display: none; }
@media (min-width: 900px) {
  .spine { display: block; width: 100%; height: auto; }
}
.key-dot { fill: var(--paper); stroke: var(--clay); stroke-width: 1; }
.key-no {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  fill: var(--clay);
  font-weight: 600;
}

/* ---------- Schedule: services as one numbered assembly ----------------- */

.schedule { border-top: 1px solid var(--line-strong); }
.sched-row { border-bottom: 1px solid var(--line); }
.sched-head {
  width: 100%;
  display: grid;
  grid-template-columns: 3.25rem 1fr 2rem;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: baseline;
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: clamp(1.05rem, 2vw, 1.5rem) 0;
  cursor: pointer;
}
.sched-head:hover { background: var(--stone); }
.sched-head .key {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  justify-self: start;
  border: 1px solid var(--clay);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: 0.1rem;
}
.sched-head h2 { font-size: var(--step-1); line-height: 1.22; }
.sched-head .sig { justify-self: end; align-self: start; margin-top: 0.35rem; color: var(--dim); }
.sched-head .sig svg { display: block; transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.sched-head[aria-expanded='true'] .sig svg { transform: rotate(45deg); }
.sched-panel { padding: 0 0 clamp(1.2rem, 2.4vw, 1.8rem) calc(3.25rem + clamp(0.75rem, 2vw, 1.5rem)); }
.sched-panel[hidden] { display: none; }
.sched-panel p { color: var(--ink); }
.sched-tags { display: flex; flex-wrap: wrap; gap: 0.4rem 0.55rem; margin-top: 1rem; padding: 0; list-style: none; }
.sched-tags li {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--deep);
  border: 1px solid var(--line);
  padding: 0.24rem 0.6rem;
  background: var(--stone);
}

/* ---------- Records (projects / capability) ----------------------------- */

.records { border-top: 1px solid var(--line-strong); }
.record {
  display: grid;
  gap: 0.35rem clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.2rem, 2.4vw, 1.9rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 780px) {
  .record { grid-template-columns: 4.5rem 1fr 1.1fr; }
}
.record h2 { font-size: var(--step-1); line-height: 1.22; }
.record .rev {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  padding-top: 0.3rem;
}
.record p { color: var(--ink-soft); }

/* ---------- Process: understand / analyse / design / implement ---------- */

.process { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); } }
.stage {
  border-bottom: 1px solid var(--line);
  padding: clamp(1.3rem, 2.6vw, 2rem) clamp(1rem, 2vw, 1.6rem) clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
@media (min-width: 900px) {
  .stage { border-right: 1px solid var(--line); }
  .stage:last-child { border-right: 0; }
}
.stage .glyph { color: var(--navy); }
.stage h3 { font-size: var(--step-1); }
.stage p { font-size: 0.95rem; color: var(--ink-soft); }
.stage .hands {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Statement band ---------------------------------------------- */

.band {
  background: var(--deep);
  color: var(--paper);
  padding: clamp(2.5rem, 5.5vw, 4.5rem) var(--gutter);
}
.band h2 { color: var(--paper); max-width: 22ch; }
.band p { color: color-mix(in srgb, var(--paper) 82%, var(--navy)); max-width: 56ch; }
.band .brandline { color: color-mix(in srgb, var(--paper) 78%, var(--navy)); }
.band .brandline .span-rule { color: color-mix(in srgb, var(--paper) 50%, var(--navy)); }
.band .btn { border-color: var(--paper); background: var(--paper); color: var(--deep); }
.band .btn:hover { background: var(--sand); }
.band .btn-ghost { background: transparent; color: var(--paper); }
.band .btn-ghost:hover { background: rgba(251, 250, 247, 0.12); }
.band a { color: var(--paper); }

/* ---------- Two-column blocks ------------------------------------------- */

.cols { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols-side { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 940px) { .cols-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }

.q-list { list-style: none; margin: clamp(1.2rem, 2.4vw, 2rem) 0 0; padding: 0; }
.q-list li {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 0.85rem 1.9rem;
  position: relative;
  max-width: 56ch;
}
.q-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.42rem;
  width: 11px;
  height: 1px;
  background: var(--clay);
}
.q-list li:last-child { border-bottom: 1px solid var(--line); }

.who { list-style: none; margin: clamp(1.2rem, 2.4vw, 1.8rem) 0 0; padding: 0; display: grid; gap: 0; }
.who li {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.who li:first-child { border-top: 1px solid var(--line); }
.who .mk { color: var(--dim); flex: none; }

/* ---------- Specialist areas (JET key areas) ---------------------------- */

.areas { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 720px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: clamp(1.3rem, 2.6vw, 1.9rem) clamp(1.1rem, 2vw, 1.6rem);
}
.area h3 { font-size: var(--step-1); }
.area p { font-size: 0.94rem; color: var(--ink-soft); margin-top: 0.5rem; }
.area .tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.6rem;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

/* ---------- Leadership -------------------------------------------------- */

.lead-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
@media (min-width: 860px) { .lead-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.portrait-reserve {
  border: 1px solid var(--line-strong);
  background: var(--stone);
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
  position: relative;
}
.portrait-reserve::before,
.portrait-reserve::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.portrait-reserve::after { inset: 0; border: 0; }
.portrait-reserve .rlabel {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.expertise { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; padding: 0; list-style: none; margin: 1.4rem 0 0; }
.expertise li {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  background: var(--stone);
  color: var(--deep);
  padding: 0.28rem 0.65rem;
}

.values { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 780px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: clamp(1.2rem, 2.4vw, 1.8rem) clamp(1rem, 2vw, 1.5rem); }
.value h3 { font-size: var(--step-0); text-transform: none; }
.value p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ---------- Skills-system diagram (JET) --------------------------------- */

.system-figure { border: 1px solid var(--line-strong); background: var(--paper); padding: clamp(1rem, 2.4vw, 2rem); }
.system-figure svg { width: 100%; height: auto; display: block; }
.system-figure figcaption {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  max-width: 80ch;
}
.sys-step { font-family: 'Archivo', sans-serif; font-weight: 600; fill: var(--deep); letter-spacing: -0.01em; }
.sys-no { font-family: 'Archivo Narrow', sans-serif; letter-spacing: 0.1em; fill: var(--dim); }
.sys-box { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; }
.sys-flow { stroke: var(--green); stroke-width: 1.4; fill: none; }

/* The seven-stage chain needs real width to stay legible; below that the
   ordered list below it carries the same content in full. */
.sys-diagram { display: none; }
@media (min-width: 900px) { .sys-diagram { display: block; } }
@media (max-width: 899px) {
  .system-figure { border: 0; padding: 0; }
  .system-figure figcaption { border-top: 0; padding-top: 0; margin-top: 0; }
}

.plate-row { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
@media (min-width: 780px) { .plate-row { grid-template-columns: repeat(3, 1fr); } }
.plate-fig { margin: 0; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plate-fig .plate { aspect-ratio: 4 / 3; }
.plate-fig .plate-caption { border-top: 1px solid var(--line); padding: 0.65rem 0.8rem 0.8rem; flex: 1; align-content: start; }

.system-text { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.system-text li {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0 0.7rem 2.4rem;
  position: relative;
  counter-increment: s;
  font-size: 0.95rem;
}
.system-text li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.system-text li:first-child { border-top: 1px solid var(--line); }

/* ---------- Form -------------------------------------------------------- */

.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 600;
}
.field .opt { color: var(--ink-soft); font-weight: 400; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 0.72rem 0.85rem;
  min-height: 48px;
  width: 100%;
  border-radius: 0;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #6E7681; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--stone); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--clay); outline-offset: 2px; background: var(--paper); }
.field .err {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #8C2F1D;
  min-height: 1.2em;
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: #8C2F1D; border-width: 2px; }

.form-note {
  margin-top: 1.5rem;
  border: 1px dashed var(--clay);
  background: color-mix(in srgb, var(--clay) 7%, var(--paper));
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink);
  max-width: 62ch;
}
.form-status {
  margin-top: 1.1rem;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--deep);
  min-height: 1.4em;
}

/* Placeholder values the client must replace before launch. */
.tbc {
  border-bottom: 1px dashed var(--clay);
  color: var(--clay);
  font-family: 'Archivo Narrow', sans-serif;
  letter-spacing: 0.04em;
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list > li { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.contact-list > li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-list .v { font-size: 1.02rem; color: var(--deep); font-weight: 500; }

/* ---------- Title block (footer) ---------------------------------------- */

.title-block {
  border-top: 1px solid var(--line-strong);
  background: var(--stone);
}
.tb-grid { display: grid; }
@media (min-width: 900px) { .tb-grid { grid-template-columns: 1.35fr 1fr 1fr; } }

.tb-cell { border-bottom: 1px solid var(--line); padding: clamp(1.1rem, 2.2vw, 1.6rem) var(--gutter); }
@media (min-width: 900px) {
  .tb-cell { border-right: 1px solid var(--line); }
  .tb-cell:nth-child(3n) { border-right: 0; }
}
.tb-k {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  display: block;
  margin-bottom: 0.45rem;
}
.tb-v { font-size: 0.95rem; color: var(--deep); }
.tb-cell ul { list-style: none; margin: 0; padding: 0; }
.tb-cell li { padding: 0.18rem 0; }
.tb-cell a { color: var(--deep); text-decoration: none; }
.tb-cell a:hover { text-decoration: underline; }

.tb-brand { display: flex; gap: 1rem; align-items: flex-start; }
.tb-brand .mark-plate { width: 62px; height: 62px; }
.tb-disciplines {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.tb-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .tb-meta { grid-template-columns: repeat(4, 1fr); } }
.tb-meta div { padding: 0.85rem var(--gutter); border-right: 1px solid var(--line); }
.tb-meta div:last-child { border-right: 0; }
.tb-meta .tb-v { font-family: 'Archivo Narrow', sans-serif; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

.colophon {
  border-top: 1px solid var(--line);
  padding: 0.9rem var(--gutter) 1.6rem;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.colophon a { color: var(--ink-soft); }

/* ---------- Utility ----------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: clamp(0.9rem, 1.8vw, 1.3rem); align-items: flex-start; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; font-weight: 400; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
