/* ZERRO. Two colours only: #0D1B2A and #F5F5F3.
   Visual system: full-bleed inversions, oversized display type,
   ruled grids, and line diagrams drawn in currentColor. */

:root {
  --navy: #0D1B2A;
  --paper: #F5F5F3;
  /* The logo keeps its original colour, sampled from the supplied file. */
  --brand: #FDBC03;

  --ink: var(--navy);
  --ground: var(--paper);
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --muted: color-mix(in srgb, var(--ink) 62%, transparent);
  --faint: color-mix(in srgb, var(--ink) 7%, transparent);

  --shell: min(1720px, 100% - clamp(2.5rem, 5vw, 5rem));
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display, .num, .eyebrow, .btn, .logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
}
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; max-width: 60ch; }
a { color: inherit; }
img, svg { max-width: 100%; }

.shell { width: var(--shell); margin-inline: auto; }
.measure { max-width: 54ch; }
.muted { color: var(--muted); }

/* ---------------- Inversion ---------------- */

.invert {
  --ink: var(--paper);
  --ground: var(--navy);
  /* These must be redeclared here. Custom properties resolve where they are
     declared, so the :root versions stay navy and vanish on a navy ground. */
  --rule: color-mix(in srgb, var(--paper) 22%, transparent);
  --muted: color-mix(in srgb, var(--paper) 66%, transparent);
  --faint: color-mix(in srgb, var(--paper) 9%, transparent);
  background: var(--navy);
  color: var(--paper);
}

/* ---------------- Wordmark ---------------- */

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  padding: 0.25rem 0;
}
.logo img {
  display: block;
  width: 34px;
  height: auto;
}


/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}
.nav { display: flex; align-items: center; gap: 2rem; font-size: 0.83rem; letter-spacing: 0.04em; }
.nav a { text-decoration: none; color: var(--muted); position: relative; padding: 0.3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor; transition: right 0.28s ease;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { right: 0; }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { right: 0; }
.nav .btn, .nav .btn[aria-current="page"] { color: var(--paper); font-size: 0.8rem; padding: 0.7rem 1.2rem; }
.nav .btn:hover { color: var(--navy); }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  color: var(--navy); font: inherit; font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.55rem 0.9rem; cursor: pointer;
}

/* ---------------- Buttons ---------------- */

.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 1.05rem 2rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: color 0.3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ground);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleY(1); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--ground); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif; font-size: 0.85rem;
  letter-spacing: 0.04em; text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem;
  transition: border-color 0.25s ease;
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow span { transition: transform 0.25s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------------- Section rhythm ---------------- */

section { padding: clamp(4.5rem, 10vw, 9rem) 0; position: relative; }

.eyebrow {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 2.5rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px; background: currentColor; flex: none;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); }
.section-head p { color: var(--muted); font-size: 1rem; }

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

.hero { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--gutter);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.1rem + 5.6vw, 5.1rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1em;
  height: 0.06em; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  animation: rule-in 0.9s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes rule-in { to { transform: scaleX(1); } }
.hero p { margin-top: 2rem; font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.hero__actions { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }

.hero__figure { position: relative; }
.hero__caption {
  margin-top: 1.5rem; font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.hero__strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem;
  font-family: "Space Grotesk", sans-serif; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* ---------------- Diagrams ---------------- */

.diagram { display: block; width: 100%; height: auto; color: inherit; overflow: visible; }
.diagram .stroke { fill: none; stroke: currentColor; stroke-width: 1.25; }
.diagram .hair { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.28; }
.diagram .fill { fill: currentColor; }
.diagram .ghost { fill: none; stroke: currentColor; stroke-width: 1.25; opacity: 0.3; stroke-dasharray: 4 5; }
.diagram text {
  font-family: "Space Grotesk", sans-serif; font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase; fill: currentColor;
}

.flow-dash {
  stroke-dasharray: 7 11;
  animation: flow 1.5s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -18; } }

.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-dash, .pulse { animation: none; }
  .hero h1 em::after { animation: none; transform: scaleX(1); }
}

/* ---------------- Statement (inverted) ---------------- */

.statement { overflow: hidden; }
.statement blockquote {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 0.9rem + 3.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--gutter);
  align-items: center;
}
.statement footer {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.95rem; max-width: 46ch;
}
.statement footer p + p { margin-top: 1rem; }

/* Faint ruled background */
.ruled::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to right, var(--faint) 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.ruled > * { position: relative; }

/* ---------------- Service rows ---------------- */

.row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--gutter);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--rule);
}
.row:last-of-type { border-bottom: 1px solid var(--rule); }
.num {
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--muted);
  opacity: 0.55;
}
.row h3 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); margin-bottom: 1.1rem; }
.row p { color: var(--muted); font-size: 1rem; }
.row__figure { padding-top: 0.4rem; }

