/* ETC: the single spine.
   A deep black-graphite ground (#0d0d0e), ivory type, champagne gold kept for the few things
   that matter. Every line of text hangs from one vertical line on the left, the spine, on a
   laptop and on a phone: a section is always its title, the intro under it, then the
   content under that, starting on the same line. Photographs and hairlines may run to the
   right edge; words never do. Marcellus carries words, Albert Sans carries text and every
   figure. Sentence case, no kickers, no textures. */

/* Figures: Albert Sans draws every digit, even inside Marcellus (whose 0 reads as an O).
   Same variable file the text face already uses, limited to digits and superscripts. */
@font-face {
  font-family: "ETC Figures";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/albertsans/v4/i7dOIFdwYjGaAMFtZd_QA1ZbYFeQGQyU.woff2) format("woff2");
  unicode-range: U+0030-0039, U+00B2-00B3;
}
@font-face {
  font-family: "ETC Figures";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/albertsans/v4/i7dOIFdwYjGaAMFtZd_QA1ZbYFeQGQyU.woff2) format("woff2");
  unicode-range: U+0030-0039, U+00B2-00B3;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  /* grounds: deep black graphite (the owner chose black over the slate swatch) */
  --g-0: #08080a;   /* deepest: footer, menu, viewer, entrance */
  --g-1: #0d0d0e;   /* the page ground */
  --g-2: #141415;   /* raised: panels, surfaces, inputs */
  --g-3: #1b1b1d;   /* raised hover, selected rows */
  --g-4: #26262a;   /* scrollbar, disabled */
  --g-rgb: 13, 13, 14;
  --g0-rgb: 8, 8, 10;
  /* hairlines: ivory on a cool ground; gold only where it means something */
  --line: rgba(244, 241, 234, 0.1);
  --line-2: rgba(244, 241, 234, 0.18);
  --line-gold: rgba(201, 169, 110, 0.42);
  /* ivory: the shirt */
  --ink: #f4f1ea;
  --ink-2: #d0ccc4;
  --ink-3: #a6a39d;
  --ink-4: #8a8883;
  /* champagne: the cufflinks */
  --gold-1: #a88d5f;
  --gold: #c9a96e;
  --gold-2: #d9bc84;
  --gold-3: #e6cf9c;
  --on-gold: #141210;
  --gold-wash: rgba(201, 169, 110, 0.14);
  --paper: #ecebe6;
  --bone: #e4e0d7;
  --error: #f0a58a;
  --scrim: rgba(13, 13, 14, 0.86);

  /* the older names, pointed at the new palette */
  --bg-0: var(--g-0); --bg-1: var(--g-1); --bg-2: var(--g-2); --bg-3: var(--g-3); --bg-4: var(--g-4);
  --rule: var(--line); --rule-2: var(--line-2); --reveal: var(--line-gold);
  --ivory: var(--ink); --ivory-2: var(--ink-2); --ivory-3: var(--ink-3);
  --bronze: var(--gold-1); --bronze-hi: var(--gold-2);
  --glow: var(--gold-2); --honey: var(--gold); --honey-hi: var(--gold-3);
  --umber: var(--on-gold); --umber-2: #4a4f57;

  --serif: "ETC Figures", "Marcellus", "Optima", "Candara", "Palatino Linotype", serif;
  --sans: "Albert Sans", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* type */
  --t-hero: clamp(3.5rem, 1.6rem + 3.9vw, 6rem);
  --t-page: clamp(3.25rem, 1.7rem + 3.2vw, 5.25rem);
  --t-title: clamp(2.5rem, 1.5rem + 2vw, 3.75rem);
  --t-sub: clamp(1.625rem, 1.2rem + 0.8vw, 2rem);
  --t-name: 1.375rem;
  --t-intro: clamp(1.1875rem, 1rem + 0.35vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-fig: clamp(3.5rem, 2rem + 3vw, 5.5rem);
  --t-figm: 1.75rem;
  /* older names */
  --t: var(--t-body); --t-lede: var(--t-intro);
  --d-hero: var(--t-hero); --d-page: var(--t-page); --d-2: var(--t-title); --d-3: var(--t-sub); --d-4: var(--t-name);

  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* the grid: one margin, one gap; named axes A (col 1), B, C (the midline), D */
  --cols: 12; --A: 1; --B: 4; --C: 7; --D: 10; --head-span: 8;
  --gap: 24px;
  --margin: clamp(40px, 5.5vw, 96px);
  --max: 1312px;
  --gutter: var(--margin);
  --wrap: min(100% - 2 * var(--margin), var(--max));
  /* rhythm (8px base) */
  --hh: 80px;
  --sec: 160px;        /* between two sections on the same ground */
  --edge: 96px;        /* outside a raised panel */
  --pad: 128px;        /* inside a raised panel */
  --head-gap: 24px;    /* title to intro */
  --head-after: 64px;  /* head to content */
  --sec-inner: 96px;   /* before a sub-head */
  --foot-gap: 48px;    /* content to the section foot */
  --row: 24px;         /* ruled-row padding */
  --stack: 24px;
  --inset: 32px;

  --grade: saturate(0.85) contrast(1.04) brightness(0.92);
  --grade-deep: saturate(0.78) contrast(1.05) brightness(0.88);
  --grade-scene: saturate(0.78) contrast(1.05) brightness(0.84);
}
@media (max-width: 1099px) {
  :root {
    --cols: 8; --B: 3; --C: 5; --D: 7; --head-span: 7;
    --margin: 40px;
    --hh: 72px; --sec: 128px; --edge: 80px; --pad: 104px; --head-gap: 20px; --head-after: 56px;
    --sec-inner: 80px; --foot-gap: 40px; --row: 20px; --stack: 20px;
  }
}
@media (max-width: 759px) {
  :root {
    --cols: 4; --B: 3; --C: 1; --D: 1; --head-span: 4;
    --gap: 16px; --margin: 24px;
    --hh: 64px; --sec: 88px; --edge: 56px; --pad: 72px; --head-gap: 16px; --head-after: 40px;
    --sec-inner: 64px; --foot-gap: 32px; --row: 18px; --stack: 16px; --inset: 24px;
    --t-hero: clamp(2.625rem, 0.5rem + 9.4vw, 3.25rem);
    --t-page: clamp(2.375rem, 0.4rem + 8.6vw, 3rem);
    --t-title: clamp(2rem, 0.9rem + 4.8vw, 2.375rem);
    --t-sub: 1.5rem; --t-name: 1.25rem; --t-intro: 1.1875rem;
    --t-fig: 3rem; --t-figm: 1.5rem;
  }
}
@media (max-width: 379px) { :root { --margin: 20px; } }
/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--hh) + 12px);
  background: var(--bg-1);
  color-scheme: dark;
  scrollbar-color: var(--bg-4) var(--bg-0);
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100vh;
  font: 400 var(--t)/1.65 var(--sans);
  color: var(--ivory-2);
  background: transparent;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: normal; color: var(--glow); }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: var(--honey); color: var(--umber); }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--honey-hi); outline-offset: 4px; border-radius: 2px; }
input, textarea { caret-color: var(--honey); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border: 2px solid var(--bg-0); border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { ::-webkit-scrollbar-thumb:hover { background: var(--gold-1); } }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px;
  background: var(--honey); color: var(--umber); font: 600 var(--t) var(--sans);
  transform: translateY(-160%); transition: transform 0.3s var(--e-out);
}
.skip:focus { transform: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.anchor { display: block; position: relative; top: calc(-1 * var(--hh) - 24px); visibility: hidden; height: 0; }
section[id], [id="main"] { scroll-margin-top: var(--hh); }

/* The ground: deep black graphite, a breath of warm light from above, a fine grain
   (the owner asked for this exact background back) */
.ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% -12%, rgba(201, 169, 110, 0.07), transparent 60%),
    radial-gradient(120% 80% at 50% 120%, rgba(0, 0, 0, 0.55), transparent 60%),
    var(--g-1);
}
.ground::after {
  content: ""; position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* The entrance: the mark and the name on black for a moment, then the curtain lifts.
   Plays once per tab. If the script never arrives, it lifts itself after 4 s. */
.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(70% 55% at 50% 45%, rgba(201, 169, 110, 0.06), transparent 70%), var(--g-0);
  color: var(--ivory); animation: intro-failsafe 0.01s linear 4s forwards;
}
.intro__in { display: grid; justify-items: center; text-align: center; }
.intro .mark { width: clamp(108px, 24vw, 150px); opacity: 0; transform: translateY(14px); animation: intro-rise 1s var(--e-out) 0.05s forwards; }
.intro__name { margin-top: 26px; font: 400 clamp(1.25rem, 1rem + 1.1vw, 1.7rem) / 1.28 var(--serif); letter-spacing: 0.01em; color: var(--ivory); opacity: 0; transform: translateY(14px); animation: intro-rise 1s var(--e-out) 0.22s forwards; }
.intro__line { display: block; width: 120px; height: 1px; margin-top: 24px; background: var(--rule-2); overflow: hidden; }
.intro__line i { display: block; height: 100%; background: var(--honey); transform: scaleX(0); transform-origin: left; animation: intro-draw 1.25s var(--e-io) 0.2s forwards; }
.intro__sub { margin-top: 18px; color: var(--ivory-3); opacity: 0; animation: intro-rise 1s var(--e-out) 0.4s forwards; }
.intro.is-out { transform: translateY(-100%); transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1); }
.intro.is-out .intro__in { opacity: 0; transform: translateY(-40px); transition: opacity 0.5s, transform 0.95s cubic-bezier(0.77, 0, 0.18, 1); }
@keyframes intro-rise { to { opacity: 1; transform: none; } }
@keyframes intro-draw { to { transform: none; } }
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; } }

/* ------------------------------------------------------------------ */
/* The grid and the one section-head pattern                           */
/* ------------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.grid > .to-c { grid-column: 1 / var(--C); }
.grid > .on-c { grid-column: var(--C) / -1; }
@media (max-width: 759px) { .grid > .to-c, .grid > .on-c { grid-column: 1 / -1; } }

/* Every section opens the same way: title, the intro under it, then the content under that, all on the spine */
.head { display: grid; gap: var(--head-gap); justify-items: start; max-width: calc(var(--head-span) / var(--cols) * 100%); }
.grid > .head { grid-column: 1 / span var(--head-span); max-width: none; }
.head__title, .h2 { font: 400 var(--t-title) / 1.06 var(--serif); letter-spacing: -0.01em; color: var(--ink); max-width: 16ch; text-wrap: balance; }
.head__intro, .lede { font: 300 var(--t-intro) / 1.55 var(--sans); color: var(--ink); max-width: 54ch; text-wrap: pretty; }
.head + *, .head + .grid { margin-top: var(--head-after); }
.subhead { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); margin: var(--sec-inner) 0 32px; }
.sec__foot { margin-top: var(--foot-gap); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.prose p { max-width: 64ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.n-box { display: inline-block; min-width: 2.1em; }
@media (max-width: 759px) { .head__intro, .lede { line-height: 1.5; } }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 var(--t)/1.2 var(--sans); color: var(--ink); padding: 10px 0; min-height: 44px; position: relative; cursor: pointer;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: var(--line-gold);
}
.link::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; z-index: 1;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--e-out);
}
.link svg { transition: transform 0.6s var(--e-out); flex: none; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--gold-3); } }
@media (hover: hover) and (pointer: fine) { .link:hover::before { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .link:hover svg { transform: translateX(5px); } }

/* ------------------------------------------------------------------ */
/* Buttons: champagne, outlined                                        */
/* ------------------------------------------------------------------ */
.btn {
  --bx: 50%; --by: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 14px; text-align: left;
  min-height: 56px; padding: 0 26px; border-radius: 2px;
  font: 500 var(--t)/1 var(--sans); letter-spacing: 0.005em;
  white-space: nowrap; cursor: pointer;
  transition: color 0.4s, background-color 0.4s, box-shadow 0.6s var(--e-out), transform 0.5s var(--e-out);
}
.btn svg { flex: none; }
.btn__arrow { margin-left: auto; transition: transform 0.6s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn__arrow { transform: translateX(5px); } }
.btn:active { transform: translateY(1px); }
.btn--gold { color: var(--on-gold); background: var(--gold); box-shadow: 0 16px 34px -22px rgba(201, 169, 110, 0.6); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(150px circle at var(--bx) var(--by), rgba(255, 255, 255, 0.28), transparent 70%);
  transition: opacity 0.5s;
}
@media (hover: hover) and (pointer: fine) { .btn--gold:hover { background: var(--honey-hi); } }
@media (hover: hover) and (pointer: fine) { .btn--gold:hover::after { opacity: 1; } }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(220px circle at var(--bx) var(--by), rgba(201, 169, 110, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
@media (hover: hover) and (pointer: fine) { .btn--line:hover { color: var(--gold-3); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, 0.7); } }
.btn--gold:active { background: var(--gold-3); }
.btn--line:active { box-shadow: inset 0 0 0 1px var(--gold); }
@media (hover: hover) and (pointer: fine) { .btn--line:hover::before { opacity: 1; } }
.btn--sm { min-height: 46px; padding: 0 20px; }
@media (max-width: 759px) { .btn--gold { box-shadow: none; } }

/* ------------------------------------------------------------------ */
/* Frames, panels, medallion                                           */
/* ------------------------------------------------------------------ */
/* photographs lie on the cloth: a faint light edge and a long soft shadow */
.frame { position: relative; overflow: hidden; background: var(--g-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 50px 90px -50px rgba(6, 7, 9, 0.9); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: filter 1s var(--e-out), transform 1.6s var(--e-out); }

/* Panels: a raised plane of the same cloth with a lit top edge, inside the same rhythm */
.panel { position: relative; isolation: isolate; background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 40%), var(--g-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
main > section { padding-top: var(--sec); }
main > section:first-child { padding-top: 0; }
main > section:last-child:not(.panel) { padding-bottom: var(--sec); }
main > section.panel { margin-top: var(--edge); padding-block: var(--pad); }
main > .panel + section { padding-top: var(--edge); }

/* Scenes: the hero photograph behind the words on a laptop, shaded with the ground colour.
   On tablets and phones it hangs on its own under the header and nothing sits on it. */
.scene, .hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--g-0); }
.scene img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; max-width: none; object-fit: cover; filter: var(--grade-scene); transform: translate3d(0, var(--py, 0px), 0); }
.js .scene img { opacity: 0; transition: opacity 1.8s var(--e-out); }
.js .scene img.is-in { opacity: 1; }
.scene::after, .hero__media::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* The medallion: the portrait on a paper disc, ringed in gold */
.medallion {
  position: relative; display: block; flex: none; width: 168px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.6), 0 40px 80px -40px rgba(6, 7, 9, 0.9);
}
.medallion img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; filter: contrast(1.04) saturate(0.92); transform: scale(1.06); }
.medallion--lg { width: clamp(220px, 26vw, 340px); }

