/* ==================================================================
   Select Demo Services — design system
   Palette: near-black, charcoal, warm white, brand gold (#efbc22 from
   logo artwork). Gold is reserved for primary actions and small
   highlights; a darkened derivative is used for gold text on cream.
   ================================================================== */

:root {
  --black: #0d0d0c;
  --charcoal: #1f1f1d;
  --charcoal-2: #2b2b28;
  --steel: #4f4e4a;
  --mist: #a9a79f;
  --line: #d9d5cc;
  --line-dark: #3a3936;
  --warm: #f6f3ec;
  --warm-2: #ece8de;
  --white: #fffdf8;
  --gold: #efbc22;
  --gold-dark: #7d6108;
  --gold-soft: #f6e3a3;
  --danger: #a93f27;
  --success: #3d6b45;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(56px, 8vw, 104px);
  --section-sm: clamp(40px, 5vw, 64px);
  --radius: 2px;
  --measure: 66ch;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Skip link: fully hidden until focused */
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 300;
  background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 600; text-decoration: none;
  clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Typography --------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: 0.005em;
  margin: 0 0 0.45em; color: inherit; text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.6vw, 72px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(23px, 2.2vw, 28px); }
h4 { font-size: 19px; font-family: var(--font-body); font-weight: 600; line-height: 1.3; margin: 0 0 0.4em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(19px, 1.45vw, 21px); line-height: 1.5; color: var(--steel); }
.on-dark .lede, .on-black .lede { color: #d6d3cb; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 15px; color: var(--gold-dark); margin: 0 0 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; opacity: .8; }
.on-dark .eyebrow, .on-black .eyebrow, .hero .eyebrow { color: var(--gold); }
.small { font-size: 15px; color: var(--steel); }
.on-dark .small, .on-black .small { color: var(--mist); }
ul.list { padding-left: 1.15em; margin: 0 0 1em; max-width: var(--measure); }
ul.list li { margin-bottom: 0.45em; padding-left: 0.2em; }
ul.list li::marker { color: var(--gold-dark); }
.on-dark ul.list li::marker { color: var(--gold); }

/* Layout ------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-sm { padding-block: var(--section-sm); }
.on-dark { background: var(--charcoal); color: var(--white); }
.on-black { background: var(--black); color: var(--white); }
.on-warm2 { background: var(--warm-2); }
.grid { display: grid; gap: clamp(22px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(26px, 3.5vw, 44px); flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 8px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.on-dark .divider, .on-black .divider { border-color: var(--line-dark); }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-primary:hover { background: #d9a91c; border-color: #d9a91c; }
.btn-primary:active { background: #c0950f; }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }
.on-dark .btn-secondary, .on-black .btn-secondary, .hero .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.85); }
.on-dark .btn-secondary:hover, .on-black .btn-secondary:hover, .hero .btn-secondary:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--charcoal-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.35); border-top-color: var(--black);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--charcoal); border-bottom: 2px solid var(--gold); padding-bottom: 1px; min-height: 44px;
}
.text-link:hover { color: var(--gold-dark); }
.on-dark .text-link, .on-black .text-link { color: var(--white); }
.on-dark .text-link:hover, .on-black .text-link:hover { color: var(--gold); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.header-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo { display: flex; align-items: center; text-decoration: none; min-height: 44px; flex: 0 0 auto; }
.logo img { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .logo img { height: 36px; } }
.logo-footer img { height: 54px; }
.primary-nav { display: flex; align-items: center; }
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 13px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; background: none; border: 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-toggle:hover, .nav-item.is-current > .nav-link, .nav-item.is-current > .nav-toggle { border-bottom-color: var(--gold); }
.nav-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel {
  display: none; position: absolute; top: 100%; left: 0; min-width: 320px; max-width: 420px;
  background: var(--white); color: var(--charcoal); border: 1px solid var(--line); padding: 12px; margin-top: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.nav-panel.is-open { display: block; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: block; padding: 10px 12px; text-decoration: none; border-radius: var(--radius); }
.nav-panel a:hover { background: var(--warm-2); }
.nav-panel a strong { display: block; font-weight: 600; }
.nav-panel a span { display: block; font-size: 14px; color: var(--steel); line-height: 1.4; }
.nav-panel .panel-all { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; color: var(--gold-dark); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.utility-links { display: flex; gap: 16px; }
.utility-links a { font-size: 15px; color: #d6d3cb; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.utility-links a:hover { color: var(--gold); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; background: none; border: 1px solid var(--line-dark); color: var(--white); }
@media (max-width: 1180px) {
  .primary-nav, .utility-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 480px) { .header-cta .btn { display: none; } }
.mobile-nav { display: none; background: var(--black); color: var(--white); border-top: 1px solid var(--line-dark); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > .wrap > ul > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav a, .mobile-nav button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 4px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 18px; background: none; border: 0; text-align: left; }
.mobile-nav .sub { display: none; padding: 0 0 12px 16px; }
.mobile-nav .sub.is-open { display: block; }
.mobile-nav .sub a { font-weight: 400; font-size: 16px; min-height: 44px; color: #d6d3cb; }
.mobile-nav .mobile-utility { padding: 20px 0 28px; display: grid; gap: 8px; }
.mobile-nav .mobile-utility a { font-size: 16px; color: #d6d3cb; min-height: 44px; }
.mobile-nav .mobile-utility .btn { color: var(--black); margin-bottom: 8px; justify-content: center; }

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative; color: var(--white); background: var(--black);
  min-height: clamp(460px, 66vh, 660px); display: flex; align-items: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 45%); }
/* Localized gradient: strong behind the text column, light elsewhere */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(13,13,12,.86) 0%, rgba(13,13,12,.62) 42%, rgba(13,13,12,.18) 72%, rgba(13,13,12,.05) 100%),
    linear-gradient(to top, rgba(13,13,12,.55) 0%, rgba(13,13,12,0) 40%);
}
.hero .wrap { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.hero-content { max-width: 720px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { color: #ebe8e0; max-width: 54ch; margin-bottom: 28px; font-size: clamp(19px, 1.5vw, 22px); }
.hero-controls { position: absolute; right: var(--gutter); bottom: 20px; display: flex; gap: 8px; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: rgba(13,13,12,.65); border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: var(--radius); }
.icon-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 768px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero-media::after { background: linear-gradient(to top, rgba(13,13,12,.94) 0%, rgba(13,13,12,.7) 55%, rgba(13,13,12,.25) 100%); }
  .hero .wrap { padding-top: 220px; padding-bottom: 36px; }
  .hero .actions .btn { flex: 1 1 auto; }
}

.page-hero { background: var(--charcoal); color: var(--white); padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 4.5vw, 56px); }
.page-hero.is-compact { padding-bottom: clamp(24px, 3vw, 36px); }
.page-hero.has-image { position: relative; min-height: clamp(360px, 48vh, 520px); display: flex; align-items: flex-end; padding-top: 120px; }
.page-hero.has-image .hero-media::after { background: linear-gradient(to top, rgba(13,13,12,.94) 0%, rgba(13,13,12,.6) 50%, rgba(13,13,12,.2) 100%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .lede + * { margin-top: 20px; }
.breadcrumbs { font-size: 14px; color: var(--mist); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: #8d8b85; }
.breadcrumbs a { color: #d6d3cb; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--white); }

/* Proof strip -------------------------------------------------------- */
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.fact { padding: 26px 24px; border-right: 1px solid var(--line-dark); }
.fact:last-child { border-right: 0; }
.fact-value { font-family: var(--font-head); font-size: clamp(34px, 3.4vw, 52px); font-weight: 600; line-height: 1; color: var(--gold); margin-bottom: 8px; }
.fact-label { font-weight: 600; font-size: 17px; line-height: 1.3; }
.fact-meta { font-size: 14px; color: var(--mist); margin-top: 6px; }
@media (max-width: 1024px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); } }
@media (max-width: 560px) { .fact-strip { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 20px 0; } .fact:last-child { border-bottom: 0; } }

/* Cards -------------------------------------------------------------- */
.project-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); height: 100%; transition: border-color .15s; }
.project-card:hover { border-color: var(--gold-dark); }
.project-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal-2); }
.project-card img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.project-card .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag { align-self: flex-start; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--gold-dark); background: var(--warm-2); padding: 4px 8px; }
.on-dark .tag, .on-black .tag { background: var(--charcoal); color: var(--gold); }
.project-card h3 { margin: 4px 0 0; font-size: 25px; }
.card-location { font-size: 15px; color: var(--steel); }
.card-summary { font-size: 16px; margin: 6px 0 0; color: var(--charcoal); }
.on-dark .project-card, .on-black .project-card { background: var(--charcoal-2); border-color: var(--line-dark); color: var(--white); }
.on-dark .project-card:hover, .on-black .project-card:hover { border-color: var(--gold); }
.on-dark .card-location, .on-black .card-location { color: var(--mist); }
.on-dark .card-summary, .on-black .card-summary { color: #d6d3cb; }

.featured-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(22px, 3vw, 36px); }
.featured-grid .project-card.is-lead figure { aspect-ratio: 16 / 10; }
.featured-grid .project-card.is-lead h3 { font-size: clamp(28px, 2.8vw, 38px); }
.featured-secondary { display: grid; gap: clamp(22px, 3vw, 36px); }
.featured-secondary .project-card { flex-direction: row; }
.featured-secondary .project-card figure { aspect-ratio: auto; width: 44%; flex: 0 0 44%; }
.featured-secondary .project-card h3 { font-size: 22px; }
.featured-secondary .card-summary { font-size: 15px; }
@media (max-width: 1024px) { .featured-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .featured-secondary .project-card { flex-direction: column; } .featured-secondary .project-card figure { width: 100%; aspect-ratio: 4/3; } }