.meta { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.meta h4 {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.9rem;
}
.meta ul, .meta ol { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; counter-reset: step; }
.meta li { padding-left: 1.6rem; position: relative; }
.meta li + li { margin-top: 0.55rem; }
.meta ul li::before {
  content: ""; position: absolute; left: 0; top: 0.65em; width: 0.7rem; height: 1px; background: currentColor; opacity: 0.5;
}
.meta ol li { counter-increment: step; }
.meta ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: "Space Grotesk", sans-serif; font-size: 0.7rem; letter-spacing: 0.1em; opacity: 0.65;
}

/* ---------------- Narrative scenes ---------------- */

.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.scene {
  position: relative;
  padding: 2.75rem 2rem 3rem 0;
  border-bottom: 1px solid var(--rule);
}
.scene + .scene { border-left: 1px solid var(--rule); padding-left: 2rem; }
.scene__index {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--muted);
  display: block;
  margin-bottom: 1.75rem;
}
.scene h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  line-height: 1.12;
  margin-bottom: 0.9rem;
  max-width: 16ch;
}
.scene p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.scene[data-turn] h3 { max-width: 18ch; }
.scene[data-turn]::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 3.5rem;
  background: currentColor;
}

/* ---------------- Titles ---------------- */

.title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 15ch;
}
.title--hero {
  font-size: clamp(2.9rem, 1.4rem + 6.2vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  max-width: 11ch;
}
.title--hero .quiet { display: block; }
.title__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---------------- Process ---------------- */

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gutter); }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule);
}
.step::after {
  content: ""; position: absolute; top: -3.5px; left: 0; width: 8px; height: 8px;
  background: var(--ground); border: 1px solid currentColor; border-radius: 50%;
}
.step[data-solid]::after { background: currentColor; }
.step__label {
  font-family: "Space Grotesk", sans-serif; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.85rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------------- Split / prose ---------------- */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--gutter); align-items: start; }
.lede {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.24; letter-spacing: -0.025em;
  max-width: 24ch;
}
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.4rem; }

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

.form { max-width: 36rem; }
.field { position: relative; }
.field + .field { margin-top: 2rem; }
.field label {
  display: block; font-family: "Space Grotesk", sans-serif; font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem;
}
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 0.65rem 0; border-radius: 0; transition: border-color 0.25s ease;
}
.field textarea { min-height: 8rem; resize: vertical; border: 1px solid var(--rule); padding: 1rem; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink) 35%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form .btn { margin-top: 2.75rem; }
.form-note { margin-top: 1.5rem; font-size: 0.88rem; color: var(--muted); }
.form-status { margin-top: 1.5rem; font-size: 0.95rem; }
.form-status:empty { display: none; }
.confirm { max-width: 34rem; }
.confirm h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: 2rem 0 1.1rem; }
.confirm p { color: var(--muted); }
.confirm p + p { margin-top: 1rem; }
[hidden] { display: none !important; }

/* ---------------- Footer ---------------- */

.site-footer { padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.site-footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem);
}
.site-footer__top h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); max-width: 16ch; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 2rem; font-size: 0.82rem; color: var(--muted);
  font-family: "Space Grotesk", sans-serif; letter-spacing: 0.06em;
}
.site-footer__base a { text-decoration: none; color: var(--ink); }
.site-footer__base a:hover { text-decoration: underline; }

/* ---------------- Reveal ---------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Mobile ---------------- */

@media (max-width: 860px) {
  .scene, .scene + .scene { padding-left: 0; border-left: 0; }
  :root { --shell: min(1180px, 100% - 2.5rem); }
  .hero__grid, .section-head, .split, .statement__grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; gap: 1.5rem; }
  .hero__figure { margin-top: 3rem; }
  .row { grid-template-columns: 1fr; gap: 2rem; }
  .num { font-size: 2rem; }
  .row__figure { max-width: 22rem; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1.5rem;
  }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 0.9rem max(1.25rem, calc((100% - var(--shell)) / 2)); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav .btn { margin: 0.75rem max(1.25rem, calc((100% - var(--shell)) / 2)) 0; text-align: center; }
  .ruled::before { background-size: 50% 100%; }
}

/* ---------------- Accessibility ---------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--paper);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------------- Print ---------------- */

