/* ==========================================================================
   Luminous Infrastructure & Services — design system
   Palette derived from the company's own presentation artwork:
   forest #183420 (dominant), sage #87B79D (secondary), mint #30BAA1 (accent).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Every colour gets its light-mode definition on bare :root first, so a page
   is never left with an undefined colour when no media query matches.
   -------------------------------------------------------------------------- */
:root {
  /* brand */
  --forest-900: #0c1a11;
  --forest-800: #102415;
  --forest: #183420;
  --forest-600: #245032;
  --forest-500: #326a43;
  --sage: #87b79d;
  --sage-600: #5c8f74;
  --sage-700: #3f6b55; /* AA on white for body-size text */
  --mint: #30baa1;
  --mint-700: #0f7565; /* AA on white */

  /* neutrals */
  --ink: #14201a;
  --ink-2: #3d4a43;
  --ink-3: #66756c;
  --line: #e2e8e4;
  --line-2: #d0dad4;
  --surface: #ffffff;
  --surface-2: #f6f9f7;
  --surface-3: #eef3f0;

  /* semantic */
  --bg: var(--surface);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-faint: var(--ink-3);
  --border: var(--line);
  --card: var(--surface);
  --card-2: var(--surface-2);
  --accent: var(--forest);
  --accent-text: var(--sage-700);
  --link: var(--mint-700);
  --focus: var(--mint-700);

  /* dark bands (hero/footer) keep the same values in both themes */
  --band-bg: var(--forest);
  --band-bg-deep: var(--forest-900);
  --band-text: #f2f7f4;
  --band-muted: #b9cdc2;
  --band-accent: var(--sage);
  --band-line: rgba(135, 183, 157, 0.28);

  /* type */
  --font-display: "Cormorant Garamond", Cambria, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 4rem);
  --step-5: clamp(2.8rem, 1.7rem + 4.8vw, 5.5rem);

  /* space */
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6rem);

  /* shell */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 17, 0.06), 0 2px 8px rgba(12, 26, 17, 0.04);
  --shadow: 0 4px 12px rgba(12, 26, 17, 0.08), 0 12px 32px rgba(12, 26, 17, 0.07);
  --shadow-lg: 0 12px 28px rgba(12, 26, 17, 0.12), 0 32px 64px rgba(12, 26, 17, 0.1);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark theme — system preference, unless the user explicitly chose light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1410;
    --text: #e8f0ea;
    --text-muted: #b0c0b6;
    --text-faint: #8a9a90;
    --border: #223029;
    --card: #111c16;
    --card-2: #16241d;
    --surface-2: #101a15;
    --surface-3: #16241d;
    --accent: var(--sage);
    --accent-text: var(--sage);
    --link: var(--mint);
    --focus: var(--mint);
    --band-bg: #0a130e;
    --band-bg-deep: #060d09;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
  }
}

/* Dark theme — explicit toggle, wins over the system preference. */
:root[data-theme="dark"] {
  --bg: #0b1410;
  --text: #e8f0ea;
  --text-muted: #b0c0b6;
  --text-faint: #8a9a90;
  --border: #223029;
  --card: #111c16;
  --card-2: #16241d;
  --surface-2: #101a15;
  --surface-3: #16241d;
  --accent: var(--sage);
  --accent-text: var(--sage);
  --link: var(--mint);
  --focus: var(--mint);
  --band-bg: #0a130e;
  --band-bg-deep: #060d09;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-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(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video { max-width: 100%; display: block; }

/* Must outrank component rules that set their own display (.project is
   display:flex, .btn is inline-flex). Without !important those beat the UA
   stylesheet's [hidden] rule and filtered-out cards stay on screen. */
[hidden] { display: none !important; }

img { height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s-3);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 var(--s-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--s-3); padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }

::selection { background: var(--sage); color: var(--forest-900); }

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 1000;
  background: var(--forest);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: var(--s-3); }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 780px; }
