/* ============================================================
   Fonts (self-hosted, SIL Open Font License; see assets/fonts/)
   ============================================================ */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ============================================================
   ARC — design tokens
   ============================================================ */
:root {
  --paper:   #F7F7F3;   /* main background */
  --paper-2: #EDEEE8;   /* quiet surfaces */
  --ink:     #0A1E3C;   /* navy: type + structure */
  --ink-2:   #45546B;   /* secondary text */
  --line:    #D6DAD2;   /* hairlines */
  --teal:    #085041;   /* large sections */
  --teal-2:  #0B6653;
  --emerald: #14B88A;   /* accent, used sparingly */
  --on-dark: #EEF3EF;
  --on-dark-2: #A9C7BC;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #081629; --paper-2: #0E2038; --ink: #EEF1EC; --ink-2: #A3AFBF;
    --line: #22354F; --teal: #06382E; --teal-2: #0A4A3C;
  }
}
:root[data-theme="dark"] {
  --paper: #081629; --paper-2: #0E2038; --ink: #EEF1EC; --ink-2: #A3AFBF;
  --line: #22354F; --teal: #06382E; --teal-2: #0A4A3C;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .98; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; font-variation-settings: "opsz" 72; max-width: 18ch; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head p { max-width: 58ch; color: var(--ink-2); font-size: 1.125rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: var(--on-dark); color: #08342B; }
.btn-light:hover { background: #fff; }
.btn-small { height: 40px; padding: 0 18px; font-size: .9375rem; }

/* ============================================================
   Header + nav
   ============================================================ */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.brand-word { font: 700 1.3rem/1 var(--font-display); letter-spacing: .04em; }

.nav { position: relative; margin-left: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; z-index: 1; display: block; padding: 9px 16px;
  text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--ink-2);
  transition: color .25s var(--ease);
}
.nav-list a:hover, .nav-list a.is-current { color: var(--ink); }
.nav-indicator {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px; background: var(--paper-2);
  opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s var(--ease);
  pointer-events: none;
}

/* ============================================================
   Hero + arch
   ============================================================ */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100svh - 76px);
  padding-top: 40px; padding-bottom: 64px;
}
.hero-copy { display: grid; gap: 28px; }
.hero-name { font-weight: 500; color: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-name { color: var(--emerald); } }
:root[data-theme="dark"] .hero-name { color: var(--emerald); }
.hero h1 { max-width: 11ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.arch-figure { margin: 0; display: grid; gap: 20px; }
.arch { width: 100%; height: auto; overflow: visible; }
.arch .base { stroke: var(--ink); stroke-width: 1.5; }
.arch .block path {
  fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round;
  transition: fill .3s var(--ease), stroke .3s var(--ease);
}
.arch .block { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; }
.arch .block:hover path, .arch .block:focus-visible path, .arch .block.is-on path { fill: var(--teal); stroke: var(--teal); }
.arch .block:focus-visible path { stroke: var(--emerald); stroke-width: 2.5; }
.arch .keystone path { fill: var(--emerald); stroke: var(--emerald); }
.arch .keystone:hover path, .arch .keystone.is-on path { fill: var(--teal-2); stroke: var(--teal-2); }
.arch .side-label { font: 500 15px var(--font-body); fill: var(--ink-2); }

/* one orchestrated moment: the arch assembles on load */
.arch.will-build .block { opacity: 0; transform: translateY(-18px); }
.arch.will-build .keystone { transform: translateY(-60px); }
.arch .block { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.arch.is-built .block { opacity: 1; transform: none; }

.arch-caption { display: grid; align-content: start; gap: 4px; min-height: 5.4em; max-width: 46ch; justify-self: center; text-align: center; }
.arch-caption strong { font: 600 1.125rem/1.3 var(--font-display); }
.arch-caption span { color: var(--ink-2); font-size: .9875rem; }

/* ============================================================
   What we do
   ============================================================ */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.layer { border-radius: 28px; padding: clamp(28px, 4vw, 48px); background: var(--paper-2); }
.layer-deep { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .layer-deep { background: var(--teal); color: var(--on-dark); } }
:root[data-theme="dark"] .layer-deep { background: var(--teal); color: var(--on-dark); }
.layer h3 { font-size: 1.6rem; }
.layer-sub { margin-top: 6px; opacity: .72; }
.layer dl { margin: 32px 0 0; display: grid; }
.layer dl > div { padding: 18px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.layer dt { font-weight: 600; font-size: 1.0625rem; }
.layer dd { margin: 4px 0 0; opacity: .75; }
.aside { margin-top: 48px; font-size: 1.1875rem; max-width: 52ch; }
.aside a { color: var(--teal-2); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aside a { color: var(--emerald); } }
:root[data-theme="dark"] .aside a { color: var(--emerald); }

/* ============================================================
   Industries marquee
   ============================================================ */
.industries { background: var(--teal); color: var(--on-dark); padding: clamp(72px, 10vw, 120px) 0; overflow: hidden; }
.industries h2 { max-width: 22ch; }
.industries .wrap > p { margin-top: 18px; color: var(--on-dark-2); max-width: 52ch; font-size: 1.125rem; }
.marquee { display: flex; margin-top: clamp(48px, 7vw, 80px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; flex-shrink: 0; gap: 16px; padding: 0 8px 0 8px; margin: 0; list-style: none;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
  padding: 18px 30px 18px 22px; border-radius: 999px;
  border: 1px solid rgba(238, 243, 239, .18);
  font: 500 1.375rem/1 var(--font-display); letter-spacing: -0.01em;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.marquee-track li:hover { background: rgba(238, 243, 239, .07); border-color: rgba(20, 184, 138, .7); }
.marquee-track svg { width: 44px; height: 44px; color: var(--emerald); }
@keyframes marquee { to { transform: translateX(calc(-100% - 16px)); } }

/* ============================================================
   Work
   ============================================================ */
.work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; }
.work-list li + li { border-top: 1px solid var(--line); }
.work-item {
  display: grid; gap: 6px; width: 100%; text-align: left; padding: 26px 0 26px 22px;
  background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; position: relative;
}
.work-item::before {
  content: ""; position: absolute; left: 0; top: 30px; bottom: 30px; width: 3px; border-radius: 3px;
  background: var(--emerald); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.work-item.is-active::before { transform: scaleY(1); }
.work-industry { font-size: .9375rem; color: var(--ink-2); }
.work-title { font: 600 clamp(1.4rem, 2.2vw, 1.85rem)/1.15 var(--font-display); letter-spacing: -0.015em; opacity: .45; transition: opacity .3s var(--ease); }
.work-item:hover .work-title, .work-item.is-active .work-title { opacity: 1; }
.work-scope { color: var(--ink-2); max-width: 46ch; display: none; }
.work-item.is-active .work-scope { display: block; }
.work-vis { justify-self: start; margin-top: 6px; font-size: .8125rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.work-vis.vis-open { background: color-mix(in srgb, var(--emerald) 18%, transparent); color: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .work-vis.vis-open { color: var(--emerald); } }
:root[data-theme="dark"] .work-vis.vis-open { color: var(--emerald); }

.work-stage { position: sticky; top: 110px; }
.panel { border-radius: 28px; overflow: hidden; background: var(--teal); color: var(--on-dark); }
.panel[hidden] { display: none; }
.panel.is-active { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.panel svg { display: block; width: 100%; height: auto; padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0; }
.panel-note { padding: 20px clamp(20px, 3vw, 36px) clamp(24px, 3vw, 34px); color: var(--on-dark-2); max-width: 60ch; }
.panel-open { background: var(--paper-2); color: var(--ink); }
.panel-open .panel-note { color: var(--ink-2); }

/* mockup (visible project) */
.m-window { fill: #fff; stroke: #D6DAD2; }
.m-rule { stroke: #E4E7E0; }
.m-dot { fill: #D6DAD2; }
.m-ink { fill: #0A1E3C; }
.m-soft { fill: #D9DDD6; }
.m-photo { fill: #E9ECE6; }
.m-building { fill: none; stroke: #0A1E3C; stroke-width: 1.5; stroke-linejoin: round; }
.m-accent { fill: #14B88A; }

/* diagrams (confidential projects) */
.d-node rect, .d-node circle { fill: color-mix(in srgb, var(--on-dark) 8%, var(--teal)); stroke: rgba(238, 243, 239, .45); stroke-width: 1.2; }
.d-node text, .d-band text, .d-label { fill: var(--on-dark); font: 500 13px var(--font-body); text-anchor: middle; }
.d-arc rect, .d-arc circle { stroke: var(--emerald); fill: color-mix(in srgb, var(--emerald) 16%, var(--teal)); }
.d-line { fill: none; stroke: rgba(238, 243, 239, .5); stroke-width: 1.2; }
.d-denied { stroke-dasharray: 4 5; stroke: rgba(238, 243, 239, .35); }
.d-accent { stroke: var(--emerald); stroke-width: 1.6; }
.d-lock { fill: none; stroke: var(--emerald); stroke-width: 1.5; stroke-linejoin: round; }
.d-band rect { fill: rgba(238, 243, 239, .07); stroke: rgba(238, 243, 239, .3); }
.d-label { fill: var(--on-dark-2); font-size: 14px; }

/* ============================================================
   Process
   ============================================================ */
.process { padding-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { display: grid; gap: 14px; align-content: start; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.step-n { font: 600 1rem/1 var(--font-display); color: var(--ink-2); }
.steps h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.steps p { color: var(--ink-2); max-width: 34ch; }

/* ============================================================
   Team
   ============================================================ */
.team { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.team-copy { display: grid; gap: 20px; }
.team-copy p { color: var(--ink-2); font-size: 1.125rem; max-width: 46ch; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.founder { display: grid; gap: 4px; }
.founder-photo {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; background: var(--paper-2);
  display: grid; place-items: center; margin-bottom: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.founder-photo span { font: 600 1.5rem var(--font-display); color: var(--ink-2); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-role { color: var(--teal-2); font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .founder-role { color: var(--emerald); } }
:root[data-theme="dark"] .founder-role { color: var(--emerald); }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--teal); color: var(--on-dark); padding: var(--section) 0; border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact-copy { display: grid; gap: 20px; align-content: start; }
.contact-copy p { color: var(--on-dark-2); font-size: 1.125rem; max-width: 42ch; }
.contact-direct a { color: var(--on-dark); font-weight: 600; text-underline-offset: 4px; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .9375rem; }
.optional { color: var(--on-dark-2); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--on-dark);
  background: rgba(238, 243, 239, .06); border: 1px solid rgba(238, 243, 239, .22);
  border-radius: 14px; padding: 14px 16px; resize: vertical;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald); background: rgba(238, 243, 239, .1); }
.field [aria-invalid="true"] { border-color: #F2A78F; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-status { min-height: 1.6em; color: var(--on-dark-2); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--teal); color: var(--on-dark-2); }
.cta-band + .site-footer, .contact + .site-footer { border-top: 1px solid rgba(238, 243, 239, .14); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { max-width: 32ch; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-mark { color: var(--emerald); }
.footer-h { color: var(--on-dark); font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer ul a:hover, .footer-base a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(238, 243, 239, .14); font-size: .9375rem; }

/* ============================================================
   Shared page pieces
   ============================================================ */
.nav-list a[aria-current="page"] { color: var(--ink); }
.text-link { color: var(--teal-2); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .text-link { color: var(--emerald); } }
:root[data-theme="dark"] .text-link { color: var(--emerald); }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.section-flush { padding-top: 0; }
.section-more { margin-top: 48px; }
.panel-link { display: inline-block; margin-top: 10px; color: var(--on-dark); font-weight: 600; text-underline-offset: 4px; }
.panel-open .panel-link { color: var(--teal-2); }

.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.page-hero-inner { position: relative; z-index: 1; display: grid; gap: 24px; }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.page-hero .lede { max-width: 52ch; }
.page-hero-arc {
  position: absolute; right: max(-60px, calc((100vw - var(--wrap)) / 2 - 120px)); bottom: 0;
  width: clamp(260px, 36vw, 520px); height: auto;
  fill: none; stroke: var(--line); stroke-width: 1.4;
}
.page-hero-arc path:last-child { stroke: var(--emerald); stroke-opacity: .7; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: .9375rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.cta-band { background: var(--teal); color: var(--on-dark); padding: clamp(80px, 10vw, 128px) 0; border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0; margin-top: var(--section); }
.cta-inner { display: grid; gap: 20px; justify-items: start; }
.cta-inner h2 { max-width: 16ch; }
.cta-inner p { color: var(--on-dark-2); font-size: 1.125rem; max-width: 46ch; }
.cta-inner .btn { margin-top: 8px; }

.band { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 112px) 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: var(--paper-2); color: var(--ink); } }
:root[data-theme="dark"] .band { background: var(--paper-2); color: var(--ink); }
.band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.band-inner div { display: grid; gap: 16px; font-size: 1.125rem; opacity: .85; max-width: 52ch; }

/* ============================================================
   Work index
   ============================================================ */
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.legend > div { display: grid; gap: 10px; justify-items: start; padding: 24px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.legend p { color: var(--ink-2); }
.legend .work-vis { margin-top: 0; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px); }
.card-featured { grid-column: 1 / -1; }
.card-link { display: grid; gap: 22px; text-decoration: none; color: inherit; }
.card-featured .card-link { grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.visual { border-radius: 28px; overflow: hidden; background: var(--teal); transition: transform .5s var(--ease); }
.visual svg { display: block; width: 100%; height: auto; padding: clamp(14px, 3vw, 28px); }
.visual-open { background: var(--paper-2); }
.card-link:hover .visual { transform: translateY(-4px); }
.card-body { display: grid; gap: 10px; justify-items: start; }
.card-body .work-industry { display: inline-flex; align-items: center; gap: 8px; }
.card-body .work-industry svg { width: 22px; height: 22px; color: var(--teal-2); }
.card-title { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 20ch; }
.card-featured .card-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.card-body > p { color: var(--ink-2); max-width: 44ch; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.card-foot .work-vis { margin: 0; }
.card-more { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: text-decoration-color .3s var(--ease); }
.card-link:hover .card-more, .card-link:focus-visible .card-more { text-decoration-color: var(--emerald); }

/* ============================================================
   Case study
   ============================================================ */
.case-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.case-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end; margin-top: 28px; }
.case-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 14ch; margin-bottom: 22px; }
.facts { margin: 0; display: grid; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.facts dt { font-size: .875rem; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; }
.facts .work-vis { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .875rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.visual-big { border-radius: clamp(24px, 4vw, 40px); }
.visual-big svg { max-width: 820px; margin: 0 auto; padding: clamp(20px, 5vw, 64px); }

.private-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-top: 20px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--paper-2); }
.private-note svg { width: 28px; height: 28px; color: var(--teal-2); }
.private-note h2 { font-size: 1.25rem; max-width: none; margin-bottom: 6px; }
.private-note p { color: var(--ink-2); max-width: 64ch; }

.story { display: grid; }
.story-row { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 5vw, 72px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.story-row:last-child { border-bottom: 1px solid var(--line); }
.story-row h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.story-row > p { font-size: 1.1875rem; max-width: 56ch; }
.built { margin: 0; display: grid; gap: 22px; }
.built dt { font-weight: 600; font-size: 1.125rem; }
.built dd { margin: 4px 0 0; color: var(--ink-2); max-width: 52ch; }

.next-project a { display: grid; gap: 8px; padding: clamp(40px, 6vw, 72px) 0 0; text-decoration: none; }
.next-label { color: var(--ink-2); }
.next-title { font: 600 clamp(2rem, 5vw, 3.8rem)/1.02 var(--font-display); letter-spacing: -0.025em; max-width: 18ch; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 8px; text-decoration-thickness: 2px; transition: text-decoration-color .3s var(--ease); }
.next-project a:hover .next-title, .next-project a:focus-visible .next-title { text-decoration-color: var(--emerald); }
.next-project + .cta-band { margin-top: clamp(80px, 10vw, 128px); }

/* ============================================================
   What we do
   ============================================================ */
.cap-group { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1.5px solid var(--ink); }
.cap-group + .cap-group { margin-top: clamp(24px, 4vw, 40px); }
.cap-head { display: grid; gap: 8px; align-content: start; position: sticky; top: 110px; }
.cap-head p { color: var(--ink-2); }
.caps { list-style: none; margin: 0; padding: 0; }
.cap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cap:first-child { padding-top: 4px; }
.cap h3 { font-size: 1.3rem; }
.cap p { color: var(--ink-2); }
.cap .cap-ex { margin-top: 8px; font-size: .9375rem; color: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cap .cap-ex { color: var(--emerald); } }
:root[data-theme="dark"] .cap .cap-ex { color: var(--emerald); }
.steps-detail .step-out { color: var(--ink); font-weight: 500; }
.unlisted { display: grid; gap: 18px; justify-items: start; }
.unlisted p { max-width: 54ch; color: var(--ink-2); font-size: 1.125rem; }

/* ============================================================
   About
   ============================================================ */
.meanings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.meanings li { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--paper-2); }
.meanings svg { width: 120px; height: 80px; margin-bottom: 12px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.meanings svg .acc { stroke: var(--emerald); stroke-width: 2.4; }
.meanings h3 { font-size: 1.6rem; }
.meanings p { color: var(--ink-2); }
.founders-lg { max-width: 820px; gap: clamp(20px, 4vw, 48px); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.principles li { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles h3 { font-size: 1.4rem; }
.principles p { color: var(--ink-2); max-width: 42ch; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-page { border-radius: 0; padding-top: clamp(56px, 8vw, 104px); }
.contact-page h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); max-width: 10ch; }
.next-steps { margin-top: 24px; padding-top: 28px; border-top: 1px solid rgba(238, 243, 239, .18); }
.next-steps h2 { font-size: 1.25rem; max-width: none; margin-bottom: 16px; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.next-steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(238, 243, 239, .35); font-size: .875rem; font-weight: 600; color: var(--on-dark); }
.next-steps p { color: var(--on-dark-2); font-size: 1rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice legend { font-weight: 500; font-size: .9375rem; margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(238, 243, 239, .25); font-size: .9375rem; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.choices label:hover span { border-color: rgba(238, 243, 239, .5); }
.choices input:checked + span { background: var(--on-dark); border-color: var(--on-dark); color: #08342B; }
.choices input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 2px; }
.page-contact .site-footer { border-top: 1px solid rgba(238, 243, 239, .14); }

.not-found { min-height: 70vh; display: grid; align-items: center; }

/* ============================================================
   Theme toggle
   ============================================================ */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), fill .35s var(--ease), stroke .35s var(--ease) !important;
}
.theme-toggle {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
}
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(60deg) scale(.6); }

/* ============================================================
   Screenshots: browser frame, phone, gallery
   ============================================================ */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(10, 30, 60, .1), 0 18px 40px -24px rgba(10, 30, 60, .35); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #EEF0EA; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3D7CF; }
.browser img, .phone img { display: block; width: 100%; height: auto; }
.visual-shot { padding: clamp(16px, 3vw, 32px); }
.panel-open > .browser { margin: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0; }
.phone { border-radius: 30px; overflow: hidden; border: 8px solid var(--ink); background: #fff; max-width: 260px; margin: 0 auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { border-color: #1B2E4A; } }
:root[data-theme="dark"] .phone { border-color: #1B2E4A; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 28px); }
.gallery figure { margin: 0; display: grid; gap: 10px; align-content: start; grid-column: span 2; }
.gallery .g-main { grid-column: 1 / -1; }
.gallery .g-phone { grid-column: span 2; padding: clamp(20px, 4vw, 40px) 0; border-radius: 28px; background: var(--paper-2); }
.gallery figcaption { font-size: .875rem; color: var(--ink-2); }
.gallery .g-phone figcaption { text-align: center; }
.case-live { margin-top: 24px; }

/* ============================================================
   Founders, forms
   ============================================================ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.founder-link {
  justify-self: start; margin-top: 10px; font-weight: 600; font-size: .9375rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .25s var(--ease);
}
.founder-link:hover { text-decoration-color: var(--emerald); }
.founder .founder-bio { color: var(--ink-2); margin-top: 6px; font-size: .9875rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { color: #FFC9B8; }
.form-done { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: rgba(238, 243, 239, .08); box-shadow: inset 0 0 0 1px rgba(20, 184, 138, .6); outline: none; }
.form-done h3 { font-size: 1.6rem; }
.form-done p { color: var(--on-dark-2); }
.contact-form button[disabled] { opacity: .7; cursor: progress; }

/* ============================================================
   Placeholders: everything to replace before launch.
   Find them all with:  grep -rn 'class="ph\|PLACEHOLDER' public/
   ============================================================ */
.ph { background: repeating-linear-gradient(135deg, rgba(20,184,138,.16) 0 6px, rgba(20,184,138,.06) 6px 12px); outline: 1.5px dashed var(--emerald); outline-offset: 1px; border-radius: 4px; padding: 0 4px; }
.ph-tag { display: inline-block; font: 600 .75rem/1 var(--font-body); letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; background: var(--emerald); color: #04241C; }

/* ============================================================
   Home: what-we-do strip, clients, quote
   ============================================================ */
.strip { padding: clamp(40px, 6vw, 72px) 0; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip p { font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--font-display); letter-spacing: -0.01em; max-width: 44ch; }
.strip p span { display: block; margin-top: 6px; font: 400 1rem/1.5 var(--font-body); letter-spacing: 0; color: var(--ink-2); }

.clients-quote .wrap { display: grid; gap: clamp(40px, 6vw, 72px); }
.quote { margin: 0; display: grid; gap: 18px; justify-items: start; max-width: 880px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 500 clamp(1.5rem, 3vw, 2.25rem)/1.25 var(--font-display); letter-spacing: -0.015em; }
.quote blockquote p::before { content: "\201C"; color: var(--emerald); margin-right: .04em; }
.quote blockquote p::after { content: "\201D"; color: var(--emerald); }
.quote figcaption { color: var(--ink-2); }
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.clients-label { font-size: .9375rem; color: var(--ink-2); }
.client-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.client-logo { display: block; height: 44px; aspect-ratio: var(--ratio, 2); background: var(--ink); opacity: .8;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: opacity .3s var(--ease); }
.client-logo:hover { opacity: 1; }
.client-slot { display: inline-grid; place-items: center; height: 44px; padding: 0 16px; font-size: .875rem; }
.story-quote { padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }

/* ============================================================
   Schools page + work banner
   ============================================================ */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area { display: grid; gap: 10px; align-content: start; justify-items: start; padding: clamp(22px, 3vw, 30px); border-radius: 24px; background: var(--paper-2); }
.area h3 { font-size: 1.3rem; }
.area p { color: var(--ink-2); }
.schools-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: clamp(32px, 5vw, 56px); padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 32px); border-radius: 24px; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.schools-banner:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.schools-banner svg { width: 40px; height: 40px; color: var(--teal-2); }
.schools-banner strong { display: block; font: 600 1.35rem/1.2 var(--font-display); }
.schools-banner > span > span { color: var(--ink-2); }
.schools-banner:hover .card-more { text-decoration-color: var(--emerald); }
.fineprint { font-size: .8125rem; color: var(--ink-2); max-width: 70ch; }

/* ============================================================
   Legal pages
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); max-width: none; margin: 44px 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 0 0 12px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .fineprint { margin-top: 48px; }
.legal-facts { margin: 0; }
.legal-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.legal-facts dt { color: var(--ink-2); font-size: .9375rem; }
.legal-facts dd { margin: 0; }
.form-privacy { font-size: .8125rem; line-height: 1.5; color: var(--on-dark-2); max-width: 60ch; }
.form-privacy a { color: var(--on-dark); text-underline-offset: 3px; }
.footer-legal { display: flex !important; flex-wrap: wrap; gap: 8px 24px !important; }

/* ============================================================
   Motion: page transitions + scroll reveals
   ============================================================ */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero h1 { max-width: 13ch; }
  .arch-figure { max-width: 560px; justify-self: center; width: 100%; }
  .work { grid-template-columns: 1fr; }
  .work-stage { position: static; margin: 4px 0 20px; }
  .team, .contact-inner { grid-template-columns: 1fr; }
  .card-featured .card-link, .case-hero-grid, .band-inner, .cap-group, .story-row { grid-template-columns: 1fr; }
  .cap-head { position: static; }
  .meanings { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero-arc { opacity: .5; right: -80px; }
}
@media (max-width: 720px) {
  .header-inner { gap: 8px; }
  .header-inner > .btn { display: none; }
  .theme-toggle { width: 36px; height: 36px; }
  .areas { grid-template-columns: 1fr; }
  .schools-banner { grid-template-columns: auto 1fr; }
  .schools-banner .card-more { grid-column: 2; }
  .legal-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .gallery figure, .gallery .g-phone { grid-column: 1 / -1; }
  .nav-list { gap: 0; }
  .nav-list a { padding: 8px 8px; font-size: .875rem; white-space: nowrap; }
  .brand-word { font-size: 1.15rem; }
  .layers, .steps, .cards, .legend, .principles, .cap { grid-template-columns: 1fr; }
  .marquee-track li { font-size: 1.125rem; padding: 14px 22px 14px 16px; }
  .marquee-track svg { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  .brand-word { display: none; }
  .founders { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .arch.will-build .block { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; mask-image: none; }
}