/* ------------------------------------------------------------------ */
/* Reveal motion                                                       */
/* ------------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s var(--e-out), transform 1.1s var(--e-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in-view { opacity: 1; transform: none; }

.js .ln { display: block; overflow: hidden; padding-bottom: 0.26em; margin-bottom: -0.26em; }
.js .ln > span { display: inline-block; transform: translateY(135%); transition: transform 1.4s var(--e-out); }
.js .is-ready .ln > span { transform: none; }
.js .is-ready .ln:nth-child(2) > span { transition-delay: 0.1s; }
.js .is-ready .ln:nth-child(3) > span { transition-delay: 0.2s; }

/* ------------------------------------------------------------------ */
/* Header: the brand on the spine, the pages from the midline          */
/* ------------------------------------------------------------------ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--hh);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s, transform 0.6s var(--e-out);
}
.header.is-scrolled {
  background: var(--scrim); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
}
.header.is-away { transform: translateY(-101%); }
.header__in { height: 100%; align-items: center; }
.header__in > * { grid-row: 1; }
.header__in > .brand { grid-column: 1 / span 4; justify-self: start; }
.header__in > .nav { grid-column: var(--C) / -1; }
.header__in > .header__act { grid-column: 1 / -1; justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); flex: none; }
.mark { width: 58px; height: auto; overflow: visible; }
.mark .mk-letters { fill: var(--gold); }
.mark .mk-crane { fill: currentColor; }
.brand__name { font: 400 0.98rem/1.25 var(--serif); color: var(--ink-3); white-space: nowrap; }
.nav { display: flex; align-items: center; justify-content: flex-start; gap: clamp(22px, 2.2vw, 36px); }
.nav__link { position: relative; padding: 10px 0; font: 400 var(--t-body)/1 var(--sans); color: var(--ink-2); white-space: nowrap; transition: color 0.4s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--e-out);
}
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--ink); } }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); } }
.nav__link[aria-current] { color: var(--ink); }
.header__act { display: flex; align-items: center; gap: 16px; }
.header__cta { min-height: 44px; padding: 0 18px; }
.menu-btn { display: none; align-items: center; text-align: left; gap: 12px; height: 44px; padding: 0 0 0 14px; color: var(--ink); font: 500 var(--t-body) var(--sans); }
.menu-btn__lines { position: relative; width: 26px; height: 12px; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--e-out); }
.menu-btn__lines i:first-child { top: 1px; }
.menu-btn__lines i:last-child { bottom: 1px; transform: scaleX(0.7); }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover .menu-btn__lines i:last-child { transform: none; } }

@media (max-width: 1279px) and (min-width: 1100px) {
  .brand__name { display: none; }
}
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 759px) {
  .brand__name { display: none; }
  .mark { width: 50px; }
  .header__cta { display: none; }
}

/* ------------------------------------------------------------------ */
/* Menu overlay: the deepest cloth; the pages on the spine, a photograph on the midline */
/* ------------------------------------------------------------------ */
.menu { position: fixed; inset: 0; z-index: 80; color: var(--ink); }
.menu__bg {
  position: absolute; inset: 0;
  background: radial-gradient(110% 70% at 14% -10%, rgba(206, 220, 236, 0.06), transparent 62%), var(--g-0);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--e-io);
}
.menu.is-open .menu__bg { clip-path: inset(0); }
.menu.is-closing .menu__bg { clip-path: inset(100% 0 0 0); transition-duration: 0.5s; }
.menu__in {
  position: relative; height: 100%; height: 100dvh;
  grid-template-rows: var(--hh) minmax(0, 1fr) auto auto;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.menu__in:focus, .menu__in:focus-visible { outline: none; }
.menu__top { grid-row: 1; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.brand--menu { color: var(--ink); }
.menu__close { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding-left: 14px; font: 500 var(--t-body) var(--sans); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .menu__close:hover { color: var(--gold-3); } }
.grid > .menu__nav { grid-row: 2; grid-column: 1 / var(--C); align-self: center; padding-block: 24px; }
.menu__list { display: grid; gap: clamp(8px, 1.6vh, 20px); }
.menu__item { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--e-out), transform 0.6s var(--e-out); transition-delay: calc(0.16s + var(--n) * 0.05s); }
.menu.is-open .menu__item { opacity: 1; transform: none; }
.menu__link { display: grid; justify-items: start; gap: 4px; padding: 4px 0; }
.menu__name {
  font: 400 clamp(2.5rem, min(1.6rem + 3vw, 7vh), 4.5rem) / 1.02 var(--serif); letter-spacing: -0.015em; color: var(--ink);
  transition: color 0.4s, transform 0.6s var(--e-out);
}
.menu__blurb { font: 400 var(--t-body)/1.5 var(--sans); color: var(--ink-3); max-width: 44ch; }
@media (hover: hover) and (pointer: fine) { .menu__link:hover .menu__name { color: var(--gold-3); transform: translateX(10px); } }
.menu__link:focus-visible .menu__name { color: var(--gold-3); }
.menu__link[aria-current] .menu__name { color: var(--gold-2); }
.grid > .menu__media { grid-row: 2; grid-column: var(--C) / -1; align-self: center; width: 100%; aspect-ratio: 4 / 5; max-height: 64vh; max-width: calc(64vh * 0.8); opacity: 0; transition: opacity 0.5s 0.3s; }
.menu.is-open .menu__media { opacity: 1; }
.menu__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.6s, transform 1.2s var(--e-out); }
.menu__img.is-on { opacity: 1; transform: none; }
.grid > .menu__cta { display: none; }
.grid > .menu__foot {
  grid-row: 4; grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 40px;
  padding-top: 16px; border-top: 1px solid var(--line); opacity: 0; transition: opacity 0.5s 0.3s;
}
.menu.is-open .menu__foot, .menu.is-open .menu__in > .menu__cta { opacity: 1; }
.menu__foot a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 500; color: var(--ink-2); }
.menu__foot svg { color: var(--gold-1); flex: none; }
@media (hover: hover) and (pointer: fine) { .menu__foot a:hover { color: var(--gold-3); } }

@media (max-width: 1099px) {
  .menu__in { overflow-y: auto; overscroll-behavior: contain; }
  .grid > .menu__cta { display: inline-flex; grid-row: 3; grid-column: 1 / -1; justify-self: start; margin-bottom: 24px; opacity: 0; transition: opacity 0.5s 0.3s; }
}
@media (max-width: 1099px) and (max-height: 939px) {
  .menu__blurb { display: none; }
}
@media (max-width: 759px) {
  /* the names sit low, in thumb reach; the action under them; contact rows 48px */
  .grid > .menu__nav { grid-column: 1 / -1; align-self: end; padding-block: 16px 24px; }
  .grid > .menu__media, .menu__blurb { display: none; }
  .menu__list { gap: 4px; }
  .menu__name { font-size: 2.5rem; }
  .menu__link { padding: 6px 0; }
  .grid > .menu__cta { justify-self: stretch; justify-content: space-between; }
  .grid > .menu__foot { flex-direction: column; gap: 0; padding-top: 8px; }
}
@media (max-width: 379px), (max-height: 700px) and (max-width: 759px) {
  .menu__name { font-size: 2.125rem; }
  .menu__link { padding: 3px 0; }
  .menu__foot a { min-height: 44px; }
}

/* ------------------------------------------------------------------ */
/* Phone dock: one solid footing, the quote one thumb away              */
/* ------------------------------------------------------------------ */
.dock { display: none; }
@media (max-width: 759px) {
  .dock {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    display: flex; gap: 12px;
    padding: 12px var(--margin) max(12px, env(safe-area-inset-bottom));
    background: var(--g-1); border-top: 1px solid var(--line);
    transform: translateY(calc(100% + 32px)); transition: transform 0.6s var(--e-out);
  }
  .dock::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; pointer-events: none;
    background: linear-gradient(180deg, rgba(var(--g-rgb), 0), rgba(var(--g-rgb), 0.92));
  }
  .dock.is-on { transform: none; }
  .dock__cta { flex: 1; min-height: 52px; justify-content: space-between; padding: 0 22px; box-shadow: none; }
  .dock__wa {
    flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 2px;
    color: var(--gold-2); background: var(--g-2); box-shadow: inset 0 0 0 1px var(--line-2);
  }
  .dock__wa:active { background: var(--g-3); }
}
/* ------------------------------------------------------------------ */
/* The hero: one component on all five pages                           */
/* Laptop: the photograph fills the room, shaded with the ground colour */
/* from the spine; the title, intro, actions and caption hang from the  */
/* spine at the foot. Tablet and phone: the photograph hangs on its own */
/* under the header, its caption beneath it, then the words.            */
/* ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--hh); }
.hero--home { min-height: min(100svh, 1000px); min-height: max(680px, min(100svh, 1000px)); }
.hero--page { min-height: clamp(620px, 84svh, 920px); }
.hero__media, .hero .scene { position: absolute; inset: 0; z-index: -1; }
.hero__photos { position: absolute; inset: -6% 0; transform: translate3d(0, var(--py, 0px), 0); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade-scene); opacity: 0; transform: scale(1.08); transition: opacity 1.8s var(--e-io), transform 10s linear; }
.hero__photo.is-on { opacity: 1; transform: scale(1.01); }
.hero__media::after, .hero .scene::after {
  background:
    linear-gradient(180deg, rgba(var(--g-rgb), 0.6) 0%, rgba(var(--g-rgb), 0) 22%, rgba(var(--g-rgb), 0) 46%, rgba(var(--g-rgb), 0.55) 72%, rgba(var(--g-rgb), 0.94) 92%, var(--g-1) 100%),
    linear-gradient(90deg, rgba(var(--g-rgb), 0.94) 0%, rgba(var(--g-rgb), 0.88) 34%, rgba(var(--g-rgb), 0.5) 56%, rgba(var(--g-rgb), 0.12) 78%, rgba(var(--g-rgb), 0.05) 100%);
}
.js .hero__media { opacity: 0; transition: opacity 2.2s var(--e-out) 0.1s; }
.js .is-ready .hero__media { opacity: 1; }

.hero__in { width: var(--wrap); margin-inline: auto; padding-top: clamp(64px, 12vh, 140px); padding-bottom: 40px; }
.hero__head { display: grid; justify-items: start; }
.hero__title { font: 400 var(--t-hero) / 1 var(--serif); letter-spacing: -0.018em; color: var(--ink); max-width: 14ch; text-wrap: balance; }
.hero--page .hero__title { font-size: var(--t-page); line-height: 1.02; letter-spacing: -0.015em; }
.hero__intro { margin-top: 32px; font: 300 var(--t-intro) / 1.55 var(--sans); color: var(--ink); max-width: 50ch; text-wrap: pretty; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* the caption: what this photograph is, on the spine, under a hairline */
.hero__caption { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 64px; }
.hero__open { display: inline-flex; align-items: baseline; gap: 12px; text-align: left; min-height: 44px; align-items: center; transition: opacity 0.38s; }
.hero__open.is-swapping { opacity: 0; }
.hero__name { font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); }
.hero__year, .credit__name i { font: 300 var(--t-body) / 1 var(--sans); font-style: normal; color: var(--gold-2); letter-spacing: 0.01em; }
.hero__go, .credit svg { flex: none; color: var(--gold-1); transition: transform 0.5s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .hero__open:hover .hero__name, .credit:hover .credit__name { color: var(--gold-3); } }
@media (hover: hover) and (pointer: fine) { .hero__open:hover .hero__go, .credit:hover svg { transform: translateX(4px); color: var(--gold); } }
.hero__ticks { display: flex; gap: 6px; }
.hero__ticks i { width: 22px; height: 1px; background: var(--line-2); transform: scaleX(0.6); transform-origin: left; transition: background 0.5s, transform 0.5s var(--e-out); }
.hero__ticks i.is-on { transform: none; background: var(--gold); }
.hero__pause, .clients__pause {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.3s, box-shadow 0.3s;
}
@media (hover: hover) and (pointer: fine) { .hero__pause:hover, .clients__pause:hover { color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--gold); } }
.hero__pause .i-play, .clients__pause .i-play { display: none; }
[aria-pressed="true"] > .i-pause { display: none; }
[aria-pressed="true"] > .i-play { display: block; }
.credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; text-align: left; min-height: 44px; }
.credit__name { font: 400 var(--t-name) / 1.25 var(--serif); color: var(--ink); transition: color 0.3s; }
.credit__name i { margin-left: 6px; }
.credit__what { color: var(--ink-3); font-size: var(--t-small); }
.credit svg { order: 3; }
.js .hero__caption { opacity: 0; transition: opacity 1.2s var(--e-out) 0.9s; }
.js .is-ready .hero__caption { opacity: 1; }
.js .hero__intro, .js .hero__actions { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--e-out) 0.45s, transform 1.2s var(--e-out) 0.45s; }
.js .is-ready .hero__intro, .js .is-ready .hero__actions { opacity: 1; transform: none; }
.js .is-ready .hero__actions { transition-delay: 0.6s; }