.container--wide { max-width: 1380px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--alt { background: var(--surface-2); }

/* The dark half of the "sandwich": forest bands top and bottom. */
.band {
  background: var(--band-bg);
  color: var(--band-text);
  position: relative;
  isolation: isolate;
}
.band h1, .band h2, .band h3, .band h4 { color: var(--band-text); }
.band p { color: var(--band-muted); }
.band a { color: var(--sage); }

.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* 300px keeps a 6-item grid at 3 across on a 1200px container rather than
   breaking to 4 + 2 with a ragged second row. */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.25fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.25fr; }
  .split__media--first { order: -1; }
}

/* --------------------------------------------------------------------------
   4. Typography components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--s-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
/* On any forest band the light-mode accent (#3f6b55) only reaches 2.2:1 —
   these contexts must use sage, which clears AA at ~6:1. */
.band .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow,
.cta .eyebrow { color: var(--sage); }

.section-title { font-size: var(--step-3); margin-bottom: var(--s-4); }
.section-intro {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.55;
}
.band .section-intro { color: var(--band-muted); }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--text-muted); }

.pullquote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  padding: 0;
}
.pullquote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* --------------------------------------------------------------------------
   5. Motif — sage corner brackets (structural, never an edge stripe)
   -------------------------------------------------------------------------- */
.bracket { position: relative; }
.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--sage);
  opacity: 0.85;
  pointer-events: none;
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}
.bracket::before { top: 10px; left: 10px; border-right-color: transparent; border-bottom-color: transparent; }
.bracket::after { bottom: 10px; right: 10px; border-left-color: transparent; border-top-color: transparent; }
.bracket:hover::before,
.bracket:hover::after { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:hover { background: var(--forest-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--outline:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost-light:hover { background: #fff; color: var(--forest); border-color: #fff; }

.btn--light { background: var(--sage); color: var(--forest-900); }
.btn--light:hover { background: #fff; color: var(--forest-900); }

.btn--sm { padding: 0.55rem 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-text);
}
.arrow-link svg { transition: transform 0.25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.band .arrow-link { color: var(--sage); }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Transparent while over the hero, solid once scrolled or on inner pages. */
.header--solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

/* Wordmark — rebuilt as live text; the source deck had no usable logo file. */
.wordmark { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.wordmark__mark { width: 34px; height: 34px; flex: none; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.wordmark__sub {
  margin-top: 4px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--accent-text);
  transition: color 0.3s var(--ease);
}
.header:not(.header--solid) .wordmark__name { color: #fff; }
.header:not(.header--solid) .wordmark__sub { color: var(--sage); }
.header:not(.header--solid) .wordmark__mark .mark-body { fill: #fff; }

/* Nav and the icon buttons travel together on the right, so the Contact button
   sits beside the theme toggle instead of being flung apart by space-between. */
.header__controls { display: flex; align-items: center; gap: var(--s-4); }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.72rem;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-3); }
.nav__link[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.header:not(.header--solid) .nav__link { color: rgba(255, 255, 255, 0.82); }
.header:not(.header--solid) .nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.header:not(.header--solid) .nav__link[aria-current="page"] { color: var(--sage); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-3); }
.header:not(.header--solid) .icon-btn { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.header:not(.header--solid) .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle { display: none; }

/* Mobile drawer */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + var(--s-4)) var(--s-5) var(--s-5);
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.34s var(--ease);
    overflow-y: auto;
    visibility: hidden;
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 0.95rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
  }
  .header:not(.header--solid) .nav__link { color: var(--text); }
  .header:not(.header--solid) .nav__link:hover { color: var(--text); background: var(--surface-3); }
  .header:not(.header--solid) .nav__link[aria-current="page"] { color: var(--accent-text); }
  .nav .btn { margin-top: var(--s-4); }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(8, 16, 11, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
}
body[data-nav-open="true"] { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(92vh, 860px);
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: var(--s-8);
  background: var(--forest-900);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 26, 17, 0.82) 0%, rgba(12, 26, 17, 0.55) 42%, rgba(12, 26, 17, 0.94) 100%),
    linear-gradient(100deg, rgba(24, 52, 32, 0.9) 0%, rgba(24, 52, 32, 0.25) 62%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 44ch; }
.hero__eyebrow { color: var(--sage); }
.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: var(--s-4);
}
.hero__title em { font-style: italic; color: var(--sage); }
.hero__text {
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--s-5);
  max-width: 52ch;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--s-4);
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.hero__scroll span::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 0.6rem auto 0;
  background: linear-gradient(var(--sage), transparent);
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint {
  0%, 100% { opacity: 0.25; transform: scaleY(0.55); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Compact hero for inner pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--band-bg);
  color: var(--band-text);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(135, 183, 157, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 183, 157, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 78% 15%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 78% 15%, #000, transparent 72%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 60ch; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--s-3);
}
.page-hero__text { font-size: var(--step-1); color: var(--band-muted); line-height: 1.55; margin: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  font-size: var(--step--1);
  color: var(--band-muted);
}
.breadcrumb a { color: var(--sage); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.45rem; opacity: 0.5; }

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--band-line);
  border: 1px solid var(--band-line);
}
.stat { background: var(--band-bg); padding: var(--s-5) var(--s-4); text-align: left; }
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat__value .unit { font-size: 0.45em; font-weight: 500; color: var(--sage); letter-spacing: 0; }
.stat__label {
  margin: var(--s-2) 0 0;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--band-muted);
}
/* Light variant for use on white sections */
.stats--light { background: var(--border); border-color: var(--border); }
.stats--light .stat { background: var(--card); }
.stats--light .stat__value { color: var(--text); }
.stats--light .stat__value .unit { color: var(--accent-text); }
.stats--light .stat__label { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__title { font-size: var(--step-1); margin-bottom: var(--s-2); }
.card__text { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.card--flat:hover { transform: none; box-shadow: none; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--forest);
  color: var(--sage);
  flex: none;
}
.icon-badge svg { width: 22px; height: 22px; }
.band .icon-badge { background: rgba(135, 183, 157, 0.16); color: var(--sage); }

/* Icon + text rows (strengths) */
.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row .icon-badge { margin-bottom: 0; }
.feature-row h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.feature-row p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Numbered process steps */
.step { position: relative; padding-top: var(--s-4); border-top: 2px solid var(--sage); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sage);
  display: block;
  margin-bottom: var(--s-2);
}

