/* ================================================================
   NUMENHAUS — gallery.css
   The gallery-light system: plaster + ink + one image per view.
   Loaded AFTER style-v2.css on migrated pages; overrides the dark
   sage base and styles the new homepage choreography.
   Tokens first — everything reads through them.
================================================================ */

:root {
  --bg: #e8e6e1;          /* warm plaster */
  --bg-2: #f1efeb;        /* section alternate */
  --ink: #22291f;         /* near-black army green */
  --ink-70: rgba(34, 41, 31, .70);
  --ink-40: rgba(34, 41, 31, .40);
  --ink-25: rgba(34, 41, 31, .25);
  --ink-12: rgba(34, 41, 31, .12);
  --ink-06: rgba(34, 41, 31, .06);
  --green: #2b3933;       /* deep matte green — dark passages only */
  --gold: #ad9564;        /* micro-scale only */

  --f-disp: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --f-ui:   'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --f-cond: 'Oswald', 'Arial Narrow', sans-serif;

  --t-label: 11px;
  --t-body: 13px;

  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ── base flip ─────────────────────────────────────────────── */
body.gallery {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: var(--t-body);
  letter-spacing: .06em;
  cursor: none;
}
body.gallery ::selection { background: var(--ink); color: var(--bg); }
body.gallery a { color: inherit; text-decoration: none; }

/* thin ink scrollbar on plaster */
body.gallery::-webkit-scrollbar { width: 3px; }
body.gallery::-webkit-scrollbar-track { background: var(--bg); }
body.gallery::-webkit-scrollbar-thumb { background: var(--ink-40); }

/* editorial image treatment */
body.gallery img { filter: saturate(.92); }
body.gallery .bw { filter: grayscale(1) contrast(1.05); }

/* ── pills ─────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(34, 41, 31, .08);
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: none;
  transition: background .35s var(--ease-expo), color .35s var(--ease-expo);
}
.pill:hover { background: var(--ink); color: var(--bg); }
.pill.on-dark { color: var(--bg); background: rgba(232, 230, 225, .14); backdrop-filter: blur(8px); }
.pill.on-dark:hover { background: var(--bg); color: var(--ink); }
.pill .plus {
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 11px; line-height: 1;
}

/* ── rolling links (structure built by scroll.js initRoll) ─── */
[data-roll] {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.4;
  height: 1.4em;      /* exactly one line — the duplicate hides below the mask */
}
[data-roll] .roll-in {
  display: block;
  transition: transform .5s var(--ease-expo);
}
[data-roll] .roll-in span { display: block; }
[data-roll]:hover .roll-in { transform: translateY(-50%); }

/* ── nav ───────────────────────────────────────────────────── */
#gnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.5vw, 40px);
  padding: 18px clamp(20px, 3vw, 44px);
  font-size: var(--t-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bg);
  transition: color .4s, background .4s, backdrop-filter .4s;
}
#gnav.solid {
  color: var(--ink);
  background: rgba(232, 230, 225, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#gnav .gnav-mark {
  font-family: 'Aristotelica', var(--f-disp);   /* wordmark keeps the brand face */
  font-size: 19px;
  font-weight: 200;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
}
#gnav .gnav-cta { color: inherit; }
#gnav .gnav-cta.pill { background: rgba(232, 230, 225, .14); color: inherit; padding: 10px 20px; }
#gnav.solid .gnav-cta.pill { background: rgba(34, 41, 31, .08); }
#gnav.solid .gnav-cta.pill:hover, #gnav .gnav-cta.pill:hover { background: var(--ink); color: var(--bg); }
#gnav-burger { display: none; }

