/* ==========================================================================
   StayLabs — Design Tokens
   Swiss/editorial minimalism. Flat color only. No gradients/shadows/glass.
   ========================================================================== */
:root {
  /* Color tokens */
  --stay: #0B1220;      /* Ink — primary text, structure */
  --labs: #2563EB;      /* Labs Blue — single accent color */
  --paper: #FFFFFF;     /* background */

  --labs-050: #EFF4FF;
  --labs-100: #DBE6FE;
  --labs-300: #93B4FB;
  --labs-500: #3B82F6;
  --labs-600: #2563EB;
  --labs-700: #1D4FC4;
  --labs-900: #15398C;

  --neutral-025: #FAFAFB;
  --neutral-100: #E7E9EE;
  --neutral-300: #C4C9D4;
  --neutral-600: #5B6472;
  --neutral-800: #333B49;
  --neutral-900: #0B1220;

  /* Dark-theme surfaces & text — Ink is now the page background.
     Kept flat (no gradients/shadows); these are the darker rungs the brand's
     Ink color needs so panels/cards read as distinct surfaces on a dark page. */
  --ink-deep: #070B14;     /* footer / deepest ground — always dark, not theme-reactive */
  --ink: #0B1220;          /* page background — flips in [data-theme="light"] */
  --panel: #121B2E;        /* raised/alternating section background — theme-reactive */
  --line: #232C3D;         /* default hairline border — theme-reactive */
  --line-strong: #3A4457;  /* emphasis border / hover state — theme-reactive */
  --text-hi: #F7F8FA;      /* headings, high-emphasis text — theme-reactive */
  --text-body: #C4C9D4;    /* body copy — theme-reactive (= neutral-300 in dark) */
  --text-muted: #99A2B3;   /* captions, labels, secondary text — theme-reactive */

  /* Theme-reactive UI tokens (night = default, day = [data-theme="light"] below) */
  --header-bg: rgba(11, 18, 32, 0.88);
  --logo-filter: brightness(0) invert(1);
  --link: var(--labs-500);
  --link-hover: var(--labs-300);
  --btn-primary-hover-bg: var(--paper);
  --btn-primary-hover-fg: var(--stay);

  /* Type scale — base values from brand guide (used for body copy & UI).
     Display/H1 are pushed far past the base spec on purpose: bold, poster-scale
     headline treatment, clamped fluidly by viewport. */
  --font-display-weight: 700;
  --font-display-size: 40px;
  --font-display-line: 48px;

  --font-h1-weight: 600;
  --font-h1-size: 30px;
  --font-h1-line: 38px;

  --font-h2-weight: 600;
  --font-h2-size: 22px;
  --font-h2-line: 30px;

  --font-h3-weight: 500;
  --font-h3-size: 17px;
  --font-h3-line: 26px;

  --font-body-weight: 400;
  --font-body-size: 16px;
  --font-body-line: 26px;

  --font-caption-weight: 400;
  --font-caption-size: 13px;
  --font-caption-line: 18px;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;

  /* Spacing scale (8px base unit) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;
  --space-10: 160px;

  /* Structure */
  --radius: 2px;
  --border: 1px solid var(--line);
  --border-bold: 2px solid var(--text-hi);
  --container-max: 1280px;
  --transition-fast: 200ms cubic-bezier(0.2, 0, 0.2, 1);
  --transition-med: 320ms cubic-bezier(0.2, 0, 0.2, 1);
  --transition-bold: 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Day theme — restores the original Paper-dominant palette.
   Applied via [data-theme="light"] on <html>, toggled by the theme switch.
   Footer, CTA band, and the blue stats band stay fixed-dark/fixed-blue in
   both themes by design (see their rules below) — only the reactive tokens
   below need overriding here.
   ========================================================================== */
:root[data-theme="light"] {
  --ink: #FFFFFF;
  --panel: #FAFAFB;
  --line: #E7E9EE;
  --line-strong: #C4C9D4;
  --text-hi: #0B1220;
  --text-body: #333B49;
  --text-muted: #5B6472;

  --header-bg: rgba(255, 255, 255, 0.92);
  --logo-filter: none;
  --link: var(--labs-600);
  --link-hover: var(--labs-700);
  --btn-primary-hover-bg: var(--labs-700);
  --btn-primary-hover-fg: var(--paper);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Fonts — preloaded in <head>, swap while loading
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: var(--font-ui);
  font-weight: var(--font-body-weight);
  font-size: var(--font-body-size);
  line-height: var(--font-body-line);
  color: var(--text-body);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, .h1, h2, .h2, h3, .h3, .display { color: var(--text-hi); }
h1, .h1 { font-weight: 700; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
h2, .h2 { font-weight: var(--font-h2-weight); font-size: var(--font-h2-size); line-height: var(--font-h2-line); }
h3, .h3 { font-weight: var(--font-h3-weight); font-size: var(--font-h3-size); line-height: var(--font-h3-line); }
.display {
  font-weight: 700;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.caption, small { font-size: var(--font-caption-size); line-height: var(--font-caption-line); color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-weight: 400; }

p { color: var(--text-body); }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--labs-600);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--labs-100); color: var(--stay); }

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 900px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-6); }
.section--dense { padding-block: var(--space-5); background: var(--panel); border-block: var(--border); }

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--labs-600);
  color: var(--paper);
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-3); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 18px 32px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary { background: var(--labs-600); color: var(--paper); border-color: var(--labs-600); }
.btn--primary:hover { background: var(--btn-primary-hover-bg); border-color: var(--btn-primary-hover-bg); color: var(--btn-primary-hover-fg); transform: translateY(-3px); }