/* Tablet and phone: the photograph is a plate under the header; nothing sits on it */
@media (max-width: 1099px) {
  .hero, .hero--home, .hero--page { min-height: 0; justify-content: flex-start; }
  .hero__media, .hero .scene { position: relative; inset: auto; z-index: auto; flex: none; width: 100%; aspect-ratio: 16 / 10; max-height: 56svh; }
  .hero .scene img { top: 0; height: 100%; transform: none; }
  .hero__photos { inset: 0; transform: none; }
  .hero__media::after, .hero .scene::after { background: linear-gradient(180deg, rgba(var(--g-rgb), 0.12), rgba(var(--g-rgb), 0) 24%); }
  .hero__in { display: flex; flex-direction: column; padding-top: 0; padding-bottom: 0; }
  .hero__caption { order: -1; margin: 0 0 40px; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--line); min-height: 0; gap: 8px 20px; }
  .hero__intro { margin-top: 24px; color: var(--ink-2); }
  .hero__actions { margin-top: 32px; }
}
@media (max-width: 759px) {
  .hero__caption { margin-bottom: 32px; }
  .hero__ticks { display: none; }
  .hero__actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .credit { gap: 2px 12px; }
  .credit__what { flex-basis: 100%; order: 4; }
}
main > section.hero { padding-top: var(--hh); }
/* ------------------------------------------------------------------ */
/* Home. Every section: the head on the spine (A), content under it,  */
/* the section foot last, also on A. Rhythm comes from 01-base.       */
/* ------------------------------------------------------------------ */

/* Seven disciplines: ruled rows on A, the photograph on the midline (C) */
.systems__list { grid-row: 2; align-self: start; border-bottom: 1px solid var(--line); }
.systems__frame {
  grid-row: 2; align-self: start; position: sticky; top: calc(var(--hh) + 32px);
  margin-top: var(--head-after); aspect-ratio: 6 / 5;
}
.systems__frame img { position: absolute; inset: 0; filter: var(--grade-deep); opacity: 0; transform: scale(1.04); transition: opacity 0.9s var(--e-out), transform 1.6s var(--e-out); }
.systems__frame img.is-on { opacity: 1; transform: none; }
.sysrow {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  padding: var(--row) 0; border-top: 1px solid var(--line);
}
.sysrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--e-out);
}
.sysrow__name { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); transition: color 0.4s; }
.sysrow__n { font-size: var(--t-small); color: var(--ink-3); white-space: nowrap; }
.sysrow__n b { font-weight: 400; }
.sysrow__go { align-self: center; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.7s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .sysrow:hover::after, .sysrow.is-hot::after { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .sysrow:hover .sysrow__name, .sysrow.is-hot .sysrow__name { color: var(--gold-3); } }
@media (hover: hover) and (pointer: fine) { .sysrow:hover .sysrow__go, .sysrow.is-hot .sysrow__go { opacity: 1; transform: none; } }
@media (max-width: 759px) {
  .systems__frame { display: none; }
  .sysrow { min-height: 64px; }
  .sysrow__go { display: none; }
}

/* Selected work: the rail starts on A and runs off the right edge */
.work { container-type: inline-size; }
.rail {
  --x: max(var(--margin), (100% - var(--max)) / 2);
  margin-top: var(--head-after);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--x); scroll-padding-inline: var(--x);
  cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .wcard { pointer-events: none; }
.rail__track { display: flex; gap: var(--gap); width: max-content; }
.wcard {
  width: calc((min(100cqw - 2 * var(--margin), var(--max)) - var(--gap)) / 2);
  scroll-snap-align: start; text-align: left; display: grid; align-content: start;
}
.wcard__frame { aspect-ratio: 4 / 3; }
.wcard__name { margin-top: 20px; font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); transition: color 0.4s; }
.wcard__sum { margin-top: 8px; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.wcard__meta { margin-top: 8px; font-size: var(--t-small); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .wcard:hover img, .wcard:focus-visible img { filter: none; transform: scale(1.03); } }
@media (hover: hover) and (pointer: fine) { .wcard:hover .wcard__name { color: var(--gold-3); } }
.js .wcard { opacity: 0; transform: translateX(48px); transition: opacity 1.1s var(--e-out), transform 1.4s var(--e-out); transition-delay: calc(var(--i) * 0.07s); }
.js .work.in-view .wcard { opacity: 1; transform: none; }
.work__foot { gap: 16px 32px; }
.rail__nav { display: flex; gap: 12px; }
.rail__btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.rail__btn[data-rail-prev] svg { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .rail__btn:hover { color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--gold); } }
.rail__btn:disabled { opacity: 0.35; cursor: default; }
.rail__count { color: var(--ink-2); white-space: nowrap; }
.rail__count .n-box { min-width: 0.62em; }
@media (max-width: 1099px) {
  .wcard { width: calc((100cqw - 2 * var(--margin)) * 5 / 8 - var(--gap) * 3 / 8); }
}
@media (max-width: 759px), (hover: none) { .rail__nav { display: none; } }
@media (max-width: 759px) { .wcard { width: 82cqw; } }

/* Latest projects: one compact spread per project. The project's thumbnail and its site clip
   stand side by side at the same height (the clip plays while the spread is on screen); beside
   them the name, a one-line summary, the disciplines and up to eight photos that open the viewer where
   they are. Spreads alternate sides and draw a gold rule across as they arrive. */
.cases { margin: var(--head-after) 0 0; padding: 0; list-style: none; display: grid; gap: clamp(56px, 6vw, 88px); }
.case { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; column-gap: clamp(32px, 5vw, 80px); padding-top: clamp(28px, 3vw, 40px); }
.case::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, var(--gold) 0%, var(--line-gold) 40%, transparent 100%); transform-origin: 0 50%; }
.case:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case:nth-child(even) .case__media { order: 2; }
.case:nth-child(even)::before { background: linear-gradient(270deg, var(--gold) 0%, var(--line-gold) 40%, transparent 100%); transform-origin: 100% 50%; }

/* thumbnail 4:3 and clip 9:16 share one height: their widths stand 2.37 : 1 */
.case__media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.case__media.has-reel { grid-template-columns: minmax(0, 2.37fr) minmax(0, 1fr); }
.case__thumb { display: block; width: 100%; aspect-ratio: 4 / 3; }
.case__thumb img { position: absolute; inset: 0; transform: scale(1.06); transition: filter 1s var(--e-out), transform 9s linear; }
.case.in-view .case__thumb img { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .case__thumb:hover img, .case__thumb:focus-visible img { filter: none; } }
.case__reel { position: relative; width: 100%; aspect-ratio: 9 / 16; margin: 0; cursor: pointer; }
.case__reel > img, .case__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__reel > img { filter: none; }
.case__clip { opacity: 0; transition: opacity 1.1s var(--e-out); pointer-events: none; }
.case.is-playing .case__clip { opacity: 1; }
.case__reel::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(8, 8, 9, 0.55)); pointer-events: none; z-index: 1; }
.case__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: rgba(244, 241, 234, 0.12); }
.case__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.case__hold {
  position: absolute; left: 10px; bottom: 12px; z-index: 3; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 2px; color: var(--ink); background: rgba(13, 13, 14, 0.5); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.3s, box-shadow 0.3s;
}
@media (hover: hover) and (pointer: fine) { .case__hold:hover { color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--gold); } }
.case__hold .i-play { display: none; }
.case__hold[aria-pressed="true"] .i-play { display: block; }
.case__hold[aria-pressed="true"] .i-pause { display: none; }

.case__body { display: grid; align-content: center; justify-items: start; }
.case__no { margin: 0 0 8px; font: 400 clamp(2.4rem, 3.6vw, 3.25rem) / 1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold); letter-spacing: 0.02em; }
.case__name { margin: 0; font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.case__name button { color: inherit; text-align: left; transition: color 0.4s; }
@media (hover: hover) and (pointer: fine) { .case__name button:hover { color: var(--gold-3); } }
.case__meta { margin: 8px 0 0; color: var(--ink-3); }
.case__meta b { font-weight: 400; color: var(--gold-2); }
.case__lede { margin: 14px 0 0; color: var(--ink-2); max-width: 46ch; }
.case__sys { margin: 10px 0 0; color: var(--ink-3); max-width: 52ch; }
.case__shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 500px; margin-top: 20px; }
.case__shot { position: relative; aspect-ratio: 4 / 3; display: block; }
.case__shot img { position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) { .case__shot:hover img, .case__shot:focus-visible img { filter: none; transform: scale(1.05); } }
.case__more { margin-top: 18px; }

/* arrival */
.js .case::before { transform: scaleX(0); transition: transform 1.8s var(--e-out); }
.js .case.in-view::before { transform: none; }
.js .case__thumb, .js .case__reel { opacity: 0; transform: translateY(32px); filter: blur(8px); transition: opacity 1.3s var(--e-out), transform 1.5s var(--e-out), filter 1.3s var(--e-out); }
.js .case__reel { transition-delay: 0.15s; }
.js .case.in-view .case__thumb, .js .case.in-view .case__reel { opacity: 1; transform: none; filter: none; }
.js .case__body > * { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--e-out), transform 1.3s var(--e-out); }
.js .case.in-view .case__body > * { opacity: 1; transform: none; }
.js .case.in-view .case__body > :nth-child(2) { transition-delay: 0.08s; }
.js .case.in-view .case__body > :nth-child(3) { transition-delay: 0.16s; }
.js .case.in-view .case__body > :nth-child(4) { transition-delay: 0.24s; }
.js .case.in-view .case__body > :nth-child(5) { transition-delay: 0.32s; }
.js .case.in-view .case__body > :nth-child(6) { transition-delay: 0.4s; }
.js .case.in-view .case__body > :nth-child(7) { transition-delay: 0.48s; }
.no-js .case__thumb, .no-js .case__reel, .no-js .case__body > *, .no-js .case::before { opacity: 1; transform: none; filter: none; }