/* LIVE — the one gold accent in the nav: text + a small pulse dot */
#gnav .gnav-live { color: var(--gold); position: relative; padding-right: 12px; }
#gnav .gnav-live::after {
  content: '';
  position: absolute;
  top: 3px; right: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) { #gnav .gnav-live::after { animation: none; } }
#gmenu .gm-live { color: var(--gold) !important; }

/* ── preloader reskin (same ids as main.js) ────────────────── */
body.gallery #pl { background: var(--bg); }
body.gallery #pl .pl-overlay { background: linear-gradient(180deg, rgba(15,22,30,.18), rgba(15,22,30,.38)); }
/* difference blend: over the dark video the wordmark reads light; if the
   video ever fails to paint the plaster ground inverts it to ink — the
   preloader can never look like an empty blank page */
body.gallery #pl .pl-content { mix-blend-mode: difference; }
body.gallery #pl-label { color: rgba(232,230,225,.85); font-family: var(--f-ui); font-size: var(--t-label); letter-spacing: .3em; }
body.gallery #pl-title { font-family: 'Aristotelica', var(--f-disp); color: #fff; }
body.gallery #pl-sub { color: rgba(232,230,225,.7); }
body.gallery #pl-skip {
  background: none; border: 0; border-bottom: 1px solid rgba(232,230,225,.4);
  color: rgba(232,230,225,.8); font-family: var(--f-ui);
  font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 0; right: 32px; bottom: 28px; position: absolute; cursor: none;
}

/* ── cursor reskin ─────────────────────────────────────────── */
body.gallery #cur {
  width: 32px; height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  background: none;
}
body.gallery #curdot {
  width: 4px; height: 4px;
  background: #fff;
  mix-blend-mode: difference;
  border-radius: 50%;
}
body.gallery #curlabel {
  font-family: var(--f-ui);
  font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  padding: 7px 14px;
  transform: translate(18px, 18px);
  mix-blend-mode: normal;
}

/* ── pinned-section plumbing ───────────────────────────────── */
[data-pin] { position: relative; }
.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
[data-pin].is-unpinned { height: auto !important; }
[data-pin].is-unpinned .pin-stage { position: relative; height: auto; min-height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  [data-pin] { height: auto !important; }
  .pin-stage { position: relative; height: auto; min-height: 60vh; }
  .mn-l { opacity: 1 !important; }
}

