/* ============================================================
   THPPL - "The Drawing Office" design system
   Light engineering-document language: warm archival paper,
   ink text, photography mounted as plates, RDSO references as
   title-blocks, signal red used like a checking engineer's pen.
   Palette 1 from audit/01-visual.md - every text/background pair
   computed ≥4.9:1 (AA). No dark bands, no scrims, no glass.
   Type: Inter Tight (display) · IBM Plex Sans (body) · IBM Plex
   Mono (labels/data) - real per-weight files (P-06).
   ============================================================ */

:root {
  /* Drawing Office palette (V-01…V-05) */
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --card: #ffffff;
  --line: #ded7c6;
  --line-strong: #cbc2ad;
  --ink: #201d17;
  --steel: #5f584a;
  --signal: #c8102e;
  --signal-dark: #a00d25;
  --wa: #25d366;

  --font-display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* type scale - 6 steps + hero (X-08) */
  --t-label: 12px;
  --t-small: 13.5px;
  --t-body: 16.5px;
  --t-h4: 15px;
  --t-h3: 19px;
  --t-h2: clamp(26px, 3vw, 36px);
  --t-h1: clamp(34px, 4.6vw, 54px);

  /* two tracking tokens for all mono labels (X-20) */
  --track-label: 0.08em;
  --track-wide: 0.12em;

  /* 8px spacing scale (V-10, V-14) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;

  /* radius tokens (X-14) */
  --r-s: 4px;
  --r-m: 10px;
  --r-l: 18px;

  /* easing tokens (M-03) */
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: cubic-bezier(0.25, 0.6, 0.35, 1);
  --ease-press: cubic-bezier(0.4, 0, 0.6, 1);
  --ease-state: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* warm-ink shadows */
  --shadow-1: 0 1px 2px rgba(32, 29, 23, 0.05), 0 8px 24px rgba(32, 29, 23, 0.07);
  --shadow-2: 0 2px 6px rgba(32, 29, 23, 0.07), 0 18px 50px rgba(32, 29, 23, 0.13);

  --container: 1160px;
  /* measures: two caps only (V-12) */
  --measure: 720px;
  --measure-hero: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skipLink {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: var(--r-s);
  text-decoration: none; font-weight: 600;
}
.skipLink:focus { left: 8px; }

/* ---------- display type ---------- */

h1, h2, h3, .displayFace {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.032em; }
h2 { font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.026em; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.25; }
h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h4); margin: 0 0 12px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* the red-pen full stop - one drop of signal per big heading */
.stop { color: var(--signal); }

/* ---------- title-block language: eyebrows, indices, spec rows ---------- */

/* eyebrow: rationed to ~3 sections (X-05); words in muted, tick in red */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--signal); flex: none; }

