/* ==========================================================================
   Baray Engineering — public site
   Brand colors come from Admin → Settings → Company (--brand, --accent).
   Day / night: theme.js sets data-theme on <html>; the tokens below flip with it.
   ========================================================================== */

:root {
  color-scheme: light;
  --brand: #1a2a35;
  --accent: #7f97a8;
  --brand-900: color-mix(in srgb, var(--brand) 70%, #000);
  --brand-800: color-mix(in srgb, var(--brand) 88%, #000);
  --brand-100: color-mix(in srgb, var(--brand) 6%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 62%, #000);

  /* Theme tokens: page, raised surfaces, and the brand used as a foreground ("ink"). */
  --bg: #fff;
  --surface: #fff;
  --ink: var(--brand);
  --ink-contrast: #fff;
  --heading: var(--brand-900);
  --shadow: color-mix(in srgb, var(--brand) 8%, transparent);
  --cta-bg: var(--ink);
  --cta-fg: var(--ink-contrast);

  /* Neutral scale (inverts in the dark theme). */
  --gray-50: #f6f7f9;
  --gray-100: #eef0f3;
  --gray-200: #e2e6eb;
  --gray-300: #cdd3db;
  --gray-500: #677384;
  --gray-600: #4f5b6b;
  --gray-700: #36404d;
  --charcoal: #1a212b;
  --danger: #b42318;
  --success: #1f7a45;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-100: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #fff);
  --bg: #0d151b;
  --surface: #15212a;
  --ink: #e6ecf0;
  --ink-contrast: #0d151b;
  --heading: #f4f7f9;
  --shadow: rgb(0 0 0 / .35);
  --gray-50: #111b22;
  --gray-100: #1a2832;
  --gray-200: #25343f;
  --gray-300: #364853;
  --gray-500: #8798a4;
  --gray-600: #a3b2bc;
  --gray-700: #c1cdd5;
  --charcoal: #e3eaee;
  --danger: #ff8a7a;
  --success: #5fcf8e;
}
/* Sections that stay dark in both themes: calls to action invert to white, accent text lightens. */
.hero, .page-hero, .project-hero, .case-hero, .case-story, .section-navy, .cta-band, .svc-cta, .aside-box-navy, .site-footer {
  --cta-bg: #fff; --cta-fg: var(--brand-900);
  --accent-ink: color-mix(in srgb, var(--accent) 50%, #fff);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: var(--heading); font-weight: 700; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
main { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, var(--bg)); }

.visually-hidden { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--brand); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Khmer: its own typeface, taller lines for stacked marks, and no letter-spacing (it breaks the script). */
:root:lang(km) { --font: "Inter", "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS Battambang", system-ui, sans-serif; }
:lang(km) body { line-height: 1.85; }
:lang(km) :is(h1, h2, h3, h4, legend) { line-height: 1.45; }
:lang(km) *:not(:lang(en)) { letter-spacing: 0 !important; }
:lang(km) .btn { line-height: 1.5; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.eyebrow-light { color: color-mix(in srgb, var(--accent) 50%, #fff); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.86); max-width: 62ch; }
.lead-dark { color: var(--gray-600); }
.section-intro { max-width: 52ch; color: var(--gray-600); font-size: 1.05rem; margin: 0; }
.prose { color: var(--gray-700); max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose-legal { max-width: 75ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 .84rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-accent { background: var(--cta-bg); color: var(--cta-fg); }
.btn-primary:hover, .btn-accent:hover { background: color-mix(in srgb, var(--cta-bg) 86%, var(--cta-fg)); color: var(--cta-fg); box-shadow: 0 6px 20px var(--shadow); transform: translateY(-1px); }
.btn-accent { font-weight: 700; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ink-contrast); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--brand-900); border-color: #fff; }
.btn-large { min-height: 56px; padding: 0 34px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.actions-center { justify-content: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink);
}
.link-arrow .icon { transition: transform .2s var(--ease); }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--gray-200); box-shadow: 0 6px 24px var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-logo img, .brand-logo-img { width: auto; height: 50px; max-height: 50px; object-fit: contain; }
/* The header carries both logo versions; the theme picks one. */
.logo-for-dark, :root[data-theme="dark"] .site-header .logo-for-light { display: none; }
:root[data-theme="dark"] .site-header .logo-for-dark { display: block; }
.brand-mark { position: relative; width: 34px; height: 34px; background: var(--brand); }
.brand-mark span { position: absolute; inset: 9px 8px 0; border: 3px solid var(--accent); border-bottom: 0; }
.brand-text { font-size: .95rem; letter-spacing: .2em; line-height: 1; color: var(--ink); }
.brand-text strong { font-weight: 800; }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-mark { background: #fff; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav li a {
  display: block; white-space: nowrap; padding: 10px 12px; font-size: .9rem; font-weight: 500; color: var(--gray-700); text-decoration: none; position: relative;
}
.main-nav li a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s var(--ease); transform-origin: left; }
.main-nav li a:hover { color: var(--ink); }
.main-nav li a:hover::after, .main-nav li a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav li a[aria-current="page"] { color: var(--ink); }
.header-cta { min-height: 44px; padding: 0 20px; font-size: .76rem; }
.lang-menu { position: relative; flex-shrink: 0; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; list-style: none; cursor: pointer;
  border: 1px solid var(--gray-200); border-radius: var(--radius); color: var(--gray-600); transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--ink); background: var(--brand-100); }
.lang-menu summary .icon { transition: transform .2s var(--ease); }
.lang-menu[open] summary .icon { transform: rotate(180deg); }
.flag { display: block; flex-shrink: 0; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.flag-text { display: flex; align-items: center; justify-content: center; background: var(--gray-100); font-size: .62rem; font-weight: 700; color: var(--gray-700); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 110; min-width: 190px; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: 0 14px 40px var(--shadow);
}
.lang-menu li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: .92rem; font-weight: 500; color: var(--gray-700); text-decoration: none; }
.lang-menu li a span { flex-grow: 1; }
.lang-menu li a:hover { background: var(--brand-100); color: var(--ink); }
.lang-menu li a[aria-current] { color: var(--ink); font-weight: 600; }
.lang-menu li a[lang="km"] { font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer UI", "Leelawadee UI", sans-serif; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--gray-200); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); background: var(--brand-100); }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root:not([data-theme]) .theme-toggle { display: none; } /* needs theme.js */
.nav-cta-mobile, .nav-toggle, .header-quote-icon { display: none; flex-shrink: 0; }

@media (max-width: 1280px) {
  .main-nav li a { padding: 10px 9px; font-size: .88rem; }
  .main-nav li a::after { left: 9px; right: 9px; }
}
@media (max-width: 1280px) {
  :root { --header-h: 66px; }
  .header-inner { gap: 10px; }
  .header-cta { display: none; }
  .lang-menu { margin-left: auto; }
  .header-quote-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--gray-200); background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius);
  }
  .nav-toggle-close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99; margin: 0; padding: 20px var(--gutter) 32px;
    background: var(--bg); overflow-y: auto; display: none; border-top: 1px solid var(--gray-200);
  }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--gray-100); }
  .main-nav li a::after { display: none; }
  .main-nav li a[aria-current="page"] { color: var(--accent-ink); }
  .nav-cta-mobile { display: inline-flex; margin-top: 28px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  /* Tight header: the quotation link stays one tap away in the bottom bar. */
  .header-quote-icon { display: none; }
  .lang-menu summary { padding: 0 8px; }
  .lang-menu summary .icon { display: none; }
}
@media (max-width: 380px) {
  .brand-text { font-size: .8rem; letter-spacing: .14em; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark span { inset: 7px 6px 0; }
}

/* ---------- Alerts ---------- */
.alert { margin: 20px 0; padding: 14px 18px; border-left: 3px solid; background: var(--gray-50); font-size: .95rem; }
.alert-error { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); color: color-mix(in srgb, var(--danger) 70%, var(--charcoal)); }
.alert-success { border-color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--surface)); color: color-mix(in srgb, var(--success) 70%, var(--charcoal)); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-top-tight { padding-top: clamp(40px, 5vw, 64px); }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--brand); color: rgba(255,255,255,.86); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-foot { margin-top: 48px; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--brand-900); isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture { height: 100%; }
.hero-has-image .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-900) 88%, transparent) 0%, color-mix(in srgb, var(--brand-900) 62%, transparent) 50%, color-mix(in srgb, var(--brand-900) 25%, transparent) 100%),
              linear-gradient(0deg, color-mix(in srgb, var(--brand-900) 70%, transparent) 0%, transparent 40%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 240px 240px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 240px 240px,
    radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--brand) 100%, #fff 12%) 0%, transparent 60%),
    var(--brand-900);
}
.hero-pattern::after {
  content: ""; position: absolute; right: -4%; bottom: 0; width: min(46vw, 640px); aspect-ratio: 1;
  background: url("../images/hero-lines.svg") no-repeat right bottom / contain; opacity: .5;
}
.hero-inner { padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(96px, 12vw, 160px); max-width: calc(var(--container) + var(--gutter) * 2); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 24px; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 56ch; margin: 0; }
.hero-sub { margin: 28px 0 0; font-size: .9rem; color: rgba(255,255,255,.65); letter-spacing: .02em; }
.hero-strip { border-top: 1px solid rgba(255,255,255,.14); background: color-mix(in srgb, var(--brand-900) 60%, transparent); backdrop-filter: blur(6px); }
.hero-strip ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; }
.hero-strip li + li { border-left: 1px solid rgba(255,255,255,.12); }
.hero-strip a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 20px 20px; color: rgba(255,255,255,.82); text-decoration: none; font-size: .85rem; font-weight: 500; transition: color .2s, background .2s; }
.hero-strip li:first-child a { padding-left: 0; }
.hero-strip a:hover { color: #fff; background: rgba(255,255,255,.05); }
.hero-strip .icon { flex-shrink: 0; color: color-mix(in srgb, var(--accent) 45%, #fff); }
@media (max-width: 900px) {
  /* Text spans the full width here, so the photo is dimmed evenly instead of left-to-right. */
  .hero-has-image .hero-bg::after { background: linear-gradient(0deg, color-mix(in srgb, var(--brand-900) 88%, transparent) 0%, color-mix(in srgb, var(--brand-900) 68%, transparent) 100%); }
  .hero-strip { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--brand); color: #fff; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg picture { height: 100%; }
.page-hero-image .page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--brand-900) 90%, transparent), color-mix(in srgb, var(--brand-900) 45%, transparent)); }
.page-hero-inner { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero-image .page-hero-inner { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(72px, 10vw, 130px); }
.page-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 18px; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); }
.page-hero .lead { margin: 0; }
.page-hero-icon { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 26px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; }
.page-hero-compact .page-hero-inner { padding-bottom: 48px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; font-size: .82rem; margin-bottom: 26px; color: rgba(255,255,255,.62); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-wide { grid-template-columns: 5fr 6fr; align-items: start; }
.split-text-only { grid-template-columns: minmax(0, 820px); }
.split-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--gray-100); }
.split-media-inline { aspect-ratio: 16 / 10; margin-top: 36px; }
@media (max-width: 900px) {
  .split, .split-wide { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16 / 10; }
}