@media (max-width: 860px) {
  .case, .case:nth-child(even) { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__no { font-size: 2.25rem; }
}
@media (max-width: 600px) {
  .case__media { gap: 8px; }
  .case__shots { gap: 4px; margin-top: 16px; max-width: none; }
  .case__hold { width: 32px; height: 32px; left: 8px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .case__hold, .case__bar { display: none; }
  .case__thumb img { transform: none; }
}

/* The numbers: four quarter cells, then the ledger on the quarter lines */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gap); }
.fig { display: grid; align-content: start; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line-gold); }
.fig__n {
  display: flex; align-items: baseline; white-space: nowrap;
  font: 200 var(--t-fig) / 1 "ETC Figures", var(--sans); letter-spacing: -0.03em; color: var(--gold-2);
}
.fig__u { font-size: 0.42em; font-weight: 300; letter-spacing: 0; margin-left: 0.15em; }
.fig p { color: var(--ink-2); max-width: 24ch; text-wrap: pretty; }
/* the roll-up mask: padded on every side so the comma's tail and the 9's bowl never clip */
.fig__roll { display: block; overflow: hidden; padding: 0.1em 0.08em 0.24em; margin: -0.1em -0.08em -0.24em; }
.is-rolling .fig__roll > span { display: inline-block; transform: translateY(135%); transition: transform 1.5s var(--e-out) calc(0.35s + var(--i) * 0.16s); }
.is-rolling.is-lit .fig__roll > span { transform: none; }
.ledger { border-top: 1px solid var(--line-2); }
.ledger__row {
  width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  text-align: left; padding: var(--row) 0; border-bottom: 1px solid var(--line);
}
.ledger__fig { font: 300 var(--t-figm) / 1.1 var(--sans); letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.ledger__sub { display: block; margin-top: 6px; font: 400 var(--t-small) / 1.4 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.ledger__name { font-weight: 500; color: var(--ink); transition: color 0.3s; }
.ledger__what { grid-column: 3 / -1; color: var(--ink-3); max-width: 56ch; }
@media (hover: hover) and (pointer: fine) { .ledger__row:hover .ledger__name { color: var(--gold-3); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.ledger__row:active .ledger__name { color: var(--gold-3); }
@media (max-width: 1099px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .figs { gap: 40px var(--gap); }
  .fig { gap: 14px; padding-top: 18px; }
  .fig__n { font-size: min(var(--t-fig), 10.2vw); }
  .fig p { font-size: var(--t-small); line-height: 1.5; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; min-height: 56px; }
  .ledger__what { grid-column: 1; font-size: var(--t-small); line-height: 1.5; }
}

/* Delivered for: monochrome ivory logos on the ground, the track starting on A */
.clients__belt {
  --x: max(var(--margin), (100% - var(--max)) / 2);
  position: relative; overflow: hidden; margin-top: var(--head-after); padding-left: var(--x);
}
.clients__belt::before, .clients__belt::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; }
.clients__belt::before { left: 0; width: var(--x); background: linear-gradient(90deg, var(--g-1) 40%, rgba(var(--g-rgb), 0)); }
.clients__belt::after { right: 0; width: 12vw; background: linear-gradient(270deg, var(--g-1), rgba(var(--g-rgb), 0)); }
.clients__track { display: flex; align-items: center; width: max-content; padding-block: 8px; animation: belt 70s linear infinite; }
.clients__track li { flex: none; padding-right: 88px; }
.clients__track img {
  height: 44px; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(1) invert(1) brightness(1.15) contrast(1.1); mix-blend-mode: screen; opacity: 0.78; transition: opacity 0.4s;
}
.clients__track img.logo--boxed { filter: grayscale(1) brightness(1.15) contrast(1.1); }
.clients__track img.logo--faint { filter: grayscale(1) invert(1) brightness(1.7) contrast(1.1); }
@media (hover: hover) and (pointer: fine) { .clients__track img:hover { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .clients:hover .clients__track, .clients:focus-within .clients__track, .clients.is-held .clients__track, .is-paused .clients__track { animation-play-state: paused; } }
@keyframes belt { to { transform: translateX(-50%); } }
.clients__hold { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--ink-2); text-align: left; }
@media (hover: hover) and (pointer: fine) { .clients__hold:hover { color: var(--gold-3); } }
@media (hover: hover) and (pointer: fine) { .clients__hold:hover .clients__pause { box-shadow: inset 0 0 0 1px var(--gold); } }
.clients__hold[aria-pressed="true"] .i-pause { display: none; }
.clients__hold[aria-pressed="true"] .i-play { display: block; }
@media (max-width: 759px) {
  .clients__track li { padding-right: 56px; }
  .clients__track img { height: 34px; max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .clients .clients__track { justify-content: flex-start; width: auto; row-gap: 24px; }
  .clients__hold { display: none; }
}

/* The firm: the founder on A, no box */
.founder-card { display: grid; justify-items: start; align-content: start; justify-self: start; }
.founder-card__name { margin-top: 24px; font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); transition: color 0.4s; }
.founder-card__sub { margin-top: 8px; color: var(--ink-3); max-width: 40ch; }
@media (hover: hover) and (pointer: fine) { .founder-card:hover .founder-card__name { color: var(--gold-3); } }
@media (max-width: 759px) { .founder-card .medallion { width: 128px; } }

/* Where we work: the map across the page, the place card under it */
.netmap { position: relative; background: var(--g-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.netmap__canvas svg { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.net .land { fill: var(--g-3); stroke: rgba(201, 169, 110, 0.4); stroke-width: 1.1; stroke-linejoin: round; }
.net .canal { fill: none; stroke: rgba(201, 169, 110, 0.4); stroke-width: 1.2; stroke-dasharray: 2 4; }
.net .nile { fill: none; stroke: rgba(201, 169, 110, 0.6); stroke-width: 1.8; stroke-linecap: round; }
.net .nile.branch { stroke-width: 1.2; stroke: rgba(201, 169, 110, 0.42); }
.net .sea { font: 400 16px var(--serif); letter-spacing: 0.14em; fill: rgba(244, 241, 234, 0.3); }
.net .arc { fill: none; stroke: rgba(201, 169, 110, 0.24); stroke-width: 1; transition: stroke 0.5s, opacity 0.5s; }
.net .arc.is-active { stroke: var(--gold-3); stroke-width: 1.6; stroke-dasharray: 3 7; animation: flow 1.4s linear infinite; }
.net .arc.is-off { opacity: 0.15; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.net .place { cursor: pointer; outline: none; }
.net .node { fill: var(--gold); stroke: rgba(244, 241, 234, 0.7); stroke-width: 1; filter: drop-shadow(0 1px 4px rgba(201, 169, 110, 0.6)); transition: fill 0.4s; }
.net .place.hq .node { fill: var(--gold-3); }
.net .hit { fill: transparent; }
.net .label { font: 500 13px var(--sans); fill: var(--ink-2); paint-order: stroke; stroke: rgba(var(--g0-rgb), 0.85); stroke-width: 4px; stroke-linejoin: round; transition: fill 0.4s; }
.net .place.hq .label { font: 400 17px var(--serif); fill: var(--ink); }
.net .label-sub { font: 400 12px var(--sans); fill: var(--ink-3); paint-order: stroke; stroke: rgba(var(--g0-rgb), 0.85); stroke-width: 4px; }
.net--big .label { font-size: 20px; }
.net--big .place.hq .label { font-size: 24px; }
.net--big .label-sub { font-size: 16px; }
.net.has-active .place:not(.is-active) { opacity: 0.45; }
.net .place.is-active .label, .net .place:focus-visible .label { fill: var(--gold-3); }
.net .place:focus-visible .node { stroke: #fff; stroke-width: 2; }
.net .place.is-off { opacity: 0.18; pointer-events: none; }
/* the place card: a surface with its own spine (still floating only where a page keeps it inside the map) */
.netmap__card {
  position: absolute; top: var(--inset); left: var(--inset); width: min(360px, calc(100% - 2 * var(--inset)));
  padding: var(--inset); background: var(--g-0); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 36px -20px rgba(0, 0, 0, 0.9);
  max-height: calc(100% - 2 * var(--inset)); overflow: auto;
}
.netmap__card-title { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); }
.netmap__card-sub { margin-top: 6px; font-size: var(--t-small); color: var(--ink-3); }
.netmap__card-list { margin: 20px 0 12px; display: grid; }
.netmap__card-list button {
  width: 100%; min-height: 48px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 2px 12px;
  text-align: left; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); transition: color 0.3s;
}
.netmap__card-list button i { font-style: normal; font-size: var(--t-small); color: var(--ink-3); flex: none; }
@media (hover: hover) and (pointer: fine) { .netmap__card-list button:hover { color: var(--gold-3); } }
/* Home: under the map, on the ground, starting on A; never on the map */
.netmap__card--under {
  position: static; width: auto; max-height: none; overflow: visible; padding: 0; background: none; box-shadow: none;
  margin-top: 40px;
}
.netmap__card--under .netmap__card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.netmap__key { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 16px var(--inset) 20px; }
.netmap__key div { display: flex; gap: 8px; align-items: baseline; }
.netmap__key dt { color: var(--ink-3); }
.netmap__key dd { color: var(--ink); }
.netmap__key--line { padding: 0; gap: 0; color: var(--ink-2); }
.netmap__key--line dd { color: var(--ink-2); }
.netmap__key--line dd + dt + dd::before { content: "·"; margin: 0 0.6em; color: var(--ink-4); }
.netmap__places { display: none; }
@media (max-width: 759px) {
  .netmap { margin-inline: calc(-1 * var(--margin)); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
  .netmap__canvas svg { aspect-ratio: 700 / 840; }
  .net .place:not(.hq) .label, .net .place:not(.hq) .label-sub { display: none; }
  .netmap__places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); padding: 4px var(--margin) 16px; box-shadow: inset 0 1px 0 var(--line); }
  .netmap__places button {
    display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; width: 100%; min-height: 48px;
    padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink-2);
  }
  .netmap__places button i { font-style: normal; font-size: var(--t-small); color: var(--ink-3); }
  .netmap__places button[aria-pressed="true"] { color: var(--gold-3); }
  .netmap__card { position: relative; top: auto; left: auto; width: auto; margin: 0 var(--margin) var(--margin); max-height: none; }
  .netmap__card--under { margin: 32px 0 0; }
  .netmap__card--under .netmap__card-list { grid-template-columns: minmax(0, 1fr); }
}
/* ------------------------------------------------------------------ */
/* Request band: a raised panel; the head, then the composer, all on the spine */
/* ------------------------------------------------------------------ */
.grid > .band__compose { grid-column: 1 / -1; display: grid; gap: var(--s-5, 48px); justify-items: start; }
.band__set { display: block; margin: 0; padding: 0; border: 0; min-width: 0; width: 100%; }
.band__legend { display: block; padding: 0; margin: 0 0 16px; font: 500 var(--t-body)/1.4 var(--sans); color: var(--ink-2); }
.band__ticks { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.tick {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 0 18px;
  border-radius: 2px; color: var(--ink-2); text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.tick::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 1px; box-shadow: inset 0 0 0 1px var(--ink-4);
  transition: background-color 0.35s, box-shadow 0.35s;
}
@media (hover: hover) and (pointer: fine) { .tick:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-gold); } }
.tick:active { background: var(--g-3); }
.tick[aria-pressed="true"] { background: var(--gold-wash); color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--gold); }
.tick[aria-pressed="true"]::before { background: var(--gold); box-shadow: none; }
.band__send { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 16px 40px; }
.band__link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; }
.band__link svg { flex: none; color: var(--gold-1); }
.band__link span { padding-bottom: 2px; border-bottom: 1px solid var(--line-gold); transition: border-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .band__link:hover { color: var(--gold-3); } }
@media (hover: hover) and (pointer: fine) { .band__link:hover span { border-color: var(--gold); } }
@media (max-width: 1099px) {
  .grid > .band__compose { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .grid > .band__compose { gap: 40px; }
  .band__ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--gap); width: 100%; }
  .tick { width: 100%; min-height: 48px; padding: 10px 14px; line-height: 1.25; }
  .band__send { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 8px; justify-items: start; }
  .band__send .btn { width: 100%; justify-content: space-between; margin-bottom: 8px; }
}
/* ------------------------------------------------------------------ */
/* Footer: the deepest cloth; four columns on the quarter lines          */
/* ------------------------------------------------------------------ */
.footer { position: relative; background: var(--g-0); border-top: 1px solid var(--line); padding-top: var(--pad); }
.footer__in { row-gap: 48px; align-items: start; }
.grid > .footer__brand { grid-column: 1 / var(--B); display: grid; gap: 20px; justify-items: start; padding-right: 8px; }
.grid > .footer__col--pages { grid-column: var(--B) / var(--C); }
.grid > .footer__col--disc { grid-column: var(--C) / var(--D); }
.grid > .footer__col--contact { grid-column: var(--D) / -1; }
.brand--foot .mark { width: 72px; }
.footer__legal { font: 400 var(--t-name) / 1.3 var(--serif); color: var(--ink); max-width: 24ch; }
.footer__blurb { font-size: var(--t-small); line-height: 1.6; color: var(--ink-3); max-width: 44ch; }
.footer__head { font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); margin-bottom: 12px; }
.footer__col ul { display: grid; }
.footer__col a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; line-height: 1.35; color: var(--ink-2); transition: color 0.3s; }
.footer__col address { padding-block: 10px; line-height: 1.5; color: var(--ink-3); max-width: 32ch; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover, .footer__col a[aria-current] { color: var(--gold-3); } }
.grid > .footer__base {
  grid-column: 1 / -1; margin-top: 40px; padding-block: 24px calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.6; color: var(--ink-3);
}
@media (max-width: 1099px) {
  /* tablet: the brand across the top, then Pages on A, Disciplines on B, Contact on the midline */
  .grid > .footer__brand { grid-column: 1 / -1; }
  .grid > .footer__col--pages { grid-column: 1 / var(--B); }
  .grid > .footer__col--disc { grid-column: var(--B) / var(--C); }
  .grid > .footer__col--contact { grid-column: var(--C) / -1; }
}
@media (max-width: 759px) {
  /* phone: the brand, then Pages and Disciplines side by side, then Contact */
  .footer__in { row-gap: 40px; }
  .grid > .footer__col--pages { grid-column: 1 / 3; }
  .grid > .footer__col--disc { grid-column: 3 / -1; }
  .grid > .footer__col--contact { grid-column: 1 / -1; }
  .footer__col a { min-height: 44px; }
  .grid > .footer__base { margin-top: 16px; }
}
/* ------------------------------------------------------------------ */
/* About                                                               */
/* ------------------------------------------------------------------ */

/* Facts: stacked rows, the label over the value, both on the column's own edge */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 4px; padding-block: var(--row); border-bottom: 1px solid var(--line); }
.facts dt { font: 400 var(--t-small) / 1.5 var(--sans); color: var(--ink-3); }
.facts dd { font: 400 var(--t-body) / 1.55 var(--sans); color: var(--ink); max-width: 52ch; text-wrap: pretty; }
.facts a { color: var(--gold-3); border-bottom: 1px solid var(--line-gold); transition: border-color 0.3s; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .facts a:hover { border-color: var(--gold-3); } }
.facts a:active { color: var(--ink); }

/* Company: prose on A, facts on C */
.company__body { align-items: start; row-gap: var(--head-after); }
.company .prose { color: var(--ink-2); }
.company .prose p { max-width: 60ch; }

/* Founder: the medallion on A, the facts on C */
.founder__body { align-items: start; row-gap: var(--head-after); }
.founder__portrait { justify-self: start; }
.founder .medallion--lg { width: 280px; }

/* ------------------------------------------------------------------ */
/* The story. Default (phones, tablets, no script): a sideways snap rail starting on A.
   Laptops: the section pins and the track runs sideways, its stops on the quarter lines. */