/* Media frame with the bracket motif.
   The source photographs vary wildly in aspect ratio, so the frame crops to a
   consistent shape — otherwise a tall portrait image leaves its paired text
   column stranded in whitespace. */
.frame { position: relative; }
.frame img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--radius);
}
.frame--tall img { aspect-ratio: 4 / 4.6; }
.frame::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 42%;
  right: -14px;
  bottom: -14px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  border-radius: 0 0 var(--radius) 0;
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   11. Services
   -------------------------------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -40%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 183, 157, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage); }
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card__title {
  font-size: var(--step-1);
  margin-bottom: var(--s-2);
  hyphens: none;
  /* "Complete Fit-out Works" must not break at its own hyphen. */
  word-break: keep-all;
}
.service-card__text { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 var(--s-4); flex: 1; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.band .tag { background: rgba(135, 183, 157, 0.12); border-color: var(--band-line); color: var(--sage); }

/* --------------------------------------------------------------------------
   12. Team
   -------------------------------------------------------------------------- */
.person {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
/* Monogram tile — the deck contains no headshots, so no stock stand-ins. */
.person__monogram {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 25%, var(--forest-600), var(--forest) 55%, var(--forest-900));
  color: var(--sage);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.person__monogram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(135, 183, 157, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 183, 157, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.person__monogram span { position: relative; z-index: 1; }
/* Horizontal variant. The delivery team has five members, which never fills a
   card grid evenly — as rows it reads as a directory and leaves no orphan. */
.person-rows { display: grid; gap: var(--s-4); }
.person--row { flex-direction: row; align-items: stretch; }
.person--row .person__monogram {
  aspect-ratio: auto;
  flex: none;
  width: clamp(96px, 15vw, 168px);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.person--row .person__body { padding: var(--s-5); }
.person--row .person__name { font-size: var(--step-2); }
@media (min-width: 760px) {
  /* Named areas, not auto-placement: the DOM order (name, role, meta, summary,
     button) would otherwise flow across the columns and scramble the row. */
  .person--row .person__body {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr auto;
    grid-template-areas:
      "name summary action"
      "role summary action"
      "meta summary action";
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    align-content: center;
  }
  .person--row .person__name { grid-area: name; margin-bottom: 0.15rem; }
  .person--row .person__role { grid-area: role; margin-bottom: 0.4rem; }
  .person--row .person__meta { grid-area: meta; margin: 0; }
  .person--row .person__summary { grid-area: summary; margin: 0; align-self: center; }
  .person--row .person__body .btn { grid-area: action; align-self: center; }
  .person--row .person__body > noscript { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .person--row { flex-direction: column; }
  .person--row .person__monogram { width: 100%; aspect-ratio: 5 / 2; }
}

.person__body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; }
.person__name { font-size: var(--step-1); margin-bottom: 0.2rem; }
.person__role {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-3);
}
.person__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: var(--s-3);
  font-size: var(--step--1);
  color: var(--text-faint);
}
.person__summary { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 var(--s-4); flex: 1; }
.person__body .btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   13. Modal (team bios, lightbox share the shell)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(8, 16, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.modal[data-open="true"] { opacity: 1; visibility: visible; }
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s var(--ease);
}
.modal[data-open="true"] .modal__panel { transform: none; }
.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal__close:hover { color: var(--text); border-color: var(--line-2); transform: rotate(90deg); }
.modal__eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.4rem;
}
.modal__title { font-size: var(--step-2); margin-bottom: var(--s-4); }
.modal__body ul { margin-bottom: var(--s-3); }
.modal__body li { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Projects — filters + grid
   -------------------------------------------------------------------------- */
.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding: var(--s-4) 0;
  margin-bottom: var(--s-5);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.filters__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; }
.filters__group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 165px; flex: 1 1 165px; }
.filters__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.filters__search { flex: 2 1 240px; }

