/* =====================================================================
   SPACE DESIGN — Design system & public site styles
   Raw CSS. No frameworks. System font stacks (no third-party font CDN).
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Self-hosted fonts (SIL Open Font License — see assets/fonts/OFL-*.txt)
   No third-party font CDN: nothing is requested from Google.
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Inter Tight";
  src: url("../assets/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
  /* Brand colours: blue theme built from the logo (#44789F blue, #15191D ink) */
  --space-blue: #3F7196;            /* logo blue #44789F, deepened for AA text contrast */
  --space-blue-dark: #2E5675;
  --space-blue-light: #8DBBDE;      /* accessible accent on dark grounds */
  --space-white: #FFFFFF;
  --space-off-white: #F1F5F8;        /* pale blue-grey band */
  --space-panel: #E3ECF2;           /* blue-grey band behind project grids */
  --space-charcoal: #12263A;        /* navy ink, from logo blue */
  --space-dark: #0E2436;             /* deep navy for dark bands */
  --space-grey: #6F8291;            /* large muted display text only */
  --space-grey-text: #4E5F6C;       /* small muted text, AA on white and pale bands */
  --space-light-grey: #DCE5EC;
  --space-border: #C3D1DC;
  --space-edge: rgba(14, 36, 54, 0.12);

  /* Semantic */
  --bg: var(--space-white);
  --bg-alt: var(--space-off-white);
  --text: var(--space-charcoal);
  --text-muted: var(--space-grey-text);
  --line: var(--space-border);
  --accent: var(--space-blue);
  --focus: var(--space-blue);
  --danger: #B3261E;
  --success: #1B6B3A;

  /* Type */
  --font-sans: "Roboto", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-serif: "Roboto", "Helvetica Neue", "Segoe UI", Arial, sans-serif; /* theme is all-sans; kept as a token for existing rules */
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --fs-micro: 0.6875rem;                               /* 11px */
  --fs-xs: 0.75rem;                                    /* 12px */
  --fs-sm: 0.875rem;                                   /* 14px */
  --fs-base: 1rem;                                     /* 16px */
  --fs-md: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
  --fs-2xl: clamp(2.25rem, 1.5rem + 3.2vw, 4.75rem);
  --fs-3xl: clamp(2.75rem, 1.6rem + 5.4vw, 7.5rem);
  --fs-mega: clamp(9rem, 4rem + 22vw, 26rem);

  --lh-tight: 0.92;
  --lh-snug: 1.1;
  --lh-body: 1.65;
  --track-label: 0.18em;
  --track-tight: -0.022em;

  /* Spacing (architectural 8pt scale) */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;   --s-11: 12rem;
  --section-y: clamp(5rem, 3rem + 7vw, 11rem);

  /* Layout */
  --container: 1680px;
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --col-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  --header-h: 84px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 900ms;
  --t-reveal: 1400ms;
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  letter-spacing: 0.006em;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; line-height: var(--lh-snug); letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
dl, dd { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--space-blue); color: var(--space-white); }
[hidden] { display: none !important; }

@view-transition { navigation: auto; }

/* ---------------------------------------------------------------------
   3. Layout primitives
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }



.unstyled-list { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   4. Typography components
   --------------------------------------------------------------------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.3;
}
.label--muted { color: var(--text-muted); }
.label--blue { color: var(--space-blue); }

/* "01 ─────────" index marker */
.index {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--space-blue);
}
.index::after {
  content: "";
  width: clamp(3rem, 6vw, 6rem);
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}


.coords {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}





.h-xl {
  font-size: var(--fs-2xl);
  line-height: 0.98;
  letter-spacing: var(--track-tight);
  font-weight: 600;
  text-transform: uppercase;
}
.h-lg {
  font-size: var(--fs-xl);
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-weight: 500;
}
.h-md { font-size: var(--fs-lg); line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; }

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.muted { color: var(--text-muted); }
.measure { max-width: 62ch; }