/* mono section index - the quieter opener for the other sections */
.sectionIndex {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.sectionIndex b { color: var(--signal); font-weight: 500; }

.specRow {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.specRow:last-child { border-bottom: 1px solid var(--line); }
.specRow .specKey {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  flex: 0 0 128px;
  padding-top: 3px;
}
.specRow .specVal { flex: 1; }
.specRow .specVal strong { font-weight: 600; }

/* solid title-block card - replaces every glass panel (X-01, V-06) */
.titleBlock {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  padding: var(--s-3) var(--s-4);
}
.titleBlockLabel {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

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

/* light topbar (V-02); wraps instead of overflowing (R-03) */
.topbar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
}
.topbarInner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
}
.topbarSectors {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: var(--track-label);
  color: var(--steel);
}
.topbarContact { white-space: normal; }
.topbarContact a { color: var(--ink); text-decoration: none; padding: 6px 2px; display: inline-block; }
.topbarContact a:hover { color: var(--signal); text-decoration: underline; }
.topbarSep { margin: 0 8px; color: var(--line-strong); }

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease-state), border-color 0.25s var(--ease-state), box-shadow 0.25s var(--ease-state);
}
.siteHeader.isScrolled {
  /* solid, never backdrop-blurred (perf history) */
  background: rgba(246, 243, 236, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(32, 29, 23, 0.06);
}

.headerInner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brandText { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brandText strong { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandText span { font-size: 11.5px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mainNav { display: flex; gap: 0; margin-left: auto; flex-wrap: wrap; }
.mainNav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 9px;
  border-radius: var(--r-s);
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.15s var(--ease-hover);
}
.mainNav a:hover { background: rgba(32, 29, 23, 0.06); }
.mainNav a[aria-current="page"] { color: var(--signal); font-weight: 600; }

/* header conversion CTA (C-16, X-18) */
.headerCall {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: var(--r-s);
  white-space: nowrap;
  transition: background-color 0.15s var(--ease-hover);
}
.headerCall:hover { background: var(--signal-dark); }
.headerCall svg { flex: none; }

.menuBtn {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  padding: 12px 11px;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
}
.menuBtn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform 0.2s var(--ease-state), opacity 0.2s var(--ease-state); }
.menuBtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menuBtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menuBtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons - red is conversion-only (C-04, X-19) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-hover), border-color 0.15s var(--ease-hover), transform 0.1s var(--ease-press);
}
.btn:active { transform: translateY(1px); }

.btnPrimary { background: var(--signal); color: #fff; }
.btnPrimary:hover { background: var(--signal-dark); }

.btnGhost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btnGhost:hover { border-color: var(--steel); background: rgba(32, 29, 23, 0.04); }

.btnWa { background: var(--wa); color: #06341c; }
.btnWa:hover { background: #1fc25a; }

/* ---------- hero - light drawing-office composition (V-01, X-01…04, C-01/02/05/06) ---------- */

.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.heroGrid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 72px);
  /* shared top edge with the plate — same rule as the split sections (X-10) */
  align-items: start;
  padding-top: clamp(44px, 5.5vw, 84px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.heroCopy { max-width: var(--measure-hero); }
.hero h1 { margin-bottom: 20px; text-wrap: balance; }
.heroLede { font-size: 19.5px; line-height: 1.6; max-width: 56ch; color: var(--ink); margin-bottom: 18px; }
.heroSub { font-size: 16.5px; max-width: 58ch; color: var(--steel); margin-bottom: 32px; }
.heroActions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* the mounted plate */
.plate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-2);
  padding: 10px;
}
.plate img { border-radius: calc(var(--r-m) - 4px); width: 100%; height: auto; }
.plateCaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 6px 2px;
  font-size: var(--t-small);
  color: var(--steel);
}
.plateCaption .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  background: var(--signal);
  color: #fff;
  border-radius: 3px;
  padding: 2px 7px;
  flex: none;
}
.heroPlate { max-width: 460px; margin-left: auto; }
.heroPlate img { aspect-ratio: 3 / 4; object-fit: cover; }

/* title-block band under the hero grid - clears the fold at 1440 (C-06) */
.heroSpec { padding-bottom: clamp(40px, 5vw, 64px); }
.heroSpec .titleBlock { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); align-items: start; }
.heroSpecList { margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink); columns: 2; column-gap: var(--s-5); }
.heroSpecList li { padding: 6px 0 6px 20px; position: relative; break-inside: avoid; }
.heroSpecList li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 3px; background: var(--signal); }

/* hero load-in - one-time, compositor-only, image never animated (M-09) */
@keyframes seqIn { from { opacity: 0; transform: translateY(10px); } }
.js .heroSeq > * { animation: seqIn 0.5s var(--ease-enter) backwards; }
.js .heroSeq > *:nth-child(1) { animation-delay: 0ms; }
.js .heroSeq > *:nth-child(2) { animation-delay: 90ms; }
.js .heroSeq > *:nth-child(3) { animation-delay: 180ms; }
.js .heroSeq > *:nth-child(4) { animation-delay: 270ms; }

/* ---------- sections (V-08 whitespace) ---------- */