.field {
  width: 100%;
  padding: 0.62rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(135, 183, 157, 0.28);
}
select.field {
  appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2366756c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* Predictive search suggestions ------------------------------------------- */
.ac { position: relative; width: 100%; }

.ac__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.ac__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.12s var(--ease);
}
.ac__item.is-active { background: var(--surface-3); }

.ac__label {
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* the matched fragment, not a browser-yellow highlight */
.ac__label mark {
  background: transparent;
  color: var(--accent-text);
  font-weight: 700;
}

.ac__type {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.ac__count {
  min-width: 26px;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text-muted);
}
.ac__item.is-active .ac__count { border-color: var(--sage); color: var(--accent-text); }

@media (max-width: 560px) {
  .ac__type { display: none; }
}

.filters__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.result-count { font-size: var(--step--1); color: var(--text-muted); margin: 0; }
.result-count strong { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.4rem 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--forest);
  background: rgba(135, 183, 157, 0.2);
  border: 1px solid var(--sage);
  border-radius: 100px;
}
:root[data-theme="dark"] .chip { color: var(--sage); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { color: var(--sage); } }
.chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.chip button:hover { background: rgba(24, 52, 32, 0.16); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.project {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage); }
.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.project__region {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.project__value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-text);
  white-space: nowrap;
}
.project__value .unit { font-family: var(--font-sans); font-size: 0.5em; font-weight: 600; letter-spacing: 0.04em; }
.project__value--confidential {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.22rem 0.6rem;
}
.project__name { font-size: var(--step-1); margin-bottom: 0.3rem; }
.project__location { font-size: var(--step--1); color: var(--text-faint); margin: 0 0 var(--s-3); }
.project__scope { font-size: 0.93rem; color: var(--text-muted); margin: 0 0 var(--s-4); flex: 1; }
.project__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.project__client { font-size: var(--step--1); color: var(--text-muted); margin: 0; width: 100%; }
.project__client strong { color: var(--text); font-weight: 600; }

