@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/space-grotesk-400.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/space-grotesk-500.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/space-grotesk-600.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/space-grotesk-700.woff2') format('woff2');}

:root {
  /* Architect Light theme */
  --bg: #f4f3f0;
  --surface: #ffffff;
  --bg-raised: #ffffff;
  --ink: #17191c;
  --ink-dim: rgba(23, 25, 28, 0.64);
  --ink-faint: rgba(23, 25, 28, 0.44);
  --accent: #a9741f;
  --accent-ink: #ffffff;
  --hair: rgba(23, 25, 28, 0.13);
  --radius: 8px;
  /* Space Grotesk carries the brand; --serif kept as the heading/display alias */
  --serif: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav.solid {
  background: rgba(244,243,240,0.9);
  border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
/* home hero: nav sits over the dark video until you scroll */
nav.over-media { background: linear-gradient(to bottom, rgba(0,0,0,0.42), transparent); }
nav.over-media .brand { color: #fff; }
nav.over-media .nav-links a { color: rgba(255,255,255,0.75); }
nav.over-media.solid { background: rgba(244,243,240,0.94); }
nav.over-media.solid .brand { color: var(--ink); }
nav.over-media.solid .nav-links a { color: var(--ink-dim); }
.brand {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* ---------- Page scaffolding ---------- */
.page-head {
  padding: 11rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-head .kicker { margin-bottom: 1rem; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
}
.page-head p.lede {
  margin-top: 1.4rem;
  color: var(--ink-dim);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 62ch;
}
section.content {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
section.content.tight { padding-top: 3rem; }
.kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
h2.sec {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.18;
  max-width: 24ch;
}
.sec-intro { color: var(--ink-dim); line-height: 1.75; max-width: 60ch; margin-top: 1.2rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 3rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 3.5rem 0;
}
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--accent); }
.stat .label { margin-top: 0.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 32px -16px rgba(23,25,28,0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px -18px rgba(23,25,28,0.30); }
.card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb-mono {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--hair);
}
/* tiered cards: static (image, no case study) and mini (neither) */
.card.static { cursor: default; }
.card.static:hover { transform: none; box-shadow: 0 12px 32px -16px rgba(23,25,28,0.22); }
.card.static:hover .thumb img { transform: none; }
.card.static .meta { font-size: 0.82rem; }
.card.mini { align-self: start; background: var(--bg); border: 1px solid var(--hair); box-shadow: none; }
.card.mini:hover { box-shadow: none; }
.card.mini .body { padding: 1.05rem 1.2rem 1.15rem; }
.card.mini h3 { font-size: 1.05rem; }
.card .cta {
  display: inline-block; margin-top: 0.75rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.card .thumb-mono span {
  font-family: var(--serif); font-weight: 400; font-size: 4.2rem; line-height: 1;
  color: var(--accent); opacity: 0.32; transition: opacity 0.3s ease;
}
.card:hover .thumb-mono span { opacity: 0.55; }
.card .body { padding: 1.3rem 1.4rem 1.5rem; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.3; }
.card .meta { margin-top: 0.55rem; color: var(--ink-dim); font-size: 0.85rem; line-height: 1.55; }
.card .meta strong { color: var(--ink); font-weight: 600; }
/* status badges + scope stickers: ONE spec, only colors vary */
.badge, .tag-chip {
  display: inline-block;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  margin-top: 0.9rem;
  border: 1px solid transparent;
}
.badge { color: #2e6b3a; background: #e7f2e9; border-color: #bcdcc3; } /* completed: green */
.badge.ongoing { color: #8a5a12; background: #f7ecd9; border-color: #e3cba0; }

/* feature list rows */
.rows { border-top: 1px solid var(--hair); }
.row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hair);
}
.row h4 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.row p { color: var(--ink-dim); line-height: 1.7; font-size: 0.95rem; }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  border: 1px solid var(--hair);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2.4rem 0; }
.chip {
  border: 1px solid var(--hair);
  background: none;
  border-radius: 100px;
  color: var(--ink-dim);
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.25s;
}
.chip.active, .chip:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* client strip */
.clients { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; align-items: baseline; }
.clients span {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* CTA band */
.cta-band {
  border-top: 1px solid var(--hair);
  padding: 6rem 3rem;
  text-align: center;
  background: var(--bg-raised);
}
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band p { color: var(--ink-dim); margin-top: 1rem; }
.btn {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.95rem 2.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: filter 0.25s, transform 0.2s;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: none; border: 1px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); filter: none; }

/* footer */
footer {
  border-top: 1px solid var(--hair);
  padding: 4rem 3rem 3rem;
}
.foot-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.foot-grid h5 { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; }
.foot-grid p, .foot-grid a { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.8; text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-note {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,7,9,0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 3vh 3vw;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
#lightbox .cap {
  position: absolute; bottom: 2.4vh; left: 0; right: 0;
  text-align: center; color: var(--ink-dim); font-size: 0.85rem; letter-spacing: 0.06em;
}

@media (max-width: 1000px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  nav { padding: 1.1rem 1.4rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.68rem; }
  .page-head { padding: 8rem 1.5rem 3rem; }
  section.content { padding: 4rem 1.5rem; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0.6rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 4rem 1.5rem; }
}

/* ===========================================================================
   MOTION SYSTEM  (driven by motion.js — see data-* attributes there)
   All transforms are GPU-cheap; everything is disabled under reduced-motion.
   =========================================================================== */

/* --- reveal on enter ------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-34px, 0, 0); }
[data-reveal="right"] { transform: translate3d(34px, 0, 0); }
[data-reveal="scale"] { transform: scale(1.06); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --- split headings: words rise from behind a mask ------------------- */
[data-split] .w  { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-split] .wi {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-split].is-in .wi { transform: none; }

/* --- parallax: motion.js sets --py ----------------------------------- */
[data-parallax] { transform: translate3d(0, var(--py, 0), 0); will-change: transform; }

/* --- image "breathe": slow zoom while the card is on screen ---------- */
.card .thumb img,
.cs-gallery img { transform: scale(1.001); }

/* --- nav: hide on scroll-down, show on scroll-up --------------------- */
nav { transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1); }
nav.nav-hidden { transform: translateY(-100%); }

/* --- link underline that draws in ------------------------------------ */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* --- buttons: lift + sheen ------------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* --- section rules that draw across ---------------------------------- */
.stats, .spec, .rows { position: relative; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].is-in,
  [data-split] .wi, [data-split].is-in .wi {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  [data-parallax] { transform: none !important; }
  .btn::before { display: none; }
  nav.nav-hidden { transform: none; }
  html { scroll-behavior: auto !important; }
}

/* projects page: show-more fold */
.show-more {
  display: block; margin: 2.6rem auto 0; padding: 0.95rem 2.2rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: none; border: 1px solid var(--ink);
  border-radius: var(--radius); cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.show-more:hover { background: var(--ink); color: var(--bg); }

/* scope stickers: pastel colour variants of the shared chip spec */
.tag-chip.tag-sub { color:#2b5d8a; background:#e4eef7; border-color:#b9d3ea; }
.tag-chip.tag-partial { color:#5d4a8a; background:#ebe7f6; border-color:#cdc3e8; }
.tag-chip.tag-full { color:#17789f; background:#e2f4fb; border-color:#b6dff0; }

/* badge row: keep status + stickers inline and content-sized */
.card .badges { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; margin-top:.9rem; }
.card .badges .badge, .card .badges .tag-chip { margin-top:0; margin-left:0; }

/* facility lead image — aligned with the content column */
.fac-lead { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.fac-lead img { width: 100%; border-radius: var(--radius); box-shadow: 0 22px 50px -20px rgba(23,25,28,.3); }
@media (max-width: 720px) { .fac-lead { padding: 0 1.5rem; } }

/* pre-reveal translateX on below-fold elements must never widen the page
   (clip, not hidden: doesn't create a scroll container, keeps sticky intact) */
html, body { overflow-x: clip; }

/* --- mobile nav: hamburger + full-screen menu ------------------------ */
.nav-burger { display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; z-index: 130; position: relative;
  flex-direction: column; justify-content: center; gap: 5px; }
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
nav.over-media:not(.solid) .nav-burger span { background: #fff; }
nav.menu-open .nav-burger span { background: var(--ink); }
nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
nav.menu-open { transform: none !important;
  /* backdrop-filter (and transform) make the nav a containing block for
     position:fixed children — the menu overlay would size to the nav bar
     instead of the viewport. Strip them all while the menu is open. */
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  filter: none !important; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  nav.menu-open .nav-links { display: flex; position: fixed; inset: 0; z-index: 120;
    top: 0; left: 0; width: 100vw; height: 100lvh;
    background: rgba(244,243,240,0.985); flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem; }
  nav.menu-open .nav-links a { font-size: 1.02rem; letter-spacing: .22em;
    color: var(--ink-dim); }
  nav.menu-open .nav-links a.active { color: var(--ink); }
  nav.menu-open .brand { position: relative; z-index: 130; }
}
nav.menu-open .brand { color: var(--ink) !important; }


/* --- explore band (bottom navigation, A3 mounted print) ---------------- */
.explore-band { border-top: 1px solid var(--hair); padding: 6rem 3rem; background: var(--bg-raised); }
.explore-band .head { text-align: center; margin-bottom: 3rem; }
.explore-band .head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); }
.explore-band .xgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 1100px; margin: 0 auto; }
.explore-band .sq { width: min(calc(25% - 0.75rem), 250px); aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 1.3rem 1.4rem; text-decoration: none; position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(178deg, #ffffff 0%, #faf9f7 100%);
  border: 1px solid rgba(255,255,255,.9); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(23,25,28,.06), 0 10px 22px -8px rgba(23,25,28,.13), 0 30px 50px -26px rgba(23,25,28,.24);
  transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease; }
.explore-band .sq:hover { transform: translateY(-4px); background: var(--ink); color: #f4f3f0; border-color: var(--ink); }
.explore-band .sq .num { position: absolute; top: 1.1rem; left: 1.3rem; font-size: .66rem; letter-spacing: .2em; color: var(--accent); }
.explore-band .sq .ico { width: 58px; height: 58px; color: var(--accent); margin-bottom: .55rem; }
.explore-band .sq .ico svg { width: 100%; height: 100%; }
.explore-band .sq h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: -.01em; }
.explore-band .sq .arr { margin-top: .4rem; font-size: .8rem; color: var(--accent); opacity: 0; transition: opacity .25s ease; }
.explore-band .sq:hover .arr { opacity: 1; }
@media (max-width: 820px) {
  .explore-band { padding: 4rem 1.5rem; }
  .explore-band .xgrid { gap: .7rem; }
  .explore-band .sq { width: calc(50% - .35rem); }
  .explore-band .sq .ico { width: 42px; height: 42px; margin-bottom: .4rem; }
  .explore-band .sq h3 { font-size: 1.25rem; }
}


/* --- What we build: thumbnail grid (homepage) --------------------------- */
.buildgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem 1rem; }
.buildgrid .bitem { text-decoration: none; display: block; }
.buildgrid .bthumb { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--hair);
  box-shadow: 0 8px 20px -12px rgba(23,25,28,.22); }
.buildgrid .bthumb img { width: 100%; height: auto; display: block; transition: transform .45s ease; }
.buildgrid .bitem:hover .bthumb img { transform: scale(1.05); }
.buildgrid .blabel { display: block; margin-top: .55rem; font-size: .8rem; line-height: 1.35;
  color: var(--ink-dim); transition: color .2s ease; }
.buildgrid .bitem:hover .blabel { color: var(--ink); }
@media (max-width: 820px) {
  .buildgrid { grid-template-columns: repeat(3, 1fr); gap: .8rem .6rem; }
  .buildgrid .blabel { font-size: .7rem; margin-top: .4rem; }
}