@media print {
  .site-header, .nav, .btn, .diagram { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .invert { background: #fff; color: #000; }
  section { padding: 1.5rem 0; }
}

/* ================================================================
   Corporate layer: hamburger, fullscreen nav, structured footer,
   blueprint grids and figure furniture.
   ================================================================ */

/* ---------------- Hamburger ---------------- */

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 60;
  color: var(--navy);
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] { color: var(--paper); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* ---------------- Fullscreen nav ---------------- */

.nav__meta { display: none; }

@media (max-width: 860px) {
  /* backdrop-filter on the header would make it the containing block for
     position:fixed children, which clips the overlay. Drop it here. */
  .site-header { backdrop-filter: none; background: var(--paper); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--navy);
    color: var(--paper);
    --ink: var(--paper);
    --rule: color-mix(in srgb, var(--paper) 22%, transparent);
    --muted: color-mix(in srgb, var(--paper) 66%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 6rem 1.25rem 3rem;
    border: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1.5rem);
    transition: opacity 0.32s ease,
                transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1),
                visibility 0s linear 0.32s;
  }
  .nav[data-open="false"] { display: flex; }
  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav a {
    color: var(--paper);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 10vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    opacity: 0;
    transform: translateY(12px);
  }
  .nav[data-open="true"] a {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .nav[data-open="true"] a:nth-of-type(1) { transition-delay: 0.08s; }
  .nav[data-open="true"] a:nth-of-type(2) { transition-delay: 0.14s; }
  .nav[data-open="true"] a:nth-of-type(3) { transition-delay: 0.20s; }
  .nav[data-open="true"] a:nth-of-type(4) { transition-delay: 0.26s; }

  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--paper); }

  /* Free Audit reads as a nav line here, not a filled button */
  .nav .btn, .nav .btn[aria-current="page"] {
    background: none;
    border: 0;
    color: var(--paper);
    text-align: left;
    margin: 0;
    padding: 1rem 0;
    font-size: clamp(2rem, 10vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.03em;
  }
  .nav .btn::before { display: none; }
  .nav .btn { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--rule); }

  .nav__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: 2.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    transform: translateY(12px);
  }
  .nav[data-open="true"] .nav__meta {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease 0.34s, transform 0.4s ease 0.34s;
  }
  .nav__meta a {
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    padding: 0;
    border: 0;
    color: var(--paper);
  }
}

/* ---------------- Blueprint ground ---------------- */

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--faint) 0 1px, transparent 1px 16.666%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%);
}
.blueprint > * { position: relative; }

/* ---------------- Figure furniture ---------------- */

.figure-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- Section index ---------------- */

.section-index {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-index b { color: var(--ink); font-weight: 500; }
.section-index em { font-style: normal; margin-left: auto; }

/* ---------------- Footer ---------------- */

.site-footer { padding: clamp(4rem, 8vw, 7rem) 0 2rem; }

.footer-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--gutter);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.footer-lead h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem);
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.footer-lead__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 0.55fr));
  gap: 2.5rem var(--gutter);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.footer-col h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 0.75rem; }
.footer-col a { text-decoration: none; font-size: 0.95rem; color: var(--ink); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }

.footer-tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  color: var(--ink);
}