.check-list { list-style: none; display: grid; gap: 12px; margin: 28px 0 36px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray-700); }
.check-list .icon { flex-shrink: 0; margin-top: 3px; color: var(--accent-ink); }
.check-list-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 560px) { .check-list-cols { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200); }
.service-card { border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: var(--surface); }
.service-card a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 32px 28px 30px; color: inherit; text-decoration: none; transition: background .25s var(--ease); }
.service-card a::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.service-card a:hover { background: var(--brand-100); }
.service-card a:hover::before { transform: scaleX(1); }
.service-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.service-number { font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--gray-500); }
.service-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--brand-100); color: var(--ink); transition: background .25s var(--ease), color .25s var(--ease); }
.service-card a:hover .service-icon { background: var(--ink); color: var(--ink-contrast); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.service-card p { color: var(--gray-600); font-size: .93rem; line-height: 1.6; flex-grow: 1; }
.service-card .link-arrow { margin-top: 12px; }
.service-grid-5 { grid-template-columns: repeat(5, 1fr); }
.service-grid-5 .service-card a { padding: 30px 22px 28px; }
@media (max-width: 1240px) { .service-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .service-grid, .service-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .service-grid, .service-grid-5 { grid-template-columns: 1fr; }
  .service-card a { padding: 26px 22px; }
  .service-card-top { margin-bottom: 22px; }
}

/* ---------- Services page ---------- */
/* Compact hero: text on the left, structural line art (and an optional photo) fading in from the right. */
.svc-hero { background: var(--brand-900); }
.svc-hero::before { opacity: .55; }
.svc-hero-inner { position: relative; padding-top: clamp(28px, 3.4vw, 44px); padding-bottom: clamp(44px, 5vw, 68px); }
.svc-hero .breadcrumbs ol { margin-bottom: clamp(20px, 2.6vw, 32px); }
.svc-hero .eyebrow { margin-bottom: 14px; }
.svc-hero h1 { max-width: 17ch; margin-bottom: 20px; font-size: clamp(2.1rem, 1.3rem + 2.7vw, 3.35rem); line-height: 1.08; }
.svc-hero .lead { max-width: 47rem; font-size: clamp(1rem, .97rem + .2vw, 1.09rem); color: rgba(255,255,255,.8); }
.svc-hero-art {
  position: absolute; top: 0; bottom: 0; right: max(0px, calc((100vw - var(--container) - 160px) / 2)); z-index: -1; width: min(52%, 700px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.svc-hero-art > img { position: absolute; right: 0; bottom: -6%; width: 100%; height: 112%; object-fit: contain; object-position: right bottom; opacity: .6; }
.svc-hero-art picture { position: absolute; inset: 0; opacity: .5; }
.svc-hero-photo .svc-hero-art > img { opacity: .4; }
@media (max-width: 900px) {
  .svc-hero-art { width: 88%; right: -18%; }
  .svc-hero-art > img { opacity: .22; }
  .svc-hero-art picture { opacity: .25; }
}

.svc-section { padding-top: clamp(28px, 3.4vw, 48px); padding-bottom: clamp(48px, 6vw, 88px); background: var(--gray-50); }
:root[data-theme="dark"] .svc-section { background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; }
.svc-card { position: relative; border: 1px solid var(--gray-200); border-radius: 5px; background: var(--surface); overflow: hidden; transition: border-color .25s var(--ease), background .25s var(--ease); }
.svc-card > a { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; height: 100%; min-height: 232px; padding: 34px 30px 30px; color: inherit; text-decoration: none; }
.svc-card:hover, .svc-card:focus-within { border-color: color-mix(in srgb, var(--ink) 34%, var(--gray-200)); background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.svc-card-icon { color: var(--ink); }
.svc-card-icon .icon { stroke-width: 1.05; }
.svc-card-body { position: relative; display: flex; flex-direction: column; min-width: 0; }
.svc-card-number { margin-bottom: 14px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; color: var(--gray-500); }
.svc-card-title { margin: 0 0 12px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.015em; color: var(--heading); }
.svc-card p { margin: 0 0 22px; flex-grow: 1; font-size: .97rem; line-height: 1.62; color: var(--gray-600); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.svc-card-link { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--accent-ink); }
.svc-card-link .icon { transition: transform .25s var(--ease); }
.svc-card:hover .svc-card-link .icon, .svc-card:focus-within .svc-card-link .icon { transform: translateX(5px); }
/* A service with a header image shows it on the right of its card, fading into the card. */
.svc-card-media { position: absolute; inset: 0 0 0 52%; }
.svc-card-media picture { height: 100%; }
.svc-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 55%, transparent) 38%, transparent 100%); }
.svc-card.has-media .svc-card-body { max-width: 15.5rem; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .svc-card > a { min-height: 0; gap: 18px; padding: 26px 22px 24px; }
  .svc-card-icon .icon { width: 34px; height: 34px; }
}

/* Closing call to action */
.svc-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-900); color: rgba(255,255,255,.8); border-top: 1px solid rgba(255,255,255,.08); }
.svc-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 48px 48px;
}
.svc-cta::after {
  content: ""; position: absolute; left: -90px; bottom: -70px; z-index: -1; width: 520px; height: 330px; opacity: .2;
  background: url("../images/services-lines.svg") no-repeat center / contain; transform: scaleX(-1);
}
.svc-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 32px clamp(32px, 5vw, 72px); padding-top: clamp(52px, 6vw, 84px); padding-bottom: clamp(52px, 6vw, 84px); }
.svc-cta .eyebrow { margin-bottom: 14px; }
.svc-cta h2 { margin-bottom: 12px; color: #fff; }
.svc-cta-text p:last-child { margin: 0; max-width: 52ch; font-size: 1.05rem; line-height: 1.6; }
.svc-cta .btn .icon { transition: transform .25s var(--ease); }
.svc-cta .btn:hover .icon { transform: translateX(4px); }
.svc-cta-points { list-style: none; display: grid; gap: 14px; padding-left: clamp(24px, 3vw, 44px); border-left: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.82); }
.svc-cta-points li { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.svc-cta-points .icon { flex-shrink: 0; color: color-mix(in srgb, var(--accent) 50%, #fff); }
@media (max-width: 1100px) {
  .svc-cta-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .svc-cta-points { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 12px 36px; padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 700px) {
  .svc-cta-inner { grid-template-columns: 1fr; }
  .svc-cta .btn { justify-self: start; }
  .svc-cta-points { grid-auto-flow: row; }
}

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.project-grid-featured .project-card-large { grid-column: span 2; grid-row: span 2; }
.project-grid-featured .project-card-large .project-card-media { aspect-ratio: auto; flex-grow: 1; min-height: 420px; }
.project-card { display: flex; }
.project-card-link { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.project-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); }
.project-card-media picture, .project-card-media .placeholder { position: absolute; inset: 0; height: 100%; }
.project-card-media img { transition: transform .7s var(--ease); }
.project-card-link:hover .project-card-media img { transform: scale(1.04); }
.project-card-body { padding-top: 20px; }
.project-card-title { font-size: 1.25rem; margin-bottom: 12px; transition: color .2s; }
.project-card-link:hover .project-card-title { color: var(--accent-ink); }
.project-card-large .project-card-title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.project-meta { display: grid; gap: 4px; margin: 0 0 16px; font-size: .88rem; }
.project-meta div { display: flex; gap: 10px; }
.project-meta dt { width: 72px; flex-shrink: 0; color: var(--gray-500); }
.project-meta dd { margin: 0; color: var(--gray-700); }
.status-badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px;
  background: rgba(255,255,255,.95); color: var(--brand-900); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-500); }
.status-completed .dot { background: var(--success); }
.status-ongoing .dot { background: var(--accent); }
.status-upcoming .dot { background: var(--brand); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand); }
@media (max-width: 1023px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-featured .project-card-large { grid-column: span 2; grid-row: auto; }
  .project-grid-featured .project-card-large .project-card-media { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-grid-featured .project-card-large { grid-column: auto; }
  .project-grid-featured .project-card-large .project-card-media { aspect-ratio: 4 / 3; }
}

/* Placeholder until a real photo exists */
.placeholder { display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%); color: rgba(255,255,255,.7); overflow: hidden; }
.placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.placeholder .ph-lines { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
.placeholder .ph-dim { stroke: color-mix(in srgb, var(--accent) 60%, transparent); }
.placeholder::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px; }
.placeholder-label { position: relative; margin: 0 0 16px 16px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

/* Filters */
.project-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--gray-200); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--gray-300); background: var(--surface);
  font: 600 .76rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--gray-700); text-decoration: none; cursor: pointer; border-radius: var(--radius);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ink-contrast); }
