/* ==========================================================================
   Beltway Demolition — core stylesheet
   Placeholder brand; see "Renaming" in README.md. Colours, type and spacing
   are tokens in the :root block below.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --ink:        #0a0c0e;
  --steel-900:  #101418;
  --steel-800:  #171d23;
  --steel-700:  #212a32;
  --steel-600:  #2e3941;
  --line:       rgba(255, 255, 255, 0.10);
  --line-dark:  rgba(10, 12, 14, 0.12);
  --fog:        #98a4b0;
  --fog-light:  #c3ccd4;
  --paper:      #f3f5f6;
  --paper-alt:  #e7eaed;
  --white:      #ffffff;

  --amber:      #f0a11a;
  --amber-600:  #cf860c;
  --amber-soft: rgba(240, 161, 26, 0.14);

  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --t: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* -------------------------------------------------------------- layout --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--steel { background: var(--steel-900); }
.section--dark { background: var(--ink); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------ typography -- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.section--light .eyebrow { color: var(--amber-600); }
.section--light .eyebrow::before { background: var(--amber-600); }

.h-xl { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.h-sm { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--fog-light); max-width: 62ch; }
.section--light .lede { color: #47535e; }
.muted { color: var(--fog); }
.section--light .muted { color: #5a6672; }
.measure { max-width: 68ch; }

.section-head { max-width: 62rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head .lede { margin-top: 1.25rem; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.section--light .btn--ghost { border-color: rgba(10, 12, 14, 0.25); color: var(--ink); }
.section--light .btn--ghost:hover { border-color: var(--amber-600); color: var(--amber-600); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.link-arrow svg { width: 0.95rem; height: 0.95rem; transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}
.site-header.is-stuck {
  background: rgba(10, 12, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 120px;
}
.brand { display: flex; align-items: center; gap: 0.8rem; flex: none; }
.brand__mark { width: 200px; height: 88px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__sub {
  font-family: "Russo One", var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.35rem;
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__list { display: flex; align-items: center; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog-light);
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color var(--t);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width var(--t);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: 10rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(240, 161, 26, 0.16), transparent 58%),
    linear-gradient(178deg, #151b21 0%, #0d1114 52%, var(--ink) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(120% 80% at 60% 20%, #000 20%, transparent 78%);
}
.hero__skyline {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  width: 100%;
  height: clamp(200px, 38vh, 420px);
  opacity: 0.62;
}
.hero__content { max-width: 70rem; }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { max-width: 54ch; }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fog);
}
.hero__scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--amber), transparent);
}

/* ----------------------------------------------------------------- stats -- */
.stat-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--steel-900);
}
.stat-bar .grid { gap: 0; }
.stat {
  padding: clamp(1.9rem, 3.5vw, 2.9rem) clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.stat__num i { font-style: normal; color: var(--amber); }
.stat__label {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fog);
}

/* -------------------------------------------------------------- services -- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.5vw, 2.25rem);
  background: var(--steel-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.card:hover { transform: translateY(-4px); border-color: var(--steel-600); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  border-radius: var(--radius);
  color: var(--amber);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.75rem; }
.card p:not(.num-card__step):not(.card__more) { font-size: 0.95rem; color: var(--fog); }
.card__more { margin-top: auto; padding-top: 1.4rem; }

.section--light .card { background: var(--white); border-color: var(--line-dark); }
.section--light .card p:not(.num-card__step):not(.card__more) { color: #5a6672; }
.section--light .card:hover { border-color: rgba(10, 12, 14, 0.28); }

.num-card { counter-increment: step; }
.num-card__step {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 1rem;
}

/* ----------------------------------------------------------------- split -- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split > * { min-width: 0; }
.split--flip .split__media { order: -1; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--steel-700), var(--ink));
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.section--light .split__media { border-color: var(--line-dark); }

.tag-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.85rem 1.4rem;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tick-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.tick-list li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.98rem; color: var(--fog-light); }
.section--light .tick-list li { color: #47535e; }
.tick-list svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.28rem; color: var(--amber); }
.section--light .tick-list svg { color: var(--amber-600); }

/* -------------------------------------------------------------- projects -- */
.project {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-900);
  transition: border-color var(--t), transform var(--t);
}
.project:hover { transform: translateY(-4px); border-color: var(--steel-600); }
.project__media { aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--steel-700), #0c0f12); }
.project__media svg { width: 100%; height: 100%; }
.project__body { padding: 1.5rem clamp(1.35rem, 2vw, 1.75rem) 1.75rem; }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.85rem;
}
.project__meta span:not(:first-child) { color: var(--fog); }
.project h3 { font-size: 1.18rem; line-height: 1.2; margin-bottom: 0.7rem; }
.project p:not(.project__meta):not(.card__more) { font-size: 0.93rem; color: var(--fog); }