.empty-state {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.empty-state h3 { margin-bottom: var(--s-2); }
.no-js-note { padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   15. Gallery + lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery__item { margin: 0; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.4s var(--ease);
}
.gallery__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 26, 17, 0.6), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.055); }
.gallery__btn:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(6, 13, 9, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--gutter);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--step--1);
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__foot { padding: var(--s-3) var(--gutter) var(--s-5); text-align: center; }
.lightbox__caption { color: rgba(255, 255, 255, 0.72); font-size: var(--step--1); margin: 0; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.lightbox__nav--prev { left: max(0.5rem, calc(var(--gutter) - 3rem)); }
.lightbox__nav--next { right: max(0.5rem, calc(var(--gutter) - 3rem)); }
.lightbox__close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   16. Client logo wall
   -------------------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-wall li {
  display: grid;
  place-items: center;
  margin: 0;
  padding: var(--s-4) var(--s-3);
  background: var(--card);
  min-height: 118px;
}
.logo-wall img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.logo-wall li:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
:root[data-theme="dark"] .logo-wall img { filter: grayscale(1) invert(1) brightness(1.6); }
:root[data-theme="dark"] .logo-wall li:hover img { filter: grayscale(0) invert(1) brightness(1.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-wall img { filter: grayscale(1) invert(1) brightness(1.6); }
  :root:not([data-theme="light"]) .logo-wall li:hover img { filter: grayscale(0) invert(1) brightness(1.6); }
}

/* --------------------------------------------------------------------------
   17. Partners
   -------------------------------------------------------------------------- */
.partner {
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.partner:first-of-type { padding-top: 0; border-top: 0; }
.partner__logo {
  display: grid;
  place-items: center;
  padding: var(--s-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 180px;
}
.partner__logo img { max-height: 110px; width: auto; object-fit: contain; }
.partner__mono {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  text-align: center;
}
.definition-list { display: grid; gap: var(--s-3); margin: 0; }
.definition-list div {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}
.definition-list dt {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.definition-list dd { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 560px) {
  .definition-list div { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* --------------------------------------------------------------------------
   18. Credentials / documents
   -------------------------------------------------------------------------- */
.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc-card__preview {
  display: grid;
  place-items: center;
  padding: var(--s-4);
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  min-height: 210px;
}
.doc-card__preview img { max-height: 260px; width: auto; box-shadow: var(--shadow-sm); }
.doc-card__body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; }
.doc-card__body .btn { align-self: flex-start; margin-top: var(--s-4); }
.reg-list { list-style: none; margin: 0; padding: 0; }
.reg-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  margin: 0;
}
.reg-list li:last-child { border-bottom: 0; }
.reg-list dt, .reg-list .k { color: var(--text-muted); }
.reg-list .v { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.form__label { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.form__label .req { color: #b4453c; margin-left: 0.15rem; }
.form__hint { font-size: 0.8rem; color: var(--text-faint); }
textarea.field { min-height: 150px; resize: vertical; }
.form__error {
  font-size: 0.8rem;
  color: #b4453c;
  min-height: 1.1em;
}
:root[data-theme="dark"] .form__error, :root[data-theme="dark"] .form__label .req { color: #ff9b91; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form__error,
  :root:not([data-theme="light"]) .form__label .req { color: #ff9b91; }
}
.field[aria-invalid="true"] { border-color: #b4453c; }
.field[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 69, 60, 0.22); }
/* Honeypot — hidden from people, visible to naive bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__status { display: none; padding: var(--s-4); border-radius: var(--radius); font-size: 0.95rem; }
.form__status[data-state="success"] {
  display: block;
  background: rgba(48, 186, 161, 0.12);
  border: 1px solid var(--mint);
  color: var(--mint-700);
}
.form__status[data-state="error"] {
  display: block;
  background: rgba(180, 69, 60, 0.1);
  border: 1px solid #b4453c;
  color: #93372f;
}
:root[data-theme="dark"] .form__status[data-state="success"] { color: var(--mint); }
:root[data-theme="dark"] .form__status[data-state="error"] { color: #ff9b91; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form__status[data-state="success"] { color: var(--mint); }
  :root:not([data-theme="light"]) .form__status[data-state="error"] { color: #ff9b91; }
}
.btn[data-loading="true"] { pointer-events: none; opacity: 0.75; }
.btn[data-loading="true"] .btn__spinner { display: block; }
.btn__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   20. Contact details
   -------------------------------------------------------------------------- */
.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: 0; }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--accent-text);
  flex: none;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item h3 {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}
.contact-item a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--link); text-decoration: underline; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  background: var(--surface-3);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; }

/* --------------------------------------------------------------------------
   21. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-block: var(--section-y);
  background: var(--band-bg-deep);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 12% 0%, rgba(48, 186, 161, 0.16), transparent 62%);
}
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 62ch; margin-inline: auto; }
.cta__title { font-family: var(--font-display); font-size: var(--step-4); font-weight: 300; color: #fff; }
.cta__text { color: rgba(255, 255, 255, 0.78); font-size: var(--step-1); margin-bottom: var(--s-5); }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--band-bg); color: var(--band-text); padding-block: var(--s-7) var(--s-4); }
.footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--band-line);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer .wordmark__name { color: #fff; }
.footer .wordmark__sub { color: var(--sage); }
.footer .wordmark__mark .mark-body { fill: #fff; }
.footer__about { color: var(--band-muted); font-size: 0.92rem; margin-top: var(--s-4); max-width: 42ch; }
.footer__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--s-3);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
/* Plain items (the address) must read at the same weight as the links beside
   them, or the address shouts louder than the contact details above it. */
.footer__list li { margin-bottom: 0.55rem; color: var(--band-muted); font-size: 0.92rem; }
.footer__list a {
  color: var(--band-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  font-size: 0.82rem;
  color: var(--band-muted);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.footer__legal a { color: var(--sage); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   23. Motion — every animation is opt-out via prefers-reduced-motion
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 0.4s; }

/* No JS: never leave content hidden behind an animation that will not run. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__scroll span::after { animation: none; }
}

/* --------------------------------------------------------------------------
   24. Print — the site doubles as a printable company profile
   -------------------------------------------------------------------------- */
@media print {
  :root { --bg: #fff; --text: #000; --text-muted: #333; --border: #bbb; }
  .header, .footer, .hero__scroll, .nav-backdrop, .filters,
  .theme-toggle, .nav-toggle, .cta, .modal, .lightbox, .skip-link, .map-frame { display: none !important; }
  body { font-size: 11pt; line-height: 1.45; }
  .hero, .page-hero, .band { background: #fff !important; color: #000 !important; padding-block: 1.2rem !important; min-height: 0 !important; }
  .hero__bg { display: none !important; }
  .hero__title, .page-hero__title, .band h1, .band h2, .band h3 { color: #000 !important; }
  .band p, .page-hero__text, .hero__text { color: #333 !important; }
  .stat { background: #fff !important; }
  .stat__value { color: #000 !important; }
  .section { padding-block: 1.2rem; }
  .card, .project, .person, .service-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ccc; }
  .project-grid, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; word-break: break-all; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