.filter-selects { display: flex; flex-wrap: wrap; gap: 14px; }
.select-label { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--gray-600); }
.select-label select { min-height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23677384' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: inherit; color: var(--charcoal); }
.filter-count { margin: 0 0 0 auto; font-size: .88rem; color: var(--gray-500); }
[data-project-results] { transition: opacity .2s; }
[data-project-results].is-loading { opacity: .4; }
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .filter-selects { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .select-label { flex-direction: column; align-items: stretch; gap: 4px; }
  .filter-count { margin: 0; }
}

.empty-state { padding: 48px 0; text-align: center; color: var(--gray-600); }
.empty-state-large { padding: 72px 24px; border: 1px dashed var(--gray-300); background: var(--gray-50); }
.empty-state-large .icon { margin: 0 auto 20px; color: var(--gray-500); }
.empty-state p { max-width: 52ch; margin: 0 auto 20px; }

/* ---------- Features / why ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; border-top: 1px solid var(--gray-300); }
.feature { padding: 36px 36px 36px 0; border-bottom: 1px solid var(--gray-300); }
.feature:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid var(--gray-300); }
.feature-number { display: block; margin-bottom: 20px; font-size: .85rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .06em; }
.feature h3 { margin-bottom: 10px; }
.feature p { margin: 0; color: var(--gray-600); font-size: .95rem; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 28px 24px 28px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--gray-300); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(2n) { padding: 26px 0; border-left: 0; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.14); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.steps h3 { margin-bottom: 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: rgba(255,255,255,.72); font-size: .95rem; }
.step-number { font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.steps-compact li { padding: 18px 0; }
.process { list-style: none; display: grid; gap: 0; margin: 8px 0 24px; }
.process li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.process .step-number { font-size: 1.1rem; font-weight: 600; color: var(--accent-ink); }

/* ---------- Investors ---------- */
.investors { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.audience-list { display: grid; gap: 0; margin: 32px 0 36px; border-top: 1px solid var(--gray-200); }
.audience-list .audience { padding: 20px 0; border-bottom: 1px solid var(--gray-200); display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.audience h3 { margin: 0 0 6px; font-size: 1.05rem; }
.audience p { margin: 0; color: var(--gray-600); font-size: .95rem; }
.audience-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200); }
.audience-grid .audience { padding: 30px 26px; border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.flow { list-style: none; display: grid; gap: 0; counter-reset: flow; }
.flow-step { position: relative; padding-bottom: 38px; }
.flow-step span {
  display: flex; align-items: center; min-height: 64px; padding: 16px 22px; background: var(--gray-50); border: 1px solid var(--gray-200);
  font-weight: 600; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.flow-step::after {
  content: ""; position: absolute; left: 32px; bottom: 8px; width: 2px; height: 22px; background: var(--accent);
}
.flow-step::before {
  content: ""; position: absolute; left: 27px; bottom: 4px; border: 6px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0;
}
.flow-step-last { padding-bottom: 0; }
.flow-step-last::before, .flow-step-last::after { display: none; }
.flow-step-last span { background: var(--ink); border-color: var(--ink); color: var(--ink-contrast); }
.flow-dark .flow-step span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.flow-dark .flow-step-last span { background: var(--accent); border-color: var(--accent); color: var(--brand-900); }
@media (max-width: 900px) {
  .investors { grid-template-columns: 1fr; }
  .audience-list .audience { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Stats ---------- */
.stats-heading { text-align: center; margin-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats-1 { grid-template-columns: 1fr; } .stats-2 { grid-template-columns: repeat(2, 1fr); } .stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column-reverse; padding: 12px 28px; border-left: 1px solid var(--gray-300); }
.stat:first-child { border-left: 0; }
.stat dd { margin: 0; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.05; }
.stat dt { margin-top: 8px; font-size: .85rem; color: var(--gray-600); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 760px) {
  .stats, .stats-3 { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Logos ---------- */
.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200); }
.logo-grid li { display: flex; align-items: center; justify-content: center; height: 120px; padding: 24px; border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.logo-grid picture, .logo-grid a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo-grid img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-grid li:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .logo-grid li { background: #e9eef1; }
:root[data-theme="dark"] .logo-grid .logo-name { color: #36404d; }
.logo-name { font-weight: 600; color: var(--gray-600); text-align: center; font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-900); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px 64px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 56ch; font-size: 1.05rem; }
.cta-band .actions { margin: 0; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.detail-main > h2 { font-size: 1.6rem; margin-top: 56px; }
.detail-main > h2:first-child, .detail-main > .lead + h2 { margin-top: 0; }
.detail-main > .lead { margin-bottom: 40px; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-box { padding: 28px; border: 1px solid var(--gray-200); background: var(--surface); }
.aside-box-navy { background: var(--brand); border-color: var(--brand); color: rgba(255,255,255,.82); }
.aside-box-navy .aside-title { color: #fff; }
.aside-box-navy .btn + .btn { margin-top: 10px; }
.aside-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; color: var(--gray-500); }
.plain-list { list-style: none; display: grid; gap: 10px; }
.plain-list li { padding-left: 18px; position: relative; color: var(--gray-700); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.aside-links { list-style: none; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); text-decoration: none; font-size: .93rem; }
.aside-links a:hover { color: var(--ink); }
.info-list { display: grid; gap: 0; margin: 0; }
.info-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: .93rem; }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--gray-500); }
.info-list dd { margin: 0; font-weight: 500; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; font-size: .88rem; color: var(--gray-500); }
.tag { padding: 6px 12px; background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-700); text-decoration: none; font-size: .82rem; }
.tag:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 1023px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}

/* Project hero */
.project-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--brand-900); isolation: isolate; }
.project-hero-plain { min-height: 0; background: var(--brand); }
.project-hero-media { position: absolute; inset: 0; z-index: -1; }
.project-hero-media picture { height: 100%; }
.project-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--brand-900) 92%, transparent) 0%, color-mix(in srgb, var(--brand-900) 30%, transparent) 55%, transparent 100%); }
.project-hero-inner { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(40px, 6vw, 72px); }
.project-hero .status-badge { position: static; margin-bottom: 20px; }
.project-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2.1rem, 1.4rem + 3vw, 4rem); }
.project-hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; color: rgba(255,255,255,.82); }
.project-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.preview-bar { position: sticky; top: var(--header-h); z-index: 50; padding: 10px var(--gutter); background: #fff4d6; color: #5c4200; text-align: center; font-size: .9rem; border-bottom: 1px solid #f0d58a; }

/* ---------- Project case study ---------- */
/* Hero: the project's best photograph at 65–75% of the screen, title low on the image. */
.case-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(460px, 72vh, 820px); color: #fff; background: var(--brand-900); overflow: hidden; }
.case-hero-plain { min-height: 0; }
.case-hero-plain::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 48px 48px; }
.case-hero-media { position: absolute; inset: 0; z-index: -1; }
.case-hero-media picture { height: 100%; }
.case-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--brand-900) 94%, transparent) 0%, color-mix(in srgb, var(--brand-900) 62%, transparent) 30%, color-mix(in srgb, var(--brand-900) 8%, transparent) 62%, transparent 100%); }
.case-hero-inner { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(26px, 3.4vw, 44px); }
.case-hero .breadcrumbs ol { margin-bottom: 18px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.case-hero h1 { max-width: 18ch; margin-bottom: 14px; color: #fff; font-size: clamp(2.3rem, 1.3rem + 4.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.case-subtitle { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: rgba(255,255,255,.84); }
.case-hero-meta { border-top: 1px solid rgba(255,255,255,.16); background: color-mix(in srgb, var(--brand-900) 55%, transparent); }
.case-hero-meta ul { display: flex; flex-wrap: wrap; list-style: none; gap: 6px 0; padding-top: 16px; padding-bottom: 16px; font-size: .84rem; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.86); }
.case-hero-meta li + li::before { content: "•"; margin: 0 14px; color: color-mix(in srgb, var(--accent) 60%, #fff); }

/* Overview: text 65%, specification 35% */
.case-overview-grid { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.case-overview-main h2 { max-width: 24ch; margin-bottom: 24px; }
.case-overview-main .prose { max-width: 66ch; font-size: 1.04rem; }
.case-label { margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-500); }
.case-overview-main .case-label { margin-top: 44px; }
.case-overview-main .check-list { margin: 0; }
.case-spec { position: sticky; top: calc(var(--header-h) + 28px); padding-top: 22px; border-top: 2px solid var(--ink); }
.case-spec dl { margin: 0 0 28px; }
.case-spec dl div { padding: 15px 0; border-bottom: 1px solid var(--gray-200); }
.case-spec dt { margin-bottom: 4px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); }
.case-spec dd { margin: 0; font-size: 1.06rem; font-weight: 600; color: var(--heading); }
.case-spec dd a { display: block; color: inherit; text-decoration: none; }
.case-spec dd a:hover { text-decoration: underline; }
.case-spec .btn .icon { transition: transform .25s var(--ease); }
.case-spec .btn:hover .icon { transform: translateX(4px); }

/* Gallery: one wide opener, then rows of two and three on a six-column grid */
.case-gallery { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.case-shot a { position: relative; display: block; overflow: hidden; background: var(--gray-100); border-radius: 2px; }
.case-shot picture { height: 100%; }
.case-shot img { transition: transform .7s var(--ease); }
.case-shot a:hover img { transform: scale(1.03); }
.case-shot-6 { grid-column: span 6; } .case-shot-6 a { aspect-ratio: 21 / 9; }
.case-shot-3 { grid-column: span 3; } .case-shot-3 a { aspect-ratio: 3 / 2; }
.case-shot-2 { grid-column: span 2; } .case-shot-2 a { aspect-ratio: 4 / 5; }

/* Story: dark band with numbered editorial blocks */
.case-story { position: relative; isolation: isolate; background: var(--brand-900); color: rgba(255,255,255,.8); }
.case-story::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 48px 48px; }
.case-story h2, .case-story h3 { color: #fff; }
.case-story-list { list-style: none; display: grid; }
.case-story-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 32px; padding: clamp(28px, 3.6vw, 48px) 0; border-top: 1px solid rgba(255,255,255,.14); }
.case-story-item:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.case-story-item.has-image { grid-template-columns: 96px minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.case-story-number { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: color-mix(in srgb, var(--accent) 60%, #fff); }
.case-story-text h3 { margin-bottom: 12px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.case-story-text .prose { max-width: 60ch; color: rgba(255,255,255,.78); }
.case-story-image { aspect-ratio: 3 / 2; overflow: hidden; background: rgba(255,255,255,.05); border-radius: 2px; }
.case-story-image picture { height: 100%; }

/* Before / after (renovations) */
.case-compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-compare-pair + .case-compare-pair { margin-top: 28px; }
.case-compare-pair figure { margin: 0; }
.case-compare-pair picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); border-radius: 2px; }
.case-compare-pair figcaption { margin-top: 10px; font-size: .9rem; color: var(--gray-600); }
.case-compare-pair figcaption strong { margin-right: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); }

/* Previous / next project */
.case-nav { border-top: 1px solid var(--gray-200); background: var(--bg); }
.case-nav-inner { display: grid; grid-template-columns: 1fr 1fr; }
.case-nav-link { display: flex; align-items: center; gap: 20px; min-height: 132px; padding: 26px 0; color: inherit; text-decoration: none; }
.case-nav-next { justify-content: flex-end; padding-left: 28px; text-align: right; border-left: 1px solid var(--gray-200); }
.case-nav-prev { padding-right: 28px; }
.case-nav-link picture, .case-nav-blank { flex-shrink: 0; width: 112px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); border-radius: 2px; }
.case-nav-link span:not(.case-nav-blank) { display: grid; gap: 6px; min-width: 0; }
.case-nav-link small { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.case-nav-next small { justify-content: flex-end; }
.case-nav-prev small .icon { transform: rotate(180deg); }
.case-nav-link strong { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); line-height: 1.25; color: var(--heading); }
.case-nav-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.case-cta .eyebrow { margin-bottom: 16px; }
.case-cta h2 { max-width: 24ch; margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); }
.case-cta-more { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-decoration: none; white-space: nowrap; }
.case-cta-more:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .case-overview-grid { grid-template-columns: 1fr; }
  .case-spec { position: static; }
  .case-story-item.has-image { grid-template-columns: 96px minmax(0, 1fr); }
  .case-story-image { grid-column: 2; margin-top: 22px; }
  .case-cta-more { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .case-hero { min-height: clamp(420px, 68vh, 620px); }
  .case-hero-meta li + li::before { margin: 0 9px; }
  .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .case-shot-6, .case-shot-3 { grid-column: span 2; } .case-shot-6 a { aspect-ratio: 16 / 10; }
  .case-shot-2 { grid-column: span 1; } .case-shot-2 a { aspect-ratio: 1; }
  .case-story-item, .case-story-item.has-image { grid-template-columns: 1fr; gap: 12px; }
  .case-story-image { grid-column: 1; }
  .case-compare-pair { grid-template-columns: 1fr; }
  .case-nav-inner { grid-template-columns: 1fr; }
  .case-nav-next { padding-left: 0; border-left: 0; border-top: 1px solid var(--gray-200); }
  .case-nav-link { min-height: 96px; padding: 20px 0; }
  .case-nav-link picture, .case-nav-blank { width: 88px; }
}

/* Progress updates on a project */
.timeline { list-style: none; display: grid; gap: 0; max-width: 980px; }
.timeline-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 36px; }
.timeline-date { padding-top: 2px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.timeline-body { position: relative; padding: 0 0 44px 36px; border-left: 1px solid var(--gray-300); }
.timeline-item:last-child .timeline-body { padding-bottom: 0; }
.timeline-body::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.timeline-body h3 { margin-bottom: 10px; }
.timeline-photos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 18px; }
.timeline-photos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); }
.timeline-photos picture { height: 100%; }
.timeline-photos img { transition: transform .5s var(--ease); }
.timeline-photos a:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-date { padding: 0 0 8px 24px; }
  .timeline-body { margin-left: 4px; padding-left: 20px; padding-bottom: 36px; }
}