/* ------------------------------------------------------------------ */
.story__viewport { position: relative; min-width: 0; margin-top: var(--head-after); container-type: inline-size; }
.story__vein { display: none; }
.story__track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--margin), (100cqw - var(--max)) / 2);
  scroll-padding-inline: max(var(--margin), (100cqw - var(--max)) / 2);
}
.story__track::-webkit-scrollbar { display: none; }
.story__track:focus-visible { outline-offset: -2px; }
.stop { position: relative; flex: 0 0 min(84vw, 400px); scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.stop__node { display: none; }
.stop__img { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; }
.stop__img--year { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 50%), var(--g-2); box-shadow: inset 0 0 0 1px var(--line); }
.stop__img--year b { position: absolute; left: var(--inset); bottom: calc(var(--inset) - 0.12em); font: 200 var(--t-fig) / 1 var(--sans); letter-spacing: -0.03em; color: var(--ink); }
.stop__year { font: 300 var(--t-figm) / 1 var(--sans); letter-spacing: -0.015em; color: var(--ink-3); transition: color 0.6s; }
.stop.is-passed .stop__year { color: var(--ink); }
.stop:has(.stop__img--year) .stop__year { display: none; }
.story.is-pinned .stop:has(.stop__img--year) .stop__year { display: block; }
.stop__title { font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); text-wrap: balance; }
.stop__copy { font: 400 var(--t-body) / 1.65 var(--sans); color: var(--ink-3); text-wrap: pretty; }

.story__nav { display: flex; align-items: center; gap: 8px; margin-top: var(--stack); }
.story__count { font: 400 var(--t-body) / 1.4 var(--sans); color: var(--ink-2); margin-right: 16px; }
.story__count .n-box { min-width: 0.62em; color: var(--ink); }
.story__step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.3s, box-shadow 0.3s, opacity 0.3s; }
.story__step:first-of-type { margin-left: -2px; }
@media (hover: hover) and (pointer: fine) { .story__step:hover { color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--line-gold); } }
.story__step:active { box-shadow: inset 0 0 0 1px var(--gold); }
.story__step[disabled] { opacity: 0.35; cursor: default; }
.no-js .story__nav { display: none; }

/* Pinned (set by the script at >= 1100 wide, no reduced motion) */
.story.is-pinned .story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr; align-content: start; padding-top: calc(var(--hh) + clamp(16px, 2.5vh, 40px)); overflow: hidden; }
.story.is-pinned .story__viewport { margin-top: clamp(24px, 3.6vh, 48px); overflow: clip; overflow-clip-margin: 40px; }
.story.is-pinned .story__vein { display: block; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.story.is-pinned .story__vein i { position: absolute; left: 0; top: -0.5px; height: 2px; width: var(--p, 0%); background: linear-gradient(90deg, rgba(201, 169, 110, 0.3), var(--gold)); }
.story.is-pinned .story__track {
  --q: calc((min(100cqw - 2 * var(--margin), var(--max)) - 3 * var(--gap)) / 4);
  gap: var(--gap); overflow: visible; scroll-snap-type: none; width: max-content;
  transform: translate3d(var(--x, 0px), 0, 0); will-change: transform;
}
.story.is-pinned .stop { flex: 0 0 var(--q); width: var(--q); padding-top: 28px; gap: 10px; }
.story.is-pinned .stop__node { display: block; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--g-1); box-shadow: inset 0 0 0 1px var(--gold-1); transition: background 0.6s, box-shadow 0.6s; }
.story.is-pinned .stop.is-passed .stop__node { background: var(--gold); box-shadow: 0 0 0 4px var(--g-1); }
.story.is-pinned .stop__year { order: -1; }
.story.is-pinned .stop__img { margin-bottom: 4px; aspect-ratio: 16 / 10; }
.story.is-pinned .stop__copy { font-size: 1rem; line-height: 1.55; }
.story.is-pinned .stop:has(.stop__img--year) .stop__year { visibility: hidden; }
.story.is-pinned .story__nav { display: none; }

/* ------------------------------------------------------------------ */
/* Client wall: four quarters, colour logos on small bone plates        */
/* ------------------------------------------------------------------ */
.wall__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.wall__grid > li { border-top: 1px solid var(--line); min-width: 0; }
.logo-cell { display: grid; gap: 4px; align-content: start; padding: var(--row) 0 calc(var(--row) + 8px); height: 100%; }
.logo-cell__img { display: grid; place-items: center; width: min(100%, 200px); aspect-ratio: 2 / 1; margin-bottom: 14px; background: var(--bone); box-shadow: 0 24px 40px -28px rgba(6, 7, 9, 0.9); transition: transform 0.6s var(--e-out); }
.logo-cell__img img { max-height: 46%; max-width: 72%; width: auto; object-fit: contain; }
.logo-cell__name { font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); transition: color 0.3s; }
.logo-cell__n { font: 400 var(--t-small) / 1.5 var(--sans); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { a.logo-cell:hover .logo-cell__img { transform: translateY(-3px); } }
@media (hover: hover) and (pointer: fine) { a.logo-cell:hover .logo-cell__name { color: var(--gold-3); } }
a.logo-cell:active .logo-cell__name { color: var(--gold-3); }
.wall__end { grid-column: span 2; display: grid; align-content: start; justify-items: start; gap: 8px; padding-top: var(--row); }
.wall__ask { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); max-width: 16ch; }

@media (max-width: 759px) {
  .founder .medallion--lg { width: 200px; }
  .stop__img--year b { left: 20px; bottom: 14px; }
  .wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-cell { min-height: 44px; }
  .logo-cell__img { width: 100%; margin-bottom: 12px; }
  .logo-cell__name { font-size: 1.125rem; }
  .wall__end { grid-column: 1 / -1; }
}
/* ------------------------------------------------------------------ */
/* Disciplines: switchboard, sectors, process                          */
/* Every text block starts on A, B (col 4) or C (col 7). Nothing is    */
/* centred, nothing is right-aligned.                                  */
/* ------------------------------------------------------------------ */
main > section.board, main > section.sectors, main > section.process { padding-top: var(--sec); padding-bottom: 0; }

/* ---- Switchboard ------------------------------------------------- */
/* desktop: tabs A 1-3, body B 4-6, media + thumbs C 7-12 */
.sb { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.sb > * { min-width: 0; }
.sb__noscript { grid-column: 1 / -1; margin-bottom: var(--stack); color: var(--ink-2); }
.sb__tabs { grid-column: 1 / var(--B); display: grid; border-top: 1px solid var(--line); }
.sb__tab {
  position: relative; display: block; width: 100%; text-align: left; min-height: 60px;
  padding: 16px 0 17px; border-bottom: 1px solid var(--line); color: var(--ink-2); transition: color 0.4s;
  font: 400 var(--t-name) / 1.2 var(--serif); -webkit-tap-highlight-color: transparent;
}
.sb__name { transition: color 0.4s; }
.sb__tab b { font: 300 1rem / 1 var(--sans); color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.sb__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--e-out);
}
@media (hover: hover) and (pointer: fine) { .sb__tab:hover { color: var(--ink); } }
.sb__tab[aria-selected="true"] { color: var(--gold-3); }
.sb__tab[aria-selected="true"] b { color: var(--ink); }
.sb__tab[aria-selected="true"]::after { transform: scaleX(1); }
.sb__tab:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

.sb__panel {
  grid-column: var(--B) / -1; display: grid; grid-template-columns: repeat(calc(var(--cols) - var(--B) + 1), minmax(0, 1fr));
  column-gap: var(--gap); align-items: start; transition: opacity 0.22s;
}
.sb__panel:focus-visible { outline: none; }
.sb.is-swapping .sb__panel { opacity: 0.25; }
.sb__body { grid-column: 1 / calc(var(--C) - var(--B) + 1); display: grid; gap: var(--stack); align-content: start; justify-items: start; }
.sb__side { grid-column: calc(var(--C) - var(--B) + 1) / -1; display: grid; gap: var(--stack); }
.sb__title { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); }
.sb__desc { font-size: var(--t-body); line-height: 1.65; color: var(--ink-2); max-width: 64ch; }
.sb__bullets { display: grid; gap: 10px; }
.sb__bullets li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; align-items: baseline; color: var(--ink); }
.sb__bullets li::before { content: ""; height: 1px; background: var(--line-2); transform: translateY(-0.3em); }
.sb__link { margin-top: 8px; }

.sb__media { position: relative; aspect-ratio: 4 / 3; }
.sb__img { position: absolute; inset: 0; background: center / cover no-repeat; filter: var(--grade); opacity: 0; transform: scale(1.04); transition: opacity 0.9s var(--e-out), transform 1.8s var(--e-out); }
.sb__img.is-on { opacity: 1; transform: none; }

/* six thumbs, one grid column each, captioned under */
.sb__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; }
.sb__thumb { display: grid; gap: 8px; align-content: start; text-align: left; color: var(--ink-3); min-width: 0; -webkit-tap-highlight-color: transparent; }
.sb__pic { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--g-2); box-shadow: inset 0 0 0 1px var(--line); }
.sb__pic img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: filter 0.5s, transform 0.8s var(--e-out); }
.sb__pic--type { display: flex; align-items: flex-end; padding: 8px; font: 400 0.8125rem / 1.2 var(--serif); color: var(--ink-2); }
.sb__cap { font: 400 0.8125rem / 1.35 var(--sans); color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.4s; }
@media (hover: hover) and (pointer: fine) { .sb__thumb:hover img, .sb__thumb:focus-visible img { filter: none; transform: scale(1.06); } }
@media (hover: hover) and (pointer: fine) { .sb__thumb:hover .sb__cap { color: var(--ink); } }
.sb__thumb:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* tablet: tabs 2-up across the width, panel below in two tracks (body A, media C) */
@media (max-width: 1099px) {
  .sb__tabs { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 0; }
  .sb__tab { border-top: 1px solid var(--line); border-bottom: 0; }
  .sb__tab:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .sb__tab::after { bottom: auto; top: -1px; }
  .sb__tab:nth-last-child(-n + 2)::after { top: auto; bottom: -1px; }
  .sb__panel { grid-column: 1 / -1; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); margin-top: var(--head-after); }
  .sb__body { grid-column: 1 / var(--C); }
  .sb__side { grid-column: var(--C) / -1; }
  /* one grid column per thumb (C to the right edge is 4 columns), so the second row never makes new edges */
  .sb__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sb__thumb:nth-child(n + 5) { display: none; }
}

/* phone: an accordion of ruled 60px rows; JS moves the panel right after the selected tab */
@media (max-width: 759px) {
  .sb { display: block; }
  .sb__tabs { display: block; border-top: 1px solid var(--line); }
  .sb__tab { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 14px 32px 14px 0; border-top: 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; scroll-margin-top: calc(var(--hh) + 8px); }
  .sb__tab:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .sb__tab::after, .sb__tab:nth-last-child(-n + 2)::after { top: auto; bottom: -1px; }
  /* open / closed cue: a small chevron, an icon, not text */
  .sb__tab::before {
    content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 1px solid var(--gold-1); border-bottom: 1px solid var(--gold-1); transform: rotate(45deg); transition: transform 0.4s var(--e-out);
  }
  .sb__tab[aria-selected="true"]::before { transform: translateY(4px) rotate(-135deg); border-color: var(--gold); }
  .sb__panel { display: flex; flex-direction: column; align-items: stretch; gap: var(--stack); margin: 0; padding: 0 0 40px; border-bottom: 1px solid var(--line); }
  .sb__body, .sb__side { display: contents; }
  .sb__media { order: 1; margin-inline: calc(-1 * var(--margin)); box-shadow: none; }
  .sb__media.frame::after { display: none; }
  .sb__title { display: none; } /* the open tab already names it */
  .sb__desc { margin-top: 8px; }
  .sb__desc { order: 3; }
  .sb__bullets { order: 4; }
  .sb__thumbs {
    order: 5; display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 64%; column-gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); scroll-padding-inline: var(--margin);
  }
  .sb__thumbs::-webkit-scrollbar { display: none; }
  .sb__thumb, .sb__thumb:nth-child(n + 5) { display: grid; scroll-snap-align: start; }
  .sb__pic { aspect-ratio: 4 / 5; }
  .sb__pic--type { padding: 16px; font-size: 1.125rem; }
  .sb__cap { font-size: var(--t-small); }
  .sb__link { order: 6; align-self: flex-start; margin-top: 0; }
}

/* ---- Sectors ----------------------------------------------------- */
/* desktop and tablet: 2-up on the halves (A and C), a 16:9 photo each */
.sectors__grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--head-after); }
.sector { grid-column: 1 / var(--C); display: grid; gap: 10px; align-content: start; justify-items: start; color: var(--ink); min-width: 0; }
.sector:nth-child(even) { grid-column: var(--C) / -1; }
.sector__pic { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.sector__name { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); transition: color 0.4s; }
.sector__eg { font-size: var(--t-body); line-height: 1.55; color: var(--ink-2); }
.sector__n { font-size: var(--t-small); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .sector:hover .sector__name { color: var(--gold-3); } }
@media (hover: hover) and (pointer: fine) { .sector:hover .sector__pic img { filter: none; transform: scale(1.03); } }
.sector:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }

/* phone: ruled rows on A, no photos */
@media (max-width: 759px) {
  .sectors__grid { display: block; border-top: 1px solid var(--line); }
  .sector { display: grid; gap: 4px; padding: var(--row) 0; border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
  .sector__pic { display: none; }
  .sector__name { font-size: var(--t-name); line-height: 1.2; }
  .sector__eg { font-size: 1rem; line-height: 1.5; }
  .sector:focus-visible { outline-offset: 2px; }
}

/* ---- Process ----------------------------------------------------- */
/* a ruled list of six rows: number + title on A, the description on C */
.steps { display: grid; border-bottom: 1px solid var(--line); }
.step {
  position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  padding: 28px 0 30px; border-top: 1px solid var(--line);
}
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line-gold);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--e-out); transition-delay: calc(0.1s + var(--i, 0) * 0.12s);
}
.step.in-view::before { transform: scaleX(1); }
.step__title { grid-column: 1 / var(--C); display: flex; align-items: baseline; gap: 20px; font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); }
.step__n { flex: none; min-width: 1.4em; font: 300 var(--t-figm) / 1 var(--sans); letter-spacing: -0.015em; color: var(--ink-3); }
.step__desc { grid-column: var(--C) / span 5; font-size: var(--t-body); line-height: 1.65; color: var(--ink-2); max-width: 54ch; }
@media (max-width: 1099px) { .step__desc { grid-column: var(--C) / -1; } }
@media (max-width: 759px) {
  .step { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: var(--row) 0 calc(var(--row) + 2px); }
  .step__title { grid-column: 1; gap: 16px; font-size: var(--t-name); line-height: 1.2; }
  .step__desc { grid-column: 1; }
}
.sb, .sb__panel { scroll-margin-top: calc(var(--hh) + 32px); }
/* ------------------------------------------------------------------ */
/* Projects: the record                                                */
/* Every line starts on the spine (A); grids sit on the quarter lines. */
/* ------------------------------------------------------------------ */

/* The record bar: views, count and clear on one line, then the two labelled chip groups */
.record button { text-align: left; }
.record__bar { display: grid; gap: var(--s-4, 32px); padding-bottom: var(--s-4, 32px); margin-bottom: var(--s-5, 48px); border-bottom: 1px solid var(--line); }
.record__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 40px; }

.views { display: flex; align-items: center; gap: 28px; }
.views button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0;
  color: var(--ink-3); font: 500 var(--t-body) / 1.2 var(--sans);
  box-shadow: inset 0 -2px 0 transparent; transition: color 0.3s, box-shadow 0.3s;
}
.views button svg { color: var(--gold-1); }
@media (hover: hover) and (pointer: fine) { .views button:hover { color: var(--ink); } }
.views button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.views button[aria-pressed="true"] svg { color: var(--gold-2); }

.record__count { color: var(--ink-3); font-size: var(--t-body); }
.record__count b { font-weight: 400; color: var(--ink); }
.record__count .n-box { min-width: 1.4em; }
.record__clear {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  font: 500 var(--t-body) / 1.2 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
@media (hover: hover) and (pointer: fine) { .record__clear:hover { color: var(--gold-3); text-decoration-color: var(--gold); } }

.record__open { display: none; }
.record__filters { display: grid; gap: var(--s-3, 24px); }
.record__field { display: grid; gap: 10px; justify-items: start; }
.record__label { font: 500 var(--t-body) / 1.3 var(--sans); color: var(--ink-2); }
.record__group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 2px;
  font: 400 var(--t-body) / 1.2 var(--sans); color: var(--ink-2); text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.chip i { font-style: normal; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-gold); } }
.chip:active { background: var(--gold-wash); }
.chip[aria-pressed="true"] { color: var(--gold-3); background: var(--gold-wash); box-shadow: inset 0 0 0 1px var(--gold); }
.chip[aria-pressed="true"] i { color: var(--ink); }
.chip[aria-disabled="true"] { color: var(--ink-4); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.chip[aria-disabled="true"] i { color: var(--ink-4); }
.chip svg { flex: none; color: var(--gold-2); }

/* Gallery: four quarters on desktop and tablet (A, B, C, D), two halves on phones */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5, 48px) var(--gap); }
.tile { display: grid; align-content: start; justify-items: start; text-align: left; min-width: 0; }
.tile__frame { display: block; width: 100%; aspect-ratio: 4 / 3; }
.tile__name { margin-top: 16px; font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); text-wrap: pretty; transition: color 0.4s; }
.tile__meta { margin-top: 4px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .tile:hover img:not(.logo), .tile:focus-visible img:not(.logo) { filter: none; transform: scale(1.03); } }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__name { color: var(--gold-3); } }

/* A project with no photograph: a plate of the cloth, the logo or the face text at its bottom left */
.tile__plate {
  display: flex; align-items: flex-end; justify-content: flex-start; padding: var(--s-3, 24px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 50%), var(--g-2);
}
.tile__plate img.logo {
  width: auto; height: auto; max-height: 44px; max-width: 58%; object-fit: contain; transform: none;
  filter: grayscale(1) invert(1) brightness(1.15) contrast(1.1); mix-blend-mode: screen; opacity: 0.78; transition: opacity 0.4s;
}
.tile__plate img.logo--boxed { filter: grayscale(1) brightness(1.15) contrast(1.1); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__plate img.logo { opacity: 1; filter: grayscale(1) invert(1) brightness(1.15) contrast(1.1); transform: none; } }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__plate img.logo--boxed { filter: grayscale(1) brightness(1.15) contrast(1.1); } }
.tile__plate span { font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink-2); text-align: left; }

.js .tile, .js .listview__list li { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--e-out), transform 1.1s var(--e-out); transition-delay: calc(min(var(--i), 12) * 0.04s); }
.js .tile.is-in, .js .listview__list li.is-in { opacity: 1; transform: none; }

/* List view: the rows on quarters (A, B, C), the preview pane on D */
.listview { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.listview__rows { grid-column: 1 / var(--D); min-width: 0; }
.listview__head, .row {
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  grid-template-areas: "name name name meta meta meta sys sys sys" "year year year meta meta meta sys sys sys";
}
.listview__head { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font-size: var(--t-small); color: var(--ink-3); }
.listview__head span:nth-child(1) { grid-area: name; }
.listview__head span:nth-child(2) { grid-area: meta; }
.listview__head span:nth-child(3) { grid-area: sys; }
.row { width: 100%; text-align: left; padding: var(--row) 0; border-bottom: 1px solid var(--line); row-gap: 4px; transition: background-color 0.4s; }
.row__name { grid-area: name; font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); transition: color 0.3s; }
.row__year { grid-area: year; font-size: var(--t-small); color: var(--ink-3); }
.row__meta { grid-area: meta; color: var(--ink-2); }
.row__sys { grid-area: sys; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .row:hover, .row.is-hot { background: linear-gradient(90deg, rgba(244, 241, 234, 0.035), transparent 85%); } }
@media (hover: hover) and (pointer: fine) { .row:hover .row__name, .row.is-hot .row__name { color: var(--gold-3); } }

.pane { grid-column: var(--D) / -1; position: sticky; top: calc(var(--hh) + 32px); display: grid; gap: 6px; justify-items: start; }
.pane > * { width: 100%; }
.pane__img { aspect-ratio: 4 / 3; margin-bottom: 14px; background: var(--g-2) center / cover no-repeat; filter: var(--grade); }
.pane__img.is-type { display: flex; align-items: flex-end; padding: 20px; font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink-2); filter: none; }
.pane__name { font: 400 var(--t-name) / 1.2 var(--serif); color: var(--ink); }
.pane__id { font-size: var(--t-small); color: var(--ink-3); }
.pane__sum { color: var(--ink-2); }
.pane__hint { margin-top: 8px; font-size: var(--t-small); color: var(--ink-3); }

/* Map view: the map, then the key as a sentence, then the place card, all under it on A */
.mapview .netmap { display: flex; flex-direction: column; align-items: stretch; margin-inline: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
.mapview .netmap__canvas { order: 0; background: radial-gradient(90% 90% at 55% 55%, rgba(255, 255, 255, 0.025), transparent), var(--g-2); box-shadow: 0 0 0 1px var(--line); }
.mapview .netmap__canvas svg { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mapview .netmap__key { order: 1; position: static; display: block; margin-top: 16px; padding: 0; font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); text-align: left; }
.mapview .netmap__key span { color: var(--ink); }
.mapview .netmap__places { order: 2; }
.mapview .netmap__card {
  order: 3; position: static; width: auto; max-width: none; max-height: none; overflow: visible;
  margin: var(--s-4, 32px) 0 0; padding: var(--s-3, 24px) 0 0; background: none; border: 0; border-top: 1px solid var(--line-2); box-shadow: none;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); justify-items: start;
}
.mapview .netmap__card[hidden] { display: none; }
.mapview .netmap__card > * { grid-column: 1 / var(--C); }
.mapview .netmap__card-title { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); }
.mapview .netmap__card-sub { margin-top: 6px; color: var(--ink-3); }
.mapview .netmap__card-list { width: 100%; margin: 16px 0 8px; }
.mapview .netmap__card-list button { justify-content: flex-start; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.mapview .netmap__card-list button i { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .mapview .netmap__card-list button:hover { color: var(--gold-3); } }

/* Nothing matches: said on the spine, with the way out under it */
.record__empty { display: grid; justify-items: start; gap: var(--s-3, 24px); padding: var(--s-5, 48px) 0 0; text-align: left; }
.record__empty-title { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); }
.record__noscript { padding: 40px 0; }

/* ------------------------------------------------------------------ */
/* Tablet                                                              */
/* ------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .listview__rows { grid-column: 1 / -1; }
  .pane { display: none; }
  /* rows: name and year on A, client, place and disciplines on C */
  .listview__head, .row { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-areas: "name name name name meta meta meta meta" "year year year year sys sys sys sys"; }
  .listview__head span:nth-child(3) { display: none; }
  .listview__head span:nth-child(2) { grid-area: meta; }
}

/* ------------------------------------------------------------------ */
/* Phone                                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 759px) {
  /* the bar stays within reach: it rides under the header while the grid scrolls */
  .record__bar {
    position: sticky; top: var(--hh); z-index: 20;
    margin-inline: calc(-1 * var(--margin)); padding: 10px var(--margin) 12px; margin-bottom: var(--s-4, 32px); gap: 0;
    background: var(--scrim); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
    transition: top 0.5s var(--e-out);
  }
  body:has(.header.is-away) .record__bar { top: 0; }
  .record__tools { gap: 0 24px; }
  .views { gap: 20px; }
  .views button { gap: 7px; }
  .record__open {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 2px;
    font: 500 var(--t-body) / 1.2 var(--sans); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
  }
  .record__open svg { color: var(--gold-2); transition: transform 0.4s var(--e-out); }
  .record__open[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--gold); }
  .record__open[aria-expanded="true"] svg { transform: rotate(45deg); }
  .record__count { flex-basis: 100%; order: 3; display: inline; margin-top: 4px; font-size: var(--t-small); }
  .record__count:has(+ .record__clear:not([hidden])) { flex-basis: auto; }
  .record__clear { order: 4; margin-top: 4px; font-size: var(--t-small); }
  .record__filters { display: none; }
  .record__bar.is-filtering .record__filters { display: grid; gap: var(--s-3, 24px); padding-top: var(--s-3, 24px); max-height: calc(100svh - var(--hh) - 160px); overflow-y: auto; overscroll-behavior: contain; }
  .chip { padding: 0 14px; }

  .gallery { grid-template-columns: 1fr 1fr; gap: var(--s-4, 32px) var(--gap); }
  .tile__frame { aspect-ratio: 1; }
  .tile--wide { grid-column: 1 / -1; }
  .tile--wide .tile__frame { aspect-ratio: 16 / 10; }
  .tile__name { margin-top: 12px; font-size: 1.0625rem; }
  .tile--wide .tile__name { font-size: var(--t-name); }
  .tile__meta { margin-top: 2px; }
  .tile__meta .tile__sector { display: none; }
  .tile__plate { padding: 16px; }
  .tile__plate img.logo { max-height: 34px; max-width: 70%; }
  .tile__plate span { font-size: 1.0625rem; }

  .listview__head { display: none; }
  .row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "year" "meta" "sys"; row-gap: 2px; }

  .mapview .netmap__canvas { margin-inline: calc(-1 * var(--margin)); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
  .mapview .netmap__canvas svg { aspect-ratio: 700 / 840; max-height: none; }
  .views button svg { display: none; }
  .views { gap: 20px; }
  .record__tools { column-gap: 20px; }
  .mapview .netmap__card { display: block; }
  .mapview .netmap__places { grid-template-columns: 1fr 1fr; column-gap: var(--gap); padding: 16px 0 0; border-top: 0; box-shadow: none; }
  .mapview .netmap__places button { justify-content: flex-start; align-items: baseline; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .mapview .netmap__places button i { color: var(--ink-3); }
  .mapview .netmap__places button[aria-pressed="true"] { color: var(--gold-3); }

  .record__empty .btn { width: auto; justify-content: flex-start; }
}
@media (max-width: 379px) {
  .views { gap: 16px; }
  .record__tools { column-gap: 16px; }
}
/* ------------------------------------------------------------------ */
/* Contact: the direct lines, four ruled cells on the quarter lines    */
/* ------------------------------------------------------------------ */
.lines { scroll-margin-top: 12px; }
/* four equal tracks with the page gap land exactly on A, B, C and D */
.lines__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.lines__list li { min-width: 0; display: flex; }
.line {
  flex: 1; display: grid; align-content: start; gap: 6px; min-height: 64px; padding: 24px 0 var(--row);
  border-top: 1px solid var(--line-2); color: var(--ink-2); text-align: left;
  transition: border-color 0.5s var(--e-out);
}
.line__kind { font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); }
.line__main { display: block; font: 400 var(--t-name) / 1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; transition: color 0.3s; }
.line__main--num { font: 300 1.5rem / 1.2 var(--sans); letter-spacing: -0.005em; white-space: nowrap; overflow-wrap: normal; }
.line__sub { font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.line .nw { white-space: nowrap; }
.line__go { display: inline-block; vertical-align: middle; margin: -0.15em 0 0 12px; color: var(--gold); transition: transform 0.6s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .line:hover { border-top-color: var(--gold); } }
@media (hover: hover) and (pointer: fine) { .line:hover .line__main { color: var(--gold-3); } }
@media (hover: hover) and (pointer: fine) { .line:hover .line__go { transform: translateX(5px); } }
.line:active .line__main { color: var(--gold-3); }

@media (max-width: 1099px) { .lines__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  /* four stacked ruled tap rows on the spine */
  .lines__list { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .line { min-height: 88px; padding: 18px 0; gap: 4px; border-top-color: var(--line); }
  .line__main { font-size: var(--t-name); }
  .line__main--num { font-size: 1.5rem; }
}

/* ------------------------------------------------------------------ */
/* Contact: the request form and project 41                            */
/* ------------------------------------------------------------------ */
main > section.rfq { padding-top: var(--sec); }
.rfq__from { color: var(--gold-3); max-width: 54ch; }
.rfq__in { align-items: start; row-gap: 48px; }
/* the form on A to C, its two field columns on A and B */
.rfq__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); align-content: start; }
.rfq__form > * { grid-column: 1 / -1; }
.rfq__form > .field:not(.field--wide) { grid-column: auto; }
.field { display: grid; gap: 10px; align-content: start; min-width: 0; border: 0; margin: 0; padding: 0; scroll-margin-top: 12px; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; font-size: var(--t-body); line-height: 1.4; color: var(--ink-2); padding: 0; }
.field label span, .field legend span { color: var(--gold-2); }
.field legend { margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 2px; border: 0;
  background: var(--g-2); color: var(--ink); font-size: var(--t-body); text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 4px rgba(10, 12, 14, 0.28);
  transition: box-shadow 0.35s, background-color 0.35s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 136px; resize: vertical; line-height: 1.55; }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c9a96e' stroke-width='1.3'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field select option { background: var(--g-2); color: var(--ink); }