.btn--secondary { background: transparent; color: var(--text-hi); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--labs-600); border-color: var(--labs-600); color: var(--paper); transform: translateY(-3px); }

.btn--ghost { background: transparent; color: var(--link); padding-inline: 4px; border: none; font-weight: 500; }
.btn--ghost:hover { color: var(--link-hover); gap: var(--space-4); }

/* Fixed (non-theme-reactive): only ever used on the CTA band, which is a
   permanently dark surface in both themes. */
.btn--inverted { background: var(--paper); color: var(--stay); border-color: var(--paper); }
.btn--inverted:hover { background: var(--labs-600); border-color: var(--labs-600); color: var(--paper); transform: translateY(-3px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 28px; width: auto; }
/* Header sits on the dark page background; recolor the ink wordmark to white
   for legibility rather than swapping in the inverted lockup (which bakes in
   an opaque background panel that would break the header's blur effect). */
.site-header .site-logo img { filter: var(--logo-filter); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: var(--space-6); }
.nav-desktop a {
  color: var(--text-hi);
  font-weight: 600;
  font-size: 15px;
  padding-block: 6px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}
.nav-desktop a:hover { color: var(--labs-600); border-color: var(--labs-300); transform: translateY(-1px); }
.nav-desktop a[aria-current="page"] { color: var(--labs-600); border-color: var(--labs-600); }

.nav-actions { display: flex; align-items: center; gap: var(--space-4); }

/* ==========================================================================
   Theme toggle (night default / day = [data-theme="light"])
   ========================================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-hi);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.theme-toggle:hover { border-color: var(--labs-600); color: var(--labs-600); }
.theme-toggle__icon { width: 18px; height: 18px; }
.theme-toggle__icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-hi);
  position: relative;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--ink);
  z-index: 99;
  padding: var(--space-5) var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  overflow-y: auto;
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-mobile a {
  display: block;
  color: var(--text-hi);
  padding: var(--space-3) var(--space-2);
  font-size: 20px;
  font-weight: 500;
  border-bottom: var(--border);
}
.nav-mobile a[aria-current="page"] { color: var(--labs-500); }
.nav-mobile .btn { margin-top: var(--space-4); width: 100%; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  padding-block: var(--space-4);
  border-bottom: var(--border);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-1); font-size: 14px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--line-strong); margin-left: var(--space-1); }
.breadcrumbs a:hover { color: var(--labs-500); }
.breadcrumbs [aria-current="page"] { color: var(--text-hi); font-weight: 500; }

/* ==========================================================================
   Hero — full-bleed, oversized, asymmetric
   ========================================================================== */
.hero {
  padding-block: var(--space-9) var(--space-8);
  position: relative;
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--labs-600);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--labs-600);
}
.hero__grid { display: grid; gap: var(--space-6); }
.hero__headline { max-width: 14ch; }
.hero__headline .accent { color: var(--labs-500); }
.hero__meta { display: flex; flex-direction: column; gap: var(--space-6); }
.hero__sub {
  max-width: 44ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--text-body);
  padding-left: var(--space-5);
  border-left: 3px solid var(--labs-600);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__block {
  position: absolute;
  background: var(--labs-600);
  z-index: -1;
}
.hero__block--a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -18vw; right: -14vw; }