/* ── HERO — full-viewport showreel ─────────────────────────── */
#hero-g {
  position: relative;
  height: 100vh;
  background: var(--green);
  overflow: hidden;
}
#hero-g video, #hero-g .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#hero-g::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,22,30,.28) 0%, rgba(15,22,30,0) 30%, rgba(15,22,30,0) 60%, rgba(15,22,30,.42) 100%);
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  bottom: clamp(24px, 4vh, 44px);
  z-index: 3;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
}
body.intro-done .hero-caption { opacity: 1; transform: none; transition: opacity .9s .5s, transform .9s .5s var(--ease-expo); }
.hero-caption .hc-name {
  font-size: var(--t-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-caption .hc-city {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 18px;
}

/* ── MANIFESTO — pinned letter-fill ────────────────────────── */
#value-prop { background: var(--bg); }
#value-prop .pin-stage { display: grid; place-items: center; background: var(--bg); }
.manifesto {
  font-family: var(--f-cond);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: center;
  max-width: 92vw;
  color: var(--ink);
}
.mn-w { display: inline-block; white-space: nowrap; }
.mn-l { opacity: .06; transition: opacity .18s linear; }
.mn-l.lit { opacity: 1; }

/* ── STUDIO — split that scrubs to full bleed ──────────────── */
#studio-g { background: var(--bg-2); }
#studio-g .pin-stage { background: var(--bg-2); }
.studio-photo {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--sw, 55%);
  overflow: hidden;
  z-index: 2;
}
.studio-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio-copy {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: clamp(24px, 4vw, 72px);
}
.studio-copy .st-lead {
  font-size: clamp(19px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.studio-copy .st-sub {
  font-size: var(--t-body);
  line-height: 1.9;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-left: clamp(0px, 4vw, 76px);
  max-width: 44ch;
}

/* ── FEATURED — cinematic scrub (dark passage) ─────────────── */
#featured-g { background: var(--green); }
#featured-g .pin-stage { background: var(--green); }
#featured-g canvas, #featured-g video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.feat-overlay {
  position: absolute; inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(15,22,30,.16) 0%, rgba(15,22,30,0) 65%);
}
.feat-overlay > div { pointer-events: auto; }
.feat-eyebrow {
  font-size: var(--t-label); letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 22px;
}
.feat-title {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 180px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 34px;
}

/* ── WE DO — ghost flanks + sector list ────────────────────── */
#wedo-g {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 18vh 0;
  overflow: hidden;
}
.wedo-ghost-l, .wedo-ghost-r {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 22vw;
  line-height: 1;
  color: var(--ink-06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.wedo-ghost-l { left: -7vw; }
.wedo-ghost-r { right: -7vw; }
.sector-list { position: relative; z-index: 2; text-align: center; }
.sector-list a {
  display: block;
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 88px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  transition: transform .5s var(--ease-expo), color .4s;
}
.sector-list a:hover { transform: translateX(8px); color: var(--ink-70); }
.wedo-cta-row { margin-top: 44px; text-align: center; position: relative; z-index: 2; }

/* ── WORLD — cartographic panorama ─────────────────────────── */
#world-g { background: var(--bg-2); }
#world-g .pin-stage { background: var(--bg-2); }
.world-region {
  position: absolute;
  top: clamp(70px, 11vh, 110px);
  left: clamp(20px, 3vw, 44px);
  font-size: var(--t-label);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.world-region span {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .5s;
}
.world-region span.on { opacity: 1; }
.world-field {
  position: absolute; inset: 0;
  width: 300vw;
  transform: translateX(calc(var(--p, 0) * -200vw));
  background-image:
    linear-gradient(var(--ink-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-06) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  will-change: transform;
}
.wcity {
  position: absolute;
  font-family: var(--f-ui);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.wcity::before {
  content: '';
  display: block;
  width: 1px; height: 14px;
  background: var(--ink-40);
  margin: 0 auto 8px;
}
.wcity.t1 { font-size: 16px; letter-spacing: .16em; }
.wcity.t2 { font-size: var(--t-label); letter-spacing: .14em; color: var(--ink-40); }
.world-ruler {
  position: absolute;
  left: 0; right: 0; bottom: clamp(28px, 5vh, 52px);
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 44px);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-25);
  border-top: 1px solid var(--ink-12);
  padding-top: 14px;
}

/* ── MONO — the book ───────────────────────────────────────── */
#mono-g {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding: 16vh clamp(20px, 3vw, 44px);
  overflow: hidden;
}
.mono-ghost {
  position: absolute;
  right: -3vw;
  bottom: 4vh;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 20vw;
  line-height: 1;
  color: var(--ink);          /* the one giant SOLID word on the page */
  opacity: .9;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.mono-copy { position: relative; z-index: 3; }
.mono-copy .mc-lead {
  font-size: var(--t-body);
  line-height: 1.9;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-70);
  max-width: 46ch;
  margin-bottom: 40px;
}
.mono-toc { margin-bottom: 44px; }
.mono-toc .toc-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink-12);
  font-size: var(--t-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mono-toc .toc-row .dots { flex: 1; border-bottom: 1px dotted var(--ink-25); transform: translateY(-3px); }
.mono-toc .toc-row .pg { font-family: var(--f-ui); color: var(--ink-40); }
.mono-book-g {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(30vw, 380px);
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, #f5f3ef 0%, #e3e0da 100%);
  box-shadow: -22px 30px 60px rgba(34, 41, 31, .28), inset 3px 0 6px rgba(34,41,31,.08);
  border-left: 10px solid #d8d5cf;   /* spine */
  display: grid;
  place-items: center;
  transform: rotate(26deg) translateY(-30px);
  transition: transform 1.8s var(--ease-expo);
}
.mono-book-g.is-in { transform: rotate(9deg) translate(12px, 10px); }
.mono-book-g .bk-mark {
  font-family: 'Aristotelica', var(--f-disp);
  font-size: clamp(15px, 1.4vw, 21px);
  letter-spacing: .34em;
  text-indent: .34em;
  color: rgba(34, 41, 31, .35);
  text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(34,41,31,.15);  /* emboss */
  text-transform: uppercase;
}

/* ── OFFICES — the footer of cities ────────────────────────── */
#offices-g {
  background: var(--green);
  color: var(--bg);
  padding: 18vh clamp(20px, 3vw, 44px) 0;
  text-align: center;
}
.off-stack { margin-bottom: 12vh; }
.off-city-g {
  position: relative;
  display: block;
  margin: 0 auto;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 140px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--bg);
  width: fit-content;
  transition: opacity .45s var(--ease-expo);
}
.off-stack:hover .off-city-g:not(:hover) { opacity: .15; }
.off-city-g sup {
  position: absolute;
  top: .8em; right: -4.4em;
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gold);
}
.off-legal {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, .45);
  margin-bottom: 34px;
}
.off-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 9vh;
}
.off-social a {
  width: 44px; height: 44px;
  border: 1px solid rgba(232, 230, 225, .3);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--t-label); letter-spacing: .06em; text-transform: uppercase;
  color: var(--bg);
  transition: background .35s, color .35s;
}
.off-social a:hover { background: var(--bg); color: var(--ink); }
.off-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(232, 230, 225, .14);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, .5);
}