.section { padding: clamp(64px, 7vw, 128px) 0; }
.sectionTight { padding: clamp(44px, 5vw, 88px) 0; }
.sectionAlt { background: var(--paper-2); }

.sectionHead { max-width: var(--measure); margin-bottom: clamp(32px, 4vw, 56px); }
.sectionHead p { color: var(--steel); font-size: 17px; }

.sectionHeadRow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.sectionHeadRow .sectionHead { margin-bottom: 0; }

/* ---------- grids & cards ---------- */

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: var(--s-3);
  box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--steel); }

/* tag chips go quiet ink - red is rationed (X-19) */
.cardTag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

.cardLink { text-decoration: none; display: flex; flex-direction: column; transition: transform 0.18s var(--ease-hover), box-shadow 0.18s var(--ease-hover), border-color 0.18s var(--ease-hover); }
.cardLink:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.cardMore { font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; }
.cardMore::after { content: "→"; display: inline-block; transition: transform 0.18s var(--ease-hover); color: var(--signal); }
.cardLink:hover .cardMore::after { transform: translateX(3px); }

/* tiered portfolio (X-07): featured cards carry photos… */
.cardFeature img { width: 100%; height: auto; border-radius: calc(var(--r-m) - 4px); aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: var(--s-2); }
/* …industrial lines are compact rows */
.rowLink {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: var(--s-2) var(--s-3);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color 0.18s var(--ease-hover), box-shadow 0.18s var(--ease-hover);
}
.rowLink:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.rowLink h3 { font-size: 16px; margin: 0; flex: none; }
.rowLink p { font-size: var(--t-small); color: var(--steel); margin: 0; min-width: 0; }
@media (max-width: 560px) {
  .rowLink { flex-wrap: wrap; }
  .rowLink p { flex: 1 1 100%; }
}
.rowLink .cardMore { margin: 0 0 0 auto; padding: 0; flex: none; }

/* ---------- stats rail - surface band, cards define it (V-15, V-09, X-16) ---------- */

.statsRail { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statsGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); padding: var(--s-4) 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  padding: var(--s-2) var(--s-3);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat strong em { font-style: normal; color: var(--signal); }
.stat span {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* ---------- process strip ---------- */

.processStrip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--card); box-shadow: var(--shadow-1); }
.processStep { padding: var(--s-3); border-left: 1px solid var(--line); }
.processStep:first-child { border-left: 0; }
.processStep .stepNo { font-family: var(--font-mono); font-size: var(--t-label); color: var(--signal); letter-spacing: var(--track-wide); display: block; margin-bottom: 10px; }
.processStep h3 { font-size: 15.5px; margin-bottom: 6px; }
.processStep p { font-size: var(--t-small); color: var(--steel); margin: 0; }

/* ---------- splits - top edges shared (X-10) ---------- */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.splitReverse { grid-template-columns: 0.95fr 1.05fr; }
.splitRegister { grid-template-columns: 1.15fr 0.85fr; }

/* ---------- proof section - light, named, framed (V-03, C-07, C-12, X-06) ---------- */

.proofNames {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  line-height: 1.9;
  color: var(--steel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-2) 0;
  margin: var(--s-3) 0;
}
.proofNames b { color: var(--ink); font-weight: 500; }
.bigStamp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal);
}
.bigStampLabel {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-top: 6px;
}

/* ---------- project register (projects page) ---------- */

.stampRow { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; margin-top: var(--s-4); }

.projEntry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-3);
  transition: border-color 0.18s var(--ease-hover), box-shadow 0.18s var(--ease-hover);
}
.projEntry + .projEntry { margin-top: var(--s-3); }
.projEntry:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }

.projNo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--steel);
  padding-top: 6px;
}
.projNo::before { content: ""; display: block; width: 18px; height: 3px; background: var(--signal); margin-bottom: 8px; }

.projTitleRow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-1); }
.projTitleRow h3 { font-size: 20px; margin: 0; }