/* ---------------------------------------------------------------------
   5. Buttons & links
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--space-blue);
  --btn-fg: var(--space-white);
  --btn-bd: var(--space-blue);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--space-blue-dark);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-med) var(--ease-out);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn-arrow { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(6px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--space-charcoal); --btn-bd: var(--space-charcoal); }
.btn--ghost::before { background: var(--space-charcoal); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--space-white); }

.btn--light { --btn-bg: var(--space-white); --btn-fg: var(--space-blue-dark); --btn-bd: var(--space-white); }
.btn--light::before { background: var(--space-dark); }
.btn--light:hover, .btn--light:focus-visible { color: var(--space-white); border-color: var(--space-dark); }

.btn--sm { min-height: 2.75rem; padding: 0.65rem 1.25rem; font-size: var(--fs-micro); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out), color var(--t-fast);
}
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; color: var(--space-blue); }
.link-arrow .btn-arrow { color: var(--space-blue); }
.link-arrow:hover .btn-arrow { transform: translateX(6px); }


.text-link {
  color: var(--space-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.text-link:hover { color: var(--space-blue-dark); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------------
   6. Skip link, progress bar
   --------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 1000;
  padding: 0.875rem 1.25rem;
  background: var(--space-blue);
  color: var(--space-white);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--space-blue);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

/* ---------------------------------------------------------------------
   7. Header & navigation
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              height var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  height: 68px;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(255, 255, 255, 0.98); backdrop-filter: saturate(1.4) blur(14px); }
}


.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--space-charcoal);
  margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.brand-sub {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.primary-nav ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); list-style: none; }
.primary-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--space-charcoal);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--space-blue);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-med) var(--ease-out);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.primary-nav a[aria-current="page"] { color: var(--space-blue); }
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0 0.5rem 0.5rem;
  background: none;
  border: 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-toggle-icon { position: relative; width: 28px; height: 10px; }
.menu-toggle-icon i {
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out), width var(--t-med) var(--ease-out);
}
.menu-toggle-icon i:first-child { top: 0; }
.menu-toggle-icon i:last-child { top: 8px; width: 70%; left: auto; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child { top: 4px; width: 100%; transform: rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--space-white);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease-in-out);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-list { list-style: none; border-top: 1px solid var(--line); }
.mobile-menu-list li { border-bottom: 1px solid var(--line); }
.mobile-menu-list a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 0;
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), color var(--t-fast);
}
.mobile-menu.is-open .mobile-menu-list a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu-list li:nth-child(2) a { transition-delay: 60ms; }
.mobile-menu.is-open .mobile-menu-list li:nth-child(3) a { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu-list li:nth-child(4) a { transition-delay: 180ms; }
.mobile-menu.is-open .mobile-menu-list li:nth-child(5) a { transition-delay: 240ms; }
.mobile-menu-list a span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--space-blue);
}
.mobile-menu-list a[aria-current="page"] { color: var(--space-blue); }
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  font-size: var(--fs-sm);
}
.mobile-menu-foot a { text-decoration: none; }
.mobile-menu-foot .label { display: flex; margin-bottom: 0.5rem; }
.mobile-menu-foot div a { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; }
.mobile-menu-foot .btn { grid-column: 1 / -1; }

body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   8. Media treatments
   --------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--space-light-grey);
}
/* Crisp 1px edge on every image frame so pale photography never melts into
   the page. Drawn as an inset shadow so it never changes layout. */
.media::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow: inset 0 0 0 1px var(--space-edge);
  pointer-events: none;
}

.media img, .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Aspect ratios */