/* ── page transition curtain reskin ────────────────────────── */
body.gallery #pt {
  background: var(--bg);
  pointer-events: none;   /* a stuck curtain must never trap clicks */
}

/* ════════════════════════════════════════════════════════════
   PROJECTS PAGE — two-layer title, facet filters, staggered grid
════════════════════════════════════════════════════════════ */
.pg-head {
  padding: calc(72px + 10vh) clamp(20px, 3vw, 44px) 0;
}
.pg-title {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(52px, 8.5vw, 150px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.pg-title-ghost {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 62px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink-12);          /* the ghost second layer */
  margin-top: .18em;
}

/* filter row */
.pg-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin: 6vh clamp(20px, 3vw, 44px) 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink-12);
  font-size: var(--t-label);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pf-btn {
  background: none; border: 0; padding: 4px 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--ink-40);
  cursor: none;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.pf-btn:hover { color: var(--ink); }
.pf-btn.on { color: var(--ink); border-bottom-color: var(--gold); }
.pf-spacer { flex: 1; }
.pf-select {
  background: none; border: 0; font: inherit;
  letter-spacing: inherit; text-transform: inherit;
  color: var(--ink-40); cursor: none;
  border-bottom: 1px solid transparent;
}
.pf-select.on, .pf-select:focus { color: var(--ink); outline: none; }
.pf-toggle {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  border: 1px solid var(--ink-25);
  border-radius: 999px;
  background: none;
  color: var(--ink-40);
  padding: 8px 18px;
  cursor: none;
  transition: all .3s;
}
.pf-toggle.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pf-density { display: flex; gap: 10px; color: var(--ink-25); }
.pf-density button {
  background: none; border: 0; font: inherit; color: inherit;
  cursor: none; letter-spacing: inherit;
}
.pf-density button.on { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* staggered grid */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 28px);
  padding: 10vh clamp(20px, 3vw, 44px) 16vh;
  align-items: start;
}
.pg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pg-grid .pcard:nth-child(4n+2) { margin-top: 14vh; }
.pg-grid .pcard:nth-child(4n+3) { margin-top: 5vh; }
.pg-grid .pcard:nth-child(4n)   { margin-top: 20vh; }
.pg-grid.cols-2 .pcard:nth-child(4n+2),
.pg-grid.cols-2 .pcard:nth-child(4n)   { margin-top: 8vh; }
.pg-grid.cols-2 .pcard:nth-child(4n+3) { margin-top: 0; }