/* Gallery */
.gallery-tabs { margin-bottom: 32px; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery li[hidden] { display: none; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-200); }
.gallery picture { height: 100%; }
.gallery img { transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery-phase { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; background: color-mix(in srgb, var(--brand-900) 88%, transparent); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.gallery-caption { margin: 10px 0 0; font-size: .88rem; color: var(--gray-600); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8, 16, 28, .96); color: #fff; }
.lightbox::backdrop { background: rgba(8, 16, 28, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1600px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 82vh; width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; font-size: .92rem; color: rgba(255,255,255,.8); text-align: center; }
.lightbox button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- About ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 80px; }
.vm-text { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.5; color: #fff; margin: 0; font-weight: 500; letter-spacing: -.01em; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.team-photo { aspect-ratio: 4 / 5; background: var(--gray-100); overflow: hidden; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; }
.team-initials { font-size: 3rem; font-weight: 700; color: var(--gray-300); }
.team-member h3 { margin-bottom: 4px; font-size: 1.1rem; }
.team-position { color: var(--accent-ink); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.team-bio { color: var(--gray-600); font-size: .92rem; }
.team-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; text-decoration: none; }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.qs-grid { display: grid; gap: 48px; }
.qs-icon { display: inline-flex; margin-bottom: 16px; color: var(--accent-ink); }
.cert-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cert { padding: 28px; background: var(--surface); border: 1px solid var(--gray-200); }
.cert-image { height: 140px; margin-bottom: 20px; display: flex; align-items: center; }
.cert-image img { object-fit: contain; width: auto; max-height: 140px; }
.cert-meta { display: grid; gap: 4px; margin: 0 0 14px; font-size: .88rem; }
.cert-meta div { display: flex; gap: 8px; }
.cert-meta dt { color: var(--gray-500); min-width: 84px; }
.cert-meta dd { margin: 0; }
.doc-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.doc-link { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid var(--gray-200); text-decoration: none; color: var(--ink); font-weight: 600; }
.doc-link span { flex-grow: 1; }
.doc-link:hover { border-color: var(--ink); }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.form-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.form-intro p { color: var(--gray-600); }
.form-card { padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--gray-200); box-shadow: 0 20px 60px var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--gray-700); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--charcoal); transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23677384' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-hint { margin: 0; font-size: .82rem; color: var(--gray-500); }
.field-error { margin: 0; font-size: .85rem; color: var(--danger); font-weight: 500; }
.form-note { margin: 22px 0 18px; font-size: .85rem; color: var(--gray-500); }
.form-step { margin: 0 0 36px; padding: 0; border: 0; min-width: 0; }
.form-step legend { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; padding: 0; font-size: 1.3rem; font-weight: 700; color: var(--heading); letter-spacing: -.01em; }
.step-kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.checkbox { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border: 1px solid var(--gray-300); cursor: pointer; font-size: .95rem; transition: border-color .15s, background .15s; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.checkbox:has(input:checked) { border-color: var(--ink); background: var(--brand-100); }
.checkbox:hover { border-color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.form-actions [data-step-next], .form-actions [data-submit] { margin-left: auto; }

/* Stepper (enhanced multi-step mode) */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; margin-bottom: 36px; }
.stepper li { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 3px solid var(--gray-200); font-size: .76rem; color: var(--gray-500); transition: border-color .2s, color .2s; }
.stepper li.is-done { border-color: color-mix(in srgb, var(--ink) 50%, var(--bg)); color: var(--gray-600); }
.stepper li.is-current { border-color: var(--accent); color: var(--heading); font-weight: 600; }
.stepper-num { font-weight: 700; }
.is-stepped .form-step { display: none; }
.is-stepped .form-step.is-current { display: block; }
.is-stepped .form-step legend { outline: none; }
@media (max-width: 560px) { .stepper-label { display: none; } }

/* Upload */
.upload-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; border: 1.5px dashed var(--gray-300); background: var(--gray-50); text-align: center; color: var(--gray-600); transition: border-color .15s, background .15s; }
.upload-drop p { margin: 0; }
.upload-drop .icon { color: var(--ink); margin-bottom: 4px; }
.upload-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-drop:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
.upload.is-dragover .upload-drop { border-color: var(--ink); background: var(--brand-100); }
.upload-list { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.upload-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gray-200); font-size: .9rem; }
.upload-list li.is-invalid { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.upload-list .upload-name { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list .upload-size { color: var(--gray-500); font-size: .82rem; }
.upload-list button { border: 0; background: none; color: var(--gray-500); cursor: pointer; padding: 4px; display: inline-flex; }
.upload-list button:hover { color: var(--danger); }

.next-steps { list-style: none; counter-reset: next; display: grid; gap: 16px; margin: 20px 0 32px; }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--gray-700); }
.next-steps li::before { content: counter(next, decimal-leading-zero); font-weight: 700; color: var(--accent-ink); }
.contact-points { list-style: none; display: grid; gap: 4px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.contact-points a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.contact-list { display: grid; gap: 0; margin: 20px 0 32px; }
.contact-list div { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.contact-list dt { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 6px; }
.contact-list dt .icon { color: var(--accent-ink); }
.contact-list dd { margin: 0 0 0 30px; color: var(--charcoal); }
.contact-list a { text-decoration: none; }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-intro { position: static; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; margin: 0 calc(var(--gutter) * -.5); }
}

.confirm { background: var(--gray-50); }
.confirm-card { text-align: center; padding-top: 24px; padding-bottom: 24px; }
.confirm-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 24px; border-radius: 50%; background: #1f7a45; color: #fff; }
.confirm-card .lead { margin: 0 auto 28px; }
.inquiry-number { display: inline-flex; flex-direction: column; gap: 6px; padding: 20px 36px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--gray-200); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); }
.inquiry-number strong { font-size: 1.7rem; letter-spacing: .04em; color: var(--ink); }
.confirm-inline { text-align: center; }
.confirm-inline .confirm-icon { width: 56px; height: 56px; margin-bottom: 16px; }