/* ---------------------------------------------------------------------
   9. Reveal & motion system (only active when JS is present)
   --------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="image"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-reveal) var(--ease-in-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal="image"] img,
.js [data-reveal="image"] video { transform: scale(1.12); transition: transform 2200ms var(--ease-out); }
.js [data-reveal="image"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="image"].is-in img,
.js [data-reveal="image"].is-in video { transform: scale(1); }

.js [data-reveal="mask"] { opacity: 1; transform: none; }
.js [data-reveal="mask"] .line-mask:nth-child(2) > span { transition-delay: 140ms; }

.js [data-reveal="line"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1600ms var(--ease-in-out);
}
.js [data-reveal="line"].is-in { transform: scaleX(1); }

.js .index[data-reveal]::after { transform: scaleX(0); transition: transform 1200ms var(--ease-in-out) 200ms; }
.js .index[data-reveal].is-in::after { transform: scaleX(1); }




/* Line-mask text reveal */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line-mask > span { display: block; }
.js .line-mask > span { transform: translate3d(0, 105%, 0); transition: transform 1200ms var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .is-in .line-mask > span,
.js .line-mask.is-in > span { transform: none; }

/* ---------------------------------------------------------------------
   10. HOME — Hero
   --------------------------------------------------------------------- */

.hero-grid-lines {
  /* faint architectural column lines */
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(21, 25, 29, 0.055) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}






.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
















@keyframes scrollCue { to { top: 100%; } }







/* Hero load sequence */



















/* ---------------------------------------------------------------------
   11. HOME — 30 years
   --------------------------------------------------------------------- */
.years {
  position: relative;
  overflow: hidden;
}



















/* ---------------------------------------------------------------------
   12. Section heads
   --------------------------------------------------------------------- */
.section-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--space-charcoal);
}
/* end ticks on the section rule, like a dimension line */
.section-head::before, .section-head::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px; height: 9px;
  background: var(--space-charcoal);
}
.section-head::before { left: 0; }
.section-head::after { right: 0; }
.section-head-title { grid-column: 1 / span 8; }
.section-head-title .index { margin-bottom: 1.5rem; }
.section-head-aside { grid-column: 9 / -1; color: var(--text-muted); }
.section-head-aside p { margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------------
   13. Editorial service rows (home + services page)
   --------------------------------------------------------------------- */














/* ---------------------------------------------------------------------
   14. Project grid (featured + portfolio) — asymmetric editorial rhythm
   --------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(3.5rem, 6vw, 7rem);
}





























/* Filtering animation */



.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: 1rem;
  justify-items: start;
  background: var(--space-white);
}
.empty-state h3 { font-size: var(--fs-lg); }
.empty-state p { color: var(--text-muted); max-width: 60ch; margin: 0; }

.skeleton {
  background: linear-gradient(90deg, var(--space-light-grey) 0%, #f1f3f5 50%, var(--space-light-grey) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }




/* ---------------------------------------------------------------------
   15. Design approach (interactive)
   --------------------------------------------------------------------- */





















/* ---------------------------------------------------------------------
   16. Offices / locations
   --------------------------------------------------------------------- */
.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--space-charcoal);
}
.office {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3.5rem) clamp(2rem, 4vw, 3.5rem) 0;
  display: grid;
  gap: 2rem;
  align-content: start;
  position: relative;
}
.office + .office {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 3.5rem);
}


.office address { font-size: var(--fs-md); line-height: 1.6; max-width: 34ch; }





/* ---------------------------------------------------------------------
   17. Final CTA (blue)
   --------------------------------------------------------------------- */











/* ---------------------------------------------------------------------
   18. Page hero (inner pages)
   --------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 8rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
  background: var(--space-off-white);
  overflow: hidden;
}
.page-hero .hero-grid-lines { opacity: 0.8; }
.page-hero-inner { position: relative; }
.page-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.page-hero-title {
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.034em;
  font-weight: 600;
  text-transform: uppercase;
}
.page-hero-title .muted { color: var(--space-grey); font-weight: 300; }
.page-hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.page-hero-foot .lead { grid-column: 5 / -1; margin: 0; }
.page-hero-foot .label { grid-column: 1 / span 4; align-self: start; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; list-style: none; font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--space-grey); }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--space-blue); }
.breadcrumb [aria-current="page"] { color: var(--space-charcoal); }

/* ---------------------------------------------------------------------
   19. About page
   --------------------------------------------------------------------- */
.split { align-items: start; row-gap: 2rem; }




.principal {
  background: var(--space-white);
  border-top: 1px solid var(--space-charcoal);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}




















.faq { border-top: 1px solid var(--space-charcoal); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.5rem 0;
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--space-blue); }
.faq-item summary .plus { width: 14px; height: 14px; position: relative; align-self: center; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor;
  transition: transform var(--t-med) var(--ease-out);
}
.faq-item summary .plus::after { transform: rotate(90deg); }
.faq-item[open] summary .plus::after { transform: rotate(0); }
.faq-item summary:hover { color: var(--space-blue); }
.faq-answer { padding: 0 0 1.75rem 4.5rem; color: var(--text-muted); max-width: 70ch; }
.faq-answer p:last-child { margin: 0; }

/* ---------------------------------------------------------------------
   20. Services page
   --------------------------------------------------------------------- */


