.field ::placeholder { color: var(--ink-4); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(201, 169, 110, 0.5), inset 0 2px 4px rgba(10, 12, 14, 0.28); } }
.field input:focus, .field select:focus, .field textarea:focus { background-color: var(--g-1); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px var(--gold-wash); }
.field.is-invalid input { box-shadow: inset 0 0 0 1px var(--error); }
.field__err { color: var(--error); font-size: var(--t-small); line-height: 1.5; }

/* systems: aligned in two columns on A and B; the selected ones washed in gold, never a slab */
.sys-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--gap); }
.sys-chip {
  display: flex; align-items: center; justify-content: flex-start; min-height: 48px; padding: 10px 16px; border-radius: 2px;
  text-align: left; line-height: 1.3; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
@media (hover: hover) and (pointer: fine) { .sys-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, 0.55); } }
.sys-chip[aria-pressed="true"] { color: var(--gold-3); background: var(--gold-wash); box-shadow: inset 0 0 0 1px var(--gold); }

/* the send row on A, the note under it */
.rfq__send { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; padding-top: 8px; }
.rfq__send .btn { text-align: left; }
.rfq__note { color: var(--ink-3); font-size: var(--t-small); line-height: 1.5; margin-top: -12px; }
.rfq__note.is-error { color: var(--error); }
.rfq__note.is-ok { color: var(--gold-3); }

/* Project 41: a raised surface on C; its gold top edge firms up as the form fills */
.rfq__in > .card41 { grid-column: var(--C) / -1; }
.card41 { position: sticky; top: calc(var(--hh) + 32px); }
.card41__in {
  position: relative; display: grid; gap: 16px; padding: var(--inset);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 40%), var(--g-2);
  box-shadow: inset 0 2px 0 rgba(201, 169, 110, calc(0.2 + 0.8 * var(--fill, 0))), 0 40px 80px -50px rgba(6, 7, 9, 0.9);
  transition: box-shadow 0.8s var(--e-out);
}
.card41__title { font: 400 var(--t-sub) / 1.15 var(--serif); color: var(--ink); overflow-wrap: break-word; text-wrap: balance; }
.card41__line { font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); margin-top: -6px; }
/* systems as running text: only the chosen ones, joined by a middle dot */
.card41__sys { display: block; color: var(--ink); line-height: 1.5; }
.card41__sys li { display: none; }
.card41__sys li.is-on { display: inline; }
.card41__sys li.is-on ~ li.is-on::before { content: " · "; color: var(--ink-3); }
.card41__sys li.card41__sys-empty { display: inline; color: var(--ink-3); }
.card41__sys li.is-on ~ .card41__sys-empty { display: none; }
.card41__rows { border-top: 1px solid var(--line); }
.card41__rows div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card41__rows dt { font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); }
.card41__rows dd { color: var(--ink); overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.card41__rows .blank { color: var(--ink-4); }
.card41__note { font-size: var(--t-small); line-height: 1.5; color: var(--ink-3); }

/* Tablet and phone: the card first, under the head, as a full-bleed surface whose text sits on A.
   It stays compact: empty rows wait until they are filled. */
@media (max-width: 1099px) {
  .rfq__in { display: flex; flex-direction: column; align-items: stretch; gap: 48px; }
  .card41 { order: -1; position: static; margin-inline: calc(-1 * var(--margin)); }
  .card41__in { padding: 28px var(--margin); gap: 12px; box-shadow: inset 0 2px 0 rgba(201, 169, 110, calc(0.2 + 0.8 * var(--fill, 0))); }
  .card41__rows div:has(.blank) { display: none; }
  /* full width, so the second field column lands on the midline C */
  .rfq__form { max-width: none; }
}
@media (max-width: 759px) {
  .rfq__in { gap: 40px; }
  .card41__in { padding-block: 24px; }
  .rfq__form { gap: 24px var(--gap); }
  .rfq__form > .field:not(.field--wide) { grid-column: 1 / -1; }
  .rfq__form > .field.field--pair { grid-column: auto; }
  .field textarea { resize: none; field-sizing: content; min-height: 120px; max-height: 40svh; }
  .rfq__send { flex-direction: column; align-items: stretch; }
  .rfq__send .btn { width: 100%; justify-content: flex-start; }
}
@media (max-width: 379px) {
  .rfq__form > .field.field--pair { grid-column: 1 / -1; }
  .sys-chip { padding-inline: 12px; }
}
/* ------------------------------------------------------------------ */
/* Project viewer: the photograph on the spine, the facts on the midline */
/* ------------------------------------------------------------------ */
.viewer { position: fixed; inset: 0; z-index: 90; background: var(--g-0); color: var(--ink-2); clip-path: inset(100% 0 0 0); transition: clip-path 0.7s var(--e-io); }
.viewer.is-open { clip-path: inset(0); }
.viewer__in { height: 100%; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; transition: opacity 0.5s 0.2s; }
.viewer__in:focus, .viewer__in:focus-visible { outline: none; }
.viewer.is-open .viewer__in { opacity: 1; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; height: var(--hh); }
.viewer__pos { font: 500 var(--t-body)/1 var(--sans); color: var(--ink-2); letter-spacing: 0.01em; }
.viewer__pos .n-box { min-width: 1.2em; color: var(--ink); }
.viewer__pcount .n-box { min-width: 0.7em; color: var(--ink); }
.viewer__close { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding-left: 14px; font: 500 var(--t-body) var(--sans); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .viewer__close:hover { color: var(--gold-3); } }

.viewer__body { min-height: 0; transition: opacity 0.25s; border-top: 1px solid var(--line); }
.viewer.is-swapping .viewer__body { opacity: 0; }
.viewer__grid { height: 100%; padding-block: 32px; align-items: stretch; }
.grid > .viewer__media { grid-column: 1 / var(--C); min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.viewer__slides { position: relative; min-height: 0; overflow: hidden; background: var(--g-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.viewer__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--e-out); display: grid; place-items: center; }
.viewer__slide.is-on { opacity: 1; }
.viewer__slide-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(36px) brightness(0.42) saturate(0.75); }
.viewer__slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: var(--grade); }

/* a job without site photographs: a raised plate with the client's mark (or the job's face words), bottom left */
.viewer__poster { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; align-content: stretch; justify-items: start; gap: 16px; padding: var(--inset); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 40%), var(--g-2); }
.viewer__poster.has-logo { grid-template-rows: 1fr auto auto; }
.viewer__poster.has-logo::before { content: ""; }
.viewer__slide .viewer__poster img {
  position: static; inset: auto; align-self: end; width: auto; height: clamp(56px, 9vh, 88px); max-width: 60%; object-fit: contain; object-position: left bottom;
  filter: grayscale(1) invert(1) brightness(1.15) contrast(1.1); mix-blend-mode: screen; opacity: 0.78;
}
.viewer__slide .viewer__poster img.logo--boxed { filter: grayscale(1) brightness(1.15) contrast(1.1); mix-blend-mode: normal; opacity: 0.9; }
.viewer__poster b { align-self: end; font: 400 var(--t-sub)/1.15 var(--serif); color: var(--ink); max-width: 20ch; }
.viewer__poster p { font-size: var(--t-small); color: var(--ink-3); }

/* the photo controls live under the photograph: thumbs, then the count, then previous and next */
.viewer__strip { display: flex; align-items: center; gap: 16px; padding-top: 16px; min-width: 0; }
.viewer__thumbs { flex: 0 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.viewer__thumbs::-webkit-scrollbar { display: none; }
.viewer__thumbs button { flex: none; width: 66px; height: 44px; overflow: hidden; opacity: 0.55; box-shadow: inset 0 0 0 1px var(--line); transition: opacity 0.3s, box-shadow 0.3s; }
.viewer__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1.5px var(--gold); }
@media (hover: hover) and (pointer: fine) { .viewer__thumbs button:hover { opacity: 0.9; } }
.viewer__photonav { flex: none; display: flex; align-items: center; gap: 4px; }
.viewer__pcount { margin-right: 8px; font: 500 var(--t-small)/1 var(--sans); color: var(--ink-3); white-space: nowrap; }
.viewer__photonav button, .viewer__step { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 2px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.3s, box-shadow 0.3s, background-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .viewer__photonav button:hover, .viewer__step:hover { color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--line-gold); } }
.viewer__photonav button:active, .viewer__step:active { background: var(--g-3); }
.viewer__note { padding-top: 12px; font-size: var(--t-small); color: var(--ink-3); }

.grid > .viewer__info { grid-column: var(--C) / -1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 20px; align-content: start; justify-items: start; padding-bottom: 8px; scrollbar-width: thin; }
.viewer__title { font: 400 var(--t-sub)/1.15 var(--serif); color: var(--ink); max-width: 22ch; text-wrap: balance; }
.viewer__kind { margin-top: -12px; font-size: var(--t-small); color: var(--ink-3); }
.viewer__summary { font: 300 var(--t-intro)/1.5 var(--sans); color: var(--ink); max-width: 54ch; }
.viewer__systems { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer__systems span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 2px; font-size: var(--t-small); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.viewer__scope { line-height: 1.65; max-width: 60ch; }
.viewer__items { display: grid; gap: 8px; max-width: 60ch; }
.viewer__items li { display: flex; gap: 12px; align-items: baseline; }
.viewer__items li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--gold-1); transform: translateY(-0.3em); }
.viewer__similar { margin-block: 4px 8px; }
.viewer__meta { width: 100%; display: grid; border-top: 1px solid var(--line); }
.viewer__meta > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.viewer__meta dt { font-size: var(--t-small); color: var(--ink-3); }
.viewer__meta dd { color: var(--ink); }