/* Full-bleed blue section — Labs Blue as a bold graphic device, not decoration */
.section--blue {
  background: var(--labs-600);
  color: var(--paper);
  padding-block: var(--space-8);
}
.section--blue h2, .section--blue .h2, .section--blue h1, .section--blue .h1 { color: var(--paper); }
.section--blue p { color: var(--labs-050); }

/* ==========================================================================
   Geometric visual accents (no stock photography)
   ========================================================================== */
.geo {
  position: relative;
  background: var(--panel);
  border: var(--border);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.geo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.geo::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 40%;
  background: var(--labs-600);
  top: 12%;
  right: 12%;
  transition: transform var(--transition-bold);
}
.geo--b::after { border-radius: 0; width: 2px; height: 70%; left: 20%; top: 15%; right: auto; background: var(--labs-600); }
.geo--b::before { background-image: none; }

/* ==========================================================================
   Outcome Pillars
   ========================================================================== */
.pillars {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .pillars .pillar:last-child { margin-top: var(--space-8); }
}
.pillar {
  border: var(--border-bold);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--transition-bold), background var(--transition-fast);
}
.pillar:hover { transform: translateY(-8px); }
.pillar__metric {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 56px);
  color: var(--labs-600);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pillar__metric-label { font-size: 13px; color: var(--text-muted); margin-top: var(--space-2); text-transform: uppercase; letter-spacing: 0.04em; }