.process {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  counter-reset: step;
  margin-top: clamp(2rem, 4vw, 4rem);
}
.process li {
  position: relative;
  padding: 2.25rem 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.process li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -0.6rem; left: 0;
  padding-right: 0.75rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--space-blue);
}
.section--alt .process li::before { background: var(--bg-alt); }
.process h3 { font-size: var(--fs-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.process p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }











/* ---------------------------------------------------------------------
   21. Portfolio page tools (filters + search)
   --------------------------------------------------------------------- */



.filters {
  display: flex;
  gap: 0.25rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  list-style: none;
  padding-block: 0.25rem;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-btn sup { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0; margin-left: 0.2rem; }
.filter-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--space-blue);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.filter-btn:hover { color: var(--space-charcoal); }
.filter-btn[aria-pressed="true"] { color: var(--space-blue); }
.filter-btn[aria-pressed="true"]::after { transform: scaleX(1); }

.search {
  position: relative;
  flex: 0 1 18rem;
  display: flex;
  align-items: center;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0 0.5rem 1.75rem;
  border: 0;
  border-bottom: 1px solid var(--space-charcoal);
  background: transparent;
  font-size: var(--fs-sm);
  border-radius: 0;
}
.search input::placeholder { color: var(--space-grey); }
.search svg { position: absolute; left: 0; width: 16px; height: 16px; color: var(--space-grey); pointer-events: none; }




/* ---------------------------------------------------------------------
   22. Project detail
   --------------------------------------------------------------------- */























.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
  list-style: none;
}
.gallery li { grid-column: span 6; }
.gallery li:nth-child(3n + 1) { grid-column: 1 / -1; }




.gallery figcaption{
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 0.75rem; margin-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--text-muted);
}











.drawings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); list-style: none; }





/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(13, 17, 21, 0.97);
  color: var(--space-white);
}
.lightbox::backdrop { background: rgba(13, 17, 21, 0.9); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); gap: 1rem; }
.lightbox-count { font-family: var(--font-mono); font-size: var(--fs-xs); }
.lightbox-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; }
.lightbox-caption { font-size: var(--fs-sm); color: rgba(255,255,255,0.8); margin: 0; }
.icon-btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.icon-btn:hover { border-color: var(--space-blue-light); color: var(--space-blue-light); }



/* ---------------------------------------------------------------------
   23. Contact page
   --------------------------------------------------------------------- */




















/* ---------------------------------------------------------------------
   24. Form system
   --------------------------------------------------------------------- */
.form { display: grid; gap: 1.75rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.field { display: grid; gap: 0.5rem; position: relative; }
.field label{
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field .req { color: var(--space-blue); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--space-charcoal);
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-md);
  transition: border-color var(--t-fast);
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--space-charcoal) 50%), linear-gradient(135deg, var(--space-charcoal) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--space-charcoal); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--space-blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--space-blue); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom: 2px solid var(--danger); }
.field-hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field-error {
  display: flex; gap: 0.4rem; align-items: baseline;
  font-size: var(--fs-sm); color: var(--danger); font-weight: 500;
}
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 1rem; height: 1rem; flex: none; border: 1px solid currentColor; font-size: 0.625rem; font-weight: 700; }
.field-error:empty { display: none; }
.char-count { justify-self: end; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.875rem; align-items: start; font-size: var(--fs-sm); }
.check input {
  appearance: none;
  width: 1.5rem; height: 1.5rem;
  flex: none;
  margin: 0;
  border: 1px solid var(--space-charcoal);
  background: var(--space-white);
  display: grid; place-items: center;
  cursor: pointer;
}
.check input::after { content: ""; width: 0.7rem; height: 0.7rem; background: var(--space-blue); transform: scale(0); transition: transform var(--t-fast) var(--ease-out); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--space-blue); outline-offset: 3px; }
.check input[aria-invalid="true"] { border: 2px solid var(--danger); }

.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.alert {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--danger);
  background: #FCF1F0;
  font-size: var(--fs-sm);
}
.alert:focus { outline: 2px solid var(--space-blue); outline-offset: 2px; }
.alert h2, .alert h3 { font-size: var(--fs-base); font-weight: 600; }
.alert ul { padding-left: 1.25rem; }
.alert a { color: var(--danger); }
.alert--success { border-left-color: var(--success); background: #EEF6F1; }

.form-success {
  display: grid; gap: 1.5rem; justify-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--space-blue);
}
.form-success h2 { font-size: var(--fs-2xl); text-transform: uppercase; letter-spacing: -0.026em; line-height: 0.95; font-weight: 600; }
.form-success h2:focus { outline: none; }


@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   25. Legal / long-form pages
   --------------------------------------------------------------------- */