/* the next project: two controls on the spine, then where next leads */
.viewer__steps { border-top: 1px solid var(--line); padding-block: 12px max(12px, env(safe-area-inset-bottom)); background: var(--g-0); }
.viewer__steps-in { display: flex; align-items: center; gap: 8px; }
.viewer__next { display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; margin-left: 12px; min-width: 0; font: 400 var(--t-body)/1.2 var(--sans); color: var(--ink-3); text-align: left; }
.viewer__next span { font: 400 var(--t-name)/1.2 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (hover: hover) and (pointer: fine) { .viewer__next:hover span { color: var(--gold-3); } }

@media (max-width: 1099px) {
  /* tablet and phone: one column that scrolls; the plate, its controls, then the facts on the page margin */
  .viewer__body { overflow-y: auto; overscroll-behavior: contain; }
  .viewer__grid { height: auto; padding-block: 24px 40px; row-gap: 32px; }
  .grid > .viewer__media { grid-column: 1 / -1; grid-template-rows: auto auto auto; }
  .viewer__slides { height: 52svh; min-height: 280px; }
  .grid > .viewer__info { grid-column: 1 / -1; overflow: visible; padding-bottom: 0; }
}
@media (max-width: 759px) {
  .viewer__grid { padding-block: 16px 40px; }
  .viewer__strip { gap: 12px; }
  .viewer__thumbs button { width: 60px; height: 44px; }
  .viewer__pcount { margin-right: 4px; }
  .viewer__similar { width: 100%; justify-content: space-between; }
  .viewer__next span { font-size: 1.0625rem; }
}
/* ------------------------------------------------------------------ */
/* Page-to-page: the light dims, then rises                            */
/* ------------------------------------------------------------------ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--e-io) both; }
::view-transition-new(root) { animation: vt-in 0.62s var(--e-out) both; }
@keyframes vt-out { to { opacity: 0; filter: brightness(0.35); } }
@keyframes vt-in { from { opacity: 0; filter: brightness(0.35); } }

.is-paused, .is-paused * { animation-play-state: paused !important; }

/* No JS: everything visible and lit; controls that need the script step aside */
.no-js [data-reveal], .no-js .ln > span, .no-js .tile, .no-js .listview__list li, .no-js .wcard { opacity: 1 !important; transform: none !important; filter: none !important; }
.no-js .band__set:first-child, .no-js .menu-btn, .no-js .dock, .no-js .viewer, .no-js .menu { display: none !important; }
.no-js .header { position: absolute; }
@media (max-width: 1099px) and (min-width: 760px) {
  .no-js .nav { display: flex; }
  .no-js .header__cta { display: none; }
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .ln > span, .js .tile, .js .listview__list li, .js .wcard { opacity: 1 !important; transform: none !important; filter: none !important; }
  /* scenes and plates only lose their motion; the photographs keep their grade and shade */
  .js .hero__media, .js .hero__caption, .js .hero__intro, .js .hero__actions, .js .scene img { opacity: 1 !important; transform: none !important; }
  .clients__track { animation: none; flex-wrap: wrap; justify-content: flex-start; width: auto; }
  .clients__track li[aria-hidden="true"] { display: none; }
  .clients__belt::before, .clients__belt::after, .clients__pause { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .menu__bg, .viewer { clip-path: none !important; }
  .menu__item, .menu__img, .menu__link:hover .menu__name { transform: none !important; }
  .dock { transition: none; }
  .has-intro .intro { animation: intro-failsafe 0.01s linear 4s forwards !important; }
  .intro .mark, .intro__name, .intro__sub { opacity: 1; transform: none; }
  .intro__line i { transform: none; }
  .intro.is-out { transform: none; opacity: 0; transition: opacity 0.4s !important; }
}
/* ------------------------------------------------------------------ */
/* Theme: dark is the house; the header switch turns the lights on     */
/* ------------------------------------------------------------------ */
/* Everything below only applies once html carries data-theme="light". The dark theme
   above stays exactly as it was. The head script sets the attribute before the first
   paint from localStorage ("etc-theme"); site.js theme() flips it and remembers it. */

/* the switch: a ring like the hero's pause, a sun while dark, a moon while light */
.theme-btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.3s, box-shadow 0.3s;
}
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--gold); } }
.theme-btn__moon, :root[data-theme="light"] .theme-btn__sun { display: none; }
:root[data-theme="light"] .theme-btn__moon { display: block; }
/* it waits beside the quote button; where the pages and that button leave no room for it
   (1100 to 1399 px), it stands on the midline just before the pages instead */
.header__in > .theme-btn--lead { display: none; }
@media (min-width: 1100px) and (max-width: 1399px) {
  .header__in > .theme-btn--lead { display: grid; grid-column: 1 / var(--C); justify-self: end; }
  .header__act > .theme-btn { display: none; }
}
.no-js .theme-btn { display: none !important; }
/* while the theme swaps, colours change at once instead of each easing on its own clock
   (durations only: motion already under way, like the hero's slow zoom, carries on) */
.is-theming *, .is-theming *::before, .is-theming *::after { transition-duration: 0s !important; transition-delay: 0s !important; }

/* Warm White & Gold: the same rooms in daylight. Warm white grounds, near-black text,
   the brand gold deepened to #7e602a so it holds 4.5:1 as text on the ground, and the
   quietest grey (placeholders, empty values) kept at 4.5:1 too. */
:root[data-theme="light"] {
  color-scheme: light;
  --g-0: #e9e1d3;
  --g-1: #f4efe6;
  --g-2: #ede6da;
  --g-3: #e2d9c9;
  --g-4: #d0c5b3;
  --g-rgb: 244, 239, 230;
  --g0-rgb: 233, 225, 211;
  --text-rgb: 30, 27, 23;
  --acc-rgb: 126, 96, 42;
  --shadow-rgb: 60, 46, 24;
  --line: rgba(30, 27, 23, 0.12);
  --line-2: rgba(30, 27, 23, 0.22);
  --line-gold: rgba(126, 96, 42, 0.5);
  --ink: #1e1b17;
  --ink-2: #45403a;
  --ink-3: #655e57;
  --ink-4: #6d665f;
  --gold-1: #a4844a;
  --gold: #7e602a;
  --gold-2: #7e602a;
  --gold-3: #644b1f;
  --on-gold: #fffdf8;
  --gold-wash: rgba(126, 96, 42, 0.1);
  --paper: #ffffff;
  --bone: #ffffff;
  --error: #a8402a;
  --scrim: rgba(244, 239, 230, 0.9);
  --umber-2: #655e57;
  --logo: #b48c47;
  --grade: saturate(0.92) contrast(1.02) brightness(1);
  --grade-deep: saturate(0.88) contrast(1.03) brightness(0.98);
  --grade-scene: saturate(0.85) contrast(1.02) brightness(1.03);
}

/* the ground: warm light from above, no dark pool at the foot, and no grain (the dark
   ground's white grain does not read on white; the approved light sample had none) */
:root[data-theme="light"] .ground { background: radial-gradient(90% 60% at 50% -12%, rgba(var(--acc-rgb), 0.07), transparent 60%), var(--g-1); }
:root[data-theme="light"] .ground::after { display: none; }
:root[data-theme="light"].has-intro .intro { background: radial-gradient(70% 55% at 50% 45%, rgba(var(--acc-rgb), 0.08), transparent 70%), var(--g-0); }
:root[data-theme="light"] .menu__bg { background: radial-gradient(110% 70% at 14% -10%, rgba(var(--acc-rgb), 0.06), transparent 62%), var(--g-0); }

/* the mark: the E and C in the logo gold, the crane in the text colour */
:root[data-theme="light"] .mark .mk-letters { fill: var(--logo); }

/* buttons, frames and panels: soft warm shadows instead of black drops */
:root[data-theme="light"] .btn--gold { box-shadow: 0 16px 34px -22px rgba(var(--acc-rgb), 0.55); }
:root[data-theme="light"] .btn--gold::after { background: radial-gradient(150px circle at var(--bx) var(--by), rgba(255, 255, 255, 0.14), transparent 70%); }
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .btn--line:hover { box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.7); } }
:root[data-theme="light"] .btn--line:active { box-shadow: inset 0 0 0 1px var(--gold); }
:root[data-theme="light"] .frame { box-shadow: 0 0 0 1px var(--line), 0 40px 70px -48px rgba(var(--shadow-rgb), 0.45); }
:root[data-theme="light"] .panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 40%), var(--g-2); box-shadow: inset 0 1px 0 var(--line); }
:root[data-theme="light"] .medallion { box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.55), 0 30px 60px -36px rgba(var(--shadow-rgb), 0.45); }
@media (max-width: 759px) {
  :root[data-theme="light"] .btn--gold, :root[data-theme="light"] .sb__media { box-shadow: none; }
}

/* scenes: a lighter veil, strong behind the words and under the header, clear on the far side.
   Across, it is measured from the spine (--x) rather than in percent: the words always end
   about 680px in, so the veil holds to there at every width and clears after it */
:root[data-theme="light"] .hero__media::after, :root[data-theme="light"] .hero .scene::after {
  --x: max(var(--margin), (100% - var(--max)) / 2);
  background:
    linear-gradient(180deg, rgba(var(--g-rgb), 0.86) 0, rgba(var(--g-rgb), 0.62) 90px, rgba(var(--g-rgb), 0) 200px, rgba(var(--g-rgb), 0) 58%, rgba(var(--g-rgb), 0.72) 86%, var(--g-1) 100%),
    linear-gradient(90deg, rgba(var(--g-rgb), 0.93) 0, rgba(var(--g-rgb), 0.86) calc(var(--x) + 460px), rgba(var(--g-rgb), 0.72) calc(var(--x) + 700px), rgba(var(--g-rgb), 0.12) calc(var(--x) + 960px), rgba(var(--g-rgb), 0) calc(var(--x) + 1180px));
}
@media (max-width: 1099px) {
  :root[data-theme="light"] .hero__media::after, :root[data-theme="light"] .hero .scene::after { background: linear-gradient(180deg, rgba(var(--g-rgb), 0.12), rgba(var(--g-rgb), 0) 24%); }
}

/* home: the clip's pause sits on the film, so it keeps a light plate */
:root[data-theme="light"] .case__hold { background: rgba(var(--g-rgb), 0.82); }

/* client logos: dark greyscale on the light ground instead of inverted white */
:root[data-theme="light"] .clients__track img { filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: 0.72; }
:root[data-theme="light"] .clients__track img.logo--boxed { filter: grayscale(1) contrast(1.05); }
:root[data-theme="light"] .clients__track img.logo--faint { filter: grayscale(1) brightness(0.55) contrast(1.2); }
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .clients__track img:hover { opacity: 1; } }

/* the map */
:root[data-theme="light"] .net .land { stroke: rgba(var(--acc-rgb), 0.45); }
:root[data-theme="light"] .net .canal, :root[data-theme="light"] .net .nile.branch { stroke: rgba(var(--acc-rgb), 0.45); }
:root[data-theme="light"] .net .nile { stroke: rgba(var(--acc-rgb), 0.65); }
:root[data-theme="light"] .net .arc { stroke: rgba(var(--acc-rgb), 0.3); }
:root[data-theme="light"] .net .arc.is-active { stroke: var(--gold-3); }
:root[data-theme="light"] .net .sea { fill: rgba(var(--text-rgb), 0.42); }
:root[data-theme="light"] .net .node { stroke: var(--g-1); filter: drop-shadow(0 1px 3px rgba(var(--acc-rgb), 0.45)); }
:root[data-theme="light"] .net .place:focus-visible .node { stroke: var(--ink); }
:root[data-theme="light"] .net.has-active .place:not(.is-active) { opacity: 0.65; }
:root[data-theme="light"] .netmap__card:not(.netmap__card--under) { box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 36px -22px rgba(var(--shadow-rgb), 0.4); }
:root[data-theme="light"] .mapview .netmap__card { box-shadow: none; }

/* about: the story's gold vein, the client wall's white plates */
:root[data-theme="light"] .story.is-pinned .story__vein i { background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.3), var(--gold)); }
:root[data-theme="light"] .logo-cell__img { box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgba(var(--shadow-rgb), 0.35); }

/* projects: logo plates and the hot row */
/* (the plain and the pointed-at states stay in separate rules: the build fences off any rule
   that names the pointer state, comments before it included, for mouse screens only) */
:root[data-theme="light"] .tile__plate img.logo { filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
:root[data-theme="light"] .tile__plate img.logo--boxed { filter: grayscale(1) contrast(1.05); }
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .tile:hover .tile__plate img.logo { filter: grayscale(1) contrast(1.05); } }
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .row:hover, :root[data-theme="light"] .row.is-hot { background: linear-gradient(90deg, rgba(var(--text-rgb), 0.045), transparent 85%); } }

/* contact: white fields, a soft inner shadow, the select's chevron in the deeper gold */
:root[data-theme="light"] .field input, :root[data-theme="light"] .field select, :root[data-theme="light"] .field textarea {
  background-color: #fff; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 2px rgba(var(--shadow-rgb), 0.08);
}
:root[data-theme="light"] .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237e602a' stroke-width='1.3'/></svg>");
}
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .field input:hover, :root[data-theme="light"] .field select:hover, :root[data-theme="light"] .field textarea:hover {
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.5), inset 0 1px 2px rgba(var(--shadow-rgb), 0.08);
} }
:root[data-theme="light"] .field input:focus, :root[data-theme="light"] .field select:focus, :root[data-theme="light"] .field textarea:focus {
  background-color: #fff; box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px var(--gold-wash);
}
:root[data-theme="light"] .field.is-invalid input { box-shadow: inset 0 0 0 1px var(--error); }
:root[data-theme="light"] .field select option { background: #fff; }
@media (hover: hover) and (pointer: fine) { :root[data-theme="light"] .sys-chip:hover { box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.55); } }
:root[data-theme="light"] .sys-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--gold); }
:root[data-theme="light"] .card41__in {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 40%), var(--g-2);
  box-shadow: inset 0 2px 0 rgba(var(--acc-rgb), calc(0.2 + 0.8 * var(--fill, 0))), 0 40px 80px -56px rgba(var(--shadow-rgb), 0.4);
}
@media (max-width: 1099px) {
  :root[data-theme="light"] .card41__in { box-shadow: inset 0 2px 0 rgba(var(--acc-rgb), calc(0.2 + 0.8 * var(--fill, 0))); }
}

/* the viewer: a pale wash of the photograph behind it, logos in dark greyscale */
:root[data-theme="light"] .viewer__slides { box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="light"] .viewer__slide-bg { filter: blur(36px) brightness(1.12) saturate(0.6); opacity: 0.5; }
:root[data-theme="light"] .viewer__slide .viewer__poster img { filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: 0.72; }
:root[data-theme="light"] .viewer__slide .viewer__poster img.logo--boxed { filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: 0.9; }

/* page to page: on a white page the dark theme's dimming reads as a grey flash, so the
   light pages simply cross-fade, on the same timing */
@media (prefers-reduced-motion: no-preference) {
  :root[data-theme="light"]::view-transition-old(root) { animation-name: vt-out-light; }
  :root[data-theme="light"]::view-transition-new(root) { animation-name: vt-in-light; }
}
@keyframes vt-out-light { to { opacity: 0; } }
@keyframes vt-in-light { from { opacity: 0; } }
