/* ==========================================================================
   EN-GRAZID LIMITED — Design System
   Architecture + Construction + Project Management
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */

@font-face{
  font-family:'Archivo';
  src:url('../fonts/archivo.woff2') format('woff2');
  font-weight:400 800; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'JetBrains Mono';
  src:url('../fonts/jetbrains-mono.woff2') format('woff2');
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Inter';
  src:url('../fonts/inter.woff2') format('woff2');
  font-weight:400 700; font-style:normal; font-display:swap;
}

@font-face{
  font-family:'Instrument Serif';
  src:url('../fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight:400; font-style:italic; font-display:swap;
}
/* Upright cut, for the hero standfirst. The italic is reserved for "dreams". */
@font-face{
  font-family:'Instrument Serif';
  src:url('../fonts/instrument-serif.woff2') format('woff2');
  font-weight:400; font-style:normal; font-display:swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root{
  /* Ink — cool near-blacks */
  --ink-900:#070B10;
  --ink-800:#0C1219;
  --ink-700:#131B25;
  --ink-600:#1D2733;
  --ink-500:#36424F;
  --ink-400:#5B6773;
  --ink-300:#8A95A1;
  --ink-200:#BFC7D0;
  --ink-100:#DDE2E7;

  /* Paper — warm concrete neutrals */
  --paper:#F7F5F1;
  --paper-2:#EFEDE7;
  --paper-3:#E3E0D8;
  --white:#FFFFFF;

  /* Accent — the brand blue (it replaced a laterite orange on 2026-10-10) */
  /* One brand colour, the logo's blue, in three strengths. Each clears AA for
     small text where it is used: */
  --accent:#0F65A8;        /* on paper: 5.59:1 (paper-2 5.20, paper-3 4.62) */
  --accent-bright:#4A9FE0; /* on ink: 6.88:1 (ink-800 6.56) */
  --accent-flare:#80C8F0;  /* the logo's light blue: highlights on ink and photographs, 10.75:1 */
  --error:#AC4D30;         /* form errors stay warm, so they read as errors: 5.00:1 on paper */
  --blue:#1476C4;       /* brand blue (README): white text on it 4.75:1 */
  --blue-deep:#0A4E86;  /* its hover: 8.58:1 */

  /* Semantic */
  --bg:var(--paper);
  --fg:var(--ink-800);
  --fg-muted:var(--ink-400);
  --rule:rgba(13,19,25,.12);
  --rule-strong:rgba(13,19,25,.22);
  --rule-dark:rgba(255,255,255,.14);

  /* White on a dark ground, as a ladder rather than by eye: nineteen slightly
     different tints had accumulated (.92 .88 .84 .75 .7 .65 .6 .55 .5 .45 .42
     .4 .35 .3 .26 .22 .13), several of them indistinguishable from each other.
     Four for type, three for edges. Snapping moved every text tint up, never
     down, so contrast only improved. */
  --on-dark-1:rgba(255,255,255,.92);   /* primary copy on ink            */
  --on-dark-2:rgba(255,255,255,.72);   /* secondary copy                 */
  --on-dark-3:rgba(255,255,255,.58);   /* labels, counters               */
  --on-dark-4:rgba(255,255,255,.45);   /* faint markers                  */
  --edge-dark-1:rgba(255,255,255,.38); /* button and control borders     */
  --edge-dark-2:rgba(255,255,255,.26);
  --ghost-dark:rgba(255,255,255,.07);  /* the oversized footer word      */
  --grid-line:rgba(13,19,25,.045);     /* the setting-out grid           */

  /* Type */
  /* Two families. Headlines take the serif; body and the small uppercase
     labels take Inter. Instrument Serif ships a single weight (400), so there
     is no light cut to set on ivory — said plainly rather than faked with a
     synthetic weight. */
  --font-display:'Instrument Serif',Georgia,'Times New Roman',serif;
  /* The hero headline keeps the heavy grotesk it has always had — the
     client prefers it there. Section headings stay on the serif. */
  --font-hero:'Archivo','Helvetica Neue',Arial,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --font-label:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --font-serif:'Instrument Serif',Georgia,'Times New Roman',serif;

  --fs-display:clamp(3rem,8.2vw,7.5rem);
  --fs-h1:clamp(2.35rem,5vw,4.5rem);
  --fs-h2:clamp(1.9rem,3.7vw,3.15rem);
  --fs-h3:clamp(1.3rem,1.9vw,1.7rem);
  --fs-lead:clamp(1.1rem,1.45vw,1.35rem);
  --fs-h4:1.15rem;         /* card and cert headings, the footer mark      */
  --fs-body:1.0625rem;
  --fs-sm:.9375rem;
  --fs-xs:.8125rem;
  /* 12px, not 11: these are uppercase mono labels — captions, tags, form
     labels, breadcrumbs — and at 11px they read small on a phone. */
  --fs-label:.75rem;

  /* Sizes that belong to one component each. Named rather than left loose in
     the rule, so the whole ramp is visible in one place: 21 hard-coded sizes
     were scattered through the sheet, several of them near-duplicates. */
  --fs-caption:clamp(.95rem,1.35vw,1.15rem);   /* hero caption, marquee        */
  --fs-stat:clamp(2.1rem,4.2vw,3.6rem);        /* the big figures              */
  --fs-step:clamp(1.6rem,2.6vw,2.4rem);        /* numbered stage markers       */
  --fs-quote:clamp(1.4rem,2.9vw,2.5rem);
  --fs-menu:clamp(1.55rem,6.4vw,2.15rem);      /* phone drawer items           */
  --fs-wordmark:clamp(3rem,15.5vw,15rem);      /* the oversized footer word    */
  /* Hero sizes stay separate: they are measured against the scrim (see README)
     and must not be snapped to a neighbouring step. */
  --fs-hero-sub:clamp(1.3rem,1.6vw,1.6rem);
  --fs-hero-title:clamp(2.25rem,10.6vw,2.9rem);
  --fs-hero-eyebrow:clamp(.74rem,.95vw,.88rem);
  --fs-hero-eyebrow-sm:.78rem;                 /* its phone step   */

  /* Letter-spacing, by role rather than by eye. The stylesheet had grown 14
     positive and 11 negative values; most differences were invisible and the
     rest were accidents. Display type tightens as it grows; uppercase mono
     opens up, and the longer the string the less it needs. */
  --track-mono:.06em;      /* mono, not uppercase: footer, fine print        */
  --track-tight:.08em;     /* long uppercase strings: nav, tag chips         */
  --track-label:.2em;     /* the standard small uppercase label             */
  --track-eyebrow:.18em;   /* section eyebrows and the disciplines line      */
  --track-wide:.24em;      /* the few that are meant to feel spaced out      */
  --track-sm:-.012em;      /* lead paragraphs and caption-sized display type */
  --track-h3:-.02em;       /* h3 and mid-sized display                       */
  --track-h:-.03em;        /* h1-h5                                          */
  --track-display:-.042em; /* the biggest type on the page                   */

  /* Space */
  /* Gaps between siblings, as a ladder. Forty-four gap declarations had
     drifted across twenty-three different values (.35 .4 .5 .55 .6 .7 .75 .85
     .9 1 1.1 1.25 1.4 1.5 1.6 2rem), most differences invisible and none
     deliberate. Everything snaps to the nearest rung. */
  /* Vertical rhythm between blocks of text. Component padding and the optical
     nudges (a tap target padded out then pulled back by the same amount, the
     -1px rule overlaps) are deliberately NOT on this ladder. */
  --space-2:.5rem;
  --space-3:.75rem;
  --space-4:1rem;
  --space-5:1.25rem;
  --space-6:1.5rem;
  --space-7:2rem;
  --space-8:2.5rem;

  --gap-xs:.4rem;
  --gap-sm:.55rem;
  --gap-md:.75rem;
  --gap-lg:1rem;
  --gap-xl:1.5rem;
  --gap-2xl:2rem;

  --gutter:clamp(1.25rem,4vw,5rem);   /* grows to 80px on large screens */
  --section:clamp(3.5rem,6vw,6rem);    /* 56px phone, 96px desktop; 140px left ~260px of bare paper between sections */
  /* ONE content width for the whole page. The nav, hero and footer were capped
     at 1680px but every section between them at 1440px, so on a 1854px screen
     the left edge of the content jumped from 136px to 256px and back as you
     scrolled. 1920 means a standard desktop uses the full width inside the
     gutter; wider screens centre it. Line length is limited separately
     (--max-text and the per-component ch limits), not by this. */
  --max:1920px;
  --max-text:65ch;      /* 68ch measured ~87 characters a line — past comfortable */

  /* Motion */
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --dur-fast:.22s;
  --dur:.5s;
  --dur-slow:.9s;

  --nav-h:76px;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:1.7;
  font-feature-settings:'kern' 1,'liga' 1,'calt' 1;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
body.is-locked{overflow:hidden}

h1,h2,h3,h4,h5{
  font-family:var(--font-display);
  font-weight:400;
  line-height:1.04;
  letter-spacing:var(--track-h);
  margin:0;
  text-wrap:balance;
}
h1{font-size:var(--fs-h1)}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3); line-height:1.2; letter-spacing:var(--track-h3)}
p{margin:0 0 1.15em}
p:last-child{margin-bottom:0}
a{color:inherit; text-decoration:none}
img,picture,svg,video{display:block; max-width:100%}
img{height:auto}
ul,ol{margin:0; padding:0; list-style:none}
button{font:inherit; color:inherit; background:none; border:0; cursor:pointer}
[hidden]{display:none !important}
section[id]{scroll-margin-top:calc(var(--nav-h) + 1rem)}
::selection{background:var(--accent); color:#fff}

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

.skip{
  position:absolute; left:var(--gutter); top:-100px; z-index:200;
  background:var(--ink-900); color:#fff; padding:.75rem 1.25rem;
  font:500 var(--fs-xs)/1 var(--font-label); letter-spacing:var(--track-label); text-transform:uppercase;
  transition:top var(--dur-fast) var(--ease);
}
.skip:focus{top:1rem}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap{
  width:100%; max-width:var(--max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.wrap--wide{max-width:var(--max)}
.section{padding-block:var(--section)}
.section--tight{padding-block:clamp(3rem,5.5vw,5rem)}
.section--dark{background:var(--ink-900); color:var(--paper)}
.section--dark h1,.section--dark h2,.section--dark h3{color:var(--white)}
.section--ink{background:var(--ink-800); color:var(--paper)}
/* Paper sections carry a setting-out grid: the module an engineer pegs out on
   site, at 5% ink so it reads as texture rather than as graph paper. It is
   faded top and bottom so it never meets the neighbouring section on a hard
   line, and it sits behind the content (isolate + z-index) so nothing on the
   page has to clear it. */
.section--paper2{background:var(--paper-2); position:relative; isolation:isolate}
.section--paper2::before{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 120px);
  -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* The setting-out grid is quieter where photographs are. At .045 it reads as
   structure on plain paper, but this section now fills rows with dark pictures
   and the lines kept drawing boxes around the empty column beside them —
   compared at .045, .030, .018 and off, the grid at .030 still competed and
   at .018 it did not. .020 keeps it legible as a grid and lets the pictures
   be the thing you look at. Scoped: the other paper2 sections have no
   photographs to compete with and keep the full strength. */
.section--quietgrid{--grid-line:rgba(13,19,25,.020)}

.grid{display:grid; gap:var(--gutter)}
.g12{grid-template-columns:repeat(12,minmax(0,1fr))}
@media (max-width:900px){ .g12{grid-template-columns:repeat(6,minmax(0,1fr))} }
@media (max-width:600px){ .g12{grid-template-columns:repeat(2,minmax(0,1fr))} }

.rule{height:1px; background:var(--rule); border:0; margin:0}
.section--dark .rule,.section--ink .rule{background:var(--rule-dark)}

/* --------------------------------------------------------------------------
   5. Typography components
   -------------------------------------------------------------------------- */
.eyebrow{
  font:500 var(--fs-label)/1 var(--font-label);
  letter-spacing:var(--track-eyebrow);
  text-transform:uppercase;
  color:var(--ink-400);
  display:flex; align-items:center; gap:var(--gap-md);
  margin:0 0 1.5rem;
}
.eyebrow::before{
  content:''; width:1.75rem; height:1px; background:var(--accent); flex:none;
}
.eyebrow--plain::before{display:none}
.section--dark .eyebrow,.section--ink .eyebrow{color:var(--ink-200)}
/* The paper-safe blue drops below AA on ink; small accent text on a dark
   section uses the brighter one instead (6.88:1). */
.section--dark .num,.section--ink .num,.hero .num,
.section--dark .fig__cap b,.section--ink .fig__cap b,
.section--dark .tlink:hover,.section--ink .tlink:hover,
.section--dark .tlink:focus-visible,.section--ink .tlink:focus-visible{color:var(--accent-bright)}

.lead{
  font-size:var(--fs-lead);
  line-height:1.55;
  color:var(--ink-500);
  letter-spacing:var(--track-sm);
}
.section--dark .lead,.section--ink .lead{color:var(--ink-200)}

.prose{max-width:var(--max-text); color:var(--ink-500)}
/* Headings are margin:0 by default because most sit alone in a column. Where
   copy follows one directly, it needs air — the same complaint as the hero. */
.prose h2{margin-bottom:clamp(1.5rem,2.2vw,2.25rem)}
.prose h3{margin-bottom:var(--space-3)}
.prose a:not([class]){padding-block:.25rem; text-decoration:underline; text-underline-offset:.2em}
.section--dark .prose,.section--ink .prose{color:var(--ink-200)}

.serif{font-family:var(--font-serif); font-style:italic; font-weight:400; letter-spacing:var(--track-sm)}

.mono{font-family:var(--font-label); font-weight:500; letter-spacing:var(--track-mono)}

.num{
  font:500 var(--fs-label)/1 var(--font-label);
  letter-spacing:var(--track-label); color:var(--accent);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn{
  --btn-fg:var(--ink-900); --btn-bd:var(--ink-900); --btn-fill:var(--ink-900); --btn-fill-fg:var(--paper);
  display:inline-flex; align-items:center; gap:var(--gap-md);
  padding:1rem 1.6rem;
  background:transparent; color:var(--btn-fg);
  border:1px solid var(--btn-bd);
  font:500 var(--fs-xs)/1 var(--font-label);
  letter-spacing:var(--track-label); text-transform:uppercase;
  /* One rectangle, one hairline, and a fill that takes its time. */
  transition:background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover,.btn:focus-visible{background:var(--btn-fill); color:var(--btn-fill-fg); border-color:var(--btn-fill)}
.btn .ar{transition:transform .4s var(--ease)}
.btn:hover .ar{transform:translateX(4px)}

.btn--ghost{--btn-bd:var(--rule-strong)}
.btn--light{--btn-fg:#fff; --btn-bd:var(--edge-dark-1); --btn-fill:#fff; --btn-fill-fg:var(--ink-900)}
/* The primary action on a dark ground is solid brand blue at rest, so it leads
   its outline partner rather than differing from it only in border
   brightness; on hover it deepens while the arrow moves. White text on it
   measures 4.75:1, and 8.58:1 on the hover blue. */
.btn--solid-light{--btn-fg:#fff; --btn-bd:var(--blue); --btn-fill:var(--blue-deep); --btn-fill-fg:#fff; background:var(--blue)}
.btn--sm{padding:.7rem 1.1rem; font-size:var(--fs-label)}
/* Ambient sheen — a soft band of light crosses the button every 5 seconds, so
   the primary call to action reads as live on phones too, where hover does not
   exist. Decorative only: it never takes a click, and it stops for anyone who
   asks for reduced motion. The band colour flips on light buttons, where a
   white sheen would be invisible. */


/* Text link with animated rule */
.tlink{
  display:inline-flex; align-items:center; gap:var(--gap-sm);
  font:500 var(--fs-xs)/1 var(--font-label);
  letter-spacing:var(--track-label); text-transform:uppercase;
  padding-bottom:.45rem;
  background-image:linear-gradient(var(--accent),var(--accent));
  background-size:0% 1px; background-position:0 100%; background-repeat:no-repeat;
  transition:background-size var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}
/* Same trick: 20px of ink becomes a 34px target with no layout change. */
.tlink{padding-top:.45rem; margin-top:-.45rem}
.tlink:hover,.tlink:focus-visible{background-size:100% 1px; color:var(--accent)}
.tlink .ar{transition:transform var(--dur) var(--ease)}
.tlink:hover .ar{transform:translateX(4px)}

.ar{width:.85em; height:.85em; flex:none; stroke:currentColor; stroke-width:1.6; fill:none}

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  height:var(--nav-h);
  display:flex; align-items:center;
  transition:background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.nav__inner{
  width:100%; max-width:var(--max); margin-inline:auto; padding-inline:var(--gutter);
  display:flex; align-items:center; gap:var(--gap-2xl);
}
.nav__brand{display:flex; align-items:center; gap:var(--gap-md); margin-right:auto; min-height:44px}
.nav__mark{width:30px; height:30px; flex:none}
.nav__word{
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-body); letter-spacing:var(--track-sm); line-height:1;
  text-transform:uppercase;
}

.nav__links{display:flex; align-items:center; gap:var(--gap-xs)}
.nav__link{
  position:relative; padding:.5rem .85rem;
  font:500 var(--fs-xs)/1 var(--font-label);
  letter-spacing:var(--track-tight); text-transform:uppercase;
  opacity:.78; transition:opacity var(--dur-fast) var(--ease);
}
.nav__link::after{
  content:''; position:absolute; left:.85rem; right:.85rem; bottom:.15rem;
  height:1px; background:currentColor;
  transform:scaleX(0); transform-origin:left;
  transition:transform var(--dur) var(--ease);
}
.nav__link:hover,.nav__link:focus-visible,.nav__link[aria-current="page"]{opacity:1}
.nav__link:hover::after,.nav__link:focus-visible::after,.nav__link[aria-current="page"]::after{transform:scaleX(1)}

/* Direct navigation stays visible until the mobile drawer can open. */
.nav:not([data-nav-ready]){
  background:rgba(247,245,241,.95);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  box-shadow:0 1px 0 var(--rule); color:var(--ink-800);
}
@media (max-width:1000px){
  .nav:not([data-nav-ready]){height:auto; min-height:var(--nav-h)}
  .nav:not([data-nav-ready]) .nav__inner{flex-wrap:wrap; row-gap:var(--gap-xs); padding-block:.6rem}
  .nav:not([data-nav-ready]) .nav__links{display:flex; flex-wrap:wrap}
  .nav:not([data-nav-ready]) .nav__toggle{display:none}
}

/* Over-hero state (transparent, light text) */
.nav--over{color:#fff}
.nav--over .btn--nav{--btn-fg:#fff; --btn-bd:var(--edge-dark-1); --btn-fill:#fff; --btn-fill-fg:var(--ink-900)}

/* Scrolled state */
.nav--stuck{
  background:rgba(247,245,241,.92);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  box-shadow:0 1px 0 var(--rule);
  color:var(--ink-800);
}
.nav--stuck .btn--nav{--btn-fg:var(--ink-900); --btn-bd:var(--ink-900); --btn-fill:var(--ink-900); --btn-fill-fg:var(--paper)}
/* The stuck bar's hairline is a 1px shadow below its box, so moving the box
   up by its own height left the line on screen: drop it with the bar. */
.nav--hidden{transform:translateY(-100%); box-shadow:none}

/* With the drawer open the bar sits on the dark panel: keep it legible and
   never let the scrolled (light) treatment win. */
.nav.is-open{
  color:#fff;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  transform:none;
}
.nav.is-open .btn--nav{--btn-fg:#fff; --btn-bd:var(--edge-dark-1); --btn-fill:#fff; --btn-fill-fg:var(--ink-900)}
.nav{transition:transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease)}

.nav__toggle{
  display:none; width:44px; height:44px; margin-right:-10px;
  align-items:center; justify-content:center;
}
.nav__toggle span{
  display:block; width:20px; height:1.5px; background:currentColor; position:relative;
  transition:background var(--dur-fast) var(--ease);
}
.nav__toggle span::before,.nav__toggle span::after{
  content:''; position:absolute; left:0; width:20px; height:1.5px; background:currentColor;
  transition:transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav__toggle span::before{top:-6px}
.nav__toggle span::after{top:6px}
.nav.is-open .nav__toggle span{background:transparent}
.nav.is-open .nav__toggle span::before{top:0; transform:rotate(45deg)}
.nav.is-open .nav__toggle span::after{top:0; transform:rotate(-45deg)}

/* Mobile drawer. Built like the rest of the site rather than as a plain stack
   of links: a mono label with the accent tick, a numbered index on hairline
   rules, then the call to action and the contact details anchored to the
   bottom. The current page is marked — build.py stamps aria-current onto every
   link carrying a matching data-nav, the menu included. */
.menu{
  position:fixed; inset:0; z-index:99;
  background:var(--ink-900); color:#fff;
  display:flex; flex-direction:column;
  padding:calc(var(--nav-h) + 1.5rem) var(--gutter) max(1.75rem,env(safe-area-inset-bottom));
  clip-path:inset(0 0 100% 0);
  transition:clip-path .7s var(--ease);
  visibility:hidden;
  overflow-y:auto; overscroll-behavior:contain;
}
.menu.is-open{clip-path:inset(0 0 0 0); visibility:visible}
.menu__label{
  display:flex; align-items:center; gap:var(--gap-md); margin:0 0 1.15rem;
  font:500 var(--fs-xs)/1 var(--font-label);
  letter-spacing:var(--track-eyebrow); text-transform:uppercase;
  color:var(--on-dark-3);
}
.menu__label::before{content:''; flex:none; width:1.6rem; height:1px; background:var(--accent-flare)}
.menu__list{display:flex; flex-direction:column}
.menu__list li{border-top:1px solid var(--rule-dark)}
.menu__list li:last-child{border-bottom:1px solid var(--rule-dark)}
.menu__list a{
  display:grid; grid-template-columns:2.9rem 1fr; align-items:baseline;
  padding:.5em 0;
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-menu); letter-spacing:var(--track-h); line-height:1.25;
  opacity:0; transform:translateY(14px);
  transition:opacity .5s var(--ease), transform .5s var(--ease), color var(--dur-fast) var(--ease);
}
.menu__n{
  font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-label);
  color:var(--on-dark-4);
  transition:color var(--dur-fast) var(--ease);
}
.menu__list a[aria-current="page"] .menu__n{color:var(--accent-flare)}
.menu__list a:hover,.menu__list a:focus-visible{color:var(--accent-bright)}
.menu__list a:hover .menu__n,.menu__list a:focus-visible .menu__n{color:var(--accent-flare)}
.menu.is-open .menu__list a{opacity:1; transform:none}
.menu.is-open .menu__list li:nth-child(1) a{transition-delay:.14s}
.menu.is-open .menu__list li:nth-child(2) a{transition-delay:.20s}
.menu.is-open .menu__list li:nth-child(3) a{transition-delay:.26s}
.menu.is-open .menu__list li:nth-child(4) a{transition-delay:.32s}
.menu.is-open .menu__list li:nth-child(5) a{transition-delay:.38s}
.menu__bottom{
  margin-top:auto; padding-top:2.25rem;
  display:grid; gap:var(--gap-xl);
  opacity:0; transform:translateY(14px);
  transition:opacity .5s var(--ease) .44s, transform .5s var(--ease) .44s;
}
.menu.is-open .menu__bottom{opacity:1; transform:none}
.menu__cta{margin:0; justify-content:space-between}
.menu__foot{
  display:grid; gap:var(--gap-xs);
  font:500 var(--fs-xs)/1.7 var(--font-label); letter-spacing:var(--track-mono);
  color:var(--on-dark-3);
}
.menu__foot .menu__label{margin-bottom:var(--space-3)}
.menu__foot a{color:var(--on-dark-1)}
.menu__foot a:hover{color:#fff}
.menu__addr{color:var(--on-dark-3)}

@media (max-width:1000px){
  .nav__links,.nav .btn--nav{display:none}
  .nav__toggle{display:flex}
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero{
  position:relative;
  min-height:100svh;
  min-height:100vh;
  display:flex; flex-direction:column; justify-content:space-between;
  background:var(--ink-900);
  overflow:hidden;
  /* Focus during the entrance animation must not scroll the clipped photos
     and caption sideways inside their own hero container. */
  overflow:clip;
  color:#fff;
}
.hero__media{position:absolute; inset:0}
.hero__slide{
  position:absolute; inset:0;
  opacity:0;
  transition:opacity 1.2s var(--ease-io);
}
.hero__slide.is-active{opacity:1}
.hero__slide img{
  width:100%; height:100%; object-fit:cover;
  /* Desktop crops a near-square photo top and bottom; --pos-y (per slide)
     picks the band, and --pos-x anchors a widened photo (see README) so its
     real frame stays whole. Phones override this with --pos below. */
  object-position:var(--pos-x,50%) var(--pos-y,50%);
  /* The original slow settle: each photo starts 6% enlarged and eases back
     while it is on screen. Restored at the client's request after a no-zoom
     version and an object-position drift were both tried and rejected. */
  transform:scale(1.06);
  transition:none;
}
.hero__slide.is-active img{animation:heroSettle 9s linear forwards}
@keyframes heroSettle{from{transform:scale(1.06)}to{transform:scale(1)}}
html:not(.js) .hero__slide img{animation:none; transform:none}
/* A slide may carry a video over its poster picture. The poster is a normal
   responsive <picture>, so something correct is on screen before a single
   byte of video is fetched; the clip fades in once it can actually play. */
.hero__video{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  opacity:0;
  transition:opacity .9s var(--ease);
}
.hero__video.is-playing{opacity:1}
/* Once the clip has faded fully in (.9s), the poster under it is hidden, so
   nothing can show through where the clip dissolves into the ink on phones. */
.hero__slide.is-clip img{visibility:hidden; transition:visibility 0s .9s}
/* Slide one is a bright daylight aerial. The original scrim was tuned for the
   dark slides and let the copy fall to 2:1 against it — the disciplines line
   measured 1.04:1, i.e. invisible. Deepened through the band the type occupies
   while leaving the right-hand side open so the photograph still reads. */
/* Registered so the per-slide overlay strength eases with the 1.2s crossfade
   instead of jumping. Browsers without @property simply switch instantly. */
@property --scrim-k{syntax:'<number>'; inherits:true; initial-value:1}
@property --head-shade{syntax:'<number>'; inherits:true; initial-value:.6}
.hero{--scrim-k:1}
.hero.is-ready{transition:--scrim-k 1.2s var(--ease-io), --head-shade 1.2s var(--ease-io)}
.hero__scrim{
  position:absolute; inset:0; pointer-events:none;
  background:
    /* Every stop is multiplied by --scrim-k, which main.js sets per slide from
       data-scrim — currently 1.0 / .84 / 1.1 / 1.1 / .70 / 1.15, each measured
       against its own photograph rather than guessed.
       This governs the desktop hero only. Below 900px the rule further down
       replaces this background entirely and takes its strength from
       --head-shade (data-shade), so changing data-scrim does nothing on a
       phone — a trap that cost a round of tuning once already.
       Measured with _dev/contrast.sh over all six slides and the paused video
       frame: worst margin 1.11x at 1440 and 1.28x at 1920, where 1.00 is
       exactly the WCAG limit. Re-run that before lightening anything. */
    /* The headline runs to about 60% of the width, so the horizontal pass has
       to reach that far — a version that released it at 42% dropped the worst
       margin to 0.66x. What can be lightened is the band above the eyebrow,
       which is pure sky on every slide and where the overlay was laying its
       most visible haze. .47 -> .36: at .30 the sky was better still, but the
       headline sits high enough to be in that band and its margin fell to
       1.08x, which is too close to the line to spend on sky. */
    linear-gradient(to top, rgba(7,11,16,calc(.69 * var(--scrim-k))) 0%, rgba(7,11,16,calc(.45 * var(--scrim-k))) 32%, rgba(7,11,16,calc(.30 * var(--scrim-k))) 62%, rgba(7,11,16,calc(.36 * var(--scrim-k))) 100%),
    linear-gradient(to right, rgba(7,11,16,calc(.54 * var(--scrim-k))) 0%, rgba(7,11,16,calc(.26 * var(--scrim-k))) 55%, rgba(7,11,16,calc(.06 * var(--scrim-k))) 100%);
}
/* On a phone the hero copy runs the full width, so the horizontal pass of the
   scrim (which carries most of the contrast on desktop, where the type sits in
   the left third) barely helps. Against a bright slide — the campus aerial —
   the headline measured 1.75:1 and the sub-paragraph 2.14:1 against white.
   Deepen the vertical pass through the band the copy occupies. */

.hero__grain{
  position:absolute; inset:0; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Disciplines — the three services, cycling one at a time so the line reads
   as a statement rather than a label. Scale is animated (not font-size) so a
   growing word never reflows its neighbours, and the turn order comes from an
   --i on each element rather than nth-child, which the "+" separators would
   otherwise throw off. */
.disciplines{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:.6rem clamp(1.15rem,2.3vw,2rem);
  margin:0 0 1.75rem;
  font:500 var(--fs-hero-eyebrow)/1 var(--font-mono);
  letter-spacing:var(--track-eyebrow); text-transform:uppercase;
}
.disciplines__w{
  /* .46 composited to a mid grey that measured 3.07:1 against the bright
     daylight slide — below AA for text this size. .70 clears 4.5:1 and the
     flaring word still reads as the accent because it also changes hue,
     scales up and gains a glow. */
  --idle:var(--on-dark-2);
  display:inline-block;
  transform-origin:center;
  color:var(--idle);
  will-change:transform,color;
}
/* Construction is the primary trade, so it stays louder than the rest even
   when another word is having its turn. */
.disciplines__w--lead{
  --idle:var(--on-dark-1);
  font-size:1.22em;
  letter-spacing:var(--track-wide);
}
.disciplines__sep{color:var(--edge-dark-2)}
/* White, not the accent colour — no tint of the old orange reached 4.5:1 over
   the bright skies. Only the row that reduced-motion visitors see. */
.hero .disciplines__w{--accent-flare:#fff}

/* All four words only fit on one line above ~820px. Below that the "+"
   separators get orphaned at the end of a line — and around 360px a line even
   opens with one — which reads as a broken list rather than a considered one.
   They are decorative (aria-hidden), so drop them and let a wider word gap do
   the separating; the gap has to clear the .17em tracking to stay legible. */
@media (max-width:820px){
  .disciplines{gap:var(--gap-sm) var(--gap-xl)}
  .disciplines__sep{display:none}
}

/* Four words now, 2s each — an 8s loop. --idle is read off the element so the
   lead word falls back to its own brighter resting state, not the dim one. */

.hero__inner{
  position:relative; z-index:2;
  width:100%; max-width:var(--max); margin-inline:auto;
  padding:calc(var(--nav-h) + 3rem) var(--gutter) 0;
  margin-block:auto;
}
.hero__title{
  font-family:var(--font-hero);
  font-size:var(--fs-display);
  font-weight:800;
  letter-spacing:var(--track-display);
  line-height:.98;
  max-width:15ch;
  /* Proportional, not fixed: at 1920 the headline is 120px tall, and a 44px
     gap under it read as cramped. Phones and tablets keep their own values. */
  margin:0 0 clamp(2.75rem,3vw,4.5rem);
}
.hero__title .serif{
  font-family:var(--font-display);
  font-weight:400; letter-spacing:var(--track-h3);
  padding-right:.06em;
}
/* The standfirst is the UPRIGHT cut of the same serif as "dreams". Set in the
   body sans it read as undesigned; set in the italic it competed with the
   headline. Upright gives it a voice of its own while the italic stays a
   one-word accent. One continuous size ramp so it never jumps at a
   breakpoint. */
.hero__sub{
  max-width:40ch;
  font-family:var(--font-serif); font-style:normal; font-weight:400;
  font-size:var(--fs-hero-sub);
  line-height:1.45; letter-spacing:.002em;
  color:#fff;
  /* No bottom margin here: the global p:last-child{margin-bottom:0} outranks a
     class selector, and this paragraph is the last child of .hero__head, so any
     value set here is silently dropped. The gap to the buttons lives on
     .hero__actions instead — which is how the phone rule already did it. */
  margin:0;
}
.hero__actions{
  display:flex; flex-wrap:wrap; gap:var(--gap-md);
  margin-top:clamp(2.25rem,3.2vw,4.25rem);   /* air under the standfirst */
}

/* Short desktop screens. On a 1366x768 laptop the hero is 768px tall and the
   generous rhythm above put the buttons exactly on the caption band (0px
   clearance). Height, not width, is what is scarce there, so the spacing is
   tightened by viewport height rather than by breakpoint. */
@media (min-width:901px) and (max-height:850px){
  .hero__inner{padding-top:calc(var(--nav-h) + 1.25rem)}
  .hero__title{margin-bottom:2.25rem}
  .hero__actions{margin-top:2.5rem}
}

/* word-by-word reveal */
.reveal-line{display:block; overflow:hidden}
.reveal-line > span{
  display:block;
  transform:translateY(105%);
  animation:riseIn 1s var(--ease) forwards;
}
.reveal-line:nth-child(1) > span{animation-delay:.15s}
.reveal-line:nth-child(2) > span{animation-delay:.28s}
.reveal-line:nth-child(3) > span{animation-delay:.41s}
@keyframes riseIn{to{transform:translateY(0)}}

.hero__fadeup{opacity:0; transform:translateY(20px); animation:fadeUp .9s var(--ease) forwards}
.hero__eyebrow{animation-delay:.05s}
.hero__sub{animation-delay:.55s}
.hero__actions{animation-delay:.68s}
.hero__bar{animation-delay:.8s}
@keyframes fadeUp{to{opacity:1; transform:none}}

/* The phone hero is full-bleed, like the desktop one — the photograph sits
   behind everything rather than sitting in a band above the copy. A tall box
   on a wide photo only ever shows a vertical slice, so each slide names the
   slice worth showing (--pos, set per slide in the markup) and the scrim
   carries the contrast. Placed after the rules above deliberately: this block
   redefines the hero for phones and must outrank them at equal specificity. */
@media (max-width:900px){
  .hero__slide img,.hero__video{object-position:var(--pos,50%) center}
  /* Same structure as phones: the photograph fills everything above a solid
     caption band, rather than stopping at 64% of the screen and leaving a dead
     strip between the buttons and the band once the copy moved up. The column
     is pinned to the screen — left to size itself it stopped at the caption's
     natural width (467px) and the shade, grain and band ended short of the
     right edge while the photo ran on. */
  .hero{display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:1fr auto; min-height:100svh; --pan-h:100%}
  .hero__media,.hero__scrim,.hero__grain{position:relative; inset:auto; grid-row:1; grid-column:1}
  .hero__bar{grid-row:2; grid-column:1; background:var(--ink-900); margin:0}
  /* A full-height photograph is a wider one, so it travels a shorter share of
     the sweep: 25-67px/s across 601-900px, the band approved on phones. */
  .hero__slide{--pan-span:.7}
  .hero__slide img,.hero__video{
    -webkit-mask-image:linear-gradient(to bottom,#000 86%,transparent);
            mask-image:linear-gradient(to bottom,#000 86%,transparent);
  }
  /* Reduced-motion visitors keep the plain four-word row; the swap treatment
     below sets its own colour. White, not the accent colour — no tint of the
     old orange reached 4.5:1 over the bright skies. */
  .hero .disciplines__w{--accent-flare:#fff}
  /* The copy sits high, under the navigation, instead of sinking to the
     bottom: at 600-900px the bottom-anchored block left a large empty middle
     and pushed the writeup right down the screen. */
  .hero__inner{grid-row:1; grid-column:1; align-self:start; margin:0; padding-top:calc(var(--nav-h) + 8svh)}
  /* One gradient over the whole photograph rather than a band that stops under
     the copy: it deepens under the navigation, holds --head-shade through the
     copy, then eases off low down, so there is no edge where it ends. Anchored
     in px from the top, which is safe because the copy is kept high — on phones
     it is centred in a photo area capped at 760px, so it starts 114-177px down
     and ends by 523px; tablets start it lower. Full strength is reached at
     105px so the eyebrow on a 360x640 phone sits inside it, and the hold runs
     to 600px. Modelled over five slides, the video frames,
     nine phone and tablet sizes and the whole pan: worst 5.54:1 where 4.5 is
     needed. */
  .hero__scrim{
    background:linear-gradient(to bottom,
      rgba(7,11,16,.50) 0,
      rgba(7,11,16,.34) 72px,
      rgba(7,11,16,var(--head-shade)) 105px,
      rgba(7,11,16,var(--head-shade)) 600px,
      rgba(7,11,16,.40) 100%);
  }
  /* The phone strength comes from each slide's data-shade, with .60 as the
     fallback for a slide that does not carry one. The slides currently run
     campus .56, teaching hospital .56, Enugu .60, Port Harcourt .52, IPP .54,
     terraces .60. Enugu needs its .60 because the one-word eyebrow sat at
     4.87:1 under .56; the buttons are outlined rather than filled, so the
     photograph shows through behind their labels and is what binds on the
     brighter frames. Worst phone margin across all six: 1.18x. */
  .hero{--head-shade:.60}
  .hero__title,.hero__sub,.hero .disciplines{
    text-shadow:0 1px 2px rgba(7,11,16,.55), 0 2px 18px rgba(7,11,16,.8);
  }
  .hero__scroll{display:none}

  /* Typography for the phone hero. The categories are a label, not a second
     headline — they were set 1.22em and near-white, which put them in
     competition with the line underneath. The paragraph drops to 16px so it
     reads as supporting copy rather than a second statement, and the caption
     block gets room to breathe instead of stacking tight. */
  .hero .disciplines{font-size:var(--fs-hero-eyebrow-sm); letter-spacing:var(--track-eyebrow)}
  .hero .disciplines__w{transform-origin:left center}
  .hero .disciplines__w--lead{font-size:1em; letter-spacing:var(--track-eyebrow); --idle:var(--on-dark-1)}
  .hero__sub{max-width:38ch}
  /* Tablets have height to spare, so the blocks are set further apart than on
     a phone: the eyebrow, the headline, the standfirst and the buttons each
     get room rather than stacking tight. Phones keep the closer rhythm (the
     <=600 block overrides these). */
  @media (min-width:601px){
    .hero .disciplines{margin-bottom:1.9rem}
    .hero__title{margin:0 0 3.4rem}
    .hero__actions{gap:var(--gap-lg); margin-top:3rem}
  }
  .hero__caption .num{margin-bottom:.75rem}
  .hero__caption p{font-size:var(--fs-caption)}
  .hero__caption small{margin-top:.55rem; line-height:1.6}
  .hero__bar{gap:var(--gap-xl)}
}

/* Phones: pan instead of crop. A wide photograph on a tall screen can only
   ever show a vertical strip of itself — 25-35% of the width — so rather than
   choose one strip, each still slide travels from its left edge to its right
   edge while it is on screen, and the whole building passes through the frame.
   The image is laid out at its natural width (height fills the screen, the
   rest overflows and is clipped by the hero) and moved with a transform, which
   the compositor handles without repainting. The pan borrows --slide-dur,
   which the slider sets each time a slide activates, so it always lasts exactly
   as long as the slide. Between showings a slide rests at its far edge: that
   is where the pan ends, so nothing jumps while it fades out, and the next pan
   starts from keyframe 0 regardless. Video slides are left alone — the footage
   has its own camera movement. Reduced motion, landscape phones and anything
   wider than 900px keep the static crop and per-slide focal point instead. */
@media (max-width:900px) and (orientation:portrait) and (prefers-reduced-motion:no-preference){
  /* --pan-h is set to 100% for everything up to 900px in the block above: the
     photograph runs the full height down to the caption band. It used to be
     64% here, and because this block comes later in the file that value won
     over the newer one and shrank the picture on phones too. The pan is kept
     slow by --pan-span (.7) instead. */
  /* How much of its width a slide travels, as a share of the full edge-to-edge
     sweep, centred on the slide's focal point (--f). Full travel here; phones
     use a shorter span (see the phone block) so that a taller photograph doesn't
     make the pan faster than it was approved at. */
  .hero__slide{
    --pan-span:1;
    --pan-a:clamp(0, calc(var(--f, .5) - var(--pan-span) / 2), calc(1 - var(--pan-span)));
    --pan-b:calc(var(--pan-a) + var(--pan-span));
  }
  .hero__slide img{
    width:auto; min-width:100%; max-width:none; height:var(--pan-h);
    object-fit:cover;
    transform:translateX(calc((-100% + 100vw) * var(--pan-b)));
    transition:none;
  }
  .hero__slide.is-active img{
    /* near-linear with soft ends, so the middle of the pan isn't a sprint */
    animation:heroPan var(--slide-dur,6s) cubic-bezier(.3,.15,.7,.85) both;
    will-change:transform;
  }
  /* ...except a video slide's poster (main.js marks it has-video). It used to
     pan too, and showed through the clip's faded lower edge as a second,
     differently-moving picture. It now holds still, framed exactly like the
     clip above it, so the handover from picture to footage is seamless. */
  .hero__slide.has-video img,.hero__slide.has-video.is-active img{
    width:100%; min-width:0; transform:none; animation:none; will-change:auto;
  }
  /* The video slide doesn't pan (the footage has its own camera movement),
     but it takes the same height as the stills. The fade comes from the block
     above, so the clip and the photographs dissolve at the same point. */
  .hero__video{bottom:auto; height:var(--pan-h)}
}
@keyframes heroPan{
  from{transform:translateX(calc((-100% + 100vw) * var(--pan-a)))}
  to  {transform:translateX(calc((-100% + 100vw) * var(--pan-b)))}
}

/* Hero bottom bar */
.hero__bar{
  position:relative; z-index:2;
  width:100%; max-width:var(--max); margin-inline:auto;
  padding:2.5rem var(--gutter) clamp(1.75rem,3vw,2.5rem);
  display:flex; align-items:flex-end; gap:var(--gap-2xl); flex-wrap:wrap;
}
/* Below 901px the bar is a solid ink band. Above it, the caption sits on the
   photograph, so it carries its own soft footing: the slide scrim is tuned for
   the headline higher up, and a bright photograph could leave this line thin.
   It fades upward, and the hero's overflow clips it to the full width. */
@media (min-width:901px){
  .hero__bar::before{
    content:''; position:absolute; inset:-3rem -100vw 0; z-index:-1; pointer-events:none;
    background:linear-gradient(to top, rgba(7,11,16,.62) 0%, rgba(7,11,16,.34) 55%, rgba(7,11,16,0) 100%);
  }
}
.hero__caption{flex:1 1 22rem; min-width:0}
.hero__caption .num{color:var(--accent-bright); display:block; margin-bottom:.6rem}
.hero__caption p{
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-caption); letter-spacing:var(--track-sm);
  line-height:1.3; color:var(--on-dark-1); margin:0;
}
/* Desktop: the project on screen is the bar's headline, not a footnote. At
   the shared caption size (18px at 1440) it read smaller than the labels
   around it; phones and tablets keep their own sizes further down. */
@media (min-width:901px){ .hero__caption p{font-size:clamp(1.25rem,1.55vw,1.6rem); line-height:1.2} }
.hero__caption small{
  display:block; margin-top:.3rem;
  font:500 var(--fs-label)/1.5 var(--font-label);
  letter-spacing:var(--track-label); text-transform:uppercase; color:var(--on-dark-2);
}
.hero__nav{display:flex; align-items:center; gap:var(--gap-lg)}
.hero__count{font-variant-numeric:tabular-nums; 
  font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-label);
  color:var(--on-dark-3);
  white-space:nowrap;
}
.hero__count b{color:#fff; font-weight:500}
.hero__arrows{display:flex; gap:var(--gap-sm)}
.hero__arrow{
  width:46px; height:46px; border:1px solid var(--edge-dark-2);
  display:grid; place-items:center; color:#fff;
  transition:background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.hero__arrow:hover{background:var(--rule-dark); border-color:var(--on-dark-3)}
.hero__arrow svg{width:14px; height:14px; stroke:currentColor; stroke-width:1.6; fill:none}
.hero__dots{display:flex; gap:var(--gap-xs); align-items:center}
.hero__dot{
  width:34px; height:44px; padding:0; position:relative;
  transition:background var(--dur-fast) var(--ease);
}
.hero__dot::before{content:''; position:absolute; inset:calc(50% - 1.5px) 0 auto; height:3px; background:var(--on-dark-4)}
.hero__dot:hover::before{background:var(--on-dark-2)}
.hero__dot i{
  position:absolute; inset:calc(50% - 1.5px) 0 auto; height:3px; background:#fff; transform:scaleX(0); transform-origin:left;
}
.hero__arrow:focus-visible,.hero__dot:focus-visible{outline-color:var(--accent-flare)}
html:not(.js) .hero__nav{display:none}
.hero__dot.is-active i{animation:dotFill var(--slide-dur,6s) linear forwards}
@keyframes dotFill{to{transform:scaleX(1)}}
/* Stopped (keyboard focus on the controls, or reduced motion): the progress bar,
   the phone pan and the eyebrow words hold where they are and resume from
   there. Qualified past .hero .disciplines .disciplines__w, which comes later. */
.hero.is-paused .hero__dot.is-active i,
.hero.is-paused .hero__slide.is-active img,
.hero.is-paused .disciplines .disciplines__w{animation-play-state:paused}
.hero__more{
  display:none; align-items:center; gap:var(--gap-sm); margin-top:var(--space-3); min-height:44px;
  font:500 var(--fs-xs)/1 var(--font-label); letter-spacing:var(--track-label); text-transform:uppercase;
  color:#fff; text-decoration:underline; text-decoration-color:var(--edge-dark-1);
  text-underline-offset:.45em; text-decoration-thickness:1px;
}
.hero__more:hover,.hero__more:focus-visible{text-decoration-color:#fff}
/* The slide on screen is a project, so it is reachable at every width. Above
   the phone layout the link sits beside the caption's meta line rather than
   under it: a new row would make the bar taller and push the hero past the
   fold on a short laptop, which the rhythm block below is there to prevent. */
@media (min-width:601px){
  /* Column one is sized to the meta line, so the link sits right after it
     rather than floating out in the middle of the bar. */
  .hero__caption{display:grid; grid-template-columns:minmax(0,max-content) auto; align-items:end; column-gap:var(--gap-xl)}
  .hero__caption .num,.hero__caption p{grid-column:1/-1}
  .hero__caption small{grid-column:1}
  .hero__more{
    display:inline-flex; grid-column:2; margin-top:0; min-height:44px; margin-bottom:-.8rem;
    white-space:nowrap; align-self:end; justify-self:start;
  }
}

/* A fourth slide makes the dot rail + count + two 46px arrow buttons wider
   than a narrow phone's content area, and the arrow strip was clipping off
   the right edge (body has overflow-x:hidden, so it clipped silently instead
   of scrolling). This block must come AFTER the base .hero__dot/.hero__nav
   rules above: an earlier copy at equal specificity was being overridden by
   them regardless of viewport width, since a plain rule beats a media-query
   rule later in the same file when specificity ties. */
@media (max-width:560px){
  .hero__dot{width:18px}
  .hero__nav{gap:var(--gap-sm)}
  .hero__arrows{gap:var(--gap-xs)}
  .hero__arrow{width:44px; height:44px}
}

/* Phone first screen. The photograph runs from the top of the screen down to
   the caption, and the caption band at the foot — the project on screen, its
   link and the arrows — is the one solid dark area. Eyebrow, headline and
   paragraph sit together a little below the nav, on a soft shade that belongs
   to the text block itself: sized to that block and feathered above and below
   it, so it follows the copy on every screen size and leaves the rest of the
   picture untouched. The hero buttons stay off the photo on phones: the caption
   carries "View project" for the slide on screen, and "Start a project" is a
   full-width button at the foot of the caption band (and in the menu). */
@media (max-width:600px){
  /* Space was piling up under the buttons on tall phones: 64px on an SE, 278px
     on a 15 Pro Max, because the copy was pinned near the top and every extra
     pixel of screen went below it. Now the copy is centred in the photo area
     (clearing the nav), so the leftover space splits evenly above and below,
     and the hero stops growing at 760px — on taller phones the next section
     starts to show, which also says there is more to scroll. */
  .hero{min-height:min(100svh,760px)}
  .hero__inner{align-self:center; padding-top:var(--nav-h)}
  .hero .disciplines{margin-bottom:1rem}
  .hero__title{
    font-size:var(--fs-hero-title); line-height:1; letter-spacing:var(--track-display);
    max-width:none; margin:0;
  }
  /* "We translate / dreams / into reality." — a designed break on every phone */
  .hero__title em{display:block}
  .hero__sub{margin:2rem 0 0; max-width:36ch}
  .hero__sub-more{display:none}
  /* "Start a project" sits directly under the writeup. "View our work" is
     dropped here: the caption band already links the project on screen, and
     the menu carries the rest. */
  .hero__actions{display:flex; margin-top:1.35rem}
  .hero__actions .btn--solid-light{display:none}
  /* ...which leaves "Start a project" as the only action, so it takes the
     primary, solid treatment. */
  .hero__actions .btn--light{--btn-fg:#fff; --btn-bd:var(--blue); --btn-fill:var(--blue-deep); --btn-fill-fg:#fff; background:var(--blue)}
  .hero__scroll{display:none}
  /* The caption band. "03 / Residential" already says where you are, so the
     dots and "03 / 05" counter go, and the arrows share the "View project" line. */
  .hero__bar{
    display:grid; grid-template-columns:1fr auto; gap:0 var(--gap-lg); align-items:end;
    padding-top:1.2rem; padding-bottom:1.1rem;
  }
  .hero__caption{grid-column:1; grid-row:1; min-width:0}
  .hero__nav{grid-column:2; grid-row:1; align-self:end}
  .hero__dots,.hero__count{display:none}
  .hero__more{display:inline-flex; margin-top:.45rem}
  /* Full-width project captions, then the link and three usable controls. */
  .hero__bar{gap:0 .5rem}
  .hero__caption{display:contents}
  .hero__caption .num,.hero__caption p,.hero__caption small{grid-column:1/-1}
  .hero__caption p{font-size:1.2rem}
  .hero__more{grid-column:1; grid-row:4; font-size:.6875rem; letter-spacing:.12em; gap:.35rem}
  .hero__nav{grid-column:2; grid-row:4}
}
/* Short phones. The upright serif standfirst is taller than the sans it
   replaced, and on a 360x640 screen that left the buttons 8px from the caption
   band. Same treatment as short laptops: tighten by viewport height, not by
   width, so ordinary phones keep the roomier rhythm. */
@media (max-width:600px) and (max-height:700px){
  .hero__sub{margin-top:1.5rem}
  .hero__actions{margin-top:1rem}
}

/* Hero eyebrow, every width: the four disciplines take turns in one place
   instead of sharing a line — which stranded "REAL ESTATE" on a line of its
   own and let the enlarged first word, growing from its centre, poke past the
   left margin. The brand accent lives in the short rule; the word itself is
   white. Orange at this size was modelled at every tint down to a pale peach
   and none reached 4.5:1 over the bright skies — it would need a near-black
   band behind it, the heavy shade this layout exists to avoid. Visitors who
   prefer reduced motion keep the plain list. */

/* On desktop the four words used to stretch most of the way across the photo,
   so wherever the picture was bright some word sat over it — that is what held
   the overlay dark. As a single word at the left it sits where the overlay is
   deepest, which is what lets the photograph show at nearly twice the
   brightness. Desktop keeps a roomier gap under it than phones. */

/* Each word owns exactly a quarter of the 8s cycle. The outgoing word has
   gone (24%) before the next one begins (its 0% falls at 25% of this word's
   timeline, and it waits until 1% to appear), so two words never share the
   line mid-swap — an earlier version overlapped them for a frame or two. */

/* Safety net only — everything above comfortably fits down to ~350px of
   content width (measured: dots+count+arrows ≈ 278px). Below it (very old or
   unusually narrow phones, ~320px viewports) drop the slide count first since
   the dots already carry that information. */
@media (max-width:340px){
  .hero__count{display:none}
}

/* Hero eyebrow, every width: the four disciplines take turns in one place
   instead of sharing a line — which stranded "REAL ESTATE" on a line of its
   own and let the enlarged first word, growing from its centre, poke past the
   left margin. The brand accent lives in the short rule; the word itself is
   white. Orange at this size was modelled at every tint down to a pale peach
   and none reached 4.5:1 over the bright skies — it would need a near-black
   band behind it, the heavy shade this layout exists to avoid. Visitors who
   prefer reduced motion keep the plain list. */
@media (prefers-reduced-motion:no-preference){
  .hero .disciplines{
    display:grid; justify-items:start; position:relative;
    padding-left:2.1rem; margin-bottom:var(--space-4);
  }
  .hero .disciplines::before{
    content:''; position:absolute; left:0; top:50%; width:1.35rem; height:1px;
    background:var(--accent-flare);
  }
  .hero .disciplines__sep{display:none}
  .hero .disciplines .disciplines__w{
    grid-area:1/1; opacity:0; color:#fff; text-shadow:0 1px 2px rgba(7,11,16,.5);
    transform-origin:left center;
    animation:disciplineSwap 8s var(--ease-io) infinite;
    animation-delay:calc(var(--i) * 2s);
  }
  /* Rotating in one spot, a larger first word would read as a glitch. */
  .hero .disciplines__w--lead{font-size:1em; letter-spacing:inherit}
}
/* On desktop the four words used to stretch most of the way across the photo,
   so wherever the picture was bright some word sat over it — that is what held
   the overlay dark. As a single word at the left it sits where the overlay is
   deepest, which is what lets the photograph show at nearly twice the
   brightness. Desktop keeps a roomier gap under it than phones. */
@media (min-width:901px) and (prefers-reduced-motion:no-preference){
  .hero .disciplines{margin-bottom:1.75rem}
}
/* Each word owns exactly a quarter of the 8s cycle. The outgoing word has
   gone (24%) before the next one begins (its 0% falls at 25% of this word's
   timeline, and it waits until 1% to appear), so two words never share the
   line mid-swap — an earlier version overlapped them for a frame or two. */
@keyframes disciplineSwap{
  0%,1% {opacity:0; transform:translateY(.45em)}
  5%    {opacity:1; transform:none}
  21%   {opacity:1; transform:none}
  24%   {opacity:0; transform:translateY(-.45em)}
  100%  {opacity:0; transform:translateY(-.45em)}
}

.hero__scroll{
  position:absolute; right:calc(var(--gutter) - .35rem); top:50%; z-index:3;
  transform:translateY(-50%);
  writing-mode:vertical-rl;
  display:flex; align-items:center; gap:var(--gap-lg); min-width:44px;
  font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-wide); text-transform:uppercase;
  color:var(--on-dark-3); white-space:nowrap;
  transition:color var(--dur-fast) var(--ease);
}
.hero__scroll:hover{color:#fff}
.hero__scroll::after{
  content:''; width:1px; height:3.5rem; background:var(--on-dark-4);
}

@media (max-width:1100px){ .hero__scroll{display:none} }

/* --------------------------------------------------------------------------
   9. Marquee (clients)
   -------------------------------------------------------------------------- */
.marquee{
  position:relative;
  padding-block:clamp(1.35rem,2.3vw,2rem);
  border-block:1px solid var(--rule);
  background:var(--paper);
}
/* The edge fade lives on the rail, not the section — masking the section
   would fade the label out along with the logos.

   The fade distance is a FIXED pixel value, not the 8%/92% this used to be.
   The rail runs full-bleed (no .wrap, no gutter), so a percentage fade scales
   with viewport width while the first letter's position does not — it sits
   at the item's own ~14-28px inline padding regardless of screen size. On a
   1440px desktop, 8% is a 115px ramp and the glyph starts near its bottom;
   at 390px, 8% is only 31px and the glyph starts already half-faded, reading
   as a broken character ("AB InBev" looked like " B InBev"). --marquee-fade
   also sets the rail's own inline padding below, so real content never
   starts before the mask has finished ramping to solid. */
.marquee__rail{
  width:100%; max-width:var(--max); margin-inline:auto;
  padding-inline:var(--gutter);
}
/* A client list that sits still. It used to be an endless scrolling strip,
   which is the most template-like device a page like this can carry. */
.marquee__track{display:flex; flex-wrap:wrap; justify-content:center; align-items:center; row-gap:var(--gap-sm); margin-inline:auto}

/* Brushed-ash label with a light travelling across the letters. The gradient
   is clipped to the glyphs of an inline-block span — on the full-width <p> the
   background box would be ~1200px wide and the highlight would never reach the
   short word sitting at its left edge. */
.marquee__label{
  width:100%; max-width:var(--max);
  margin:0 auto clamp(.9rem,1.7vw,1.35rem);
  padding-inline:var(--gutter);
  text-align:center;
}
.marquee__label span{
  display:inline-block;
  font:500 var(--fs-label)/1 var(--font-label);
  letter-spacing:var(--track-wide); text-transform:uppercase;
  color:var(--ink-400);
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .marquee__label span{
    /* Every stop is measured against the paper: the peak sits at 4.50:1, so the
       word stays readable at the brightest moment of the sweep. Two earlier
       attempts at this were still too pale — #A3ADB7 measured 2.09:1 and the
       word dropped out as the light crossed it. */
    background-image:linear-gradient(105deg,
      #4A525A 0%, #4A525A 26%,
      #5A636B 39%, #69727A 50%, #5A636B 61%,
      #4A525A 74%, #4A525A 100%);
    background-size:260% 100%;
    /* repeat-x, not no-repeat: the sweep runs the image from 180% to -80%, and
       at both ends a single, non-repeating image no longer overlapped the word.
       With the text itself transparent, those letters vanished — "Trusted by"
       read as "ted by" for part of every cycle. Both ends of the gradient are
       the same colour, so it tiles without a seam. */
    background-repeat:repeat-x;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }
}

.marquee__group{display:contents}
/* The diamond between names sits in the gap and takes no space of its own,
   centred on the item's right edge. main.js (initLineEnds) marks the last
   name on each line, whose diamond would otherwise end the line pointing at
   nothing; hiding it moves nothing, so the lines stay exactly centred.
   Without the script the list still reads, with a diamond at line ends. */
.marquee__item{
  position:relative;
  padding-inline:clamp(1.8rem,4vw,3.6rem);
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-caption);
  letter-spacing:var(--track-sm); color:var(--ink-500); white-space:nowrap;
}
.marquee__item::after{
  content:''; position:absolute; right:0; top:50%; width:4px; height:4px;
  background:var(--accent); transform:translate(50%,-50%) rotate(45deg);
}
.marquee__item:last-child::after,.marquee__item.is-line-end::after{display:none}
/* A phone holds one name a line: the list reads as a list, not as two names
   that happen to fit beside each other above five that do not. */
@media (max-width:600px){ .marquee__item{flex-basis:100%; text-align:center} }

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */
/* Columns are generated from however many stats the row holds — the home page
   shows three, The Firm shows four — so neither leaves a gap at the end. */
.stats{
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr);
  border-top:1px solid var(--rule);
}
.stat{
  padding:clamp(1.5rem,3vw,2.5rem) clamp(.9rem,2vw,1.75rem) 0 0;
  border-right:1px solid var(--rule);
}
.stat:last-child{border-right:0}
.stat__n{font-variant-numeric:tabular-nums; 
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-stat);
  letter-spacing:var(--track-display); line-height:1;
  display:block; margin-bottom:var(--space-2);
  font-variant-numeric:tabular-nums;
}
.stat__n sub{font-size:.42em; vertical-align:baseline; font-weight:600; letter-spacing:var(--track-h3); color:var(--accent)}
/* The naira sign is not in Instrument Serif, so it is drawn from the fallback
   face with different sidebearings. Under the -.045em display tracking its right stroke
   ran into the first digit. Cancel the tracking on the symbol and give it a
   hair of space of its own. */
.stat__l{
  font:500 var(--fs-label)/1.6 var(--font-label);
  letter-spacing:var(--track-mono);  color:var(--ink-400);
  display:block; max-width:20ch;
}
.section--dark .stat,.section--ink .stat{border-color:var(--rule-dark)}
.section--dark .stats,.section--ink .stats{border-color:var(--rule-dark)}
.section--dark .stat__l,.section--ink .stat__l{color:var(--ink-300)}
@media (max-width:760px){
  .stats{grid-auto-flow:row; grid-template-columns:repeat(2,1fr)}
  .stat{border-bottom:1px solid var(--rule); padding-bottom:1.5rem}
  .stat:nth-child(2n){border-right:0}
  .stat:nth-child(n+3){border-bottom:0}
  /* Three stats in a two-column grid would leave the last one alone beside a
     hole; let it take the full width instead. Four are unaffected. */
  .stat:last-child:nth-child(odd){grid-column:1 / -1; border-right:0}
}

/* --------------------------------------------------------------------------
   11. Figure / media
   -------------------------------------------------------------------------- */
/* The aspect box is the MEDIA, not the <figure>. A <figcaption> is a sibling of
   the <picture>, so a ratio plus overflow:hidden on the figure itself sized the
   whole element to the image and then clipped the caption out of existence. */
.fig{position:relative}
.fig > picture,.fig > img{display:block; width:100%; overflow:hidden; background:var(--paper-3)}
.fig img{width:100%; height:100%; object-fit:cover; object-position:var(--focus,50% 50%)}
.fig--tall > picture,.fig--tall > img{aspect-ratio:3/4}
.fig--sq   > picture,.fig--sq   > img{aspect-ratio:1/1}
.fig--wide > picture,.fig--wide > img{aspect-ratio:16/10}
.fig--pano > picture,.fig--pano > img{aspect-ratio:21/9}
.fig--cine > picture,.fig--cine > img{aspect-ratio:16/9}
.fig__cap{
  margin-top:var(--space-4);
  font:500 var(--fs-label)/1.6 var(--font-label);
  letter-spacing:var(--track-mono);  color:var(--ink-400);
  display:flex; gap:var(--gap-md);
}
.fig__cap b{color:var(--accent); font-weight:500; flex:none}
.section--dark .fig__cap,.section--ink .fig__cap{color:var(--on-dark-2)}
.section--dark .fig__cap b,.section--ink .fig__cap b{color:var(--accent-bright)}
/* A clip layered over its poster inside a figure. The poster is a normal
   responsive <picture>, so the section is complete before a byte of video is
   fetched; main.js starts the clip when it scrolls into view and pauses it
   when it leaves, and never fetches it at all on Save-Data or reduced motion. */
.fig__video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .9s var(--ease); pointer-events:none;
}
.fig__video.is-playing{opacity:1}

/* Reveal-on-scroll mask for images.
   The clip lives on the inner <picture>, never on .mask itself: clipping the
   observed element collapses its intersection rect to zero area, so the
   IntersectionObserver that drives the reveal would never fire. */
.js .mask picture,.js .mask > img{
  clip-path:inset(0 0 100% 0);
  transition:clip-path 1.15s var(--ease);
}
.mask.is-in picture,.mask.is-in > img,
.is-in .mask picture,.is-in .mask > img{clip-path:inset(0 0 0 0)}

/* --------------------------------------------------------------------------
   12. Capability list (services)
   -------------------------------------------------------------------------- */
.caps{position:relative}
.cap{
  position:relative;
  /* Number, then the text. The whole row is the link. */
  display:grid; grid-template-columns:5.5rem minmax(0,1fr);
  gap:0 clamp(1rem,3vw,2.5rem);
  align-items:start;
  padding:clamp(1.75rem,3.2vw,2.75rem) 0;
  border-top:1px solid var(--rule);
  transition:color var(--dur) var(--ease);
}
/* Sector rows have no arrow column. Was an inline grid-template-columns, which
   the 1000px rule below could not override — the number column stayed 5.5rem
   on a 390px screen. */
.cap--plain{grid-template-columns:5.5rem 1fr}
.cap:last-child{border-bottom:1px solid var(--rule)}
.cap__n{
  font:500 var(--fs-label)/1.4 var(--font-label);
  letter-spacing:var(--track-label); color:var(--ink-400);   /* ink-300 on paper was 2.8:1 */
  padding-top:.55rem;
  transition:color var(--dur) var(--ease);
}
.cap__body h3{margin-bottom:var(--space-3); transition:transform var(--dur) var(--ease)}
.cap__body p{max-width:58ch; color:var(--ink-500); margin:0}
/* Keep the copy clear of the arrow mark in the corner. */
.cap__body{padding-right:3.5rem}
.cap--plain .cap__body{padding-right:0}
/* The dot between terms lives in each term's left padding, and the list
   clips its own left edge: a term that starts a line has its dot cut away,
   so no line ever opens with a stray "·" (on a phone nearly every wrapped
   line did, and it read as a typo). The list is pulled left by the same
   amount, so the first term still sits on the column edge. */
.cap__tags{
  --sep:1.4rem;
  display:flex; flex-wrap:wrap; margin-top:var(--space-3);
  margin-left:calc(-1 * var(--sep)); clip-path:inset(-.5rem -100vw -.5rem var(--sep));
}
/* A quiet line of terms rather than nine boxed chips per screen: the boxes
   read as a spec sheet and competed with the heading above them. */
.cap__tags span{
  font:500 var(--fs-xs)/1.7 var(--font-label);
  letter-spacing:var(--track-mono); color:var(--ink-400);
}
.cap__tags span{padding-left:var(--sep)}
.cap__tags span::before{
  content:'\00b7'; display:inline-block; width:var(--sep); margin-left:calc(-1 * var(--sep));
  text-align:center; color:var(--ink-300);
}
/* The row is the link, and it carries the same arrow mark as a project card,
   in the same place. It used to say "Read more" instead — five times down one
   page, which is both generic and repetitive. */
.cap__go{
  position:absolute; top:clamp(1.75rem,3.2vw,2.75rem); right:0;
  width:34px; height:34px; border:1px solid var(--rule);
  display:grid; place-items:center; color:var(--ink-400);
  transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cap__go svg{width:12px; height:12px; stroke:currentColor; stroke-width:1.6; fill:none}
.cap:hover .cap__go,.cap:focus-visible .cap__go{background:var(--ink-900); border-color:var(--ink-900); color:#fff}
.section--dark .cap__go,.section--ink .cap__go{border-color:var(--rule-dark); color:var(--ink-200)}
.cap:hover .cap__more .ar{transform:translateX(4px)}
.cap:hover .cap__n{color:var(--accent)}
.cap:hover .cap__body h3{transform:translateX(8px)}

/* --- The photograph behind the row -------------------------------------
   Reaching a capability is rewarded with the work it refers to: the row
   fills with a photograph under an ink veil. The veil is heavy on purpose.
   (It began as clay at .94 with a 17% ink layer over it. Clay alone is 5.4:1 against
   white in theory and measured 4.88:1 once the photograph bled through,
   which left the small terms under each heading failing outright. The ink
   layer buys the room back. The picture reads as texture and colour rather
   than as a thing to study, which is the point of it.)
   The CSS only describes the state. main.js decides when a row is lit,
   because the trigger differs by device: hover where there is a pointer,
   and coming into view where there is not, since a touch screen has no
   hover and would otherwise never see a single one of these. */
.cap::before{
  content:''; position:absolute; z-index:0;
  inset:0 calc(-1 * clamp(1.15rem,2.6vw,2.75rem));
  /* An ink wash, not a flood of the accent. A sheet of terracotta over every
     photograph read as a colour swatch with a picture faintly behind it; ink
     lets the photograph be the thing you see, which is what it is there for.
     Angled, because the copy sits left: deepest under the words, open over
     the right of the frame. The accent stays an accent — the rule and the
     number — rather than the surface. */
  background-image:linear-gradient(100deg,
      rgba(10,14,19,.93) 0%, rgba(10,14,19,.86) 38%,
      rgba(10,14,19,.66) 72%, rgba(10,14,19,.52) 100%), var(--cap-img,none);
  background-size:cover; background-position:center 52%;
  opacity:0; transition:opacity .45s var(--ease);
  pointer-events:none;
}
/* An accent rule down the lit row: the accent as a mark, not a wash. */
.cap::after{
  content:''; position:absolute; z-index:1; left:calc(-1 * clamp(1.15rem,2.6vw,2.75rem));
  top:0; bottom:0; width:2px; background:var(--accent);
  transform:scaleY(0); transform-origin:top;
  transition:transform .45s var(--ease);
}
.cap.is-lit::after{transform:scaleY(1)}
.cap.is-lit::before{opacity:1}
/* The row's own parts sit above the veil. .cap__go is already absolute and
   only wants the z-index — giving it position:relative too dropped it out
   of its corner and into the grid flow. */
.cap__n,.cap__body{position:relative; z-index:1}
.cap__go{z-index:1}

/* Lit, everything in the row is read against the veil. */
.cap.is-lit{border-top-color:rgba(255,255,255,.16)}
.cap.is-lit + .cap{border-top-color:rgba(255,255,255,.16)}
.cap.is-lit .cap__body h3{color:#fff}
.cap.is-lit .cap__body p{color:#fff}
.cap.is-lit .cap__n{color:var(--accent-flare)}
/* Lit, each term takes a rule of its own so the four read as four things
   rather than one line. Square corners and a hairline, not a pill: these
   are labels on a drawing, not controls.
   The box is present at rest and merely transparent — border width and
   padding are the same either way — so lighting a row changes colour and
   nothing else. Letting the boxes appear would have grown the terms, pushed
   the sentence down and moved the row's neighbours in the pairs layout.
   Scoped to the home rows: the sector rows on Services never light, and a
   permanently boxed line there is the spec-sheet look this design dropped. */
.cap[data-cap-img] .cap__tags{gap:.4rem .5rem; margin-left:-.8rem; clip-path:none}
.cap[data-cap-img] .cap__tags span{
  padding:.45rem .8rem;
  border:1px solid transparent;
  transition:border-color .4s var(--ease), color .4s var(--ease);
}
.cap[data-cap-img].is-lit .cap__tags span{border-color:rgba(255,255,255,.28)}
/* No middots on these rows at all. Spacing separates them at rest and the
   rules do it when lit — and the dot was being orphaned at the start of a
   wrapped line ("· Contract administration"), which read as a typo. */
.cap[data-cap-img] .cap__tags span::before{display:none}
.cap.is-lit .cap__tags span{color:rgba(255,255,255,.92)}
.cap.is-lit .cap__tags span::before{color:rgba(255,255,255,.4)}
.cap.is-lit .cap__go{border-color:rgba(255,255,255,.55); color:#fff; background:transparent}
/* The dark square the row grows on hover would be a hole in the veil. */
.cap.is-lit:hover .cap__go,.cap.is-lit:focus-visible .cap__go{
  background:#fff; border-color:#fff; color:var(--accent);
}

/* A row reads name, terms, then its sentence; reaching it brings in the
   photograph behind. Nothing changes size when a row lights, so the pairs
   never twitch as the cursor crosses them. */
.cap__body{display:flex; flex-direction:column; align-items:flex-start}
.cap__body h3{order:1}
.cap__tags{order:2; margin-top:0}
/* The sentence shows at rest. It used to wait for the row to light, which
   left a blank band the height of the sentence under every row's terms. */
.cap__body p{order:3; margin:var(--space-3) 0 0}
@media (prefers-reduced-motion:reduce){ .cap::before{transition:none} }

/* Home page, desktop: the five capabilities fold into pairs (1-2, 3-4), and
   the fifth takes the left column under 03, laid out exactly like the others.
   Replaced a hover image preview, which the client did not want; a version
   that stretched 05 across both columns (text left, tags right) was rejected. */
@media (min-width:1101px){
  .caps--pairs{
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:clamp(1.75rem,3vw,3.5rem);
  }
  .caps--pairs .cap{grid-template-columns:4rem minmax(0,1fr); column-gap:var(--gap-xl)}
  /* Every row closes with a rule, so 05 standing alone still ends on a line. */
  .caps--pairs .cap{border-bottom:1px solid var(--rule); margin-bottom:-1px}
}
@media (max-width:1000px){
  .cap,.cap--plain{grid-template-columns:3.5rem 1fr}
}

/* "More of our projects", closing the home page's selected work. Centred
   between two hairlines that draw outward from it as it comes into view, like
   a setting-out line. On hover the ink fills in from the left and the arrow
   moves on; while it is on screen and idle, the arrow nudges once every few
   seconds, so the eye finds the way on without the page shouting. */
.more-work{
  display:flex; align-items:center; gap:clamp(1rem,2.5vw,2rem);
  margin-top:clamp(3rem,6vw,5rem);
}
.more-work::before,.more-work::after{
  content:''; flex:1; height:1px; background:var(--rule-strong);
  transform:scaleX(0); transition:transform 1.1s var(--ease) .15s;
}
.more-work::before{transform-origin:right}
.more-work::after{transform-origin:left}
.more-work.is-in::before,.more-work.is-in::after,html:not(.js) .more-work::before,html:not(.js) .more-work::after{transform:scaleX(1)}
.more-work__btn{
  position:relative; overflow:hidden; isolation:isolate; flex:none;
  padding:1.15rem 1.9rem; gap:var(--gap-lg);
  border-color:var(--ink-900); color:var(--ink-900);
  transition:color .45s var(--ease), border-color .45s var(--ease);
}
.more-work__btn::before{
  content:''; position:absolute; inset:0; z-index:-1; background:var(--ink-900);
  transform:scaleX(0); transform-origin:left; transition:transform .55s var(--ease);
}
.more-work__btn:hover,.more-work__btn:focus-visible{background:transparent; color:var(--paper); border-color:var(--ink-900)}
.more-work__btn:hover::before,.more-work__btn:focus-visible::before{transform:scaleX(1)}
.more-work__btn:focus-visible{outline:2px solid var(--accent); outline-offset:4px}
.more-work.is-in .more-work__btn .ar{animation:moreNudge 3.6s var(--ease) 1.4s infinite}
.more-work__btn:hover .ar,.more-work__btn:focus-visible .ar{animation:none; transform:translateX(6px)}
@keyframes moreNudge{
  0%,72%,100%{transform:none}
  80%{transform:translateX(6px)}
  88%{transform:translateX(1px)}
  94%{transform:translateX(4px)}
}
/* A phone has no room for the rules to read as rules: the button takes the
   full width instead, which is also the easier target. */
@media (max-width:600px){
  .more-work::before,.more-work::after{display:none}
  .more-work__btn{flex:1; justify-content:center; padding:1.1rem 1.4rem}
}
@media (prefers-reduced-motion:reduce){
  .more-work::before,.more-work::after{transition:none; transform:scaleX(1)}
  .more-work.is-in .more-work__btn .ar{animation:none}
  .more-work__btn::before{transition:none}
}

/* --------------------------------------------------------------------------
   13. Project cards
   -------------------------------------------------------------------------- */
.pcard{position:relative; display:block; color:inherit}
.pcard__media{position:relative; overflow:hidden; background:var(--paper-3)}
.pcard__media img{
  width:100%; height:100%; object-fit:cover; object-position:var(--focus,50% 50%);
  transition:transform 1.1s var(--ease), filter var(--dur) var(--ease);
}
.pcard:hover .pcard__media img{transform:scale(1.055)}
.pcard__media::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(7,11,16,.55), rgba(7,11,16,0) 55%);
  opacity:0; transition:opacity var(--dur) var(--ease);
}
.pcard:hover .pcard__media::after{opacity:1}
.pcard__tag{
  position:absolute; top:1rem; left:1rem; z-index:2;
  font:500 var(--fs-label)/1 var(--font-label);
  letter-spacing:var(--track-label); text-transform:uppercase;
  padding:.45rem .65rem; background:rgba(247,245,241,.92); color:var(--ink-700);
  backdrop-filter:blur(6px);
}
.pcard__body{padding-top:1.15rem; display:flex; gap:var(--gap-lg); align-items:flex-start}
.pcard__body h3{
  font-size:var(--fs-lead); flex:1;
  transition:color var(--dur-fast) var(--ease);
}
.pcard:hover .pcard__body h3{color:var(--accent)}
.pcard__meta{
  margin-top:var(--space-2);
  font:500 var(--fs-label)/1.6 var(--font-label);
  letter-spacing:var(--track-mono);  color:var(--ink-400);
}
.pcard__go{
  flex:none; width:34px; height:34px; border:1px solid var(--rule);
  display:grid; place-items:center; margin-top:.15rem;
  transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pcard__go svg{width:12px; height:12px; stroke:currentColor; stroke-width:1.6; fill:none}
.pcard:hover .pcard__go{background:var(--ink-900); border-color:var(--ink-900); color:#fff}

.section--dark .pcard__go,.section--ink .pcard__go{border-color:var(--rule-dark)}
.section--dark .pcard__meta,.section--ink .pcard__meta{color:var(--ink-300)}
.section--dark .pcard:hover h3,.section--ink .pcard:hover h3{color:var(--accent-bright)}

/* --------------------------------------------------------------------------
   14. Process timeline
   -------------------------------------------------------------------------- */
.steps{border-top:1px solid var(--rule-dark)}
.step{
  display:grid; grid-template-columns:6rem 1fr;
  gap:clamp(1rem,3vw,2.5rem);
  padding:clamp(1.6rem,3vw,2.4rem) 0;
  border-bottom:1px solid var(--rule-dark);
  align-items:start;
}
.step__n{
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-step); letter-spacing:var(--track-display); line-height:1;
  color:var(--on-dark-3);
  transition:color var(--dur) var(--ease);
}
.step:hover .step__n{color:var(--accent-bright)}
.step__b h3{margin-bottom:var(--space-2)}
.step__b p{color:var(--ink-200); max-width:62ch; margin:0}
@media (max-width:700px){ .step{grid-template-columns:3.5rem 1fr} }

/* On wide screens the title and the description sit in their own columns, so
   the timeline uses the full measure instead of hugging the left edge. */
@media (min-width:1000px){
  /* The title and the description are separate columns here, so they need more
     air between them than the 2.5rem the stacked layout uses — at 1440 the
     longest title ran within a few pixels of its description. */
  .step{grid-template-columns:6rem minmax(14rem,22rem) minmax(0,1fr); column-gap:clamp(2.5rem,3.5vw,4rem)}
  .step__b{display:contents}
  .step__b h3{margin-bottom:0; align-self:start}
  .step__b p{max-width:58ch; align-self:start}
}

/* The home page's process (index "04 / How we work"). The five stages stay
   readable without a click; the stage crossing the middle of the screen is
   the current one (main.js initProcess), with its number in the accent and
   the others a step quieter, and a rail down the left fills as the list is
   read. Wide screens split the section: the list on the left, a photograph
   on the right that holds still while it follows the current stage. Below
   1000px each stage carries its own photograph instead. Scoped to .process:
   the About and Contact pages use the same steps as a plain list. */
.process .steps{position:relative; border-top:0}
.process .steps::before,.process .steps::after{
  content:''; position:absolute; left:0; top:0; bottom:0; width:1px; pointer-events:none;
}
.process .steps::before{background:var(--rule-dark)}
.process .steps::after{
  background:var(--accent-bright); transform-origin:top; transform:scaleY(var(--p,0));
}
.process .step{grid-template-columns:4.5rem 1fr; padding-left:clamp(1.25rem,2.4vw,2rem); border-bottom:0}
.process .step__b{display:block}
.process .step__b h3{margin-bottom:var(--space-2)}
.process .step__b p{max-width:52ch}
.process .step__n,.process .step__b h3,.process .step__b p{transition:color var(--dur) var(--ease)}
.process .step.is-current .step__n{color:var(--accent-bright)}
/* Quieter, not hidden: only once the script is running, so without it every
   stage reads at full strength. */
.js .process .step:not(.is-current) h3{color:var(--on-dark-2)}
.js .process .step:not(.is-current) p{color:var(--ink-300)}
.step__fig{margin:var(--space-4) 0 var(--space-4)}
.step__fig picture,.step__fig img{aspect-ratio:16/9}
.step__fig img,.process__pic img{object-position:var(--focus,50% 50%)}
.process__media{display:none}
@media (max-width:700px){ .process .step{grid-template-columns:3rem 1fr} }
@media (min-width:1000px){
  .process{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:clamp(3rem,5vw,6rem); align-items:start}
  /* Room enough that each stage holds the photograph for a fair stretch of
     scrolling: the photograph only stays put while the list is taller than it. */
  .process .step{grid-template-columns:4.5rem 1fr; column-gap:clamp(1rem,2vw,2rem); padding-block:clamp(2.5rem,7vh,4.5rem)}
  .process .step:first-child{padding-top:0}
  .process .step:last-child{padding-bottom:0}
  .process .step__b{display:block}
  .step__fig{display:none}
  .process__media{display:block; position:sticky; top:calc(var(--nav-h) + 1.5rem)}
  .process__frame{position:relative; height:min(66vh,620px); overflow:hidden; background:var(--ink-800)}
  .process__pic{position:absolute; inset:0; margin:0; opacity:0; transition:opacity .8s var(--ease)}
  .process__pic.is-active{opacity:1}
  .process__pic picture,.process__pic img{display:block; width:100%; height:100%; object-fit:cover}
}
@media (prefers-reduced-motion:reduce){
  .process__pic,.process .step__n,.process .step__b h3,.process .step__b p{transition:none}
}

/* --------------------------------------------------------------------------
   16. Quote / leadership
   -------------------------------------------------------------------------- */
.quote{
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-quote);
  line-height:1.2; letter-spacing:var(--track-display);
  margin:0 0 2rem; text-wrap:balance;
}
.quote .serif{font-weight:400}
.byline{display:flex; align-items:center; gap:var(--gap-lg)}
.byline img{width:56px; height:56px; object-fit:cover; object-position:center 22%; flex:none; border-radius:50%}
.byline__n{font-family:var(--font-display); font-weight:400; font-size:var(--fs-body); letter-spacing:var(--track-sm); display:block}
.byline__r{font:500 var(--fs-label)/1.6 var(--font-label); letter-spacing:var(--track-mono);  color:var(--ink-400)}
.section--dark .byline__r,.section--ink .byline__r{color:var(--ink-300)}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta{position:relative; overflow:hidden; background:var(--ink-900); color:#fff}
.cta__bg{position:absolute; inset:0; opacity:.3}
.cta__bg::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(to right, rgba(7,11,16,.78) 0%, rgba(7,11,16,.3) 52%, rgba(7,11,16,.08) 100%);
}
.cta__bg img{width:100%; height:100%; object-fit:cover; object-position:var(--focus,50% 50%)}
.cta__inner{position:relative; z-index:2; padding-block:clamp(4.5rem,9vw,8rem)}
.cta h2{font-size:var(--fs-h1); letter-spacing:var(--track-display); max-width:18ch; margin-bottom:var(--space-6)}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer{background:var(--ink-900); color:var(--ink-200); padding-top:clamp(3.5rem,6vw,5.5rem)}
.footer a:hover{color:#fff}
.footer__top{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:var(--gutter)}
.footer__k{
  font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-label); text-transform:uppercase;
  color:var(--ink-300); margin:0 0 1.25rem;   /* ink-400 on ink-900 was 3.41:1 */
}
.footer__list{display:grid; gap:var(--gap-sm); font-size:var(--fs-sm)}
.footer__list a{transition:color var(--dur-fast) var(--ease)}
.footer__blurb{max-width:34ch; font-size:var(--fs-sm); color:var(--ink-300); margin:1.25rem 0 0}
.footer__mark{display:flex; align-items:center; gap:var(--gap-md); color:#fff}
.footer__mark img{width:34px; height:34px}
.footer__mark b{font-family:var(--font-display); font-weight:400; font-size:var(--fs-h4); letter-spacing:var(--track-sm); text-transform:uppercase}
.footer__word{
  margin-top:clamp(3rem,6vw,5rem);
  font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-wordmark);
  line-height:.8; letter-spacing:var(--track-display); color:var(--ghost-dark);
  text-transform:uppercase; user-select:none; white-space:nowrap;
  overflow:hidden;
}
.footer__bar{
  margin-top:clamp(1.5rem,3vw,2.5rem); padding-block:1.5rem;
  border-top:1px solid var(--rule-dark);
  display:flex; flex-wrap:wrap; gap:var(--gap-lg) var(--gap-2xl); justify-content:space-between;
  font:500 var(--fs-label)/1.7 var(--font-label); letter-spacing:var(--track-mono); 
  color:var(--ink-300);   /* ink-400 on ink-900 was 3.41:1 */
}
/* The page-link columns are for desktops. From 1000px down the navigation
   bar turns into the menu button (see .nav__toggle), and the menu carries the
   same links, so the footer keeps only the brand and the contact details. */
@media (max-width:1000px){
  .footer__top{grid-template-columns:1fr 1fr}
  .footer__links{display:none}
}
@media (max-width:560px){ .footer__top{grid-template-columns:1fr} }

/* --------------------------------------------------------------------------
   19. Page header (inner pages)
   -------------------------------------------------------------------------- */
.phead{
  position:relative; background:var(--ink-900); color:#fff;
  padding-top:calc(var(--nav-h) + clamp(4rem,8vw,7rem));
  padding-bottom:clamp(3.5rem,7vw,6rem);
  overflow:hidden;
}
/* The photograph carries most of the banner. Contrast for the type is bought
   on the LEFT, where the type actually sits, so the right-hand two-fifths of
   the frame stay legible as a picture. Stacking a low opacity under a heavy
   scrim multiplies: .34 under a .42 veil left only ~20% of the image showing,
   which read as mud rather than as a photograph. */
.phead__bg{position:absolute; inset:0; opacity:.72}
.phead__bg img{width:100%; height:100%; object-fit:cover; object-position:var(--focus,50% 50%)}
.phead__bg::after{
  content:''; position:absolute; inset:0;
  background:
    linear-gradient(to right,  rgba(7,11,16,.94) 0%, rgba(7,11,16,.8) 34%, rgba(7,11,16,.34) 64%, rgba(7,11,16,.12) 100%),
    linear-gradient(to bottom, rgba(7,11,16,.72) 0%, rgba(7,11,16,.30) 24%, rgba(7,11,16,.3) 66%, rgba(7,11,16,.9) 100%);
}
.phead--capabilities .phead__bg{opacity:1; --focus:72% 66%}
.phead--capabilities .phead__bg::after{
  background:
    linear-gradient(to right, rgba(7,11,16,.95), rgba(7,11,16,.84) max(33%, 27rem), rgba(7,11,16,.61) max(52%, 39rem), rgba(7,11,16,.12) 75%, transparent),
    linear-gradient(to bottom, rgba(7,11,16,.79), rgba(7,11,16,.47) 16%, transparent 42% 78%, rgba(7,11,16,.32));
}
@media (max-width:900px){
  .phead--capabilities .phead__bg::after{
    background:linear-gradient(to bottom, rgba(7,11,16,.74), rgba(7,11,16,.50) 26%, rgba(7,11,16,.72) 49%, rgba(7,11,16,.85));
  }
}
.phead__inner{position:relative; z-index:2}
.phead h1{font-size:var(--fs-h1); max-width:20ch; margin-bottom:var(--space-5)}
.phead .lead{max-width:52ch; color:var(--on-dark-1)}
.crumb{
  font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-label); text-transform:uppercase;
  /* Solid white, not a tint: at 11px over a photograph the .5 white measured
     2.50-3.76:1 on every page, against the 4.5:1 a label this size needs. With
     the top of the veil deepened a little it now measures 5.52:1 at worst, and
     the photograph keeps essentially the same brightness. */
  color:#fff; margin-bottom:var(--space-6); display:flex; gap:var(--gap-sm);
}
.crumb a:hover{color:#fff}
/* The tight line-height gives these an 11px-tall hit area. Grow the target
   without moving anything: pad out, pull the same amount back in. */
.crumb a{display:inline-block; padding-block:.45rem; margin-block:-.45rem}

/* A direct route into the long capabilities page, with the site's ruled rhythm. */
.service-index{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.5rem 1rem; padding-block:1.25rem; border-bottom:1px solid var(--rule)}
.service-index a{display:flex; align-items:center; gap:.7rem; min-height:44px; font-size:var(--fs-sm)}
.service-index a:hover,.service-index a:focus-visible{color:var(--accent)}
@media (max-width:900px){.service-index{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* --------------------------------------------------------------------------
   20. Filters + project index
   -------------------------------------------------------------------------- */
.filters{
  display:flex; flex-wrap:wrap; gap:var(--gap-sm);
  padding-bottom:clamp(1.75rem,3vw,2.5rem);
}
.filter{
  font:500 var(--fs-label)/1 var(--font-label);
  letter-spacing:var(--track-label); text-transform:uppercase;
  padding:.7rem 1.05rem; min-height:44px; border:1px solid var(--rule);
  color:var(--ink-400);
  transition:background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.filter:hover{border-color:var(--ink-400); color:var(--ink-800)}
.filter.is-on{background:var(--ink-900); border-color:var(--ink-900); color:#fff}
.filter span{margin-left:.35rem}
@media (max-width:600px){
  .filters{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem}
  .filter{padding-inline:.4rem}
}
.pgrid{display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(1.75rem,3vw,3rem) var(--gutter)}
@media (max-width:1000px){ .pgrid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:600px){ .pgrid{grid-template-columns:1fr} }
.pgrid .pcard{opacity:1; transition:opacity .4s var(--ease), transform .4s var(--ease)}
.pgrid .pcard.is-hidden{display:none}

/* --------------------------------------------------------------------------
   21. Detail panel (project case)
   -------------------------------------------------------------------------- */
.panel{
  position:fixed; inset:0; z-index:120;
  background:var(--paper); color:var(--ink-800);
  overflow-y:auto; overscroll-behavior:contain;
  transform:translateY(2rem); opacity:0; visibility:hidden;
  transition:opacity .45s var(--ease), transform .55s var(--ease), visibility .45s;
}
.panel.is-open{opacity:1; transform:none; visibility:visible}
/* The panel covers the site nav, so its header bar stands in for it: the same
   hairline-and-mono language, a trail saying where the reader is, and a square
   close control drawn like the card arrows (.pcard__go) rather than a loose
   text link. Sticky, so it is always one tap away down a long case. */
.panel__bar{
  position:sticky; top:0; z-index:3;
  background:var(--paper); border-bottom:1px solid var(--rule);
}
.panel__bar-in{
  display:flex; align-items:center; justify-content:space-between; gap:var(--gap-lg);
  min-height:clamp(3.75rem,6vw,var(--nav-h));
}
.panel__trail{
  display:flex; align-items:center; gap:var(--gap-md); min-width:0; margin:0;
  font:500 var(--fs-label)/1 var(--font-label);
  letter-spacing:var(--track-eyebrow); text-transform:uppercase;
  color:var(--ink-400);
}
.panel__trail span{white-space:nowrap}
.panel__trail span:last-child{display:flex; align-items:center; gap:var(--gap-md); color:var(--ink-800)}
.panel__trail span:last-child::before{content:''; flex:none; width:1.6rem; height:1px; background:var(--accent)}
.panel__trail span:last-child:empty{display:none}
/* Close: the site's outline button, the same one the image viewer uses, in
   its ink-on-paper form (.btn .btn--ghost) — the word and the cross in one
   hairline rectangle that fills ink on hover, with the cross turning a
   quarter. On a phone the word goes and the rectangle closes up to a
   44px square, so the trail keeps its room. */
.panel__close{flex:none; min-height:44px; padding:0 1.15rem; gap:.75rem; margin-right:-2px}
.panel__close svg{width:12px; height:12px; stroke:currentColor; stroke-width:1.5; fill:none; transition:transform var(--dur) var(--ease)}
.panel__close:hover svg,.panel__close:focus-visible svg{transform:rotate(90deg)}
.panel__close:active{transform:scale(.97)}
.panel__close:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
@media (prefers-reduced-motion:reduce){ .panel__close svg{transition:none} .panel__close:hover svg,.panel__close:focus-visible svg{transform:none} }
@media (max-width:600px){ .panel__close{width:44px; padding:0; justify-content:center} .panel__close-label{display:none} }
.panel__body{padding-top:clamp(1rem,2.2vw,2rem); padding-bottom:clamp(4rem,8vw,7rem)}
/* Named for the handful of one-off style attributes that used to carry these:
   spacing belongs to the scale, and these three are the only real exceptions. */
.list-flush{margin:0}                                   /* a <dl> that sets its own rhythm */
.emph-light{color:#fff; font-weight:600}                /* a lead-in word on an ink ground */
.field__opt{text-transform:none; letter-spacing:0}      /* "(optional)" inside a form label */
.phead--short{min-height:70vh; display:flex; align-items:center}

/* --- Pictures that open in the viewer (build.py zoomable(), main.js) -----
   The cover and every gallery picture is a link to its largest file. A
   square mark in the corner says so: the same hairline square the project
   cards and the panel close carry, with an expand sign rather than an
   arrow. It shows on hover and focus with a pointer; on a touch screen,
   where nothing hovers, it stays, or nobody would know the picture opens. */
.zoom{display:block; position:relative; cursor:zoom-in}
.zoom::after{
  content:''; position:absolute; right:14px; bottom:14px; width:38px; height:38px;
  border:1px solid var(--edge-dark-1);
  background:rgba(7,11,16,.42) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.3'%3E%3Cpath d='M10 2h4v4M6 14H2v-4M14 2L9.5 6.5M2 14l4.5-4.5'/%3E%3C/svg%3E") center/14px no-repeat;
  opacity:0; transition:opacity .4s var(--ease);
  pointer-events:none;
}
.zoom:hover::after,.zoom:focus-visible::after{opacity:1}
.zoom:focus-visible{outline:2px solid var(--accent); outline-offset:4px}
@media (hover:none){ .zoom::after{opacity:.9} }

/* --- A project's opening (build.py case_intro) -----------------------------
   Shared by the projects panel and each project's own page. Wide screens set
   the name, place, write-up and facts beside a stage that shows one picture
   at a time; phones stack the name, the pictures, then the text. The stage
   shows each picture whole: never cropped, never stretched past its file.
   A picture of another shape sits centred on a plain light mat, like a
   print in a mount. (A blurred copy of the photograph filled that room for
   a while; it read as smeared rather than finished.) */
.case__intro{
  display:grid; grid-template-columns:minmax(0,1fr);
  grid-template-areas:"head" "media" "text"; row-gap:clamp(1.5rem,4vw,2.25rem);
}
.case__intro--page{grid-template-areas:"media" "text"}
.case__head{grid-area:head}
.case__media{grid-area:media; min-width:0}
.case__text{grid-area:text; min-width:0}
.case__title{
  font-size:clamp(2.25rem,4.2vw,4rem); line-height:1; letter-spacing:var(--track-display);
  margin:0 0 clamp(.9rem,1.6vw,1.25rem); max-width:14ch;
}
.case__loc{display:flex; align-items:center; gap:.55rem; margin:0; font-size:var(--fs-lead); color:var(--ink-700)}
.case__pin{flex:none; width:20px; height:20px; stroke:var(--accent); stroke-width:1.5; fill:none}
/* A short accent rule closes the name block, as the eyebrow rules open others. */
.case__head::after{content:''; display:block; width:2.75rem; height:1px; background:var(--accent); margin-top:clamp(1.25rem,2.5vw,1.75rem)}
.case__body p{color:var(--ink-500); max-width:58ch; margin:0 0 1rem}
.case__body p:last-child{margin-bottom:0}
/* Facts: a two-column ruled grid, each with a line icon in the accent. */
.case__facts{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  margin:clamp(1.75rem,3vw,2.5rem) 0 0; border-top:1px solid var(--rule);
}
.case__fact{padding:1.15rem 1rem 1.15rem 0; border-bottom:1px solid var(--rule)}
.case__fact:nth-child(even){padding:1.15rem 0 1.15rem 1.25rem; border-left:1px solid var(--rule)}
.case__fact dt{
  display:flex; align-items:center; gap:.6rem; margin-bottom:.45rem;
  font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-label);
  text-transform:uppercase; color:var(--ink-400);
}
.case__fact dt svg{flex:none; width:20px; height:20px; stroke:var(--accent); stroke-width:1.4; fill:none}
.case__fact dd{
  margin:0 0 0 calc(20px + .6rem); font-family:var(--font-display); font-weight:400;
  font-size:var(--fs-body); letter-spacing:var(--track-sm); color:var(--ink-800);
}
/* The stage: one picture at a time, each a link to the viewer. */
.case__stage{position:relative; width:100%; aspect-ratio:var(--ar,4/3); max-height:min(75vh,560px); overflow:hidden; background:var(--paper-2)}
.case__stage > .case__slide{display:none; position:absolute; inset:0}
.case__stage > .case__slide.is-active{display:block; animation:caseIn .5s var(--ease)}
@keyframes caseIn{from{opacity:0}to{opacity:1}}
.case__pic{position:relative; margin:0; width:100%; height:100%; overflow:hidden}
.case__pic picture{position:relative; display:block; width:100%; height:100%}
.case__pic picture img{width:100%; height:100%; object-fit:contain}
.case__film{display:block; width:100%; height:100%; object-fit:contain; background:var(--paper-2)}
/* The film's thumbnail carries a play mark, so it reads as a film. */
.case__play{
  position:absolute; inset:0; display:grid; place-items:center; pointer-events:none;
}
.case__play svg{
  width:28px; height:28px; padding:7px; box-sizing:border-box; fill:#fff;
  background:rgba(7,11,16,.62); border:1px solid rgba(255,255,255,.55);
}
/* Thumbnails: five to a row whatever the count, so they keep one size from
   project to project; the one on show is at full strength with an accent
   rule under it. */
.case__thumbs{display:grid; grid-template-columns:repeat(var(--cols,5),minmax(0,1fr)); gap:clamp(.4rem,.8vw,.65rem); margin-top:clamp(.5rem,1vw,.75rem)}
.case__thumb{
  position:relative; display:block; padding:0; border:0; cursor:pointer;
  background:var(--paper-2); aspect-ratio:4/3; overflow:hidden;
  opacity:.55; transition:opacity var(--dur) var(--ease);
}
.case__thumb picture,.case__thumb img{display:block; width:100%; height:100%; object-fit:cover}
.case__thumb::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--accent);
  transform:scaleX(0); transform-origin:left; transition:transform var(--dur) var(--ease);
}
.case__thumb:hover,.case__thumb.is-active{opacity:1}
.case__thumb.is-active::after{transform:scaleX(1)}
.case__thumb:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
@media (max-width:600px){
  .case__thumbs{display:flex; overflow-x:auto; padding:3px 3px .5rem; scroll-snap-type:x proximity}
  .case__thumb{flex:0 0 64px; scroll-snap-align:start}
}
html:not(.js) .case__thumbs{display:none}
html:not(.js) .case__stage{aspect-ratio:auto; max-height:none; display:grid; gap:1rem}
html:not(.js) .case__stage > .case__slide{display:block; position:relative}
html:not(.js) .case__pic{height:auto}
html:not(.js) .case__pic img{height:auto}
@media (min-width:1000px){
  .case__intro{
    grid-template-columns:minmax(0,5fr) minmax(0,7fr); grid-template-rows:auto 1fr;
    grid-template-areas:"head media" "text media";
    column-gap:clamp(3rem,5vw,6rem); row-gap:0; align-items:start;
  }
  .case__intro--page{grid-template-rows:auto; grid-template-areas:"text media"}
  .case__head{padding-bottom:clamp(1.5rem,2.5vw,2rem)}
  .case__stage{max-height:clamp(420px,62vh,640px)}
}
@media (prefers-reduced-motion:reduce){ .case__stage > .case__slide.is-active{animation:none} }

/* Panel bar: previous / next project, counted within the cards on show. */
.panel__nav{display:flex; align-items:center; gap:.5rem; margin-left:auto}
.panel__step{
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:1px solid var(--rule-strong); color:var(--ink-800); background:transparent;
  transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.panel__step svg{width:14px; height:14px; stroke:currentColor; stroke-width:1.4; fill:none}
.panel__step:hover{background:var(--ink-900); border-color:var(--ink-900); color:#fff}
.panel__step:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
.panel__count{
  min-width:4.75rem; text-align:center; font:500 var(--fs-label)/1 var(--font-label);
  letter-spacing:var(--track-label); color:var(--ink-500); font-variant-numeric:tabular-nums;
}
.panel__close{margin-left:clamp(.75rem,2vw,1.75rem)}
@media (max-width:600px){
  .panel__count,.panel__trail span:first-child{display:none}
  .panel__step{width:40px; height:40px}
}

/* --- The viewer --------------------------------------------------------
   Ink, not black, and no blur: the photograph is the only bright thing on
   the screen. Count and caption are set as labels; the controls are the
   hero's square outline arrows and the panel's square close, so the
   viewer reads as part of the same site rather than a plug-in. */
.lbox{
  position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none;
  margin:0; padding:0; border:0; overflow:hidden;
  /* Solid: at .97 the page behind ghosted through around the picture. */
  background:var(--ink-900); color:#fff;
}
.lbox::backdrop{background:transparent}
.lbox[open]{display:grid; grid-template-rows:auto minmax(0,1fr) auto; animation:lboxIn .4s var(--ease)}
@keyframes lboxIn{from{opacity:0}to{opacity:1}}
/* The top bar: where the eye looks first, so it is laid out like the
   site's own headers — an eyebrow on the left, the action on the right.
   Clear of the notch and rounded corners on a phone (safe-area insets). */
.lbox__bar{
  display:flex; align-items:center; justify-content:space-between; gap:var(--gap-lg);
  padding:max(clamp(.9rem,2vw,1.4rem), env(safe-area-inset-top))
          max(var(--gutter), env(safe-area-inset-right))
          clamp(.9rem,2vw,1.4rem)
          max(var(--gutter), env(safe-area-inset-left));
}
.lbox__count,.lbox__cap{
  font:500 var(--fs-label)/1.6 var(--font-label);
  letter-spacing:var(--track-label); text-transform:uppercase;
  font-variant-numeric:tabular-nums;
}
/* The count as an eyebrow: the accent rule the site's section labels carry,
   then 03 / 05. A single picture shows neither. */
.lbox__count{display:flex; align-items:center; gap:var(--gap-md); color:var(--on-dark-2)}
.lbox__count::before{content:''; flex:none; width:1.6rem; height:1px; background:var(--accent-bright)}
.lbox__count:empty::before{display:none}

/* Close. Top right and fixed there, where every photo viewer keeps it, so
   it does not move as pictures of different shapes come and go. It is the
   site's own outline button (.btn .btn--light): the word and the cross in
   one hairline rectangle, 50px tall, over the 44px a finger needs. Hover
   fills it white with the cross turning a quarter. Escape still closes the
   viewer; it is simply no longer advertised on the button. */
.lbox__close{margin-left:auto; min-height:50px; padding:0 1.35rem; gap:.85rem; -webkit-tap-highlight-color:transparent}
.lbox .lbox__close svg{width:13px; height:13px; stroke-width:1.5; transition:transform .4s var(--ease)}
.lbox__close:hover svg,.lbox__close:focus-visible svg{transform:rotate(90deg)}
.lbox__close:active{transform:scale(.97)}
.lbox__close:focus-visible{outline:2px solid var(--accent-bright); outline-offset:3px}
@media (prefers-reduced-motion:reduce){ .lbox__close:hover svg,.lbox__close:focus-visible svg{transform:none} }
.lbox svg{width:14px; height:14px; stroke:currentColor; stroke-width:1.5; fill:none}
/* One explicit cell: with only an implicit auto row the picture's
   max-height:100% had no height to resolve against and was dropped, so a
   landscape picture was sized by width alone and ran under the caption and
   off the bottom of the screen. */
.lbox__stage{
  display:grid; grid-template:minmax(0,1fr) / minmax(0,1fr); place-items:center; min-height:0;
  padding:clamp(.5rem,3vh,2rem) calc(var(--gutter) + 62px);
}
/* A moderate size, not the largest that fits: at most 1280px wide and
   74% of the screen's height, with room around it. main.js chooses the
   file for the same width. */
.lbox__img{
  display:block; max-width:min(100%,1280px); max-height:min(100%,74vh); width:auto; height:auto;
  object-fit:contain; user-select:none;
}
.lbox__cap{
  margin:0; padding:clamp(.9rem,2vw,1.4rem) var(--gutter) clamp(1.1rem,2.6vw,1.8rem);
  text-align:center; color:var(--on-dark-2);
}
.lbox__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; display:grid; place-items:center;
  border:1px solid var(--edge-dark-2); color:#fff; background:rgba(7,11,16,.35);
  transition:background .4s var(--ease), border-color .4s var(--ease);
}
.lbox__nav:hover{background:var(--rule-dark); border-color:var(--on-dark-3)}
.lbox__nav:focus-visible{outline:2px solid var(--accent-bright); outline-offset:3px}
.lbox__nav[hidden]{display:none}
.lbox__prev{left:var(--gutter)}
.lbox__next{right:var(--gutter)}
/* A phone has no room for arrows beside the picture: it takes the full
   width, the arrows sit low over its corners, and a swipe does the rest. */
@media (max-width:700px){
  .lbox__stage{padding:0}
  .lbox__nav{top:auto; bottom:calc(clamp(1.1rem,2.6vw,1.8rem) + 2.4rem); transform:none}
}

/* Project pages (projects/<slug>.html): the panel's parts under an inner-page
   header with no photograph of its own, so the cover follows it uncovered. */
.phead--case{padding-bottom:clamp(2.5rem,5vw,4rem)}
.phead--case h1{max-width:24ch}
.case{padding-top:clamp(2rem,4vw,3.5rem)}
.case__nav{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--gap-lg) var(--gap-2xl);
  margin-top:clamp(2.5rem,5vw,4rem); padding-top:1.5rem; border-top:1px solid var(--rule);
}
.case__back:hover .ar{transform:translateX(-4px)}

/* --------------------------------------------------------------------------
   22. Forms
   -------------------------------------------------------------------------- */
/* Paired form fields. This was an inline grid-template-columns, which no media
   query could override, so the two columns stayed side by side down to 320px. */
.form__pair{display:grid; grid-template-columns:1fr 1fr; gap:0 var(--gutter)}
.form__fields{min-width:0; padding:0; margin:0; border:0}
.form-intro{max-width:54ch; font-size:var(--fs-sm); color:var(--ink-400); margin-bottom:2rem}
.form-intro a{text-decoration:underline; text-underline-offset:.2em; white-space:nowrap; padding-block:.3rem}
.form__actions{display:flex; align-items:center; flex-wrap:wrap; gap:1rem 1.5rem}
.form__actions .tlink{min-height:44px}
.form__copy{margin-top:1.5rem}
.form__copy textarea{min-height:16rem; font-size:var(--fs-sm)}
@media (max-width:560px){ .form__pair{grid-template-columns:1fr} }
.field{display:grid; gap:var(--gap-sm); margin-bottom:var(--space-5)}
.field label{
  font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-label); text-transform:uppercase; color:var(--ink-400);
}
.field input,.field select,.field textarea{
  font:400 var(--fs-body)/1.5 var(--font-body);
  color:var(--ink-800); background:transparent;
  border:0; border-bottom:1px solid var(--rule-strong);
  padding:.75rem 0; width:100%;
  transition:border-color var(--dur-fast) var(--ease);
  border-radius:0; -webkit-appearance:none; appearance:none;
}
.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6773' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .25rem center}
.field textarea{resize:vertical; min-height:8rem}
.field select{padding-right:1.5rem}
.field input:focus,.field select:focus,.field textarea:focus{outline:0; border-color:var(--accent)}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid var(--accent); outline-offset:4px}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-400)}   /* ink-300 was 2.8:1 */
/* A field form.js has flagged, focused or not; the reason is in .form-note. */
.field [aria-invalid="true"],.field [aria-invalid="true"]:focus{border-bottom-color:var(--error)}

.form-note{
  font:500 var(--fs-label)/1.7 var(--font-label); letter-spacing:var(--track-tight);
  color:var(--ink-400); margin-top:var(--space-5);
}
/* No message, no gap under the button. */
.form-note:empty{display:none}
.form-note.is-error{color:var(--error)}   /* 5.00:1 on paper */

/* Contact details list */
.cdetail{border-top:1px solid var(--rule); padding-top:1.35rem; margin-top:var(--space-5)}
.cdetail:first-child{border-top:0; padding-top:0; margin-top:0}
.cdetail dt{font:500 var(--fs-label)/1 var(--font-label); letter-spacing:var(--track-label); text-transform:uppercase; color:var(--ink-400); margin-bottom:var(--space-2)}
.cdetail dd{font-variant-numeric:tabular-nums; margin:0; font-family:var(--font-display); font-weight:400; font-size:var(--fs-lead); letter-spacing:var(--track-h3); line-height:1.4}
/* Each of these is a whole line on its own. Blocking them out gives a real
   target and stops the two phone numbers sitting 19px apart on a phone. */
.cdetail dd a{display:block; padding-block:.3rem; transition:color var(--dur-fast) var(--ease)}
.cdetail dd a:hover{color:var(--accent)}

/* --------------------------------------------------------------------------
   23. Values grid
   -------------------------------------------------------------------------- */
.vgrid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--rule)}
.vcard{background:var(--paper); padding:clamp(1.5rem,3vw,2.25rem)}
.vcard__i{
  width:34px; height:34px; margin-bottom:var(--space-5); color:var(--accent);
  stroke:currentColor; stroke-width:1.2; fill:none;
}
.vcard h3{font-size:var(--fs-h4); margin-bottom:var(--space-2)}
.vcard p{font-size:var(--fs-sm); color:var(--ink-500); margin:0}
@media (max-width:900px){ .vgrid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:520px){ .vgrid{grid-template-columns:1fr} }

/* --------------------------------------------------------------------------
   23b. Home page motion ("aura")
   A small set of movements that answer the visitor, all on the home page
   only (main.home), all off under reduced motion, none of them moving the
   layout: they use transform, opacity and clip-path, nothing else.
   -------------------------------------------------------------------------- */
/* Section headings come in word by word: main.js wraps each word (.w) and
   each rises out of its own line with a slight tilt, one after another. The
   words keep their spaces between them, so the heading wraps as before. */
.js .home .split .w{
  display:inline-block; overflow:hidden; vertical-align:top;
  padding:0 .08em .16em; margin:0 -.08em -.16em;
}
.js .home .split .w > span{
  display:inline-block; transform:translateY(108%) rotate(5deg); transform-origin:0 100%;
  transition:transform 1s var(--ease); transition-delay:calc(.1s + var(--wi, 0) * 60ms);
}
.home .is-in .split .w > span,.home .split.is-in .w > span{transform:none}
/* The eyebrow's short rule draws out before its words settle. */
.js .home [data-reveal] .eyebrow::before{transform:scaleX(0); transform-origin:left; transition:transform .8s var(--ease) .2s}
.home [data-reveal].is-in .eyebrow::before{transform:none}

/* Lists come in item by item: the client names, the five capabilities.
   main.js marks the items and numbers them (--i). */
.js [data-stagger] [data-stagger-item]{
  opacity:0; transform:translateY(14px);
  transition:opacity .6s var(--ease), transform .6s var(--ease), color var(--dur) var(--ease);
  transition-delay:calc(var(--i, 0) * 70ms);
}
[data-stagger].is-in [data-stagger-item]{opacity:1; transform:none}

/* Pictures drift a little against the scroll, a few percent of their own
   height, so the page reads in depth. Each is scaled up just enough to hide
   the movement's edges. The individual translate/scale properties leave the
   cards' hover zoom (transform) free to work on top. */
.has-drift .home .pcard__media img,
.has-drift .home .fig.mask > picture > img,
.has-drift .home .cta__bg img{scale:1.06; translate:0 var(--drift, 0px)}

/* The hero answers the pointer: the photograph shifts a few pixels against
   it, behind the type, which stays still. Desktop pointers only. */
.hero.has-depth .hero__media{scale:1.035; translate:var(--hx, 0px) var(--hy, 0px); transition:translate 1.1s var(--ease)}

/* The two dark sections carry a soft glow of the brand blue that follows the
   pointer, and drifts on its own on a touch screen. main.js adds the .aura
   layer; it clips the glow to the section without becoming a scroll
   container, so the process photograph's sticky column still works. */
.home [data-aura]{position:relative; isolation:isolate}
.home [data-aura] > .wrap{position:relative; z-index:1}
.aura{position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0}
.aura::before{
  content:''; position:absolute; left:0; top:0;
  width:min(70vmax, 1100px); aspect-ratio:1; border-radius:50%;
  background:radial-gradient(closest-side, rgba(74,159,224,.17), rgba(74,159,224,.06) 52%, rgba(74,159,224,0));
  translate:-50% -50%;
  transform:translate3d(var(--ax, 22vw), var(--ay, 28vh), 0);
  transition:transform 1.4s var(--ease);
}
.aura--drift::before{animation:auraDrift 26s ease-in-out infinite alternate}
@keyframes auraDrift{
  0%  {transform:translate3d(12vw, 18vh, 0)}
  50% {transform:translate3d(82vw, 70vh, 0)}
  100%{transform:translate3d(36vw, 130vh, 0)}
}

/* Reading progress: a hairline across the top of the screen. */
.scroll-progress{
  position:fixed; top:0; left:0; right:0; height:2px; z-index:101; pointer-events:none;
  background:var(--accent-bright); transform-origin:left; transform:scaleX(var(--sp, 0));
}

@media (prefers-reduced-motion:reduce){
  .js .home .split .w > span{transform:none}
  .js .home [data-reveal] .eyebrow::before{transform:none}
  .js [data-stagger] [data-stagger-item]{opacity:1; transform:none}
  .aura--drift::before{animation:none}
  .hero.has-depth .hero__media{scale:none; translate:none}
}

/* --------------------------------------------------------------------------
   24. Scroll reveal
   -------------------------------------------------------------------------- */
/* Hidden only while the `js` flag is on <html>. A watchdog in the head clears
   that flag if main.js never initialises, so a script that fails to load or
   throws leaves a readable page instead of a blank one. */
.js [data-reveal]{
  opacity:0; transform:translateY(20px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-in{opacity:1; transform:none}
[data-reveal][data-delay="1"]{transition-delay:.08s}
[data-reveal][data-delay="2"]{transition-delay:.16s}
[data-reveal][data-delay="3"]{transition-delay:.24s}
[data-reveal][data-delay="4"]{transition-delay:.32s}
[data-reveal][data-delay="5"]{transition-delay:.4s}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  [data-reveal]{opacity:1; transform:none}
  .disciplines__w{animation:none; color:var(--idle); transform:none}
  .marquee__label span{animation:none; background-image:none; color:var(--ink-400)}
  .reveal-line > span{transform:none}
  .hero__fadeup{opacity:1; transform:none}
  .mask picture,.mask > img{clip-path:none}
  .hero__slide img{transform:none}
}

/* --------------------------------------------------------------------------
   25. Utilities
   -------------------------------------------------------------------------- */
.vh{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}
.mt0{margin-top:0}
.mb0{margin-bottom:0}
.tar{text-align:right}
.flow > * + *{margin-top:1.15em}

/* --------------------------------------------------------------------------
   26. <picture> sizing — the token emits <picture><img>, so the wrapper
       must inherit the box it sits in.
   -------------------------------------------------------------------------- */
.hero__slide picture,
.fig picture,
.pcard__media picture,
.cta__bg picture,
.phead__bg picture{display:block; width:100%; height:100%}
.byline picture{flex:none; display:block; width:56px; height:56px}

/* Anchors used as cards contain flow content — keep their parts block-level.
   .cap__body is no longer one of them: it is a flex column so the sentence
   can sit below the terms while staying above them in the markup, where it
   belongs for anyone reading the page without styles. */
.pcard__media,.pcard__meta{display:block}

/* --------------------------------------------------------------------------
   27. Column utilities (12-col at >900px, stacked below)
   -------------------------------------------------------------------------- */
/* Span is set on the END edge so a .start-N can set the start independently.
   `grid-column: span N` would set the START to "span N" and leave the end auto,
   which collapses the element to a single track once .start-N applies. */
.col-2{grid-column-end:span 2}
.col-3{grid-column-end:span 3}
.col-4{grid-column-end:span 4}
.col-5{grid-column-end:span 5}
.col-6{grid-column-end:span 6}
.col-7{grid-column-end:span 7}
.col-8{grid-column-end:span 8}
.col-12{grid-column:1 / -1}
.start-6{grid-column-start:6}
.start-7{grid-column-start:7}
.start-8{grid-column-start:8}
.start-9{grid-column-start:9}
.start-11{grid-column-start:11}
.self-end{align-self:end}
.self-center{align-self:center}
.justify-end{justify-self:end}

/* A short heading column beside a long prose column leaves half the page
   empty for the whole scroll. Pinning it keeps the heading with the text it
   introduces. `align-self:start` is required: a stretched grid item fills its
   track, so sticky would have no distance to travel. Below the 900px
   breakpoint the columns stack and there is nothing to pin. */
@media (min-width:901px){
  .sticky-head{position:sticky; top:calc(var(--nav-h) + 2.5rem); align-self:start}
}
@media (prefers-reduced-motion:reduce){
  .sticky-head{position:static}
}

/* Once the columns stack, media goes full-bleed and the fixed ratios turn
   brutal: a 3:4 figure on a 900px screen is 1084px tall, so the reader scrolls
   through more than a screenful of a single photograph. Cap the box and let
   object-fit crop — except portraits of people, where the ratio is held and the
   column is narrowed instead so nobody loses their head to the crop. */
@media (max-width:900px){
  .fig--sq > picture,.fig--tall > picture,.pcard__media > picture{max-height:70vh}
  figure.fig--tall{max-width:min(100%,480px); margin-inline:auto}
  figure.fig--tall > picture{max-height:none}
}

@media (max-width:900px){
  [class*="col-"]{grid-column:1 / -1 !important}
  [class*="start-"]{grid-column-start:auto}
  .justify-end{justify-self:start}
  .self-center,.self-end{align-self:auto}
  /* A stacked figure has to size to its own content. Stretched to its grid row
     it inherited a row height computed from the aspect-ratio box alone — the
     caption was left out of that calculation, fell outside the figure, and
     printed on top of the next section's label. Measured on Capabilities at
     390px: 30px of overlap before, 0 after. */
  figure.fig{align-self:start}
}

/* Spacing helpers used between blocks */
.mt-lg{margin-top:clamp(3rem,6vw,5.5rem)}
.mt-md{margin-top:clamp(2rem,4vw,3.5rem)}
.mt-sm{margin-top:clamp(1.25rem,2.5vw,2rem)}
.mb-lg{margin-bottom:clamp(2.5rem,5vw,4rem)}
.mb-md{margin-bottom:clamp(1.75rem,3.5vw,2.75rem)}
.mb-sm{margin-bottom:clamp(1.25rem,2.5vw,2rem)}
.rowgap-lg{row-gap:clamp(2.5rem,5vw,4rem)}
.on-dark{color:var(--on-dark-3)}
.lead-dark{color:var(--on-dark-2)}
.fig-flat{margin:0}

/* Patterns that had been repeated as inline style attributes across the pages.
   Naming them keeps the spacing consistent and lets a change happen in one
   place instead of nineteen. */
.btn-row{display:flex; flex-wrap:wrap; gap:var(--gap-md)}
.marklist{display:grid; gap:var(--gap-md); margin:0; padding:0; list-style:none}
.marklist li{display:flex; gap:var(--gap-lg); align-items:baseline}
.fineprint{
  font-family:var(--font-label); font-size:var(--fs-xs); font-weight:500;
  letter-spacing:var(--track-mono); color:var(--ink-400);
}
.cta .lead{max-width:44ch; margin-bottom:var(--space-8)}
.cap--plain .cap__tags{margin-top:var(--space-4)}
/* On an ink section these chips and their rules invert like everything else. */
.section--dark .cap__tags span,.section--ink .cap__tags span{
  color:var(--ink-200); border-color:var(--rule-dark);
}
.section--dark .cap__n,.section--ink .cap__n{color:var(--ink-300)}

/* The last cell of the values grid inverts — it is a figure, not a value. */
.vcard--dark{background:var(--ink-900); color:var(--paper)}
.vcard--dark .vcard__i{color:var(--accent-bright)}
.vcard--dark h3{color:#fff}
.vcard--dark p{color:var(--ink-200)}

/* Project index is a catalogue, not a composition — one ratio so the eye
   can scan rows. The deliberate mixed ratios stay on the home page. */
.pgrid .pcard__media{aspect-ratio:4/3}