.legal { padding-block: clamp(3rem, 6vw, 6rem) var(--section-y); }
.legal-grid { align-items: start; row-gap: 2rem; }
.legal-toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 2rem); font-size: var(--fs-sm); }
.legal-toc ol { list-style: none; border-top: 1px solid var(--line); counter-reset: toc; }
.legal-toc li { border-bottom: 1px solid var(--line); counter-increment: toc; }
.legal-toc a { display: flex; gap: 0.75rem; padding: 0.6rem 0; text-decoration: none; color: var(--text-muted); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--space-blue); }
.legal-toc a:hover { color: var(--space-charcoal); }
.legal-body { grid-column: 5 / span 7; }
.legal-body h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 3.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: var(--fs-md); font-weight: 600; margin: 2rem 0 0.75rem; }
.legal-body p, .legal-body li { color: #22272C; line-height: 1.75; }
.legal-body ul, .legal-body ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.legal-body li + li { margin-top: 0.4rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: var(--fs-sm); }
.legal-body th, .legal-body td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.legal-notice {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1rem 1.25rem;
  border: 1px solid var(--space-blue);
  color: var(--space-blue-dark);
  font-size: var(--fs-sm);
  margin-bottom: 2.5rem;
}
.legal-notice strong { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.legal-updated { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------------------------------------------------------------------
   26. 404
   --------------------------------------------------------------------- */
.nf {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-top: var(--header-h);
  background: var(--space-off-white);
  position: relative;
  overflow: hidden;
}
.nf-code {
  position: absolute;
  right: -0.05em; bottom: -0.18em;
  font-size: clamp(12rem, 4rem + 30vw, 36rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--space-border);
  pointer-events: none;
  user-select: none;
}
.nf-inner { position: relative; display: grid; gap: 2rem; justify-items: start; }
.nf-title {
  font-size: clamp(3rem, 1.4rem + 7vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.034em;
  font-weight: 600;
  text-transform: uppercase;
}
.nf-title .muted { color: var(--space-grey); font-weight: 300; }

/* ---------------------------------------------------------------------
   27. Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--space-dark);
  color: rgba(255, 255, 255, 0.92);
  padding-top: clamp(4rem, 8vw, 7rem);
  font-size: var(--fs-sm);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 3rem;
}
.footer-brand { grid-column: span 3; }
.footer-brand .brand { color: var(--space-white); }
.footer-brand .brand-sub { color: rgba(255,255,255,0.82); }
.footer-brand p { margin-top: 1.75rem; max-width: 30ch; }
.footer-col { grid-column: span 3; }
.footer-col--office { grid-column: span 3; }
.footer-col h2 {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--space-blue-light);
  margin-bottom: 1.25rem;
}
.footer-col address { margin-bottom: 1rem; line-height: 1.7; }
.footer-col ul { list-style: none; display: grid; gap: 0.15rem; }
.footer-col ul a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a { color: rgba(255, 255, 255, 0.95); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--space-white); text-decoration: underline; }
.footer-contacts a { display: block; width: fit-content; padding-block: 0.1rem; }







.site-footer .btn--light { color: var(--space-blue-dark); text-decoration: none; }
.site-footer .btn--light:hover, .site-footer .btn--light:focus-visible { color: var(--space-white); text-decoration: none; }
.footer-top-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 24px;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-top-link span { color: var(--space-blue-light); transition: transform var(--t-med) var(--ease-out); }
.footer-top-link:hover span { transform: translateY(-3px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.86);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }
.link-btn {
  background: none; border: 0; padding: 0;
  color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 0.2em;
  min-height: 24px;
}
.site-footer .link-btn { color: rgba(255,255,255,0.88); text-decoration: none; }
.site-footer .link-btn:hover { color: var(--space-white); text-decoration: underline; }

/* ---------------------------------------------------------------------
   28. Cookie preferences panel
   --------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: var(--gutter); right: var(--gutter); bottom: 1rem;
  z-index: 200;
  max-width: 44rem;
  margin-left: auto;
  background: var(--space-white);
  border: 1px solid var(--space-charcoal);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  box-shadow: 6px 6px 0 var(--space-blue); /* hard offset, no blur */
}
.cookie-banner h2 { font-size: var(--fs-base); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.cookie-banner p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-dialog {
  width: min(40rem, calc(100vw - 2rem));
  border: 1px solid var(--space-charcoal);
  padding: 0;
  background: var(--space-white);
  color: var(--text);
}
.cookie-dialog::backdrop { background: rgba(13, 17, 21, 0.55); }
.cookie-dialog-inner { padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; }
.cookie-dialog h2 { font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: -0.01em; font-weight: 600; }
.cookie-cat { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: start; }
.cookie-cat h3 { font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.cookie-cat p { grid-column: 1 / -1; margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.cookie-cat .state { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; }
.switch input { appearance: none; width: 2.75rem; height: 1.5rem; border: 1px solid var(--space-charcoal); background: var(--space-white); position: relative; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1rem; height: 1rem; background: var(--space-charcoal); transition: transform var(--t-fast) var(--ease-out); }
.switch input:checked { background: var(--space-blue); border-color: var(--space-blue); }
.switch input:checked::after { background: var(--space-white); transform: translateX(1.25rem); }
.switch input:disabled { opacity: 0.6; cursor: not-allowed; }
.switch input:focus-visible { outline: 2px solid var(--space-blue); outline-offset: 3px; }

/* ---------------------------------------------------------------------
   29. Cursor follower (fine pointers only, decorative)
   --------------------------------------------------------------------- */



/* ---------------------------------------------------------------------
   30. Page transition veil
   --------------------------------------------------------------------- */



/* Utility spacers */
     
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--s-4); }  .mb-6 { margin-bottom: var(--s-6); } 



/* ---------------------------------------------------------------------
   31. Additions: placeholders, video toggle, inline CTA, contact header
   --------------------------------------------------------------------- */
.project-card-placeholder {
  width: 100%; height: 100%;
  background:
    linear-gradient(to right, rgba(21,25,29,0.06) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--space-light-grey);
}




.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--space-charcoal);
}
/* ---------------------------------------------------------------------
   32. Sharpness pass: registration corners, crisper rules
   --------------------------------------------------------------------- */
/* Blue architectural corner marks on project images (hover / focus) */


/* Always-on (subtle charcoal) corners on hero & service imagery */

/* Card rule under images: charcoal instead of pale grey */

/* Solid header gets a firm bottom edge */
.site-header.is-solid { border-bottom-color: var(--space-charcoal); }
/* Hero column lines slightly crisper */
.hero-grid-lines { background-image: linear-gradient(to right, rgba(21, 25, 29, 0.075) 1px, transparent 1px); }
/* Footer rules: clearer on dark */
 .footer-bottom { border-color: rgba(255, 255, 255, 0.2); }
/* Filter bar & portfolio tools: firm rule */

/* Crisper text rendering for large display type */
 .h-xl, .page-hero-title, .nf-title{
  text-rendering: geometricPrecision;
  font-kerning: normal;
}

/* Contact page: the left column is dark, so the header starts solid. */
body[data-page="contact"] .site-header { background: var(--space-white); border-bottom-color: var(--line); }


/* Inter Tight is already tightly fitted: large display type needs only a
   light negative track, otherwise letters touch at big sizes. */
 .page-hero-title,
.nf-title, .h-xl{
  letter-spacing: -0.012em;
}

 .h-lg { letter-spacing: -0.008em; }

/* ---------------------------------------------------------------------
   33. Home · Selected work — structured grid
   Lead project (7 cols × 2 rows) + two stacked side projects (5 cols),
   then equal rows of thirds / halves. Every card shares one meta structure,
   so titles and "View project" links line up across each row.
   --------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(2.5rem, 4vw, 4rem);
}







/* lead card stretches to the exact height of the two side cards */







/* one consistent meta block: number | title | category, then location | view */






.work-grid .empty-state { grid-column: 1 / -1; }
.work-grid .skeleton { min-height: 14rem; }

/* Mirrored layout blocks (every second block of six): lead on the right.
   `dense` lets the two side cards fill the rows beside the lead. */
.work-grid { grid-auto-flow: row dense; }





/* ---------------------------------------------------------------------
   34. Portfolio tools: grouped filters (Discipline / Type) + search
   --------------------------------------------------------------------- */

.filters {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  overflow: visible;
}



.search { flex: none; }



/* Filter bar as a two-row table: [All] | Discipline row / Type row */
.filters {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 0;
  align-items: center;
}




/* ---------------------------------------------------------------------
   35. Image fitting for renders & plans (see SD.utils.fitClass)
   Tall tower renders are shown whole on a sky gradient that matches the
   backdrop baked into the image; plans are shown whole on white.
   --------------------------------------------------------------------- */
.fit-sky { background: linear-gradient(180deg, #D6E0E9 0%, #F2F4F6 100%); }
.fit-sky img { object-fit: contain; object-position: center bottom; }
.fit-white { background: #FFFFFF; }
.fit-white img { object-fit: contain; }




/* ---------------------------------------------------------------------
   36. Portfolio · project record tables
   --------------------------------------------------------------------- */
.record-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.record-grid > :first-child { grid-row: span 2; }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--space-charcoal); }
.record-head .h-md { text-transform: uppercase; font-weight: 600; letter-spacing: 0.01em; font-size: var(--fs-md); }
.record-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.record-table th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.record-table td { padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--space-border); vertical-align: baseline; }
.record-table td:last-child { text-align: right; color: var(--text-muted); white-space: nowrap; padding-right: 0; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.record-table .rec-no { width: 2.5rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--space-blue); }
.record-table tr:hover td { background: var(--space-white); }
.record-note { margin: 1rem 0 0; font-size: var(--fs-sm); font-weight: 600; }

/* ---------------------------------------------------------------------
   37. Home · figures, process steps, empanelment
   --------------------------------------------------------------------- */























/* ---------------------------------------------------------------------
   38. About · why, team, consultants, developers
   --------------------------------------------------------------------- */

















.clients { margin-top: clamp(3rem, 5vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--space-charcoal); }



/* Project detail · specification list */














/* lead card: the frame sets the height (from the two side cards), never the image */



/* ---------------------------------------------------------------------
   39. Quick contact: three always-visible round buttons
   WhatsApp, Call and Email sit stacked bottom-right. On devices with a
   mouse, each circle expands into a labelled pill on hover/focus.
   --------------------------------------------------------------------- */
.contact-fab {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: calc(clamp(1rem, 2vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 0.6rem;
  animation: fabIn 800ms var(--ease-out) 1.2s both;
}
@keyframes fabIn { from { opacity: 0; transform: translateY(18px); } }
.fab-title {
  margin: 0 0 0.15rem;
  padding: 0.35rem 0.7rem;
  background: var(--space-charcoal);
  color: var(--space-white);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fab-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; justify-items: end; }
.fab-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 3.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--space-white);
  color: var(--space-charcoal);
  text-decoration: none;
  border: 1px solid var(--space-border);
  box-shadow: 0 14px 30px -14px rgba(13, 17, 21, 0.55);
  transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.fab-text {
  display: grid;
  text-align: right;
  line-height: 1.2;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 450ms var(--ease-out), opacity 250ms var(--ease-out), padding 450ms var(--ease-out);
}
.fab-text strong { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; }
.fab-text > span { font-size: var(--fs-xs); color: var(--text-muted); }
.fab-item:hover, .fab-item:focus-visible { border-color: var(--space-charcoal); box-shadow: 0 18px 36px -16px rgba(13, 17, 21, 0.65); transform: translateX(-2px); }
.fab-item:hover .fab-text, .fab-item:focus-visible .fab-text { max-width: 16rem; opacity: 1; padding: 0 0.8rem 0 0.9rem; }
.fab-item:focus-visible { outline: 2px solid var(--space-blue); outline-offset: 3px; }
.fab-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--space-white);
  flex: none;
  transition: transform var(--t-med) var(--ease-out);
}
.fab-item:hover .fab-icon { transform: rotate(-8deg) scale(1.05); }
.fab-icon svg {
  width: 1.3rem; height: 1.3rem;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.fab-icon svg .fill { fill: currentColor; stroke: none; }
.fab-item--wa .fab-icon { background: #16934A; }   /* WhatsApp green, 3.96:1 with white icon */
.fab-item--call .fab-icon { background: var(--space-charcoal); }
.fab-item--email .fab-icon { background: var(--space-blue); }
/* WhatsApp: a gentle attention ring, three times after load only */
.fab-item--wa .fab-icon { position: relative; }
.fab-item--wa .fab-icon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #16934A;
  opacity: 0;
  animation: fabRing 2.4s var(--ease-out) 2.4s 3;
  pointer-events: none;
}
@keyframes fabRing { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
/* keep the button from covering the last line of the footer */
.site-footer .footer-bottom { padding-right: 5.5rem; }