.clientChip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
}

.asideSticky { position: sticky; top: 96px; display: grid; gap: var(--s-3); align-content: start; }

@media (max-width: 860px) {
  .asideSticky { position: static; }
  .projEntry { grid-template-columns: 1fr; gap: var(--s-1); padding: var(--s-3); }
  .projNo { padding-top: 0; }
}

/* ---------- CTA panel - elevated, on the grid (V-04, X-11, C-11) ---------- */

.ctaPanel {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  padding: clamp(32px, 4vw, 56px);
}
.ctaPanel .sectionHead { margin-bottom: var(--s-3); }

/* ---------- legacy classes kept light for the other pages ---------- */

.night { background: var(--paper-2); color: var(--ink); }
.night h2, .night h3 { color: var(--ink); }
.night .eyebrow { color: var(--steel); }
.night .sectionHead p { color: var(--steel); }
.night .btnGhost { color: var(--ink); border-color: var(--line-strong); }

.proofBand { background: var(--paper-2); color: var(--ink); position: relative; }
.proofBand .bandMedia { display: none; }
.proofBand .bandInner { position: relative; padding: clamp(56px, 7vw, 96px) 0; }
.proofBand h1, .proofBand h2 { color: var(--ink); }
.proofBand .sectionHead p { color: var(--steel); }
.proofBand .eyebrow { color: var(--steel); }
.proofGlassRow { display: flex; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-4) 0; }

.glassPanel {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
}
.glassStat { border-radius: var(--r-m); padding: var(--s-3) var(--s-3); }
.glassStat .bigNum { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--signal); display: block; margin-bottom: 6px; letter-spacing: -0.02em; }
.glassStat .numLabel { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--steel); }

.bandInner { position: relative; }
.ctaBand .bandInner { max-width: var(--measure); }

/* figures on other pages: caption is a solid bar below the image (V-07, R-06, X-13) */
.figure { border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-2); background: var(--card); border: 1px solid var(--line); }
.figure img { width: 100%; height: auto; }
/* cap tall portraits so a split figure matches its text column */
.figureCompact img { aspect-ratio: 10 / 9; object-fit: cover; object-position: center 35%; }
.figCaption {
  position: static;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: var(--card);
  color: var(--steel);
  font-size: var(--t-small);
}
.figCaption .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  background: var(--signal);
  color: #fff;
  border-radius: 3px;
  padding: 2px 7px;
  flex: none;
}

/* ---------- gallery / documents / contact (shared pages) ---------- */

.galleryGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.grid2.galleryGrid { grid-template-columns: repeat(2, 1fr); }
.galleryCard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-1); }
.galleryCard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.galleryCard figcaption { padding: var(--s-2) var(--s-3) var(--s-3); }
.galleryCard h3 { font-size: 16px; margin-bottom: 5px; }
.galleryCard p { font-size: 14px; color: var(--steel); margin: 0; }

.docRow { display: flex; align-items: center; gap: var(--s-3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-2) var(--s-3); box-shadow: var(--shadow-1); }
.docRow + .docRow { margin-top: var(--s-2); }
.docIcon { flex: none; width: 44px; height: 44px; border-radius: var(--r-s); background: rgba(200, 16, 46, 0.08); color: var(--signal); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.docBody { flex: 1; min-width: 0; }
.docBody h3 { font-size: 16px; margin-bottom: 3px; }
.docBody p { font-size: 14px; color: var(--steel); margin: 0; }
.docBody .docMeta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.docRow .btn { flex: none; padding: 10px 18px; font-size: 14px; }

.contactGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.contactCard .contactIcon { width: 46px; height: 46px; border-radius: var(--r-m); display: grid; place-items: center; margin-bottom: var(--s-2); background: rgba(200, 16, 46, 0.08); color: var(--signal); }
.contactCard.waCard .contactIcon { background: rgba(37, 211, 102, 0.12); color: #128c4b; }
.contactActions { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s-2); }
.contactActions .btn { justify-content: center; }

.mapWrap { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); margin-top: var(--s-3); }
.mapWrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- footer - light (V-05) ---------- */