.cap-card { display: block; text-decoration: none; color: inherit; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.cap-card:hover h3 { color: var(--gold); }
.cap-card h3 { font-size: 26px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cap-card h3::after { content: '→'; font-size: 22px; color: var(--gold); }
.cap-card p { font-size: 16px; margin: 0; color: #d6d3cb; }
.cap-list { display: grid; }
.light .cap-card { border-color: var(--line); }
.light .cap-card:hover h3 { color: var(--gold-dark); }
.light .cap-card p { color: var(--steel); }

/* Editorial split ---------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.split > .copy { grid-column: span 6; }
.split > .media { grid-column: span 6; }
.split.media-wide > .copy { grid-column: span 5; }
.split.media-wide > .media { grid-column: span 7; }
.split.reverse > .copy { order: 2; }
.split.align-start { align-items: start; }
.media { margin: 0; }
.media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: var(--focal, 50% 50%); }
.media.tall img { aspect-ratio: 3/4; }
.media figcaption { font-size: 14px; color: var(--steel); padding-top: 10px; }
.on-dark .media figcaption, .on-black .media figcaption { color: var(--mist); }
@media (max-width: 1024px) { .split > .copy, .split > .media, .split.media-wide > .copy, .split.media-wide > .media { grid-column: 1 / -1; } .split.reverse > .copy { order: 0; } }

/* Process ------------------------------------------------------------ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.process-step { padding: 26px 24px 26px 0; border-right: 1px solid var(--line-dark); padding-left: 24px; }
.process-step:first-child { padding-left: 0; }
.process-step:last-child { border-right: 0; }
.process-step .num { font-family: var(--font-head); color: var(--gold); font-size: 40px; font-weight: 600; line-height: 1; margin-bottom: 12px; }
.process-step h3 { font-size: 26px; }
.process-step p { font-size: 16px; color: #d6d3cb; margin: 0; }
@media (max-width: 1024px) { .process-grid { grid-template-columns: 1fr 1fr; } .process-step:nth-child(2) { border-right: 0; } .process-step:nth-child(3) { padding-left: 0; } .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } .process-step { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line-dark); } .process-step:last-child { border-bottom: 0; } }

/* Fact panel --------------------------------------------------------- */
.fact-panel { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.on-dark .fact-panel, .on-black .fact-panel { background: var(--charcoal-2); border-color: var(--line-dark); }
.fact-panel h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 16px; font-family: var(--font-head); font-weight: 600; }
.on-dark .fact-panel h3, .on-black .fact-panel h3 { color: var(--gold); }
.fact-panel dl { margin: 0; display: grid; gap: 12px; }
.fact-panel dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.on-dark .fact-panel dt, .on-black .fact-panel dt { color: var(--mist); }
.fact-panel dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; line-height: 1.35; }
.fact-panel dl > div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.on-dark .fact-panel dl > div, .on-black .fact-panel dl > div { border-color: var(--line-dark); }
.fact-panel dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-panel p:last-child { margin-bottom: 0; }

/* Stat row (safety / company) ---------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--white); padding: 22px 20px; }
.stat-value { font-family: var(--font-head); font-size: clamp(32px, 3vw, 44px); font-weight: 600; line-height: 1; color: var(--gold-dark); }
.stat-label { font-weight: 600; margin-top: 6px; font-size: 16px; }
.stat-meta { font-size: 14px; color: var(--steel); margin-top: 2px; }
@media (max-width: 1024px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }

/* Projects index ----------------------------------------------------- */
.filters { background: var(--white); border: 1px solid var(--line); padding: 18px 22px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: end; }
.filters label { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; font-weight: 600; }
.filters select, .filters input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; border: 1px solid #bfbab0; border-radius: var(--radius); background: var(--white); color: var(--charcoal);
}
.filters select:focus, .filters input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dark); outline: 3px solid var(--gold-soft); outline-offset: 0; }
.filter-toggle { display: none; }
.filters-actions { display: flex; gap: 10px; }
.results-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 20px 0 22px; min-height: 44px; }
.results-count { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--charcoal); color: var(--white); font-size: 14px; padding: 6px 10px 6px 12px; border: 0; min-height: 36px; text-decoration: none; }
.chip:hover { background: var(--gold-dark); }
.chip-clear { background: none; border: 0; color: var(--gold-dark); font-weight: 600; text-decoration: underline; min-height: 44px; padding: 0 8px; }
.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed #bfbab0; background: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2.5vw, 30px); }
@media (max-width: 1024px) { .project-grid { grid-template-columns: repeat(2, 1fr); } .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; margin-bottom: 12px; }
  .filters { display: none; grid-template-columns: 1fr; }
  .filters.is-open { display: grid; }
}

