/* Inspace Production, static site.
   Tokens follow 00 Reference/Brand Identity 2026/03 Output/20261013_Inspace_Brand_Guideline_v1.pdf:
   Google Sans Flex (headings 600-700, roundness 100) + Plus Jakarta Sans (body 400-500),
   Space Navy / Roof Copper / Star Gold, Mist background, web type scale 64/45/32/22/16/12. */

@font-face { font-family: "Google Sans Flex"; src: url("../fonts/google-sans-flex.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Brand (from Brand Identity 2026/02 Build/logo_master.py) */
  --navy: #24396E;
  --night: #121C36;      /* navy, deepened for full-bleed dark slides */
  --copper: #B0703A;
  --gold: #E3A659;
  --paper: #F5F6FA;      /* Mist, brand light background */
  --ink: #111111;
  --concrete: #8B909A;   /* captions, meta */
  --rule: rgba(17, 17, 17, .14);
  --rule-inv: rgba(255, 255, 255, .22);

  /* Type: brand guideline, two typefaces only */
  --font-display: "Google Sans Flex", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --heading: var(--navy);  /* headings in Space Navy; dark sections switch it to white */

  --step--1: .75rem;                                   /* caption 12 */
  --step-0: 1rem;                                      /* body 16 */
  --step-1: clamp(1.15rem, 1.05rem + .4vw, 1.375rem);  /* heading three 22 */
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);        /* heading two 32 */
  --step-3: clamp(2rem, 1.5rem + 1.8vw, 2.8125rem);    /* heading one 45 */
  --step-4: clamp(2.5rem, 1.7rem + 3.2vw, 4rem);       /* display 64 */

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: "ROND" 100; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0; color: var(--heading); }
h1 { line-height: 1.05; }
h3 { font-weight: 600; line-height: 1.25; }
.slide--dark, .slide--navy, .slide--hero, .project-hero, .next { --heading: #fff; }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

.mono { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.eyebrow { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--copper); margin: 0 0 1.2rem; }

/* ---------- dock: bottom glass menu + call to action ----------
   One fixed pill, bottom centre: round Inspace badge, Menu, and the single call to action.
   Dark navy glass on every background so it reads on photos, paper and navy alike. */
.dock { position: fixed; inset: auto 0 0 0; z-index: 60; pointer-events: none; --dock-h: 52px; }
.dock-scrim { position: fixed; inset: 0; background: rgba(18, 28, 54, .38); opacity: 0; visibility: hidden; pointer-events: auto; transition: opacity .35s var(--ease), visibility 0s .35s; }
.dock.is-open .dock-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
.dock-wrap { position: relative; width: min(26rem, 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: max(20px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }

/* glass: blur + a lit top edge + inner and outer shadow */
.dock-glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 55%, rgba(255,255,255,.08)), rgba(18, 28, 54, .52);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 0 0 1px rgba(255,255,255,.14), inset 0 -8px 16px rgba(0,0,0,.14), 0 10px 30px rgba(8, 14, 30, .34); }

.dock-bar { display: flex; gap: 8px; align-items: stretch; height: var(--dock-h); pointer-events: auto; }
.dock-badge { position: relative; flex: 0 0 var(--dock-h); display: grid; place-items: center; border-radius: 50%; transition: transform .4s var(--ease); }
.dock-badge img { position: relative; z-index: 1; width: 22px; height: auto; transition: transform .5s var(--ease); }
.dock-badge:hover { transform: scale(1.06); }
.dock-badge:hover img { transform: rotate(-8deg); }
.dock-pill { position: relative; flex: 1; min-width: 0; display: flex; align-items: stretch; justify-content: space-between; padding: 4px; border-radius: 999px; color: #fff; }
.dock-menu { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 16px; border: 0; border-radius: 999px; background: none; color: inherit; font: 500 var(--step-0)/1 var(--font-body); cursor: pointer; }
.dock-menu:hover { background: rgba(255,255,255,.08); }
.dock-burger { position: relative; width: 18px; height: 10px; }
.dock-burger i { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.dock-burger i:first-child { top: 0; }
.dock-burger i:last-child { top: 8.5px; }
.dock.is-open .dock-burger i:first-child { top: 4.25px; transform: rotate(45deg); }
.dock.is-open .dock-burger i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* call to action: label slides up on hover, arrow sits in its own circle */
.dock-cta { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 0 5px 0 18px; border-radius: 999px; background: var(--gold); color: var(--night); text-decoration: none; font: 600 var(--step-0)/1 var(--font-body); white-space: nowrap; transition: background .3s var(--ease); }
.dock-cta:hover { background: #F0B870; }
.dock-cta-text { display: block; height: 1.1em; overflow: hidden; }
.dock-cta-text > span { display: block; height: 1.1em; line-height: 1.1; transition: transform .45s var(--ease); }
.dock-cta:hover .dock-cta-text > span, .dock-cta:focus-visible .dock-cta-text > span { transform: translateY(-100%); }
.dock-cta-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: var(--gold); transition: transform .45s var(--ease); }
.dock-cta:hover .dock-cta-icon { transform: translateX(2px) rotate(-45deg); }

/* menu panel rises above the pill */
.dock-panel { position: relative; order: -1; border-radius: 28px; padding: 22px 24px 20px; color: #fff; pointer-events: auto; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 60%), rgba(18, 28, 54, .66);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 48px rgba(8, 14, 30, .4);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: 50% 100%; visibility: hidden; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.dock.is-open .dock-panel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.dock-panel ul { list-style: none; margin: 0; padding: 0; }
.dock-panel a { text-decoration: none; display: block; }
.dock-primary li { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: 0s; }
.dock.is-open .dock-primary li, .dock.is-open .dock-secondary li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 90ms); }
.dock-primary a { font: 700 var(--step-3)/1.15 var(--font-display); font-variation-settings: "ROND" 100; letter-spacing: -.01em; padding: 6px 0; transition: color .25s var(--ease), transform .35s var(--ease); }
.dock-primary a:hover, .dock-primary a[aria-current="page"] { color: var(--gold); transform: translateX(4px); }
.dock-panel .dock-secondary { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-inv); }
.dock-secondary li { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.dock-secondary a { font: 500 var(--step--1)/1.6 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.dock-secondary a:hover { color: #fff; }

/* the dock must not cover the last lines of a page */
.site-footer, #contact { padding-bottom: calc(clamp(28px, 6vh, 72px) + 92px); }

@media (max-width: 420px) { .dock-menu { padding: 0 12px; gap: 10px; } .dock-cta { padding-left: 14px; font-size: .9375rem; } }
@media (prefers-reduced-motion: reduce) {
  .dock *, .dock { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .dock-cta:hover .dock-cta-text > span { transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock-glass, .dock-panel { background: rgba(18, 28, 54, .94); }
}

/* ---------- signature: dimension line ----------
   A drawing callout: |—— label ——|  Ticks at both ends, label in mono.
   Used only where it carries a real measurement or identity of a built project. */
.dim { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; color: var(--gold); font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }
.dim::before, .dim::after { content: ""; width: 1px; height: 14px; background: currentColor; }
.dim > span { position: relative; text-align: center; padding: 0 12px; white-space: nowrap; }
.dim > span::before, .dim > span::after { content: ""; position: absolute; top: 50%; height: 1px; background: currentColor; width: 50vw; }
.dim > span::before { right: 100%; }
.dim > span::after { left: 100%; }
.dim { overflow: hidden; }
.dim[data-draw] > span::before, .dim[data-draw] > span::after { transform: scaleX(0); transition: transform .9s var(--ease) .2s; }
.dim[data-draw] > span::before { transform-origin: right; }
.dim[data-draw] > span::after { transform-origin: left; }
.is-in .dim[data-draw] > span::before, .is-in .dim[data-draw] > span::after { transform: scaleX(1); }

/* ---------- home: one continuous, free-scrolling page (no scroll-snap) ---------- */
.slide { position: relative; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + clamp(32px, 7vh, 80px)) var(--gutter) clamp(56px, 10vh, 112px); overflow: hidden; }
.slide--dark { background: var(--night); color: #fff; }
.slide--navy { background: var(--navy); color: #fff; }

/* keep section content clear of the chapter dots */
@media (min-width: 901px) and (min-height: 561px) { .slide:not(.slide--hero) { padding-right: calc(var(--gutter) + 120px); } }

/* dots: one per section, labelled (the order is the real page order) */
.dots { position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.dots a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: #fff; mix-blend-mode: difference; font-family: var(--font-body); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.dots a span { opacity: 0; transform: translateX(6px); transition: .3s var(--ease); }
.dots a::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; transform: none; }
.dots a[aria-current="true"]::after { width: 42px; }
@media (max-width: 900px), (max-height: 560px) { .dots { display: none; } }

/* hero */
.slide--hero { display: block; padding: 0; overflow: visible; color: #fff; background: var(--night); --reveal: 1; }
.slide--hero.is-develop { height: 280vh; height: 280svh; }
.hero-pin { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
.is-develop .hero-dust { display: block; }
.hero-media { opacity: var(--reveal); }
.hero-media { position: absolute; inset: 0; }
.hero-media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-media figure.is-active { opacity: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hero-media figure.is-active img { transform: scale(1); }
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
  linear-gradient(90deg, rgba(18,28,54,.72) 0%, rgba(18,28,54,.25) 55%, rgba(18,28,54,0) 80%),
  linear-gradient(180deg, rgba(18,28,54,.5) 0%, rgba(18,28,54,0) 25%, rgba(18,28,54,0) 50%, rgba(18,28,54,.8) 100%); }
.hero-copy { position: relative; z-index: 3; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); display: grid; gap: clamp(20px, 3vh, 36px); }
.hero-copy .hero-logo { position: relative; display: block; width: clamp(150px, 16vw, 210px); aspect-ratio: 200 / 64; }
.hero-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy h1 { font-size: var(--step-4); max-width: 14ch; }
.hero-copy .lede { font-size: var(--step-1); max-width: 40ch; margin: 0; color: rgba(255,255,255,.86); }
.hero-callout { max-width: min(560px, 100%); }
.hero-callout a { text-decoration: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; justify-self: start; color: rgba(255,255,255,.86); text-decoration: none; font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue__line { position: relative; width: 1px; height: 44px; background: rgba(255,255,255,.28); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(200%); } }

/* about */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.split h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.split .lead { font-size: var(--step-1); line-height: 1.45; }
.split figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split figure { aspect-ratio: 16 / 10; } }

/* services */
.disciplines { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border-top: 1px solid var(--rule-inv); margin-top: clamp(24px, 5vh, 56px); }
.discipline { padding: 28px 28px 0 0; border-right: 1px solid var(--rule-inv); }
.discipline:last-child { border-right: 0; }
.discipline + .discipline { padding-left: 28px; }
.discipline h3 { font-size: var(--step-2); margin: 10px 0 14px; }
.discipline p { color: rgba(255,255,255,.78); font-size: var(--step-0); }
.discipline .count { font-family: var(--font-body); font-size: var(--step--1); color: var(--gold); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 900px) { .disciplines { grid-template-columns: 1fr; } .discipline, .discipline + .discipline { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rule-inv); } }

.slide h2.big { font-size: var(--step-3); max-width: 18ch; }

/* work rail */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 4vh, 40px); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 34vw); gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-ctrl { display: flex; gap: 8px; }
.btn-icon { width: 46px; height: 46px; border: 1px solid currentColor; background: none; color: inherit; border-radius: 50%; cursor: pointer; font-size: 18px; }
.btn-icon:disabled { opacity: .3; cursor: default; }

/* project card (home rail + portfolio grid) */
.card { position: relative; display: block; text-decoration: none; color: inherit; }
.card figure { margin: 0; aspect-ratio: var(--ratio, 4 / 3); overflow: hidden; background: #d9dce2; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover img, .card:focus-visible img { transform: scale(1.035); }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .05em; text-transform: uppercase; color: var(--concrete); }
.card h3 { font-size: var(--step-1); margin-top: 6px; letter-spacing: -.01em; }
.card .dim { margin-top: 12px; color: var(--copper); }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 6vh, 64px); }
.values h3 { font-size: var(--step-1); margin: 14px 0 10px; }
.values p { color: #4a4f59; font-size: var(--step-0); }
.values li { list-style: none; border-top: 2px solid var(--navy); padding-top: 4px; }
.values ul { padding: 0; margin: 0; display: contents; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.contact h2 { font-size: var(--step-4); max-width: 10ch; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-inv); }
.contact-list li { border-bottom: 1px solid var(--rule-inv); }
.contact-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; text-decoration: none; font-size: var(--step-1); }
.contact-list a span:first-of-type { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); align-self: center; }
.contact-list a:hover span:last-child { text-decoration: underline; text-underline-offset: 6px; }
/* brand icon style: rounded monoline, one stroke, light line with one gold accent (the guideline's navy line + copper accent, reversed for the dark section) */
.contact-list a { align-items: center; }
.contact-list .ico { flex: none; color: rgba(255,255,255,.88); }
.contact-list .ico-accent { stroke: var(--gold); }
.contact-list a span:first-of-type { flex: 0 0 6.2em; }
.contact-list a span:last-child { flex: 1; min-width: 0; text-align: right; overflow-wrap: break-word; }
.contact-list .is-address a { align-items: flex-start; padding: 16px 0; }
.contact-list .is-address .ico { margin-top: 2px; }
.contact-list .is-address a span:first-of-type { align-self: flex-start; margin-top: 4px; }
.contact > *, .contact-list { min-width: 0; }
.contact-list li:not(.is-address) a span:last-child { white-space: nowrap; font-size: clamp(1.05rem, .95rem + .45vw, 1.375rem); }
@media (max-width: 600px) { .contact-list a { flex-wrap: wrap; justify-content: flex-start; gap: 6px 12px; } .contact-list a span:last-child { flex: 1 0 100%; text-align: left; } .contact-list a span:first-of-type { flex: 0 1 auto; } }
.contact-list .is-address a span:last-child { font-size: var(--step-0); line-height: 1.5; color: rgba(255,255,255,.8); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; background: var(--gold); color: var(--ink); text-decoration: none; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1); border: 0; }
.btn:hover { background: #fff; }
.legal { margin-top: clamp(32px, 8vh, 80px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.55); font-family: var(--font-body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- home: How we build (scrollytelling) ----------
   Tall outer section, sticky 100svh stage. JS writes progress to --p (0..1) and marks the active stage. */
.build { position: relative; height: 450vh; background: var(--night); color: #fff; --heading: #fff; --p: 0; }
.build-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 62fr 38fr; padding: calc(var(--header-h) + 8px) calc(var(--gutter) + 150px) 72px var(--gutter); gap: clamp(20px, 3vw, 56px); align-items: stretch;
  background-color: var(--night);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; }
.build-figure { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; }
.build-side { align-self: center; min-width: 0; }
.build-side h2 { font-size: var(--step-3); max-width: 14ch; margin-bottom: clamp(18px, 4vh, 40px); }
.build-stages { list-style: none; margin: 0; padding: 0; }
.build-stage-item { position: relative; padding: 0 0 clamp(18px, 3.6vh, 34px) 28px; opacity: .35; transition: opacity .4s var(--ease); --fill: 0; }
.build-stage-item:last-child { padding-bottom: 0; }
.build-stage-item[aria-current="step"] { opacity: 1; }
/* progress rail: track + copper fill per segment, one tick per stage */
.build-stage-item::before, .build-stage-item::after { content: ""; position: absolute; left: 0; top: 7px; bottom: -7px; width: 2px; }
.build-stage-item:last-child::before, .build-stage-item:last-child::after { bottom: calc(100% - 7px - 14px); }
.build-stage-item::before { background: rgba(255,255,255,.2); }
.build-stage-item::after { background: var(--copper); transform: scaleY(var(--fill)); transform-origin: top; }
.build-tick { position: absolute; left: -4px; top: 7px; width: 10px; height: 2px; background: rgba(255,255,255,.55); z-index: 1; }
.build-stage-item.is-done .build-tick, .build-stage-item[aria-current="step"] .build-tick { background: var(--copper); }
.build-stage-item h3 { font-size: var(--step-1); color: #fff; display: flex; align-items: baseline; gap: 12px; }
.build-num { font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: .08em; color: var(--gold); }
.build-stage-item p { margin: 8px 0 0; color: rgba(255,255,255,.82); max-width: 36ch; }
.build-readout { position: absolute; right: calc(var(--gutter) + 150px); bottom: 28px; width: min(380px, 40vw); }

/* placeholder until build-figure.js exists */
.build-placeholder { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto auto; place-items: center; text-align: center; color: #fff; padding: 0 0 8px; }
.build-placeholder svg { width: min(100%, 560px); max-height: 100%; min-height: 0; }
.build-placeholder__stage { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); color: #fff; }
.build-placeholder__tag { margin: 4px 0 0; font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 900px) {
  .build { height: 310vh; }
  .build-stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: calc(var(--header-h) + 4px) var(--gutter) calc(var(--dock-h, 52px) + max(20px, env(safe-area-inset-bottom)) + 14px); gap: 0; }
  .build-side { align-self: stretch; padding: 14px 0 12px; border-top: 1px solid var(--rule-inv); display: grid; grid-template-rows: auto 1fr; min-height: 0; background: var(--night); }
  .build-side .eyebrow { margin: 0 0 8px; }
  .build-side h2 { display: none; }
  .build-stage-item { padding-bottom: 6px; }
  .build-stage-item h3 { font-size: 1rem; }
  .build-stage-item p { display: none; margin-top: 4px; font-size: .875rem; line-height: 1.45; }
  .build-stage-item[aria-current="step"] p { display: block; }
  .build-stage-item::before, .build-stage-item::after { top: 5px; bottom: 0; }
  .build-stage-item:last-child::before, .build-stage-item:last-child::after { bottom: calc(100% - 5px - 12px); }
  .build-tick { top: 5px; }
  .build-readout { right: var(--gutter); left: auto; bottom: auto; top: calc(var(--header-h) + 8px); width: min(300px, 70vw); }
  .build-placeholder__stage { font-size: var(--step-1); }
}
/* build-side children live in a 2-row grid on phone: eyebrow row, list row */
@media (max-width: 900px) { .build-stages { align-self: start; } }

/* reduced motion: no sticky stage, figure slot once, captions as a plain list */
@media (prefers-reduced-motion: reduce) {
  .build { height: auto; }
  .build-stage { position: static; height: auto; overflow: visible; grid-template-rows: none; padding-bottom: 72px; }
  .build-figure { min-height: min(62vh, 440px); }
  .build-placeholder { min-height: min(62vh, 440px); }
  .build-side { padding-top: 20px; }
  .build-stage-item, .build-stage-item[aria-current="step"] { opacity: 1; }
  .build-stage-item p { display: block !important; }
  .build-stage-item { --fill: 1 !important; }
  .build-readout { display: none; }
}

/* ---------- home: 3D to real (render vs photo) ---------- */
.real-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(20px, 4vh, 36px); }
.real-head .lead { font-size: var(--step-1); line-height: 1.45; margin: 0; }
@media (max-width: 900px) { .real-head { grid-template-columns: 1fr; } }
.real-tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 clamp(16px, 3vh, 28px); padding: 0; }
.real-tabs button { font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; background: none; border: 1px solid var(--rule); color: var(--ink); padding: 10px 16px; cursor: pointer; text-align: left; }
.real-tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.compare-item { margin: 0; max-width: 1100px; }
.compare-item[hidden] { display: none; }
.compare { --pos: 15%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #d9dce2; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare picture, .compare img { display: block; width: 100%; height: 100%; }
.compare img { object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.compare-photo, .compare-render { position: absolute; inset: 0; }
.compare-render { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(18,28,54,.25); pointer-events: none; }
.compare-handle { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; display: grid; place-items: center; }
.compare-handle::before, .compare-handle::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid #fff; border-width: 0 0 2px 2px; margin-top: -3.5px; }
.compare-handle::before { left: 11px; transform: rotate(45deg); }
.compare-handle::after { right: 11px; transform: rotate(-135deg); }
.compare:has(.compare-range:focus-visible) .compare-handle { outline: 2px solid var(--gold); outline-offset: 3px; }
.compare-tag { position: absolute; top: 12px; padding: 6px 10px; background: rgba(18,28,54,.82); color: #fff; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.compare-tag--l { left: 12px; }
.compare-tag--r { right: 12px; }
.compare-cap { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.compare-cap h3 { font-size: var(--step-1); margin-bottom: 4px; }
.compare-cap p { margin: 0; color: #4a4f59; }
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 3; } .compare-cap .btn { width: 100%; justify-content: center; } }

/* ---------- inner pages ---------- */
.page { padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--gutter) 0; }
.page-title { font-size: var(--step-4); margin-bottom: clamp(20px, 4vh, 40px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(28px, 5vh, 48px); padding: 0; list-style: none; }
.filters button { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; background: none; border: 1px solid var(--rule); color: var(--ink); padding: 10px 16px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters sup { font-size: .8em; margin-left: 4px; color: inherit; opacity: .7; }

.grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px); }
.grid > .card { grid-column: span 4; }
.grid > .card.is-wide { grid-column: span 8; }
.grid > .card.is-wide figure { --ratio: 16 / 9; }
.grid > .card[hidden] { display: none; }
@media (max-width: 1000px) { .grid > .card, .grid > .card.is-wide { grid-column: span 6; } }
@media (max-width: 640px) { .grid > .card, .grid > .card.is-wide { grid-column: 1 / -1; } }

.project-hero { position: relative; height: 82svh; min-height: 420px; background: var(--night); color: #fff; display: flex; align-items: flex-end; }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,28,54,.5), rgba(18,28,54,0) 35%, rgba(18,28,54,.85)); }
.project-hero .inner { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(28px, 6vh, 56px); width: 100%; display: grid; gap: 18px; }
.project-hero h1 { font-size: var(--step-4); max-width: 16ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: clamp(32px, 6vh, 64px) 0; border-top: 1px solid var(--rule); }
.facts div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--concrete); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: var(--step-1); }
.project-body { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); }
.project-body .text { font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 900px) { .project-body { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.4vw, 18px); margin: clamp(40px, 8vh, 96px) 0; }
.gallery a { grid-column: span 2; display: block; overflow: hidden; background: #d9dce2; aspect-ratio: 4 / 3; }
.gallery a:nth-child(5n+1) { grid-column: span 4; aspect-ratio: auto; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .gallery a, .gallery a:nth-child(5n+1) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; } }
.next { display: block; text-decoration: none; background: var(--night); color: #fff; padding: clamp(40px, 10vh, 120px) var(--gutter); margin: 0 calc(var(--gutter) * -1); }
.next .mono { color: var(--gold); }
.next h2 { font-size: var(--step-3); margin-top: 12px; }
.site-footer { background: var(--night); color: rgba(255,255,255,.6); padding: 28px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0 calc(var(--gutter) * -1); }
.site-footer a { color: #fff; }

/* ---------- as built: the real photo, revealed as it scrolls in (scroll-linked via --q, 0 to 1) ---------- */
.asbuilt { --q: 1; --heading: #fff; position: relative; height: 90vh; height: 90svh; min-height: 460px; overflow: hidden; display: flex; align-items: flex-end; background: var(--night); color: #fff; }
.asbuilt-media { position: absolute; inset: 0; margin: 0; }
.asbuilt-media picture, .asbuilt-media img { display: block; width: 100%; height: 100%; }
.asbuilt-media img { object-fit: cover; object-position: 50% 62%; transform: scale(calc(1.08 - .08 * var(--q))); transform-origin: 50% 62%; will-change: transform; }
.asbuilt-tint { position: absolute; inset: 0; background: var(--night); opacity: calc(.62 * (1 - var(--q))); pointer-events: none; }
.asbuilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(18,28,54,.7) 0%, rgba(18,28,54,.22) 50%, rgba(18,28,54,0) 75%),
  linear-gradient(180deg, rgba(18,28,54,.35) 0%, rgba(18,28,54,0) 22%, rgba(18,28,54,0) 45%, rgba(18,28,54,.82) 100%); }
.asbuilt-copy { position: relative; z-index: 2; width: 100%; max-width: 760px; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); display: grid; gap: clamp(14px, 2.4vh, 24px); justify-items: start; }
.asbuilt-copy .eyebrow { margin: 0; }
.asbuilt-copy h2 { font-size: var(--step-3); max-width: 16ch; margin: 0; }
.asbuilt-line { margin: 0; font-size: var(--step-1); color: rgba(255,255,255,.88); }
.asbuilt .dim { width: min(560px, 100%); }
.asbuilt .dim > span { white-space: normal; }
@media (max-width: 640px) { .asbuilt-media img { object-position: 80% 62%; transform-origin: 80% 62%; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-in [data-reveal], [data-reveal].is-in { opacity: 1; transform: none; }
.is-in [data-reveal]:nth-child(2) { transition-delay: .08s; }
.is-in [data-reveal]:nth-child(3) { transition-delay: .16s; }
.is-in [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* page transitions between pages, where supported */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue__line::after { animation: none; height: 100%; }
  @view-transition { navigation: none; }
}

/* local-preview only: projects not yet cleared for publishing */
.card figure { position: relative; }
.review { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); font-family: var(--font-body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.review-note { margin: 0; max-width: 60ch; background: var(--gold); color: var(--ink); padding: 8px 12px; font-family: var(--font-body); font-size: var(--step--1); }

/* labels: Plus Jakarta Sans 500, uppercase, tracked (replaces the old mono) */
.mono, .eyebrow, .dim, .dots a, .card-meta, .filters button, .facts dt, .legal, .site-footer, .contact-list a span:first-of-type, .btn, .discipline .count, .review, .review-note { font-weight: 500; }


/* ---------- work: dark, one lead tile + a 3-up grid (pattern after Shopify Editions) ---------- */
.work .work-head { margin-bottom: clamp(24px, 5vh, 48px); }
.tile { position: relative; display: block; border-radius: 22px; overflow: hidden; background: #1b2748; color: #fff; text-decoration: none; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.tile figure { margin: 0; aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,28,54,0) 30%, rgba(18,28,54,.62) 62%, rgba(18,28,54,.92) 100%); pointer-events: none; }
.tile--lead figure { aspect-ratio: 21 / 9; }
.tile--lead::after { background: linear-gradient(180deg, rgba(18,28,54,0) 55%, rgba(18,28,54,.6) 100%); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(12px, 1.6vw, 22px); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 6px; padding: clamp(16px, 2vw, 24px); padding-right: 64px; }
.tile-title { font: 600 var(--step-1)/1.2 var(--font-display); font-variation-settings: "ROND" 100; }
.tile-meta { font: 500 var(--step--1)/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.tile--lead .tile-meta { position: absolute; top: clamp(16px, 2vw, 24px); left: clamp(16px, 2vw, 24px); z-index: 2; padding: 8px 12px; border-radius: 999px; background: rgba(18,28,54,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
/* glass chip carrying the title, like a play label on a poster */
.tile-chip { position: absolute; left: clamp(16px, 2vw, 24px); bottom: clamp(16px, 2vw, 24px); z-index: 2; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 2 * clamp(16px, 2vw, 24px)); padding: 8px 8px 8px 22px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)), rgba(18,28,54,.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.14); }
.tile-chip-title { font: 600 var(--step-1)/1.2 var(--font-display); font-variation-settings: "ROND" 100; }
.tile-chip-arrow { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--night); font-size: 18px; transition: transform .45s var(--ease); }
.tile > .tile-chip-arrow { position: absolute; right: clamp(14px, 1.6vw, 20px); bottom: clamp(14px, 1.6vw, 20px); z-index: 2; }
.tile:hover .tile-chip-arrow { transform: rotate(-45deg); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile--lead figure { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } .tile--lead figure { aspect-ratio: 4 / 3; } .tile-chip-title { font-size: var(--step-0); } }
@media (prefers-reduced-motion: reduce) { .tile img, .tile-chip-arrow { transition: none; } }

.slide--dark .eyebrow { color: var(--gold); }

/* ---------- home: one colour from top to bottom ----------
   Every home section sits on the same night navy with one shared blueprint grid, so nothing reads as a
   different section; the photo sections (hero, as built) fade in and out of that navy. Soft snap on top. */
body.home { --ink: #E7EBF5; --heading: #fff; --rule: rgba(255,255,255,.16); background: var(--night); color: var(--ink); }
body.home::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; }
body.home main { position: relative; z-index: 1; }
body.home .slide, body.home .slide--dark, body.home .slide--navy, body.home .build, body.home .slide--hero { background: transparent; }
body.home .build-stage { background: transparent; }
body.home .eyebrow { color: var(--gold); }
body.home .values p { color: rgba(255,255,255,.72); }
body.home .values li { border-top-color: rgba(255,255,255,.32); }
body.home .card-meta { color: rgba(255,255,255,.6); }
/* the photo sections melt into the navy at their edges */
body.home .hero-scrim { background:
  linear-gradient(90deg, rgba(18,28,54,.72) 0%, rgba(18,28,54,.25) 55%, rgba(18,28,54,0) 80%),
  linear-gradient(180deg, rgba(18,28,54,.5) 0%, rgba(18,28,54,0) 25%, rgba(18,28,54,0) 55%, rgba(18,28,54,.9) 88%, var(--night) 100%); }
body.home .asbuilt::after { background:
  linear-gradient(90deg, rgba(18,28,54,.7) 0%, rgba(18,28,54,.22) 50%, rgba(18,28,54,0) 75%),
  linear-gradient(180deg, var(--night) 0%, rgba(18,28,54,.55) 10%, rgba(18,28,54,0) 28%, rgba(18,28,54,0) 50%, rgba(18,28,54,.85) 88%, var(--night) 100%); }
/* soft snap: only when a scroll stops near the top of a section; pinned sections still scroll freely */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  html:has(body.home) { scroll-snap-type: y proximity; }
  body.home main > section[id] { scroll-snap-align: start; }
}
/* with one colour, long empty padding reads as a hole: tighten the rhythm between sections (the old top bar is gone) */
body.home .slide:not(.slide--hero) { padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(48px, 9vh, 104px); }
body.home #contact { padding-bottom: calc(clamp(28px, 6vh, 72px) + 92px); }

/* ---------- 3D to real + as built: one pinned stage ---------- */
.reveal { position: relative; height: 340vh; height: 340svh; --intro: 1; --detail: 0; }
.reveal-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
.reveal .compare { position: absolute; inset: 0; aspect-ratio: auto; background: var(--night); }
.reveal .compare-handle { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.reveal .compare-divider { box-shadow: 0 0 0 1px rgba(18,28,54,.35), 0 0 24px rgba(0,0,0,.35); }
.reveal-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(180deg, var(--night) 0%, rgba(18,28,54,.62) 14%, rgba(18,28,54,.2) 34%, rgba(18,28,54,0) 52%),
  linear-gradient(90deg, rgba(18,28,54, calc(.62 * var(--detail))) 0%, rgba(18,28,54,0) 62%),
  linear-gradient(0deg, var(--night) 0%, rgba(18,28,54, calc(.9 * var(--detail))) 12%, rgba(18,28,54, calc(.5 * var(--detail))) 40%, rgba(18,28,54,0) 70%); }
.reveal .compare-divider { opacity: var(--tags, 1); }
.reveal .compare-tag { z-index: 2; top: auto; bottom: calc(110px + env(safe-area-inset-bottom)); opacity: var(--tags, 1); }
.reveal .compare-tag--l { left: var(--gutter); }
.reveal .compare-tag--r { right: var(--gutter); }
.reveal-intro { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: clamp(36px, 8vh, 96px); max-width: 760px; pointer-events: none; opacity: var(--intro); transform: translateY(calc((1 - var(--intro)) * -18px)); }
.reveal-intro h2 { font-size: var(--step-3); max-width: 18ch; }
.reveal-intro .lead { font-size: var(--step-1); line-height: 1.45; margin: 14px 0 0; max-width: 40ch; color: rgba(255,255,255,.88); }
.reveal-detail { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(120px + env(safe-area-inset-bottom)); max-width: 760px; display: grid; gap: clamp(12px, 2vh, 22px); justify-items: start; pointer-events: none; opacity: var(--detail); transform: translateY(calc((1 - var(--detail)) * 28px)); }
.reveal-detail .eyebrow { margin: 0; }
.reveal-detail.is-on { pointer-events: auto; }
.reveal-title { font: 700 var(--step-3)/1.1 var(--font-display); font-variation-settings: "ROND" 100; letter-spacing: -.01em; color: #fff; max-width: 16ch; }
.reveal-line { margin: 0; font-size: var(--step-1); color: rgba(255,255,255,.9); }
.reveal-detail .dim { width: min(560px, 100%); }
.reveal-detail .dim > span { white-space: normal; }
.reveal.is-static { height: auto; }
.reveal.is-static .reveal-stage { position: relative; }
@media (max-width: 900px) { .reveal .compare-tag { bottom: calc(100px + env(safe-area-inset-bottom)); } .reveal-detail { bottom: calc(100px + env(safe-area-inset-bottom)); } }
/* phone: shorter pinned runs (hero 280 to 230, reveal 340 to 280 screens-height); the build run is cut where it is defined */
@media (max-width: 900px) { .slide--hero.is-develop { height: 230vh; height: 230svh; } .reveal { height: 280vh; height: 280svh; } }
/* phone: the intro covers the top 40% of a bright render; a layer tied to --intro darkens just that band and leaves the photo clean once the intro is gone */
@media (max-width: 900px) { .reveal-scrim { background:
  linear-gradient(180deg, rgba(18,28,54, calc(.8 * var(--intro))) 0%, rgba(18,28,54, calc(.72 * var(--intro))) 40%, rgba(18,28,54,0) 64%),
  linear-gradient(180deg, var(--night) 0%, rgba(18,28,54,.62) 14%, rgba(18,28,54,.2) 34%, rgba(18,28,54,0) 52%),
  linear-gradient(90deg, rgba(18,28,54, calc(.62 * var(--detail))) 0%, rgba(18,28,54,0) 62%),
  linear-gradient(0deg, var(--night) 0%, rgba(18,28,54, calc(.9 * var(--detail))) 12%, rgba(18,28,54, calc(.5 * var(--detail))) 40%, rgba(18,28,54,0) 70%); } }

/* grid: only behind the "How we build" figure, fading out at its top and bottom edges; the rest is flat navy */
body.home::before { content: none; }
body.home .build-stage { isolation: isolate; }
body.home .build-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }

/* ---------- hero: white at the top, melting into the navy as it develops ---------- */
#home { --tone: 1; --ink-h: color-mix(in srgb, var(--navy) calc((1 - var(--tone)) * 100%), #fff); }
#home.is-develop { --tone: 0; }
#home .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: calc(1 - var(--tone));
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F4FA 50%, #CBD6EC 78%, #6F86BD 94%, var(--navy) 100%); }
#home { --heading: var(--ink-h); }
#home .hero-scrim { opacity: var(--tone); }
#home .hero-copy .lede { color: color-mix(in srgb, var(--navy) calc((1 - var(--tone)) * 100%), rgba(255,255,255,.86)); }
#home .hero-eyebrow, #home .dim { color: color-mix(in srgb, var(--copper) calc((1 - var(--tone)) * 100%), var(--gold)); }
#home .scroll-cue { color: var(--ink-h); }
#home .scroll-cue__line { background: color-mix(in srgb, rgba(36,57,110,.3) calc((1 - var(--tone)) * 100%), rgba(255,255,255,.28)); }
#home .hero-logo__color { opacity: calc(1 - var(--tone)); }
#home .hero-logo__white { opacity: var(--tone); }
@media (prefers-reduced-motion: reduce) { #home { --tone: 1; } }

/* ---------- services: hover cards ---------- */
.svc-hint { margin: 10px 0 0; color: rgba(255,255,255,.6); font: 500 var(--step--1)/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.svcs { display: flex; gap: 12px; height: clamp(520px, 66vh, 640px); margin-top: clamp(20px, 4vh, 40px); }
.svc { position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; overflow: hidden; isolation: isolate; background: #1b2748; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: flex-grow .65s var(--ease); }
.svc.is-open { flex-grow: 3.3; }
.svc-media { position: absolute; inset: 0; margin: 0; z-index: -2; }
.svc-media picture, .svc-media img { display: block; width: 100%; height: 100%; }
.svc-media img { object-fit: cover; transform: scale(1.06); filter: saturate(.7) brightness(.7); transition: transform 1s var(--ease), filter .6s var(--ease); }
.svc.is-open .svc-media img { transform: scale(1); filter: none; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,28,54,.55) 0%, rgba(18,28,54,.35) 30%, rgba(18,28,54,.92) 100%); transition: opacity .5s var(--ease); }
.svc:not(.is-open)::before { background: linear-gradient(180deg, rgba(18,28,54,.78), rgba(18,28,54,.88)); }
.svc-plate { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.1); background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.svc-plate .ico { width: 62%; height: auto; max-height: 70%; stroke-width: .6; }
.svc-head { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; text-align: left; width: 100%; padding: clamp(18px, 2vw, 26px); border: 0; background: none; color: #fff; cursor: pointer; font: inherit; }
.svc-num { grid-column: 1 / -1; font: 500 var(--step--1)/1 var(--font-body); letter-spacing: .1em; color: var(--gold); }
.svc-head h3 { font-size: var(--step-2); max-width: 12ch; transition: font-size .4s var(--ease); }
.svc:not(.is-open) .svc-head h3 { font-size: var(--step-1); }
.svc-plus { position: relative; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: transform .5s var(--ease), background .3s; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: #fff; transition: transform .5s var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc.is-open .svc-plus { transform: rotate(180deg); background: var(--gold); }
.svc.is-open .svc-plus::before, .svc.is-open .svc-plus::after { background: var(--night); }
.svc.is-open .svc-plus::after { transform: rotate(0); }
.svc-head:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 22px; }
.svc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: clamp(12px, 2vh, 20px); padding: clamp(18px, 2vw, 26px); color: #fff; opacity: 0; transform: translateY(18px); visibility: hidden; transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .35s; }
.svc.is-open .svc-body { opacity: 1; transform: none; visibility: visible; transition-delay: .18s, .18s, 0s; }
.svc-body p { margin: 0; font-size: var(--step-0); color: rgba(255,255,255,.88); max-width: 48ch; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.svc-list li { display: flex; align-items: center; gap: 10px; font: 500 var(--step--1)/1.3 var(--font-body); letter-spacing: .02em; }
.svc-list .ico { flex: none; box-sizing: content-box; padding: 8px; border-radius: 12px; color: var(--gold); background: rgba(18,28,54,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.svc-foot .count { font: 500 var(--step--1)/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.svc-foot .count:hover { text-decoration: underline; text-underline-offset: 5px; }
.svc-cap { font: 500 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 900px) {
  .svcs { flex-direction: column; height: auto; }
  .svc { flex: none; height: 92px; transition: height .6s var(--ease); }
  .svc.is-open { height: 560px; }
  .svc-head h3, .svc:not(.is-open) .svc-head h3 { font-size: var(--step-1); max-width: none; }
  .svc-head { grid-template-columns: auto 1fr auto; align-items: center; }
  .svc-num { grid-column: auto; }
  .svc-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .svc.is-open { height: 600px; } .svc-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .svc, .svc-body, .svc-media img, .svc-plus { transition: none; } }

/* services head: title never runs under the plus button */
.svc-head { display: block; }
.svc-head h3 { padding-right: 52px; max-width: none; hyphens: none; }
.svc-num { display: block; margin-bottom: 8px; }
.svc-plus { position: absolute; top: clamp(18px, 2vw, 26px); right: clamp(18px, 2vw, 26px); }
@media (max-width: 900px) { .svc-head { display: flex; align-items: center; gap: 14px; height: 92px; } .svc-num { margin: 0; } .svc-plus { position: relative; top: auto; right: auto; margin-left: auto; } .svc-head h3 { padding-right: 0; } }
@media (max-width: 900px) {
  .svc { height: auto; max-height: 92px; transition: max-height .6s var(--ease); }
  .svc.is-open { height: auto; max-height: 860px; }
  .svc-head { position: relative; }
  .svc-body { position: relative; padding-top: 4px; }
}

/* hero readability on the white start: blue only at the very bottom, a white veil behind the copy, darker ink for labels */
#home .hero-bg { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 58%, #EEF2FA 76%, #C3D0EA 90%, #6F86BD 97%, var(--navy) 100%); }
#home .hero-scrim { opacity: 1; background:
  linear-gradient(90deg, rgba(255,255,255, calc(.92 * (1 - var(--tone)))) 0%, rgba(255,255,255, calc(.72 * (1 - var(--tone)))) 36%, rgba(255,255,255,0) 68%),
  linear-gradient(90deg, rgba(18,28,54, calc(.72 * var(--tone))) 0%, rgba(18,28,54, calc(.25 * var(--tone))) 55%, rgba(18,28,54,0) 80%),
  linear-gradient(180deg, rgba(18,28,54, calc(.5 * var(--tone))) 0%, rgba(18,28,54,0) 25%, rgba(18,28,54,0) 55%, rgba(18,28,54, calc(.9 * var(--tone))) 88%, var(--night) 100%); }
#home { --copper-d: #8A5526; }
#home .hero-eyebrow { color: color-mix(in srgb, var(--copper-d) calc((1 - var(--tone)) * 100%), var(--gold)); }
#home .dim { color: color-mix(in srgb, var(--navy) calc((1 - var(--tone)) * 100%), var(--gold)); }
#home .scroll-cue { color: var(--ink-h); }

#home { --tone-t: 1; --ink-h: color-mix(in srgb, var(--navy) calc((1 - var(--tone-t)) * 100%), #fff); --heading: var(--ink-h); }
#home.is-develop { --tone-t: 0; }
#home .hero-copy .lede { color: color-mix(in srgb, var(--navy) calc((1 - var(--tone-t)) * 100%), rgba(255,255,255,.9)); }
#home .hero-eyebrow { color: color-mix(in srgb, var(--copper-d) calc((1 - var(--tone-t)) * 100%), var(--gold)); }
#home .dim { color: color-mix(in srgb, var(--navy) calc((1 - var(--tone-t)) * 100%), var(--gold)); }
#home .scroll-cue { color: var(--ink-h); }
#home .scroll-cue__line { background: color-mix(in srgb, rgba(36,57,110,.3) calc((1 - var(--tone-t)) * 100%), rgba(255,255,255,.28)); }
#home .hero-logo__color { opacity: calc(1 - var(--tone-t)); }
#home .hero-logo__white { opacity: var(--tone-t); }
@media (prefers-reduced-motion: reduce) { #home, #home.is-develop { --tone-t: 1; } }


/* hero: everything centred; the dust flows around the text (hero-develop.js) */
.slide--hero .hero-pin { justify-content: center; }
.hero-copy { justify-items: center; text-align: center; padding: 0 var(--gutter) 84px; }
.hero-copy h1 { max-width: 16ch; }
.hero-copy .lede { max-width: 38ch; }
.hero-callout { width: min(560px, 100%); margin: 0 auto; }
.scroll-cue { justify-self: center; }
#home .hero-scrim { background:
  radial-gradient(ellipse 52% 54% at 50% 50%, rgba(255,255,255, calc(.92 * (1 - var(--tone-t)))) 0%, rgba(255,255,255, calc(.62 * (1 - var(--tone-t)))) 52%, rgba(255,255,255,0) 100%),
  radial-gradient(ellipse 58% 60% at 50% 50%, rgba(18,28,54, calc(.74 * var(--tone-t))) 0%, rgba(18,28,54, calc(.38 * var(--tone-t))) 55%, rgba(18,28,54,0) 100%),
  linear-gradient(180deg, rgba(18,28,54, calc(.45 * var(--tone))) 0%, rgba(18,28,54,0) 22%, rgba(18,28,54,0) 60%, rgba(18,28,54, calc(.9 * var(--tone))) 90%, var(--night) 100%); }

/* the project line shows only when the pixels have fully assembled (set by hero-develop.js) */
#home { --callout: 1; }
#home .hero-callout { opacity: var(--callout); transform: translateY(calc((1 - var(--callout)) * 10px)); }
#home .hero-callout a { pointer-events: none; }
#home[style*="--callout: 1"] .hero-callout a { pointer-events: auto; }



:root { --lbg: #F7F1EA; --lsky: #FFFBF6; --lglow: rgba(176,112,58,.14); }   /* light theme paper: copper-tinted, from the brand's roof copper; plain Mist #F5F6FA looked flat */

/* ---------- hero v3: globe (hero-develop.js), official logo rules ----------
   Dark theme: night sky, white lockup all the way. Light theme: white sky, the gradient logo on white, which flips to the
   white lockup once the dark photo takes over (guideline: gradient on light, white on dark; no shadow or outline on the logo). */
#home { --mid: 0; }
#home .hero-copy .hero-logo { width: clamp(260px, 34vw, 480px); }
#home .hero-copy h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#home .scroll-cue { order: 4; }
#home .hero-callout { order: 5; }
#home .hero-copy .hero-logo::before { content: none; }

:root[data-theme="dark"] #home { --tone: 1; --tone-t: 1; }
:root[data-theme="dark"] #home .hero-bg { opacity: 1; background:
  radial-gradient(circle at var(--gx, 50%) var(--gy, 46%), rgba(70,120,225,.26) 0, rgba(70,120,225,.10) calc(var(--gr, 380px) * 1.05), transparent calc(var(--gr, 380px) * 1.9)),
  radial-gradient(ellipse 60% 46% at 18% 24%, rgba(104,70,184,.26), transparent 70%),
  radial-gradient(ellipse 56% 50% at 84% 78%, rgba(22,112,176,.22), transparent 70%),
  linear-gradient(180deg, #080D20 0%, #0C1530 55%, #121C36 100%); }
:root[data-theme="dark"] #home .hero-scrim { background:
  radial-gradient(ellipse 58% 54% at 50% 48%, rgba(8,13,32, calc(.62 * var(--mid) + .5 * var(--reveal))) 0%, rgba(8,13,32, calc(.36 * var(--mid) + .34 * var(--reveal))) 62%, rgba(8,13,32,0) 100%),
  linear-gradient(0deg, rgba(8,13,32, calc(.3 * var(--reveal))), rgba(8,13,32, calc(.3 * var(--reveal)))),
  linear-gradient(180deg, rgba(8,13,32,0) 60%, rgba(18,28,54,.9) 90%, var(--night) 100%); }
@media (max-width: 700px) { :root[data-theme="dark"] #home .hero-scrim { background:
  radial-gradient(ellipse 100% 56% at 50% 48%, rgba(8,13,32, calc(.62 * var(--mid) + .55 * var(--reveal))) 0%, rgba(8,13,32, calc(.36 * var(--mid) + .4 * var(--reveal))) 70%, rgba(8,13,32,0) 100%),
  linear-gradient(0deg, rgba(8,13,32, calc(.38 * var(--reveal))), rgba(8,13,32, calc(.38 * var(--reveal)))),
  linear-gradient(180deg, rgba(8,13,32,0) 60%, rgba(18,28,54,.9) 90%, var(--night) 100%); } }
:root[data-theme="dark"] #home .hero-logo__color { display: none; }
:root[data-theme="dark"] #home .hero-logo__white { display: block; opacity: 1; }
:root[data-theme="dark"] #home .hero-eyebrow, :root[data-theme="dark"] #home .hero-callout .dim, :root[data-theme="dark"] #home .hero-callout .dim span { color: rgba(255,255,255,.94); }
:root[data-theme="dark"] #home .hero-copy .lede { color: rgba(255,255,255,.94); }
:root[data-theme="dark"] #home .scroll-cue { color: #fff; }
:root[data-theme="dark"] #home .scroll-cue__line { background: rgba(255,255,255,.4); }
:root[data-theme="dark"] #home h1, :root[data-theme="dark"] #home .lede, :root[data-theme="dark"] #home .hero-eyebrow, :root[data-theme="dark"] #home .hero-callout .dim, :root[data-theme="dark"] #home .scroll-cue { text-shadow: 0 1px 2px rgba(6,10,26,.8), 0 0 14px rgba(6,10,26,.7); }

/* light: the sky stays white (tone and tone-t are 0, set by hero-develop.js too). The photo arrives under a pale paper veil, so the
   navy text and the gradient logo stay on a light ground the whole way and no navy shows in between. */
:root[data-theme="light"] #home { --tone: 0; --tone-t: 0; }
:root[data-theme="light"] body.home .slide--hero { background: var(--lbg); }
:root[data-theme="light"] #home .hero-bg { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 46%), var(--lglow) 0, transparent calc(var(--gr, 380px) * 1.9)), linear-gradient(180deg, var(--lsky) 0%, var(--lsky) 58%, var(--lbg) 100%); }
:root[data-theme="light"] #home .hero-scrim { background:
  radial-gradient(ellipse 62% 60% at 50% 48%, rgba(255,251,246,.84) 0%, rgba(255,251,246,.62) 55%, rgba(255,251,246,0) 100%),
  linear-gradient(180deg, transparent 62%, var(--lbg) 100%); }
@media (max-width: 700px) { :root[data-theme="light"] #home .hero-scrim { background:
  radial-gradient(ellipse 110% 62% at 50% 48%, rgba(255,251,246,.86) 0%, rgba(255,251,246,.66) 65%, rgba(255,251,246,.3) 100%),
  linear-gradient(180deg, transparent 62%, var(--lbg) 100%); } }
:root[data-theme="light"] #home .hero-logo__color { display: block; opacity: 1; }
:root[data-theme="light"] #home .hero-logo__white { display: none; }
:root[data-theme="light"] #home .hero-eyebrow, :root[data-theme="light"] #home .hero-callout .dim, :root[data-theme="light"] #home .hero-callout .dim span { color: #8A5526; }
:root[data-theme="light"] #home .hero-copy .lede { color: var(--navy); }
:root[data-theme="light"] #home .scroll-cue { color: var(--navy); }
:root[data-theme="light"] #home .scroll-cue__line { background: rgba(36,57,110,.4); }

/* ---------- theme switch: round glass button bottom right (wide screens), and a row in the menu ---------- */
.theme-fab { position: fixed; right: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; width: var(--dock-h, 52px); height: var(--dock-h, 52px); display: none; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: transform .4s var(--ease); }
.theme-fab:hover { transform: scale(1.06); }
.theme-fab .ico { position: relative; z-index: 1; }
.theme-fab { display: grid; }
@media (max-width: 900px) { .theme-fab { display: none; } }
.theme-row { display: none; }
.dock-panel .theme-row { display: block; }
.theme-switch { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 var(--step--1)/1.6 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.theme-switch:hover { color: #fff; }
.theme-switch .ico { color: #fff; }
.ico-moon, :root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: inline-block; }
.theme-fab .ico-accent, .theme-switch .ico-accent { stroke: var(--gold); }

/* ---------- light theme, Home only. Photo cards (services, work, 3D to real, as built) stay dark: they sit on pictures. ---------- */
:root[data-theme="light"] body.home { --ink: #1B2440; --heading: var(--navy); --rule: rgba(17,17,17,.14); --rule-inv: rgba(17,17,17,.16); background: var(--lbg); color: var(--ink); }
:root[data-theme="light"] body.home .slide--dark, :root[data-theme="light"] body.home .slide--navy, :root[data-theme="light"] body.home .build { --heading: var(--navy); color: var(--ink); }
:root[data-theme="light"] body.home .svc, :root[data-theme="light"] body.home .tile, :root[data-theme="light"] body.home .reveal, :root[data-theme="light"] body.home .asbuilt { --heading: #fff; }
:root[data-theme="light"] body.home .eyebrow:not(.hero-eyebrow) { color: #8A5526 !important; }
:root[data-theme="light"] body.home .values p { color: rgba(27,36,64,.78); }
:root[data-theme="light"] body.home .values li { border-top-color: rgba(17,17,17,.2); }
:root[data-theme="light"] body.home .card-meta, :root[data-theme="light"] body.home .svc-hint { color: rgba(27,36,64,.62); }
:root[data-theme="light"] body.home .discipline p { color: rgba(27,36,64,.8); }
/* how we build */
:root[data-theme="light"] body.home .build-stage-item::before { background: rgba(17,17,17,.16); }
:root[data-theme="light"] body.home .build-tick { background: rgba(27,36,64,.5); }
:root[data-theme="light"] body.home .build-stage-item h3 { color: var(--navy); }
:root[data-theme="light"] body.home .build-stage-item p { color: rgba(27,36,64,.82); }
:root[data-theme="light"] body.home .build-placeholder, :root[data-theme="light"] body.home .build-placeholder__stage { color: var(--navy); }
:root[data-theme="light"] body.home .build-stage::before { background-image: linear-gradient(rgba(36,57,110,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(36,57,110,.06) 1px, transparent 1px); }
@media (max-width: 900px) { :root[data-theme="light"] body.home .build-side { background: var(--lbg); } }
/* contact */
:root[data-theme="light"] body.home #contact p { color: rgba(27,36,64,.78) !important; }
:root[data-theme="light"] body.home .contact-list .ico { color: var(--navy); }
:root[data-theme="light"] body.home .contact-list .ico-accent { stroke: var(--copper); }
:root[data-theme="light"] body.home .contact-list a { color: var(--navy); }
:root[data-theme="light"] body.home .contact-list a span:first-of-type { color: #8A5526; }
:root[data-theme="light"] body.home .contact-list .is-address a span:last-child { color: rgba(27,36,64,.82); }
:root[data-theme="light"] body.home .legal { color: rgba(27,36,64,.6); }
:root[data-theme="light"] body.home .btn:hover { background: var(--navy); color: #fff; }
/* ---------- light theme: the dock and the theme button turn into pale glass, with the flat-colour mark (copper roof, navy S) ---------- */
.dock-badge .mark-light { display: none; }
:root[data-theme="light"] .dock-badge .mark-dark { display: none; }
:root[data-theme="light"] .dock-badge .mark-light { display: block; position: relative; z-index: 1; width: 22px; height: auto; transition: transform .5s var(--ease); }
:root[data-theme="light"] .dock-badge:hover .mark-light { transform: rotate(-8deg); }
:root[data-theme="light"] .dock-glass { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.16) 55%, rgba(255,255,255,.3)), rgba(247,241,234,.34);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(36,57,110,.14), inset 0 -8px 16px rgba(36,57,110,.07), 0 10px 30px rgba(36,57,110,.2); }
:root[data-theme="light"] .dock-pill, :root[data-theme="light"] .theme-fab { color: var(--navy); }
:root[data-theme="light"] .dock-menu:hover { background: rgba(36,57,110,.08); }
:root[data-theme="light"] .dock-panel { color: var(--navy); background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.3) 60%), rgba(247,241,234,.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(36,57,110,.14), 0 18px 48px rgba(36,57,110,.24); }
:root[data-theme="light"] .dock-primary a:hover, :root[data-theme="light"] .dock-primary a[aria-current="page"] { color: #8A5526; }
:root[data-theme="light"] .dock-secondary a, :root[data-theme="light"] .theme-switch { color: rgba(27,36,64,.72); }
:root[data-theme="light"] .dock-secondary a:hover, :root[data-theme="light"] .theme-switch:hover { color: var(--navy); }
:root[data-theme="light"] .theme-switch .ico { color: var(--navy); }
:root[data-theme="light"] .theme-fab .ico-accent, :root[data-theme="light"] .theme-switch .ico-accent { stroke: var(--copper); }
:root[data-theme="light"] .dock-scrim { background: rgba(247,241,234,.5); }

/* ---------- light theme: service cards. Open card keeps its photo and dark veil; the closed ones turn pale. ---------- */
:root[data-theme="light"] body.home .svc { background: #E7ECF6; box-shadow: inset 0 0 0 1px rgba(36,57,110,.14); }
:root[data-theme="light"] body.home .svc::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: linear-gradient(180deg, rgba(247,249,253,.86), rgba(238,242,250,.93)); }
:root[data-theme="light"] body.home .svc:not(.is-open)::after { opacity: 1; }
:root[data-theme="light"] body.home .svc:not(.is-open)::before { opacity: 0; }
:root[data-theme="light"] body.home .svc:not(.is-open) .svc-media img { filter: saturate(.55) brightness(1.04); }
:root[data-theme="light"] body.home .svc-head { transition: color .4s var(--ease); }
:root[data-theme="light"] body.home .svc:not(.is-open) .svc-head { color: var(--navy); }
:root[data-theme="light"] body.home .svc:not(.is-open) .svc-num { color: #8A5526; }
:root[data-theme="light"] body.home .svc:not(.is-open) .svc-plus { background: rgba(36,57,110,.08); box-shadow: inset 0 0 0 1px rgba(36,57,110,.22); }
:root[data-theme="light"] body.home .svc:not(.is-open) .svc-plus::before, :root[data-theme="light"] body.home .svc:not(.is-open) .svc-plus::after { background: var(--navy); }
:root[data-theme="light"] body.home .svc:not(.is-open) .svc-plate { color: rgba(36,57,110,.14); background-image: linear-gradient(rgba(36,57,110,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(36,57,110,.06) 1px, transparent 1px); }

/* ---------- light theme: "From drawing to show day". The figure card turns into drawing paper: navy ink, a copper-gold lit accent. ---------- */
:root[data-theme="light"] .bf { --anatomy-paper:#E3E9F5; --anatomy-face:#D3DCEF; --anatomy-top:#F4F7FC;
  --anatomy-shade-0:#BFCBE6; --anatomy-shade-1:#CBD6EC; --anatomy-shade-2:#D8E0F2; --anatomy-shade-3:#E6ECF8;
  --anatomy-hi:#1B2A5A; --anatomy-mid:#4F6399; --anatomy-lo:#8396C3; --anatomy-faint:#B8C4E0; --anatomy-lit:#0F1B3F;
  --anatomy-halo:#24396E; --anatomy-halo-opacity:.22; --anatomy-dot:#24396E; color: #3C4B7A; }
:root[data-theme="light"] .bf-card { background: #FBFCFE; box-shadow: 0 0 0 1px rgba(36,57,110,.18), 0 18px 50px -24px rgba(36,57,110,.35); }
:root[data-theme="light"] .bf-c { color: #6F7EA8; }
:root[data-theme="light"] .bf-c[data-c="fig"], :root[data-theme="light"] .bf-c[data-c="read"] { color: #24396E; }
:root[data-theme="light"] .bf .bf-bench { --anatomy-paper:#D6DDEC; --anatomy-top:#E2E8F4; --anatomy-shade-0:#C9D2E6; --anatomy-shade-1:#CDD6E8; --anatomy-shade-2:#D2DAEA; --anatomy-shade-3:#D8DFED; --anatomy-hi:#3F5189; --anatomy-mid:#7686B3; --anatomy-lo:#A3B0D0; --anatomy-faint:#C5CEE4; }
:root[data-theme="light"] .bf .bf-lot { --anatomy-paper:#E8ECF5; --anatomy-top:#EEF1F8; --anatomy-shade-0:#DDE3F0; --anatomy-shade-1:#E0E6F2; --anatomy-shade-2:#E4E9F4; --anatomy-shade-3:#EAEEF6; --anatomy-hi:#5A6C9E; --anatomy-mid:#8E9CC2; --anatomy-lo:#B2BDD8; --anatomy-faint:#D3DAEA; }
:root[data-theme="light"] .bf .bf-strip { --anatomy-paper:#DCE3F1; --anatomy-top:#E4EAF5; --anatomy-shade-0:#D2DAEC; --anatomy-shade-1:#D6DDEE; --anatomy-shade-2:#DAE1F0; --anatomy-shade-3:#E0E6F3; --anatomy-hi:#4F6196; --anatomy-mid:#8190B8; --anatomy-lo:#AAB6D4; --anatomy-faint:#CBD3E8; }
:root[data-theme="light"] .bf .bf-road { --anatomy-paper:#C8D1E4; --anatomy-top:#CED7E8; --anatomy-shade-0:#C2CCE0; --anatomy-shade-1:#C6D0E3; --anatomy-shade-2:#CAD3E5; --anatomy-shade-3:#CED7E8; --anatomy-mid:#7080AC; --anatomy-lo:#98A6CA; }
:root[data-theme="light"] .bf .bf-kerb { --anatomy-paper:#B9C6E2; --anatomy-top:#A5B5D9; --anatomy-shade-0:#A9B8DA; --anatomy-shade-1:#B0BEDE; --anatomy-shade-2:#B9C6E2; --anatomy-shade-3:#C2CDE6; --anatomy-mid:#5F72A6; }
:root[data-theme="light"] .bf .bf-foot .iso-line { stroke: #6B7FB5; }
:root[data-theme="light"] .bf .bf-dim path { stroke: #B0703A; }
:root[data-theme="light"] .bf .bf-hole { fill: #27345F; stroke: #5A6C9E; }
/* the one lit accent: warm copper-gold glass instead of near white */
:root[data-theme="light"] .bf .bf-lit .iso-fill { fill: #F0C58A; }
:root[data-theme="light"] .bf .bf-lit .iso-shade[data-shade="0"] { fill: #D49A56; }
:root[data-theme="light"] .bf .bf-lit .iso-shade[data-shade="1"] { fill: #E0AB6A; }
:root[data-theme="light"] .bf .bf-lit .iso-shade[data-shade="2"] { fill: #EBBB7D; }
:root[data-theme="light"] .bf .bf-lit .iso-shade[data-shade="3"] { fill: #F2C98F; }
:root[data-theme="light"] .bf .bf-lit .iso-top { fill: #F8DCAB; }
:root[data-theme="light"] .bf .bf-lit .iso-line { stroke: #8A5526; }
:root[data-theme="light"] .bf .bf-lit .iso-line.iso-edge { stroke: #FFF4DF; }
:root[data-theme="light"] .bf .bf-lit .iso-dots circle { fill: #8A5526; }
:root[data-theme="light"] body.home .svc:not(.is-open) { --heading: var(--navy); }
:root[data-theme="light"] body.home .svc:not(.is-open)::after { background: linear-gradient(180deg, rgba(247,249,253,.9), rgba(238,242,250,.95)); }
:root[data-theme="light"] body.home .svc { background: #E6D9C8; box-shadow: inset 0 0 0 1px rgba(138,85,38,.3), 0 14px 32px -16px rgba(36,57,110,.4); }
:root[data-theme="light"] body.home .svc:not(.is-open)::after { background: linear-gradient(180deg, rgba(238,226,208,.7), rgba(226,210,188,.88)); }

/* ---------- inner pages (work, projects): the same two themes as Home ---------- */
:root[data-theme="light"] body.inner { background: var(--lbg); --ink: #1B2440; --concrete: #56617F; --rule: rgba(36,57,110,.18); }
:root[data-theme="light"] body.inner .eyebrow { color: #8A5526; }
:root[data-theme="light"] body.inner .card .dim { color: #8A5526; }
:root[data-theme="light"] body.inner .card figure, :root[data-theme="light"] body.inner .gallery a { background: #E6D9C8; }
:root[data-theme="light"] body.inner .filters button:hover { background: rgba(36,57,110,.07); }
:root[data-theme="light"] body.inner .next { background: #E6D9C8; color: var(--navy); --heading: var(--navy); }
:root[data-theme="light"] body.inner .next .mono { color: #7A4A20; }
:root[data-theme="light"] body.inner .site-footer { background: var(--lbg); color: rgba(27,36,64,.66); box-shadow: inset 0 1px 0 rgba(36,57,110,.16); }
:root[data-theme="light"] body.inner .site-footer a { color: var(--navy); }

:root[data-theme="dark"] body.inner { background: var(--night); color: #E7EBF5; --ink: #E7EBF5; --heading: #fff; --concrete: #9AA3BD; --rule: rgba(255,255,255,.18); }
:root[data-theme="dark"] body.inner .eyebrow, :root[data-theme="dark"] body.inner .card .dim { color: var(--gold); }
:root[data-theme="dark"] body.inner .filters button:hover { background: rgba(255,255,255,.08); }
:root[data-theme="dark"] body.inner .filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
:root[data-theme="dark"] body.inner .card figure, :root[data-theme="dark"] body.inner .gallery a { background: #1B2748; }
:root[data-theme="dark"] body.inner .next { background: #18244A; }
:root[data-theme="dark"] body.inner .site-footer { background: var(--night); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }

/* ---------- project pages: 3D render and as built, side by side ---------- */
.pairs { margin: clamp(40px, 8vh, 96px) 0 0; }
.pair { margin: 0 0 clamp(24px, 4vw, 48px); }
.pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vw, 18px); }
.pair-row a { position: relative; display: block; overflow: hidden; background: #d9dce2; aspect-ratio: 3 / 2; }
.pair-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pair-row a:hover img { transform: scale(1.03); }
.pair-tag { position: absolute; top: 12px; left: 12px; padding: 6px 10px; background: rgba(18,28,54,.82); color: #fff; font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }
.pair-tag--r { background: var(--gold); color: #111; }
.pair figcaption { margin-top: 12px; color: var(--concrete); font-size: var(--step-0); }
@media (max-width: 700px) { .pair-row { grid-template-columns: 1fr; } }
:root[data-theme="light"] body.inner .pair-row a { background: #E6D9C8; }
:root[data-theme="dark"] body.inner .pair-row a { background: #1B2748; }