.pillar__title { margin-top: var(--space-3); font-size: clamp(26px, 3vw, 32px); }
.pillar__desc { color: var(--text-body); font-size: 18px; }
.pillar__services { border-top: var(--border); padding-top: var(--space-5); margin-top: var(--space-2); display: flex; flex-direction: column; gap: var(--space-4); }
.pillar__service { display: flex; gap: var(--space-4); align-items: baseline; }
.pillar__service-index { font-family: var(--font-mono); font-size: 13px; color: var(--labs-500); min-width: 22px; font-weight: 500; }
.pillar__service-name { font-weight: 600; color: var(--text-hi); }
.pillar__service-desc { color: var(--text-muted); font-size: 15px; }

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: var(--border);
}
@media (min-width: 700px) { .logo-strip { grid-template-columns: repeat(4, 1fr); } }
.logo-strip__item {
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  min-height: 96px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.logo-strip__item:hover { background: var(--labs-600); color: var(--paper); }

/* ==========================================================================
   How it works — steps
   ========================================================================== */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.step { position: relative; padding-top: var(--space-5); border-top: 3px solid var(--line-strong); transition: border-color var(--transition-fast); }
.step:hover { border-color: var(--labs-600); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  color: var(--labs-300);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.step__title { margin-bottom: var(--space-2); font-size: 20px; }
.step__desc { color: var(--text-muted); font-size: 15px; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-left: 3px solid var(--paper); padding-left: var(--space-5); }
.stat__value { font-family: var(--font-mono); font-weight: 500; font-size: clamp(48px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1; }
.stat__label { color: var(--labs-050); margin-top: var(--space-2); font-size: 16px; }

/* Neutral (non-blue) variant, used when stats sit on a panel section */
.section--dense .stat { border-left-color: var(--labs-600); }
.section--dense .stat__value { color: var(--text-hi); }
.section--dense .stat__label { color: var(--text-muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */
/* Fixed dark band regardless of theme (matches the day theme's original
   design intent — a permanent contrast band, not a page-background panel). */
.cta-band {
  background: var(--stay);
  border-top: 4px solid var(--labs-600);
  color: var(--paper);
  padding-block: var(--space-9);
}
.cta-band h2, .cta-band .h2 { color: var(--paper); font-size: clamp(32px, 5vw, 48px); max-width: 14ch; }
.cta-band p { color: var(--neutral-300); font-size: 18px; margin-top: var(--space-3); }
.cta-band__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 800px) {
  .cta-band__row { flex-direction: row; align-items: center; }
}

/* ==========================================================================
   Cards (results/work) — no shadow, flat, bordered
   ========================================================================== */
.card-grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: var(--border-bold);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-bold), border-color var(--transition-fast);
}
.card:hover { border-color: var(--labs-600); transform: translateY(-10px); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card:hover .card__media.geo::after { transform: scale(1.15); }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__tag { font-family: var(--font-mono); font-size: 12px; color: var(--labs-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.card__title { margin: 0; }
.card__desc { color: var(--text-muted); font-size: 15px; flex: 1; }
.card__meta { display: flex; gap: var(--space-4); border-top: var(--border); padding-top: var(--space-4); margin-top: var(--space-2); }
.card__meta-item { font-size: 13px; }
.card__meta-value { font-family: var(--font-mono); font-weight: 500; font-size: 20px; color: var(--text-hi); display: block; }
.card__meta-label { color: var(--text-muted); }

/* ==========================================================================
   Services page — service list
   ========================================================================== */
.service-block {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-7);
  border-top: var(--border);
  transition: background var(--transition-fast);
}
.service-block:hover { background: var(--panel); }
@media (min-width: 900px) { .service-block { grid-template-columns: 1fr 1.4fr; gap: var(--space-6); padding-inline: var(--space-5); } }
.service-block__head { display: flex; flex-direction: column; gap: var(--space-2); }
.service-block__index { font-family: var(--font-mono); color: var(--line-strong); font-size: 40px; font-weight: 500; line-height: 1; }
.service-block__list { display: flex; flex-direction: column; gap: var(--space-3); }
.service-block__list li { padding-left: var(--space-4); position: relative; color: var(--text-body); }
.service-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 2px;
  background: var(--labs-600);
}

.pillar-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-bottom: 4px solid var(--text-hi);
  margin-bottom: var(--space-2);
}
.pillar-header .h1 { font-size: clamp(36px, 6vw, 56px); }
.pillar-header__metric {
  font-family: var(--font-mono);
  color: var(--labs-600);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Asymmetric two-column section intro: big index number beside heading */
.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1.6fr; align-items: start; gap: var(--space-4); }
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 500;
  color: var(--line-strong);
  line-height: 1;
}

/* ==========================================================================
   Team / About
   ========================================================================== */
.team-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card__photo { aspect-ratio: 1; background: var(--panel); border: var(--border); margin-bottom: var(--space-3); position: relative; overflow: hidden; }
.team-card__photo::after { content:''; position:absolute; inset:0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.team-card__name { font-weight: 600; color: var(--text-hi); }
.team-card__role { color: var(--text-muted); font-size: 14px; }

/* ==========================================================================
   Form (contact)
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.contact-layout { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 500; font-size: 14px; color: var(--text-hi); }
.field .required { color: var(--labs-500); }
.field input,
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--panel);
  color: var(--text-hi);
  transition: border-color var(--transition-fast);
}
.field input:focus,
.field textarea:focus { border-color: var(--labs-500); }
.field textarea { resize: vertical; min-height: 140px; }
.field__error { color: #B42318; font-size: 13px; display: none; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #B42318; }
.field.is-invalid .field__error { display: block; }

.form-status {
  padding: var(--space-3) var(--space-4);
  border: var(--border);
  font-size: 15px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--success { border-color: var(--labs-600); color: var(--labs-700); background: var(--labs-050); }
.form-status--error { border-color: #B42318; color: #B42318; background: #FEF3F2; }

.captcha-placeholder {
  border: 1px dashed var(--line-strong);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.map-embed {
  border: var(--border);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.contact-info { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info__item { border-top: var(--border); padding-top: var(--space-3); }
.contact-info__label { font-size: 13px; color: var(--text-muted); }
.contact-info__value { font-weight: 500; color: var(--text-hi); }

/* ==========================================================================
   Footer
   ========================================================================== */
/* Fixed dark band regardless of theme — same reasoning as .cta-band. */
.site-footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--neutral-800);
  color: var(--neutral-300);
  padding-block: var(--space-7) var(--space-5);
}
.site-footer a { color: var(--neutral-300); }
.site-footer a:hover { color: var(--paper); }
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--neutral-800);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand img { height: 24px; margin-bottom: var(--space-3); }
.footer-brand p { color: var(--neutral-600); max-width: 32ch; }
.footer-col__title { color: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-3); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-bottom {
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--neutral-600);
}
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom ul { display: flex; gap: var(--space-4); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--transition-bold), transform var(--transition-bold);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-8);
}
.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 500;
  color: var(--labs-500);
  line-height: 1;
}