.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__base a { text-decoration: none; color: var(--ink); }
.site-footer__base a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .footer-lead { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

/* ---------------- Plateau chart ---------------- */

.plateau { margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.plateau .diagram { overflow: visible; }
.plateau__axis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 860px) {
  .plateau__axis { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; row-gap: 0.6rem; }
}

/* Keep the mark above the open fullscreen nav */
body.nav-open .logo { position: relative; z-index: 60; }

/* Footer logo */
.footer-mark {
  display: block;
  width: 52px;
  height: auto;
  margin-bottom: 1.5rem;
}


/* ---------------- Service category sub navigation ---------------- */

.subnav {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.subnav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.subnav a:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ---------------- Select field ---------------- */

.field select {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.65rem 1.5rem 0.65rem 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  /* Two triangles drawn in currentColor, so the caret follows the inversion. */
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 7px center, right 1px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.25s ease;
}
.field select:focus { outline: none; border-color: var(--ink); }
/* The dropdown list is painted by the operating system, not by this page, so
   it needs explicit colours rather than the inherited custom properties. */
.field select option { color: #0D1B2A; background: #F5F5F3; }

/* ================================================================
   INSTITUTIONAL LAYER
   Added in version 2. The identity does not change here: same two
   colours, same two typefaces, same line diagrams. What changes is
   density and structure, so the site reads as a practice with terms
   rather than as a portfolio page. Everything below either adds a
   component or tightens an existing scale.
   ================================================================ */

/* ---------------- Header, tightened ---------------- */

@media (min-width: 861px) {
  .nav { gap: 1.9rem; font-size: 0.72rem; letter-spacing: 0.14em; }
  .nav a { text-transform: uppercase; }
  .nav .btn, .nav .btn[aria-current="page"] {
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.72rem 1.35rem;
  }
}

/* ---------------- Display type, calmed ---------------- */

/* The poster-sized hero was the loudest thing on the page. Bringing it
   down and widening the measure trades spectacle for composure, and
   leaves room for the fact grid directly beneath it. */
.hero h1.title--hero {
  font-size: clamp(2.3rem, 1.35rem + 3.7vw, 3.7rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.section-head h2.title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); max-width: 19ch; }
.lede { font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem); max-width: 26ch; }
.statement blockquote { max-width: 20ch; }

/* ---------------- Fact grid ---------------- */

.factgrid {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}
/* Borders sit on the cells, not the container, so a wrapped row never
   leaves a hanging edge. */
.factgrid > div {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 1.5rem 1.5rem;
}
.factgrid dt {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.factgrid dd {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

/* ---------------- Terms panel ---------------- */

.terms {
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.terms > div {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.6rem, 3vw, 2.25rem);
}
.terms__index {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.terms h3 { font-size: 1.08rem; margin-bottom: 0.75rem; }
.terms p { color: var(--muted); font-size: 0.92rem; max-width: 32ch; }

/* ---------------- Specification table ---------------- */

.spec-wrap { overflow-x: auto; }
.spec {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.spec caption {
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1.1rem;
}
.spec th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.5rem 1rem 0;
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
}
.spec td {
  padding: 1.15rem 1.5rem 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  vertical-align: top;
}
.spec tbody tr:hover td { color: var(--ink); }
.spec td:first-child {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  white-space: nowrap;
}
.spec .grp {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.spec .grp b { font-weight: 500; margin-right: 0.5rem; }


/* ---------------- Very wide screens ---------------- */

/* The shell runs to 1720px, so without a cap the line diagrams scale up with
   the column and start to dominate the page. Text keeps its own measure. */
/* justify-self, not an auto margin. An auto inline margin makes a grid item
   shrink to fit, which collapses an SVG to its 300px intrinsic width. */
@media (min-width: 1300px) {
  .hero__figure { width: 100%; max-width: 720px; justify-self: end; }
  .statement__grid .hero__figure { max-width: 560px; }
  .row__figure { width: 100%; max-width: 380px; justify-self: end; }
}

/* ---------------- Selected work, one running line ---------------- */

.work-strip {
  --work-gap: clamp(1.25rem, 2vw, 2rem);
  /* Without JS this is a plain horizontal scroller, which is the honest
     fallback. main.js clones the track and turns it into the marquee. */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.work-strip::-webkit-scrollbar { display: none; }

.work-track {
  display: flex;
  gap: var(--work-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Five across on a wide screen. Anything added after that simply runs on. */
.work-card { flex: 0 0 clamp(13rem, 18vw, 19.5rem); }
.work-card__shot {
  display: block;
  border: 1px solid var(--rule);
  background: var(--ground);
  aspect-ratio: 10 / 7;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.work-card__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
a.work-card__shot:hover { border-color: var(--ink); }
.work-card h3 { font-size: 1.05rem; margin: 1.1rem 0 0.5rem; }
.work-card__link {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.work-card__link:hover { color: var(--ink); border-bottom-color: currentColor; }

/* The running line. Both tracks carry the same animation, and the second sits
   exactly one track plus one gap to the right, so the loop is seamless. */
.work-strip.is-marquee {
  display: flex;
  gap: var(--work-gap);
  overflow: hidden;
  /* A gradient mask, not a url() mask. Gradients are not subject to the cross
     origin rule that made the logo vanish on local files in version 1. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.work-strip.is-marquee .work-track {
  flex: 0 0 auto;
  animation: work-marquee var(--marquee-duration, 45s) linear infinite;
}
.work-strip.is-marquee:hover .work-track,
.work-strip.is-marquee:focus-within .work-track { animation-play-state: paused; }
@keyframes work-marquee {
  to { transform: translateX(calc(-100% - var(--work-gap))); }
}
@media (prefers-reduced-motion: reduce) {
  .work-strip.is-marquee .work-track { animation: none; }
}

/* ---------------- Footer, tightened for narrow desktops ---------------- */

/* Five columns stop working somewhere under 1100px: the longest link,
   the email address, has no spaces to break at and spills out of its
   column. Three columns at that size, and links may break anywhere. */
@media (max-width: 1120px) and (min-width: 861px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-col a { overflow-wrap: anywhere; }
.footer-col h3 { line-height: 1.35; }

/* ---------------- Mobile nav and strip fixes ---------------- */

@media (max-width: 860px) {
  /* The desktop hover turns a nav link navy, which is right on the pale
     header and invisible inside the navy fullscreen panel. Touch devices
     keep the last tapped element in a hover state, so the item simply
     disappeared. Paper here, and the amber underline does the work. */
  .nav a:hover,
  .nav .btn:hover,
  .nav a:focus-visible,
  .nav .btn:focus-visible { color: var(--paper); }

  /* Six service names wrapped unevenly: four sat on their own line and two
     paired up on the last one. One per line reads as a list, not a stray. */
  .hero__strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
}