/* Download page */
.download-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px; border: 1px solid var(--gray-200); background: var(--surface); }
.download-card h2 { margin: 0 0 4px; }
.download-icon { color: var(--ink); }
.download-meta { margin: 0; font-size: .88rem; color: var(--gray-500); }
@media (max-width: 640px) { .download-card { grid-template-columns: 1fr; text-align: left; } }

/* Map */
.map { position: relative; height: clamp(320px, 45vw, 480px); background: var(--gray-100) linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px) 0 0 / 32px 32px; display: flex; align-items: center; justify-content: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.7); font-size: .93rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 48px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: 56px; }
.footer-brand p { margin: 22px 0; max-width: 36ch; line-height: 1.6; }
.footer-title { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; font-weight: 600; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 11px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.social-links { list-style: none; display: flex; gap: 8px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); }
.social-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; gap: 24px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--gray-200); box-shadow: 0 -8px 24px var(--shadow);
    transform: translateY(0); transition: transform .25s var(--ease);
  }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .mobile-cta .btn { flex-grow: 1; min-height: 48px; }
  .mobile-cta-call { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--gray-300); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
  body { padding-bottom: 72px; }
}

/* ---------- Error page ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-50); padding: 24px; padding-bottom: 24px; }
.error-main { text-align: center; max-width: 560px; }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mobile-cta, .cta-band, .svc-cta, .site-footer, .hero-strip { display: none !important; }
}