/* ----------------------------------------------------------------- areas -- */
.region {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.section--light .region { border-bottom-color: var(--line-dark); }
.region:first-of-type { border-top: 1px solid var(--line); }
.section--light .region:first-of-type { border-top-color: var(--line-dark); }
.region h3 { font-size: 1.1rem; }
.region p { font-size: 0.95rem; color: var(--fog); }
.section--light .region p { color: #5a6672; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.chip {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--fog-light);
}
.section--light .chip { border-color: var(--line-dark); color: #47535e; }

/* -------------------------------------------------------------- cta band -- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #14191f 0%, #0b0e11 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 130% at 88% 50%, rgba(240, 161, 26, 0.17), transparent 62%);
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; }
.cta__inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta__inner .btn-row { margin-top: 0; }

/* ------------------------------------------------------------ page hero --- */
.page-hero {
  position: relative;
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(100% 120% at 82% 0%, rgba(240, 161, 26, 0.13), transparent 60%),
    linear-gradient(175deg, #141a20, var(--ink));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 1.4rem; }
.crumbs {
  display: flex;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 1.5rem;
}
.crumbs a:hover { color: var(--amber); }

/* ----------------------------------------------------------------- prose -- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--fog-light); }
.section--light .prose p, .section--light .prose li { color: #47535e; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.section--light .prose a { color: var(--amber-600); }

/* ----------------------------------------------------------------- forms -- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--steel-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color var(--t), background var(--t);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--steel-700);
}
.field input::placeholder, .field textarea::placeholder { color: #6c7883; }
.form-note { font-size: 0.82rem; color: var(--fog); }
.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--amber);
  background: var(--amber-soft);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.form-status.is-visible { display: block; }

.contact-line { display: grid; gap: 0.35rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.contact-line:first-of-type { border-top: 1px solid var(--line); }
.contact-line dt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-line dd { margin: 0; color: var(--fog-light); }
.contact-line dd a:hover { color: var(--amber); }

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--steel-900); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--fog);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.93rem; color: var(--fog-light); transition: color var(--t); }
.footer-col a:hover { color: var(--amber); }
.footer-about p { font-size: 0.93rem; color: var(--fog); max-width: 38ch; margin-top: 1.25rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--fog);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.footer-bottom a:hover { color: var(--amber); }

/* ------------------------------------------------------------- animation -- */
/* Scroll reveals are opt-in: without JS the .js class is never added and the
   content simply renders. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .stat:nth-last-child(-n+1) { border-bottom: 0; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav {
    /* Anchored to the masthead rather than a fixed offset: the strip above
       the nav collapses on scroll, so a hardcoded top drifts. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 12, 14, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gut) 2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
    max-height: calc(100dvh - var(--masthead-h, 124px));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1.5rem; justify-content: center; }
  .split, .split--flip .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { aspect-ratio: 16 / 10; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

/* A 200px mark plus the wordmark overruns the row on a 360px phone, and a
   120px band eats too much of a short screen. */
@media (max-width: 520px) {
  .header-inner { height: 92px; }
  .brand__mark { width: 145px; height: 64px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .region { grid-template-columns: 1fr; gap: 0.6rem; }
  .stat { border-bottom: 1px solid var(--line); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------ skip link -- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------- feature post -- */
.feature-post { display: grid; grid-template-columns: 1fr 1.05fr; }
.feature-post__media { position: relative; min-height: 320px; background: linear-gradient(150deg, var(--steel-700), #0c0f12); }
.feature-post__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-post__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.feature-post__body h3 { margin-bottom: 1rem; }
.feature-post__body p:not(.project__meta):not(.card__more) { color: var(--fog); }
@media (max-width: 1000px) {
  .feature-post { grid-template-columns: 1fr; }
  .feature-post__media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ========================================================== utility bar ==
   The thin corporate strip above the masthead: footprint, group links and
   the lines a large organisation is expected to publish. */
.utility {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
  padding-block: 0.4rem;
  flex-wrap: nowrap;
}
.utility__facts, .utility__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.utility__facts li { color: var(--fog); display: flex; align-items: center; gap: 0.5rem; }
.utility__facts svg { width: 0.95rem; height: 0.95rem; color: var(--amber); flex: none; }
.utility__links a { color: var(--fog-light); white-space: nowrap; transition: color var(--t); }
.utility__links a:hover { color: var(--amber); }
.utility__links .is-strong { color: var(--white); font-weight: 500; }

/* ==================================================== accreditations ==== */
.accred {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--steel-900);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
}
.accred__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.accred__label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  flex: none;
  max-width: 11rem;
}
.accred__marks { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.accred__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--fog-light);
  white-space: nowrap;
}
.accred__mark b { color: var(--white); font-weight: 500; }

/* ============================================== footer, group version === */
.footer-grid--wide { grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); }
.footer-legal {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--fog);
  max-width: 78ch;
}
.footer-legal strong { color: var(--fog-light); font-weight: 500; }

@media (max-width: 1280px) {
  .utility__facts li:nth-child(n+2) { display: none; }
}
@media (max-width: 1000px) {
  .footer-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero__photo img { object-position: 50% 62%; }
  .utility__inner { flex-direction: column; gap: 0.3rem; padding-block: 0.5rem; }
  .utility__facts { display: flex; }
  .utility__facts li:first-child { display: none; }      /* service area is in the hero copy */
  .utility__facts li:nth-child(2) { display: flex; }      /* backed by WMB LLC, MD licensed */
  .utility__links li:not(:last-child) { display: none; }
  .utility__facts, .utility__links { font-size: 0.72rem; }
  .footer-grid--wide { grid-template-columns: 1fr 1fr; }
  .role { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid--wide { grid-template-columns: 1fr; }
  .accred__label { max-width: none; }
}

/* The utility strip lives inside the fixed masthead and collapses on scroll,
   so it costs nothing once the visitor is reading. */
.site-header .utility {
  max-height: 60px;
  overflow: hidden;
  transition: max-height var(--t), opacity var(--t);
}
.site-header.is-stuck .utility { max-height: 0; opacity: 0; }
/* Clear the taller two-tier masthead. */
.hero { padding-top: 14.5rem; }
.page-hero { padding-top: clamp(13rem, 18vw, 15.5rem); }


/* ============================================================== notice ==
   A standing caveat: used where the site deliberately leaves a real-world
   detail blank rather than inventing one. */
.notice {
  padding: 1rem 1.25rem;
  border: 1px solid var(--amber);
  border-left-width: 3px;
  background: var(--amber-soft);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--fog-light);
  max-width: 78ch;
}

/* ============================================================== imagery ==
   Photo slots. Each is a fixed aspect ratio with the image cropped to fill,
   so swapping a placeholder plate for a real photograph is a file change and
   nothing reflows. */
.photo { position: relative; display: block; margin: 0; overflow: hidden; background: var(--steel-800); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Settle mixed sources into one look. */
  filter: saturate(0.85) contrast(1.05);
}

/* Hero photograph sits behind the headline, under a scrim that keeps the
   type legible whatever the image. */
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo picture { display: block; width: 100%; height: 100%; }
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 72%;
  filter: saturate(0.8) contrast(1.05);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(10, 12, 14, 0.94) 4%, rgba(10, 12, 14, 0.62) 38%, rgba(10, 12, 14, 0.12) 100%),
    linear-gradient(0deg, var(--ink) 1%, transparent 34%);
}

/* Interior page heads get the same treatment at lower contrast. */
.page-hero__photo { position: absolute; inset: 0; z-index: 0; }
.page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.04) brightness(0.62);
}
.page-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, var(--ink) 8%, rgba(10, 12, 14, 0.82) 52%, rgba(10, 12, 14, 0.5) 100%),
    linear-gradient(0deg, var(--ink) 1%, transparent 55%);
}
.page-hero .wrap { position: relative; z-index: 1; }