.pcard { display: block; }
.pcard .pc-frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ink-06);
}
.pcard.landscape .pc-frame { aspect-ratio: 4 / 3; }
.pcard img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-expo);
}
.pcard:hover img { transform: scale(1.04); }
.pcard .pc-cap {
  overflow: hidden;
  margin-top: 12px;
}
.pcard .pc-cap-in {
  font-size: var(--t-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateY(110%);
  transition: transform .6s var(--ease-expo);
}
.pcard:hover .pc-cap-in, .pg-grid.caps-on .pc-cap-in { transform: none; }
.pcard .pc-cap-in .c2 { color: var(--ink-40); margin-left: 10px; }
.pcard.hidden { display: none; }

@media (max-width: 900px) {
  .pg-grid, .pg-grid.cols-2 { grid-template-columns: 1fr 1fr; padding-top: 6vh; }
  .pg-grid .pcard { margin-top: 0 !important; }
  .pg-grid .pcard:nth-child(2n) { margin-top: 7vh !important; }
  .pg-filters { gap: 12px; }
  .pcard .pc-cap-in { transform: none; }   /* captions always visible on touch */
}
@media (max-width: 560px) {
  .pg-grid, .pg-grid.cols-2 { grid-template-columns: 1fr; }
  .pg-grid .pcard:nth-child(2n) { margin-top: 0 !important; }
}

/* ── connect overlay: keep dark panel, it reads as a dark passage ── */

/* ════════════════════════════════════════════════════════════
   LEGACY PAGE RESKIN — flips the style-v2 components still used
   by about / services / contact / project-detail to the gallery
   language (plaster + ink + grotesque caps). Scoped to body.gallery
   so class-count specificity beats the old single-class rules.
════════════════════════════════════════════════════════════ */

/* chrome */
body.gallery #spb { background: var(--gold); height: 2px; }
body.gallery #mqbar, body.gallery #gc { display: none; }   /* off-language */
body.gallery .sc,
body.gallery .about-name-large em {
  font-family: inherit !important;
  font-style: normal !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* display headings → grotesque caps */
body.gallery .page-hero-h1,
body.gallery .contact-h1,
body.gallery .about-name-large,
body.gallery .world-h2,
body.gallery .proj-section-h,
body.gallery .svc-title,
body.gallery .co-title {
  font-family: var(--f-disp);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--ink);
}
body.gallery .svc-title { font-size: clamp(20px, 1.8vw, 28px); }

/* eyebrows / labels */
body.gallery .page-hero-eyebrow, body.gallery .sect-eyebrow,
body.gallery .about-tag, body.gallery .proj-section-label,
body.gallery .pmc-label, body.gallery .cec-label,
body.gallery .svc-num, body.gallery .reason-num,
body.gallery .ptm-role, body.gallery .team-role,
body.gallery .off-country, body.gallery .about-stat-l,
body.gallery .reason-h {
  font-family: var(--f-ui);
  color: var(--ink-40);
}
body.gallery .reason-h { color: var(--ink); text-transform: uppercase; font-family: var(--f-disp); font-weight: 600; }

/* body copy → 13px tracked caps */
body.gallery .svc-desc, body.gallery .services-intro-body,
body.gallery .proj-section-p, body.gallery .reason-p,
body.gallery .off-address, body.gallery .about-lead,
body.gallery .about-body, body.gallery .team-name {
  font-family: var(--f-ui);
  font-size: var(--t-body);
  letter-spacing: .05em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--ink-70);
}
body.gallery .team-name { color: var(--ink); }

/* cards / cells → plaster panels with hairlines */
body.gallery .svc-card, body.gallery .about-stat,
body.gallery .reason-card, body.gallery .contact-off,
body.gallery .off-card, body.gallery .proj-meta-cell,
body.gallery .proj-team-member, body.gallery .contact-email-cat,
body.gallery .team-card {
  background: var(--bg-2);
  border: 1px solid var(--ink-06);
}
body.gallery .about-stats, body.gallery .reasons-grid,
body.gallery .team-grid, body.gallery .proj-meta-row,
body.gallery .proj-team, body.gallery .offices-grid {
  background: transparent;
  gap: 2px;
}
body.gallery .about-stat-n {
  font-family: var(--f-disp);
  font-weight: 700;
  color: var(--ink);
}
body.gallery .pmc-value, body.gallery .ptm-name { color: var(--ink); font-family: var(--f-ui); }
body.gallery .svc-link, body.gallery .off-contact, body.gallery .cec-email,
body.gallery .read-more-link { color: var(--ink); }
body.gallery .off-city { color: var(--ink); font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; }
body.gallery .off-time { color: var(--gold); }
body.gallery .off-phone { color: var(--ink-70); }
body.gallery .off-divider { background: var(--ink-12); }