.siteFooter { background: var(--paper-2); border-top: 1px solid var(--line); color: var(--ink); padding: clamp(44px, 6vw, 70px) 0 0; }
.footerGrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); padding-bottom: var(--s-5); }
.footerCol h4 { color: var(--ink); }
.footerCol p { font-size: 14px; color: var(--steel); }
.footerCol a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; padding: 5px 0; transition: color 0.15s var(--ease-hover); }
.footerCol a:hover { color: var(--signal); text-decoration: underline; }
.footerAddress { font-family: var(--font-mono); font-size: 12.5px !important; }
.footerCopy { display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--steel); }

/* ---------- WhatsApp float ---------- */

.waFloat {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; align-items: center; gap: 8px;
  background: var(--wa); color: #06341c;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(18, 140, 75, 0.4);
  transition: transform 0.15s var(--ease-hover), box-shadow 0.15s var(--ease-hover);
}
.waFloat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(18, 140, 75, 0.5); }

/* ---------- reveal system - few moments, staggered, self-retiring (M-01, M-02, X-17) ---------- */

.js .reveal:not(.isDone) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-enter), transform 0.5s var(--ease-enter);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.js .reveal.isVisible:not(.isDone) { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .heroSeq > * { animation: none; }
  .btn, .cardLink, .rowLink, .waFloat, .menuBtn span, .cardMore::after { transition-duration: 0.01ms; }
  .cardLink:hover, .waFloat:hover { transform: none; }
  .btn:active { transform: none; }
  .cardLink:hover .cardMore::after { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1220px) {
  .headerCall span { display: none; }
  .headerCall { padding: 11px; }
}

@media (max-width: 1020px) {
  .mainNav a { font-size: 13px; padding: 7px 8px; }
  .brandText span { display: none; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .processStrip { grid-template-columns: 1fr; }
  .processStep { border-left: 0; border-top: 1px solid var(--line); }
  .processStep:first-child { border-top: 0; }
  .heroSpec .titleBlock { grid-template-columns: 1fr; }
  .heroSpecList { columns: 1; }
}

@media (max-width: 860px) {
  .topbarSectors { display: none; }
  .topbarInner { justify-content: center; }

  .menuBtn { display: block; margin-left: auto; }
  .headerCall { margin-left: auto; }
  .menuBtn { margin-left: 0; }
  .mainNav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(32, 29, 23, 0.12);
    padding: 10px 18px 16px;
  }
  .mainNav.isOpen { display: flex; animation: navIn 0.18s var(--ease-state); }
  .mainNav a { font-size: 16px; padding: 12px 10px; }

  .heroGrid { grid-template-columns: 1fr; }
  .heroPlate { max-width: 100%; margin-left: 0; }
  .heroPlate img { aspect-ratio: 16 / 10; }

  .split, .splitReverse, .splitRegister { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .galleryGrid { grid-template-columns: 1fr; }
  .contactGrid { grid-template-columns: 1fr; }
  .footerGrid { grid-template-columns: 1fr; gap: var(--s-3); }

  /* stats stay 2×2 on phones - never a 4-screen column (C-18, X-12) */
  .statsGrid { grid-template-columns: repeat(2, 1fr); }
  .stat span { white-space: normal; }
}

@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 560px) {
  /* phones only in the topbar; email moves to menu/footer (R-03, C-19) */
  .topbarContact a[href^="mailto"], .topbarContact .topbarSep:last-of-type { display: none; }
  .waFloat span { display: none; }
  .waFloat { padding: 13px; }
  .heroSpecList { columns: 1; }
}

/* ---------- print ---------- */

@media print {
  .topbar, .siteHeader, .waFloat { display: none; }
  .plate, .card, .titleBlock, .ctaPanel { box-shadow: none; }
  body { background: #fff; }
}