/* Case study --------------------------------------------------------- */
.case-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 1024px) { .case-layout { grid-template-columns: 1fr; } .case-aside { position: static; order: -1; } }
.case-summary { font-size: clamp(19px, 1.45vw, 21px); line-height: 1.5; color: var(--charcoal); margin-bottom: 28px; }
.case-section { margin-bottom: clamp(32px, 4vw, 52px); }
.case-section h2 { font-size: clamp(26px, 2.8vw, 34px); }
.case-section h3 { font-size: 22px; margin-top: 24px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--charcoal-2); aspect-ratio: 3/2; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: 14px; color: var(--steel); padding-top: 8px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.lightbox { border: 0; padding: 0; background: rgba(13,13,12,.96); color: var(--white); width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(13,13,12,.9); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 16px; gap: 12px; }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; }
.lightbox-inner img { max-height: 100%; max-width: 100%; margin: auto; object-fit: contain; }
.lightbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: #d6d3cb; }

/* Forms -------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 14px; color: var(--steel); margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { display: none; font-size: 14px; color: var(--danger); margin-top: 6px; font-weight: 600; }
.field.has-error .error { display: block; }
.form-status { padding: 18px 20px; border-left: 4px solid var(--success); background: #eef3ea; display: none; margin-bottom: 24px; }
.form-status.is-error { border-color: var(--danger); background: #f7e9e4; }
.form-status.is-visible { display: block; }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--black); color: #d6d3cb; padding: clamp(44px, 6vw, 72px) 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 2fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d6d3cb; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--gold); }
.footer-offices ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-offices li { line-height: 1.45; font-size: 14px; }
.footer-offices strong { color: var(--white); }
.footer-offices a { min-height: 28px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--mist); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } .footer-offices ul { grid-template-columns: 1fr; } }

/* CTA band ----------------------------------------------------------- */
.cta-band { background: var(--gold); color: var(--black); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(36px, 4.5vw, 56px); }
.cta-band h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); }
.cta-band p { margin: 6px 0 0; color: #3a2f10; }
.cta-band .text-link { color: var(--black); border-bottom-color: var(--black); }
.cta-band .text-link:hover { color: #3a2f10; }

/* Misc --------------------------------------------------------------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list a, .pill-list span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid #bfbab0; text-decoration: none; font-size: 15px; font-weight: 600; background: var(--white); }
.pill-list a:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.on-dark .pill-list a, .on-black .pill-list a { background: var(--charcoal-2); border-color: var(--line-dark); color: var(--white); }
.on-dark .pill-list a:hover { border-color: var(--gold); color: var(--gold); }
.logo-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.logo-row a { font-weight: 600; text-decoration: none; color: var(--steel); min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.logo-row a:hover { color: var(--gold-dark); border-bottom-color: var(--gold-dark); }
.award { display: flex; gap: 18px; align-items: center; }
.award img { width: 84px; height: auto; flex: 0 0 auto; }

@media print {
  .site-header, .site-footer, .cta-band, .hero-controls, .mobile-nav, .filters, .results-bar, .case-aside .actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .on-dark, .on-black, .page-hero { background: #fff !important; color: #000 !important; }
  .page-hero.has-image { min-height: 0; padding-top: 0; }
  .hero-media { display: none; }
  .case-layout { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  a[href]::after { content: ''; }
  .gallery button { cursor: default; }
}