/* about hero */
body.gallery .about-hero, body.gallery .about-hero-bg { background: var(--bg); }
body.gallery .about-hero-bg::after, body.gallery .about-hero-bg::before { display: none; }

/* pages' hero bands sit on plaster */
body.gallery .services-hero, body.gallery .services-intro,
body.gallery .services-grid-section, body.gallery .contact-hero,
body.gallery .team-section, body.gallery .about-stats-section { background: transparent; }

/* project detail: body plaster; hero meta stays white over the image */
body.gallery .proj-detail-hero { background: var(--green); }
body.gallery .next-project { background: var(--green); }
body.gallery .next-project:hover { background: #24302b; }
body.gallery .np-name { color: var(--bg); font-family: var(--f-disp); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; }
body.gallery .np-label, body.gallery .np-loc { color: rgba(232,230,225,.5); }
body.gallery .np-label::before, body.gallery .np-label::after { background: rgba(232,230,225,.4); }

/* old buttons → pill language */
body.gallery .btn-outline {
  border: 0;
  border-radius: 999px;
  background: rgba(34, 41, 31, .08);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: var(--t-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 26px;
  transition: background .35s var(--ease-expo), color .35s var(--ease-expo);
}
body.gallery .btn-outline:hover { background: var(--ink); color: var(--bg); }

/* old footer → green passage */
body.gallery footer:not(#offices-g) { background: var(--green); }
body.gallery footer:not(#offices-g) .ft-logo-text { color: var(--bg); }

/* team photos read editorial B&W until hover */
body.gallery .team-photo { filter: grayscale(1) contrast(1.05); }
body.gallery .team-card:hover .team-photo { filter: grayscale(0) saturate(.92); }

/* ── micro-type floor ────────────────────────────────────────
   Legacy components carried 8.5–9.5px labels; nothing readable
   should sit below ~10.5px. Two-class scope beats the old rules
   and the project page's inline style block. */
body.gallery .svc-link       { font-size: 11px; letter-spacing: .1em; }
body.gallery .process-step-n { font-size: 11px; }
body.gallery .dcut-caption   { font-size: 12px; }
body.gallery .dcut-caption span { font-size: 11px; }
body.gallery .pmc-label,
body.gallery .ptm-role       { font-size: 10.5px; }
body.gallery .proj-section-label { font-size: 10.5px; }
body.gallery .np-label       { font-size: 11px; }

/* filter chips: real tap targets on touch layouts */
.pf-btn { padding: 8px 2px; }
@media (max-width: 900px) {
  .pf-btn { padding: 12px 6px; }
  .pf-density button { padding: 10px 6px; }
}

/* ── TYPE FLOOR — nothing readable below 11px, sitewide ────────
   The old system used 8–10px micro-labels; the gallery language
   keeps the tracked-caps voice but never drops under --t-label. */
body.gallery .pdm-coords, body.gallery .pdm-tag,
body.gallery .pmc-label, body.gallery .ptm-role,
body.gallery .team-role, body.gallery .proj-section-label,
body.gallery .np-label, body.gallery .np-loc,
body.gallery .svc-num, body.gallery .reason-num,
body.gallery .about-tag, body.gallery .cec-label,
body.gallery .off-country, body.gallery .page-hero-eyebrow,
body.gallery .sect-eyebrow, body.gallery .about-stat-l,
body.gallery .ft-nav-link, body.gallery .ft-nav-col-title,
body.gallery .ft-tagline, body.gallery .ft-copy,
body.gallery .gc-btn, body.gallery .lb-close,
body.gallery .lb-count, body.gallery .lb-nav-btn,
body.gallery .co-eyebrow, body.gallery .co-label,
body.gallery .co-close, body.gallery .co-btn-next,
body.gallery .co-btn-back, body.gallery .hc-city,
body.gallery .off-legal, body.gallery .off-bottom,
body.gallery .world-ruler, body.gallery #curlabel,
body.gallery .feat-eyebrow {
  font-size: var(--t-label) !important;
}

/* project hero meta joins the grotesque system (stays white over image) */
body.gallery .pdm-name {
  font-family: var(--f-disp);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .95;
  text-transform: uppercase;
}
body.gallery .pdm-coords, body.gallery .pdm-tag { font-family: var(--f-ui); letter-spacing: .12em; }

/* ── mobile ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #gnav .gnav-link { display: none; }
  #gnav-burger {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: none;
    gap: 0;
  }
  #gnav-burger span {
    display: block; width: 22px; height: 1.5px;
    background: currentColor; margin: 2.5px 0;
    transition: transform .4s var(--ease-expo), opacity .3s;
  }
  body.gmenu-open #gnav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.gmenu-open #gnav-burger span:nth-child(2) { opacity: 0; }
  body.gmenu-open #gnav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  #gmenu {
    position: fixed; inset: 0; z-index: 880;
    background: var(--bg);
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 24px;
    gap: 4px;
    opacity: 0; pointer-events: none;
    transition: opacity .45s var(--ease-expo);
  }
  body.gmenu-open #gmenu { opacity: 1; pointer-events: auto; }
  body.gmenu-open #gnav { color: var(--ink); background: none; backdrop-filter: none; }
  #gmenu a {
    font-family: var(--f-disp);
    font-weight: 600;
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -.02em;
    color: var(--ink);
  }

  /* manifesto: 48px floor is too large for a 90-char statement on phones */
  .manifesto { font-size: clamp(28px, 8.6vw, 42px); line-height: 1.12; }

  /* density switch is meaningless when the grid is forced responsive */
  .pf-density { display: none; }

  .studio-photo { position: relative; width: 100% !important; height: 52vh; }
  .studio-copy { position: relative; width: 100%; padding: 40px 24px 64px; }
  #studio-g.is-unpinned .pin-stage { display: flex; flex-direction: column; }

  .feat-title { font-size: clamp(44px, 13vw, 72px); }
  .sector-list a { font-size: clamp(30px, 8.5vw, 44px); }
  .wedo-ghost-l, .wedo-ghost-r { font-size: 34vw; opacity: .7; }

  #world-g.is-unpinned .pin-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; min-height: 72vh; }
  #world-g.is-unpinned .world-field { transform: none; position: relative; height: 62vh; }

  #mono-g { grid-template-columns: 1fr; padding-top: 12vh; }
  .mono-book-g { width: min(64vw, 300px); margin-top: 6vh; }
  .mono-ghost { font-size: 34vw; right: -8vw; opacity: .12; }

  .off-city-g sup { right: -3.2em; font-size: 11px; }
}

@media (max-width: 560px) {
  /* keep the bar to wordmark + burger on small phones */
  #gnav .gnav-cta { display: none; }
  #gnav .gnav-mark { font-size: 16px; }

  /* clocks flow inline after the city name — the absolute superscript
     pushes past the viewport edge on narrow screens */
  .off-city-g sup {
    position: static;
    display: inline-block;
    margin-left: 12px;
    vertical-align: super;
    font-size: 10px;
  }
  /* keep micro-type legible on phones */
  .hero-caption .hc-city { font-size: 11px; }
  .off-legal { font-size: 11px; letter-spacing: .1em; }
  .off-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 900px) and (min-width: 0px) {
  #gmenu { display: flex; }
}
@media (min-width: 901px) {
  #gmenu { display: none; }
}
