/* ==========================================================================
   SP 2000 Roads - site.css
   Hand-written. No preprocessor, no build step.
   ========================================================================== */

:root {
  --brand-600: #0d7c3f;
  --brand-500: #18a851;
  --brand-300: #6fd79a;
  --asphalt: #121212;
  --asphalt-deep: #0a0a0b;
  --slate: #1e293b;
  --slate-950: #0b1120;
  --concrete: #f8fafc;
  --hazard: #ffc629;

  --ink-70: rgba(248, 250, 252, 0.7);
  --ink-60: rgba(248, 250, 252, 0.6);
  --ink-40: rgba(248, 250, 252, 0.4);
  --line: rgba(248, 250, 252, 0.1);

  --display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1320px;
  --nav-h: 80px;

  /* LOGO SIZE. Change these two numbers to resize the logo everywhere.
     The width adjusts by itself, so the logo never distorts. */
  --logo-h: 60px;         /* header logo height */
  --logo-h-mobile: 50px;  /* header logo height on phones */
  --logo-h-footer: 60px;  /* footer logo height */
  --logo-pad: 7px 7px;   /* space between the logo and the edge of its plate */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  color: rgba(248, 250, 252, 0.85);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  color: var(--concrete);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
p { margin: 0; }
::selection { background: var(--brand-500); color: #06130a; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-600), var(--brand-500)); border-radius: 99px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
}
.skip-link:focus {
  left: 16px; top: 16px;
  padding: 10px 18px; background: var(--brand-500); color: #06130a;
  font-family: var(--display); font-weight: 700; font-size: 13px;
}

/* ---------- primitives ---------- */
.container { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.eyebrow {
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand-300);
}
.mono { font-family: var(--mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--sm { padding: 12px 20px; font-size: 11px; }
.btn--primary { background: var(--brand-500); color: #06130a; }
.btn--primary:hover { background: var(--brand-300); box-shadow: 0 0 40px -8px rgba(24, 168, 81, 0.6); }
.btn--dark { background: rgba(18, 18, 18, 0.8); color: var(--concrete); border-color: rgba(248, 250, 252, 0.2); }
.btn--dark:hover { border-color: var(--brand-500); color: var(--brand-300); }
.btn--block { width: 100%; }

.chevron-rule {
  display: block; height: 10px; opacity: 0.55;
  background-image: repeating-linear-gradient(-45deg, var(--brand-500) 0 14px, transparent 14px 28px);
}

.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(248, 250, 252, 0.5);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(18, 18, 18, 0.86);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 12px; }

/* Logo.
   The supplied artwork has black type and a black plate, which would disappear
   against the dark navbar. Rather than recolour the client's mark and risk
   getting their brand wrong, it sits on a light plate: the colours stay exactly
   as supplied, and the plate reads as a deliberate part of the design. */
.brand--image { gap: 0; }
.brand__logo {
  display: block; height: var(--logo-h); width: auto;
  padding: var(--logo-pad); border-radius: 3px;
  background: var(--concrete);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.brand--image:hover .brand__logo { box-shadow: 0 0 28px -6px rgba(24, 168, 81, 0.65); }
@media (max-width: 640px) { .brand__logo { height: var(--logo-h-mobile); padding: 6px 10px; } }
@media (max-width: 380px) { .brand__logo { height: calc(var(--logo-h-mobile) - 4px); padding: 5px 8px; } }

/* A logo already supplied on transparency, or a light artwork, can skip the
   plate entirely: set branding.logoPlate to false in the CMS. */
.brand__logo--bare { background: none; padding: 0; }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 2px;
  background: var(--brand-600); color: var(--asphalt);
  font-family: var(--display); font-weight: 800; font-size: 15px;
  transition: background 0.4s var(--ease);
}
.brand:hover .brand__mark { background: linear-gradient(120deg, var(--brand-600), var(--brand-300)); }
.brand__name { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--concrete); line-height: 1; }
.brand__sub { display: block; font-family: var(--display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-300); margin-top: 3px; }

.nav__links { display: none; align-items: center; gap: 2px; }
@media (min-width: 1200px) { .nav__links { display: flex; } }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-family: var(--display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-70);
  transition: color 0.25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--brand-300); }
.nav__caret { font-size: 8px; opacity: 0.6; }

.megamenu {
  position: absolute; top: 100%; left: 0; width: 320px;
  background: rgba(30, 41, 59, 0.97); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav__item.has-menu:hover .megamenu,
.nav__item.has-menu:focus-within .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu__item { display: block; padding: 14px 20px; border-bottom: 1px solid rgba(248, 250, 252, 0.05); transition: background 0.25s; }
.megamenu__item:last-child { border-bottom: 0; }
.megamenu__item:hover { background: rgba(13, 124, 63, 0.2); }
.megamenu__label { display: block; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--concrete); }
.megamenu__blurb { display: block; margin-top: 2px; font-size: 12px; color: rgba(248, 250, 252, 0.55); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(248, 250, 252, 0.15); border-radius: 2px;
}
@media (min-width: 1200px) { .nav__toggle { display: none; } }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--concrete); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu.
   The panel is a fixed sheet under the bar rather than a growing block inside
   the fixed header: that way it can never run off the bottom of the screen,
   and its own scroll container works independently of the page behind it.
   100dvh follows the browser chrome as it hides, which 100vh does not. */
.mobilenav {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: calc(100dvh - var(--nav-h));
  border-top: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
}
@supports not (height: 100dvh) {
  .mobilenav { height: calc(100vh - var(--nav-h)); }
}
.mobilenav__scroll {
  flex: 1; min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 0 calc(40px + env(safe-area-inset-bottom, 0px));
}

.mnav__item { border-bottom: 1px solid rgba(248, 250, 252, 0.07); }
.mnav__row { display: flex; align-items: stretch; gap: 8px; }
.mnav__link {
  flex: 1; display: flex; align-items: center; min-height: 56px; padding: 12px 0;
  font-family: var(--display); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--concrete);
}
.mnav__link:active { color: var(--brand-300); }

/* 48px square, so it clears the minimum comfortable touch target */
.mnav__toggle {
  flex: 0 0 auto; width: 48px; display: grid; place-items: center;
  color: var(--ink-40); border-left: 1px solid rgba(248, 250, 252, 0.07);
  transition: color 0.2s var(--ease);
}
.mnav__toggle svg { transition: transform 0.3s var(--ease); }
.mnav__toggle[aria-expanded="true"] { color: var(--brand-300); }
.mnav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mnav__sub { padding: 2px 0 14px; }
.mnav__sub a {
  display: block; padding: 12px 14px; margin-bottom: 4px;
  border-left: 2px solid rgba(24, 168, 81, 0.35);
  background: rgba(30, 41, 59, 0.35);
}
.mnav__sub a:active { border-left-color: var(--brand-500); background: rgba(13, 124, 63, 0.2); }
.mnav__sublabel {
  display: block; font-family: var(--display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--concrete);
}
.mnav__subblurb { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-40); }

.mobilenav__cta { margin-top: 24px; width: 100%; }
.mobilenav__foot {
  margin-top: 24px; display: grid; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-60);
}
.mobilenav__foot a:active { color: var(--brand-300); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18,18,18,0.88) 0%, rgba(18,18,18,0.32) 42%, var(--asphalt) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: 64px;
}
@media (min-width: 1024px) { .hero__inner { padding-bottom: 96px; } }

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.4rem, 7.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title .accent { color: var(--brand-300); }
.hero__lede { margin-top: 30px; max-width: 640px; font-size: clamp(1rem, 1.6vw, 1.125rem); color: rgba(248, 250, 252, 0.65); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__note { font-family: var(--mono); font-size: 13px; color: rgba(248, 250, 252, 0.5); }
.hero__note:hover { color: var(--brand-300); text-decoration: underline; text-underline-offset: 4px; }
.hero__meta {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ink-40);
}
.hero__meta .push { margin-left: auto; color: var(--brand-300); display: none; }
@media (min-width: 1024px) { .hero__meta .push { display: inline-flex; gap: 8px; align-items: center; } }
.blink { animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ==========================================================================
   Scroll showcase: pinned 3D paving sequence
   ========================================================================== */
.showcase { position: relative; height: 520vh; background: var(--asphalt); }
.showcase__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.showcase__canvas { position: absolute; inset: 0; }
.showcase__canvas canvas { width: 100% !important; height: 100% !important; }
.showcase__fade-top {
  position: absolute; inset: 0 0 auto 0; height: 130px; pointer-events: none;
  background: linear-gradient(to bottom, var(--asphalt), rgba(18,18,18,0.55) 55%, transparent);
}
.showcase__fade-bottom {
  position: absolute; inset: auto 0 0 0; height: 220px; pointer-events: none;
  background: linear-gradient(to top, var(--asphalt), rgba(18,18,18,0.6) 60%, transparent);
}
.showcase__ui {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 56px;
}
@media (min-width: 1024px) { .showcase__ui { justify-content: center; padding-bottom: 0; } }

.stagecard {
  max-width: 460px;
  padding: 26px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(18, 18, 18, 0.72); backdrop-filter: blur(12px);
}
@media (min-width: 1024px) { .stagecard { padding: 32px; } }
.stagecard__head { display: flex; align-items: center; gap: 12px; }
.stagecard__index { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--brand-300); }
.stagecard__rule { flex: 1; height: 1px; background: rgba(248, 250, 252, 0.15); }
.stagecard__tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-40); }
.stagecard__title { margin-top: 20px; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; }
.stagecard__body { margin-top: 12px; font-size: 14px; color: var(--ink-60); }
.stagecard__chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 10px; border-radius: 2px;
  border: 1px solid rgba(24, 168, 81, 0.3); background: rgba(13, 124, 63, 0.12);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-300);
}
.chip b { color: var(--concrete); font-weight: 500; }

.stagerail {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  display: none; flex-direction: column; gap: 26px; padding-left: 22px;
}
@media (min-width: 1024px) { .stagerail { display: flex; } }
@media (min-width: 1280px) { .stagerail { right: 52px; } }
.stagerail__track { position: absolute; left: 5px; top: 0; width: 1px; height: 100%; background: rgba(248, 250, 252, 0.15); }
.stagerail__fill { display: block; width: 1px; height: 100%; background: var(--brand-500); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 18px rgba(24, 168, 81, 0.8); }
.stagerail__item { position: relative; display: flex; align-items: center; }
.stagerail__dot {
  position: absolute; left: -22px; width: 10px; height: 10px; border-radius: 99px;
  background: rgba(248, 250, 252, 0.25); transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stagerail__item.is-done .stagerail__dot { background: var(--brand-500); box-shadow: 0 0 18px rgba(24, 168, 81, 0.7); }
.stagerail__label {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: rgba(248, 250, 252, 0.35);
  transition: color 0.3s var(--ease);
}
.stagerail__item.is-active .stagerail__label { color: var(--concrete); }

/* telemetry popups projected from 3D space */
.telemetry { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.telemetry__pop {
  position: absolute; width: 190px; transform: translate(-50%, -100%);
  padding: 10px 12px; border-radius: 2px;
  border: 1px solid rgba(24, 168, 81, 0.5);
  background: rgba(11, 15, 12, 0.9); backdrop-filter: blur(6px);
  box-shadow: 0 0 28px -6px rgba(24, 168, 81, 0.8);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.telemetry__pop.is-on { opacity: 1; }
.telemetry__eyebrow { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-300); }
.telemetry__dot { width: 6px; height: 6px; border-radius: 99px; background: var(--brand-500); animation: blink 2.2s ease-in-out infinite; }
.telemetry__label { margin-top: 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(248, 250, 252, 0.5); }
.telemetry__value { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--concrete); }

/* static fallback (no WebGL / reduced motion) */
.showcase.is-static { height: auto; }
.showcase.is-static .showcase__sticky { position: relative; height: auto; }
.showcase.is-static .showcase__canvas,
.showcase.is-static .showcase__ui { display: none; }
.stage-fallback { display: none; gap: 20px; padding: 96px 0; }
.showcase.is-static .stage-fallback { display: grid; }
@media (min-width: 640px) { .stage-fallback { grid-template-columns: 1fr 1fr; } }
.stage-fallback article { padding: 26px; border: 1px solid var(--line); background: rgba(30, 41, 59, 0.4); border-radius: 2px; }
.stage-fallback h3 { margin-top: 12px; font-size: 1.25rem; font-weight: 800; }
.stage-fallback p { margin-top: 10px; font-size: 14px; color: var(--ink-60); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { position: relative; background: var(--slate-950); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.stats__grid { display: grid; gap: 0; padding: 16px 20px; }
@media (min-width: 640px) { .stats__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; padding: 40px 8px; }
@media (min-width: 1024px) { .stat { padding: 44px 32px; } .stat + .stat::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 64px; background: var(--line); } }
.stat__value { display: flex; align-items: baseline; gap: 2px; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; color: var(--concrete); letter-spacing: -0.03em; }
.stat__suffix { color: var(--brand-500); }
.stat__label { margin-top: 12px; font-family: var(--display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-70); }
.stat__note { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: rgba(248, 250, 252, 0.35); }

/* ==========================================================================
   Services grid: tilt cards
   ========================================================================== */
.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section--line { border-top: 1px solid var(--line); }
.section__head { max-width: 760px; }
.section__title { margin-top: 16px; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.section__lede { margin-top: 24px; max-width: 640px; color: var(--ink-60); }

.cards { margin-top: 56px; display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } .card--wide { grid-column: span 2; } }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.4);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color 0.3s var(--ease);
}
.card:hover { border-color: rgba(24, 168, 81, 0.6); }
.card__glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(24, 168, 81, 0.22), transparent 62%);
}
.card:hover .card__glow { opacity: 1; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__code { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--brand-300); }
.card__arrow { color: rgba(248, 250, 252, 0.25); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.card:hover .card__arrow { transform: translateX(4px); color: var(--brand-300); }
.card__title { margin-top: 32px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; }
.card__body { margin-top: 12px; font-size: 14px; color: var(--ink-60); max-width: 460px; }
.card__foot {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__body + .card__foot { margin-top: 32px; }
.card__metric-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-40); }
.card__metric-value { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--brand-300); }

.card--cta { justify-content: space-between; background: rgba(13, 124, 63, 0.1); border-color: rgba(13, 124, 63, 0.4); }
.card--cta p.card__pitch { margin-top: 16px; font-family: var(--display); font-size: 1.2rem; font-weight: 800; color: var(--concrete); line-height: 1.3; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { position: relative; overflow: hidden; background: var(--slate-950); border-top: 1px solid var(--line); padding: 88px 0; }
@media (min-width: 1024px) { .cta { padding: 112px 0; } }
.cta__grid { position: relative; display: grid; gap: 40px; align-items: end; }
@media (min-width: 1024px) { .cta__grid { grid-template-columns: 7fr 5fr; } }
.cta__mesh {
  position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(248,250,252,0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(248,250,252,0.6) 1px, transparent 1px);
  background-size: 72px 72px;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .cta__actions { justify-content: flex-end; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: var(--slate-950); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 44px; padding: 72px 20px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 4fr 3fr 2fr 3fr; padding: 88px 48px; } }
.footer__logo {
  display: block; height: var(--logo-h-footer); width: auto; margin-bottom: 22px;
  padding: 8px 12px; border-radius: 3px; background: var(--concrete);
}
.footer__logo--bare { background: none; padding: 0; }

.footer__pitch { margin: 16px 0 28px; max-width: 22ch; font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--concrete); line-height: 1.2; }
.footer__dl { margin-top: 32px; display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-60); }
.footer__dl > div { display: flex; gap: 12px; }
.footer__dl dt { width: 64px; color: var(--ink-40); }
.footer__dl a:hover { color: var(--brand-300); }
.footer__list { margin-top: 20px; display: grid; gap: 12px; }
.footer__list a { font-size: 14px; color: var(--ink-70); transition: color 0.25s; }
.footer__list a:hover { color: var(--brand-300); }
.footer__code { display: inline-block; width: 34px; font-family: var(--mono); font-size: 11px; color: rgba(24, 168, 81, 0.7); }
.footer__muted { color: var(--ink-40) !important; }
.footer__text { margin-top: 20px; font-size: 14px; color: var(--ink-60); }
.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-inner {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 20px; font-size: 12px; color: var(--ink-40);
}
@media (min-width: 860px) {
  .footer__bar-inner { flex-direction: row; align-items: center; gap: 24px; }
  .footer__meta { margin-left: auto; }
}
.footer__bar-inner a:hover { color: var(--brand-300); }

/* Designer credit. Quiet by default, warms up on hover. */
.credit {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-40);
}
.credit a {
  color: rgba(248, 250, 252, 0.6);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.credit a:hover { color: var(--brand-300); border-bottom-color: var(--brand-500); }
.credit__heart {
  display: inline-flex; color: var(--brand-500);
  transform-origin: center;
}
.credit:hover .credit__heart { animation: credit-beat 1.1s ease-in-out infinite; }
@keyframes credit-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
}


/* ==========================================================================
   Generic inner page hero (used by Parts 2 & 3 pages)
   ========================================================================== */
.pagehero { padding: 180px 0 72px; border-bottom: 1px solid var(--line); }
.pagehero__title { margin-top: 16px; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; max-width: 18ch; }
.pagehero__lede { margin-top: 22px; max-width: 620px; color: var(--ink-60); }
.badge {
  display: inline-block; margin-top: 36px; padding: 8px 12px; border-radius: 2px;
  border: 1px solid rgba(24, 168, 81, 0.4); background: rgba(13, 124, 63, 0.12);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-300);
}

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

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* footer offices */
.footer__office { margin-top: 18px; font-size: 14px; color: var(--ink-60); }
.footer__office-name {
  display: block; margin-bottom: 4px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-40);
}
a.tag { transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
a.tag:hover { border-color: var(--brand-500); color: var(--brand-300); }

/* plain content list used by the inner pages */
.pagelist { margin-top: 36px; display: grid; gap: 14px; max-width: 760px; }
.pagelist li {
  position: relative; padding: 18px 20px 18px 46px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.35);
  font-size: 15px; color: var(--ink-70);
}
.pagelist li::before {
  content: ''; position: absolute; left: 20px; top: 26px;
  width: 10px; height: 2px; background: var(--brand-500);
}

/* ==========================================================================
   Company profile download
   ========================================================================== */
.profile-band { border-top: 1px solid var(--line); background: var(--slate-950); padding: 72px 0; }
.profile-band__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .profile-band__grid { grid-template-columns: 1fr auto; gap: 56px; } }
.profile-band__title { margin-top: 14px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.profile-band__body { margin-top: 14px; max-width: 60ch; color: var(--ink-60); font-size: 15px; }
.profile-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn__meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; opacity: 0.7; }

.profile-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-60);
  text-decoration: underline; text-underline-offset: 4px;
}
.profile-link:hover { color: var(--brand-300); }

/* ==========================================================================
   Org structure
   ========================================================================== */
.org { margin-top: 40px; display: grid; gap: 12px; }
@media (min-width: 720px) { .org { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .org { grid-template-columns: repeat(3, 1fr); } }
.org__node {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.35);
}
.org__node--l1 { border-color: rgba(24, 168, 81, 0.6); background: rgba(13, 124, 63, 0.12); }
@media (min-width: 720px) { .org__node--l1 { grid-column: 1 / -1; } }
.org__node--l2 { border-color: rgba(24, 168, 81, 0.32); }
@media (min-width: 720px) { .org__node--l2 { grid-column: 1 / -1; } }
.org__role {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--brand-300);
}
.org__name { margin-top: 8px; font-family: var(--display); font-size: 1.15rem; font-weight: 800; color: var(--concrete); }
.org__detail { margin-top: 8px; font-size: 13px; color: var(--ink-60); }

/* facilities columns */
.facilities { margin-top: 40px; display: grid; gap: 24px; }
@media (min-width: 800px) { .facilities { grid-template-columns: 1fr 1fr; } }
.facility { padding: 26px; border: 1px solid var(--line); border-radius: 2px; background: rgba(30, 41, 59, 0.35); }
.facility h3 { font-size: 1.4rem; font-weight: 800; }
.facility__note { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--brand-300); text-transform: uppercase; }
.facility ul { margin-top: 18px; display: grid; gap: 10px; }
.facility li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-60); }
.facility li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--brand-500); }

.subhead { margin-top: 56px; font-size: 1.5rem; font-weight: 800; }

/* ==========================================================================
   Tabbed services
   ========================================================================== */
.tabs { margin-top: 8px; }
.tabs__bar {
  position: sticky; top: var(--nav-h); z-index: 20;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 0; margin-bottom: 44px;
  background: linear-gradient(to bottom, var(--asphalt) 70%, rgba(18,18,18,0));
  border-bottom: 1px solid var(--line);
}
.tabs__bar::-webkit-scrollbar { display: none; }
.tabs__btn {
  flex: 0 0 auto; display: flex; align-items: baseline; gap: 8px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.35); white-space: nowrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.tabs__btn:hover { border-color: rgba(24, 168, 81, 0.5); }
.tabs__btn.is-active { border-color: var(--brand-500); background: rgba(13, 124, 63, 0.16); }
.tabs__code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--brand-300); }
.tabs__label {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-70);
}
.tabs__btn.is-active .tabs__label { color: var(--concrete); }

.panel { position: relative; }
.panel[hidden] { display: none; }
.panel__anchor { position: absolute; top: -140px; }
.panel__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .panel__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }

.panel__title { margin-top: 14px; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
.panel__lede { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-70); max-width: 62ch; }
.panel__body { margin-top: 18px; font-size: 15px; color: var(--ink-60); max-width: 68ch; }

.panel__lists { margin-top: 44px; display: grid; gap: 28px; }
@media (min-width: 700px) { .panel__lists { grid-template-columns: 1fr 1fr; } }
.panel__listTitle {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand-300);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.panel__list ul { margin-top: 16px; display: grid; gap: 10px; }
.panel__list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-60); }
.panel__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--brand-500); }

/* spec tables */
.tablewrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; }
.spec { width: 100%; border-collapse: collapse; min-width: 480px; }
.spec th, .spec td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.spec thead th {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--ink-40); background: rgba(11, 17, 32, 0.6);
}
.spec tbody th { font-weight: 500; color: var(--ink-70); }
.spec tbody td { font-family: var(--mono); font-size: 13px; color: var(--concrete); }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec tbody tr:hover { background: rgba(13, 124, 63, 0.08); }
.spec__note { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-40); }

/* sticky aside card */
.panel__aside { position: relative; }
@media (min-width: 1000px) { .panel__card { position: sticky; top: calc(var(--nav-h) + 90px); } }
.panel__card { padding: 26px; border: 1px solid var(--line); border-radius: 2px; background: rgba(30, 41, 59, 0.4); }
.factlist { margin-top: 20px; display: grid; gap: 16px; }
.factlist > div { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.factlist > div:last-child { padding-bottom: 0; border-bottom: 0; }
.factlist dt {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-40);
}
.factlist dd { margin-top: 6px; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--concrete); }

/* ==========================================================================
   Split section layout (about, yard, logistics)
   ========================================================================== */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } }
.split__head { position: relative; }
@media (min-width: 1000px) { .split__head { position: sticky; top: calc(var(--nav-h) + 40px); } }
.split .section__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

.valuegrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .valuegrid { grid-template-columns: 1fr 1fr; } }
.value {
  padding: 26px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.35);
  transition: border-color 0.3s var(--ease);
}
.value:hover { border-color: rgba(24, 168, 81, 0.5); }
.value__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--brand-300);
}
.value__body { margin-top: 16px; font-size: 15px; color: var(--ink-70); }

/* ==========================================================================
   Fleet showcase (logistics)
   ========================================================================== */
.fleet { margin-top: 44px; display: grid; gap: 14px; }
@media (min-width: 720px) { .fleet { grid-template-columns: 1fr 1fr; } }
.fleetcard {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.35);
  transition: border-color 0.3s var(--ease);
}
.fleetcard:hover { border-color: rgba(24, 168, 81, 0.55); }
.fleetcard__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fleetcard__code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--brand-300); }
.fleetcard__title { margin-top: 18px; font-size: 1.35rem; font-weight: 800; }
.fleetcard__body { margin-top: 12px; font-size: 14px; color: var(--ink-60); }
.fleetcard__hauls { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* simple side-view vehicle glyphs, drawn in CSS-free inline SVG */
.fleetcard__art { width: 100%; height: 62px; margin-top: 22px; opacity: 0.85; }
.fleetcard:hover .fleetcard__art { opacity: 1; }

/* office strip on the yard page */
.officebar {
  margin-top: 32px; padding: 26px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(11, 17, 32, 0.55);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 900px) { .officebar { grid-template-columns: 1fr 1fr auto; } }
.officebar__name {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--brand-300);
}
.officebar__addr { margin-top: 8px; font-size: 14px; color: var(--ink-70); }
.officebar__tel { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink-60); }
.officebar__tel a:hover { color: var(--brand-300); }

/* ==========================================================================
   Team page
   ========================================================================== */
.teamcount { display: grid; gap: 12px; }
@media (min-width: 640px) { .teamcount { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .teamcount { grid-template-columns: repeat(4, 1fr); } }
.teamcount__item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 24px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.35);
}
.teamcount__fig {
  font-family: var(--display); font-size: 2.4rem; font-weight: 800;
  color: var(--brand-300); line-height: 1;
}
.teamcount__label {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-70);
}

/* org tree */
.orgtree { margin-top: 48px; display: grid; gap: 34px; }
.orgtier { position: relative; }
.orgtier__label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--ink-40); margin-bottom: 14px;
}
.orgtier__row { display: grid; gap: 12px; }
@media (min-width: 700px) {
  .orgtier__row--l3 { grid-template-columns: repeat(2, 1fr); }
  .orgtier__row--l4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .orgtier__row--l3 { grid-template-columns: repeat(3, 1fr); }
}

.orgnode {
  display: block; width: 100%; text-align: left;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(30, 41, 59, 0.35);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.orgnode--l1 { border-color: rgba(24, 168, 81, 0.65); background: rgba(13, 124, 63, 0.14); }
.orgnode--l2 { border-color: rgba(24, 168, 81, 0.35); }
.orgnode.has-detail { cursor: pointer; }
.orgnode.has-detail:hover { border-color: rgba(24, 168, 81, 0.6); }

.orgnode__role {
  display: block; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand-300);
}
.orgnode__name {
  display: block; margin-top: 10px;
  font-family: var(--display); font-size: 1.2rem; font-weight: 800; color: var(--concrete);
}
.orgnode--l1 .orgnode__name { font-size: 1.6rem; }

/* detail collapses until the node is opened */
.orgnode__detail {
  display: block; overflow: hidden;
  max-height: 0; opacity: 0; margin-top: 0;
  font-size: 14px; color: var(--ink-60);
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.3s var(--ease);
}
.orgnode[aria-expanded="true"] .orgnode__detail { max-height: 220px; opacity: 1; margin-top: 14px; }
.orgnode__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-40);
}
.orgnode__more::after { content: '+'; font-size: 13px; }
.orgnode[aria-expanded="true"] .orgnode__more::after { content: '\2212'; }
.orgnode[aria-expanded="true"] .orgnode__more { color: var(--brand-300); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: block; margin-top: 24px; }
.field2 { display: grid; gap: 24px; }
@media (min-width: 640px) { .field2 { grid-template-columns: 1fr 1fr; } }
.field__label, .field__legend {
  display: block; margin-bottom: 10px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-40);
}
.field__label em { color: var(--brand-300); font-style: normal; }
.field__legend { padding: 0; }
fieldset.field { border: 0; padding: 0; margin-top: 0; }

.input {
  width: 100%; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(10, 10, 11, 0.6); color: var(--concrete);
  font: inherit; font-size: 15px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.input::placeholder { color: rgba(248, 250, 252, 0.28); }
.input:hover { border-color: rgba(248, 250, 252, 0.2); }
.input:focus { outline: none; border-color: var(--brand-500); background: rgba(10, 10, 11, 0.85); }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.6; }
.input.is-bad { border-color: #ff8f8f; }
.field__error { display: none; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: #ff8f8f; }
.field__error.is-on { display: block; }

/* service checkboxes */
.checkrow { display: grid; gap: 10px; }
@media (min-width: 560px) { .checkrow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .checkrow { grid-template-columns: repeat(3, 1fr); } }
.check { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 2px; background: rgba(30, 41, 59, 0.3); cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.check:hover { border-color: rgba(24, 168, 81, 0.5); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid rgba(248,250,252,0.3);
  border-radius: 2px; display: grid; place-items: center; transition: all 0.2s var(--ease); }
.check__box::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--asphalt);
  border-bottom: 2px solid var(--asphalt); transform: rotate(-45deg) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked ~ .check__box { background: var(--brand-500); border-color: var(--brand-500); }
.check input:checked ~ .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.check input:checked ~ .check__label { color: var(--concrete); }
.check__label { font-size: 14px; color: var(--ink-60); display: flex; align-items: baseline; gap: 8px; }
.check__code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--brand-300); }

.formfoot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.formfoot__note { font-family: var(--mono); font-size: 12px; color: var(--ink-40); }
.formfoot__note.is-ok { color: var(--brand-300); }
.formfoot__note.is-bad { color: #ff8f8f; }
.formnote { padding: 16px 18px; border-radius: 2px; margin-bottom: 26px; font-size: 14px; }
.formnote--ok { border: 1px solid rgba(24,168,81,0.5); background: rgba(13,124,63,0.14); color: var(--brand-300); }
.formnote--bad { border: 1px solid rgba(255,143,143,0.4); background: rgba(255,143,143,0.08); color: #ff8f8f; }

.linklist { margin-top: 14px; display: grid; gap: 8px; }
.linklist a { font-family: var(--mono); font-size: 13px; color: var(--ink-60); }
.linklist a:hover { color: var(--brand-300); }
.addr { margin-top: 12px; white-space: pre-line; font-size: 14px; color: var(--ink-60); }

/* offices + maps */
.officegrid { margin-top: 44px; display: grid; gap: 20px; }
@media (min-width: 900px) { .officegrid { grid-template-columns: 1fr 1fr; } }
.officecard { border: 1px solid var(--line); border-radius: 2px; background: rgba(30,41,59,0.35); overflow: hidden; }
.officecard__body { padding: 28px; }
.officecard__name { font-size: 1.5rem; font-weight: 800; }
.officecard__addr { margin-top: 10px; font-size: 14px; color: var(--ink-60); }

.mapbox { position: relative; height: 260px; border-top: 1px solid var(--line); background: #0d0f0e; }
.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.35) contrast(1.05); }
.mapbox__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  background-image: linear-gradient(rgba(248,250,252,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(248,250,252,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.mapbox__pin { width: 14px; height: 14px; border-radius: 99px; background: var(--brand-500); box-shadow: 0 0 0 6px rgba(24,168,81,0.18), 0 0 26px rgba(24,168,81,0.7); }
.mapbox__text { font-family: var(--display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-70); }
.mapbox__note { font-family: var(--mono); font-size: 10px; color: var(--ink-40); }

/* ==========================================================================
   Filter bar
   ========================================================================== */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filterbar__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1px solid var(--line); border-radius: 2px; background: rgba(30,41,59,0.35);
  font-family: var(--display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-70);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.filterbar__btn:hover:not(:disabled) { border-color: rgba(24,168,81,0.5); color: var(--concrete); }
.filterbar__btn.is-active { border-color: var(--brand-500); background: rgba(13,124,63,0.16); color: var(--concrete); }
.filterbar__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.filterbar__count { font-family: var(--mono); font-size: 10px; color: var(--brand-300); }

.is-hidden { display: none !important; }

/* ==========================================================================
   Empty states
   ========================================================================== */
.empty {
  margin-top: 40px; padding: 56px 32px; text-align: center;
  border: 1px dashed rgba(248,250,252,0.16); border-radius: 2px;
  background: rgba(30,41,59,0.2);
}
.empty__mark {
  display: block; width: 34px; height: 34px; margin: 0 auto 20px;
  border: 2px solid var(--brand-500); border-radius: 2px; transform: rotate(45deg);
  opacity: 0.7;
}
.empty__title { font-size: 1.4rem; font-weight: 800; }
.empty__body { margin: 12px auto 24px; max-width: 52ch; font-size: 14px; color: var(--ink-60); }
.empty__body code {
  font-family: var(--mono); font-size: 12px; padding: 2px 6px;
  background: rgba(11,17,32,0.8); border-radius: 2px; color: var(--brand-300);
}

/* ==========================================================================
   Projects grid
   ========================================================================== */
.projgrid { margin-top: 40px; display: grid; gap: 20px; }
@media (min-width: 860px) { .projgrid { grid-template-columns: 1fr 1fr; } }
.proj { border: 1px solid var(--line); border-radius: 2px; background: rgba(30,41,59,0.35); overflow: hidden; }
.proj__media { position: relative; aspect-ratio: 16 / 10; background: #0d0f0e; overflow: hidden; }
.proj__shot { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; }
.proj__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj__shot:hover img { transform: scale(1.04); }
.proj__noshot { display: grid; place-items: center; height: 100%; font-family: var(--mono); font-size: 11px; color: var(--ink-40); }
.proj__body { padding: 26px 28px 30px; }
.proj__cat { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-300); }
.proj__title { margin-top: 12px; font-size: 1.4rem; font-weight: 800; }
.proj__meta { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-40); }
.proj__text { margin-top: 14px; font-size: 14px; color: var(--ink-60); }
.proj__client { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-40); }

/* ==========================================================================
   Before / after slider
   ========================================================================== */
.ba { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; cursor: ew-resize; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba__clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba__clip .ba__img { width: auto; min-width: 100%; }
.ba__clip img { position: absolute; left: 0; top: 0; height: 100%; }
.ba__label {
  position: absolute; bottom: 14px; z-index: 3;
  padding: 5px 10px; border-radius: 2px;
  background: rgba(10,10,11,0.78); backdrop-filter: blur(4px);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--concrete); transition: opacity 0.25s var(--ease);
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
.ba.is-start .ba__label--before, .ba.is-end .ba__label--after { opacity: 0; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
  width: 2px; margin-left: -1px; background: var(--brand-500);
  box-shadow: 0 0 18px rgba(24,168,81,0.8); pointer-events: none;
}
.ba__handle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 2px solid var(--brand-500); border-radius: 99px;
  background: rgba(10,10,11,0.7); backdrop-filter: blur(4px);
}
.ba__handle::before {
  content: ''; position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 14px; height: 8px; margin: -4px 0 0 -7px;
  background:
    linear-gradient(to right, var(--brand-300) 0 2px, transparent 2px 12px, var(--brand-300) 12px 14px);
}
.ba__range {
  position: absolute; inset: auto 0 0 0; z-index: 5;
  width: 100%; margin: 0; opacity: 0; height: 100%; cursor: ew-resize;
}
.ba__range:focus-visible ~ .ba__handle { box-shadow: 0 0 0 3px rgba(24,168,81,0.5), 0 0 18px rgba(24,168,81,0.8); }

/* ==========================================================================
   Gallery grid
   ========================================================================== */
.galgrid { margin-top: 40px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .galgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .galgrid { grid-template-columns: repeat(4, 1fr); } }
.galtile {
  position: relative; display: block; padding: 0; overflow: hidden;
  aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 2px;
  background: #0d0f0e; cursor: zoom-in;
  transition: border-color 0.25s var(--ease);
}
.galtile:hover { border-color: rgba(24,168,81,0.6); }
.galtile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.galtile:hover img { transform: scale(1.06); }
.galtile__cap {
  position: absolute; inset: auto 0 0 0; padding: 20px 14px 10px; text-align: left;
  background: linear-gradient(to top, rgba(10,10,11,0.9), transparent);
  font-size: 12px; color: var(--concrete);
  opacity: 0; transform: translateY(6px); transition: all 0.3s var(--ease);
}
.galtile:hover .galtile__cap { opacity: 1; transform: translateY(0); }

.galgrid--empty { opacity: 0.5; }
.galtile--ghost { display: grid; place-items: center; border-style: dashed; cursor: default; }
.galtile__ghostmark { width: 26px; height: 26px; border: 2px solid rgba(248,250,252,0.18); transform: rotate(45deg); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 20px; background: rgba(6,7,6,0.94); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.22s var(--ease);
}
/* `display: grid` above beats the browser's own [hidden] rule, so restate it.
   Without this the closed lightbox stays laid out over the page at opacity 0
   and silently swallows every click, including the navigation. */
.lightbox[hidden] { display: none; }
.lightbox.is-on { opacity: 1; }
.lightbox__figure { margin: 0; display: grid; place-items: center; gap: 14px; max-height: 90svh; }
.lightbox__img {
  max-width: 100%; max-height: 78svh; object-fit: contain;
  border: 1px solid rgba(248,250,252,0.12); border-radius: 2px;
}
.lightbox__cap { font-size: 14px; color: var(--ink-60); text-align: center; max-width: 60ch; }
.lightbox__close {
  position: absolute; top: 18px; right: 20px; z-index: 2;
  width: 46px; height: 46px; font-size: 30px; line-height: 1; color: var(--concrete);
  border: 1px solid rgba(248,250,252,0.18); border-radius: 2px;
}
.lightbox__close:hover { border-color: var(--brand-500); color: var(--brand-300); }
.lightbox__nav {
  width: 52px; height: 84px; font-size: 34px; line-height: 1; color: var(--concrete);
  border: 1px solid rgba(248,250,252,0.14); border-radius: 2px; background: rgba(18,18,18,0.5);
}
.lightbox__nav:hover { border-color: var(--brand-500); color: var(--brand-300); }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-40);
}
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 46px; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
}


/* Any element the JavaScript toggles with the hidden attribute must not have a
   display value that outranks it. Belt and braces for the whole stylesheet. */
[hidden] { display: none !important; }

/* ==========================================================================
   Mobile: page lock while the menu sheet is open
   ========================================================================== */
html.menu-open, html.menu-open body { overflow: hidden; }

/* ==========================================================================
   Mobile refinements
   Touch targets, safe areas, and anything that could overflow a 320px screen.
   ========================================================================== */
@media (max-width: 640px) {
  /* Nothing may push the page sideways.
     Applied to body only: putting overflow-x on html turns it into a scroll
     container in some engines, which silently breaks every position: sticky
     element on the site, including the pinned 3D sequence. */
  body { max-width: 100%; }

  .container { padding-left: 18px; padding-right: 18px; }

  .section { padding: 64px 0; }
  .pagehero { padding: 128px 0 52px; }
  .pagehero__title { font-size: clamp(2rem, 9vw, 2.8rem); }

  /* Buttons go full width and clear the 44px touch minimum */
  .btn { width: 100%; min-height: 52px; padding: 15px 22px; }
  .hero__cta .btn, .cta__actions .btn, .formfoot .btn { width: 100%; }
  .btn--sm { width: auto; min-height: 44px; }
  .nav__actions .btn { display: none; }

  .hero__inner { padding-top: 120px; padding-bottom: 48px; }
  .hero__title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero__cta { gap: 10px; }
  .hero__meta { gap: 8px 18px; font-size: 10px; }

  /* The pinned 3D sequence is heavy on a phone, so shorten the scroll
     and move the stage card clear of the canvas edges */
  .showcase { height: 380vh; }
  .showcase__ui { padding-bottom: 32px; }
  .stagecard { padding: 20px; max-width: 100%; }
  .stagecard__title { font-size: 1.2rem; }
  .stagecard__body { font-size: 13px; }
  .chip { font-size: 9px; padding: 5px 8px; }

  .stat { padding: 30px 4px; }
  .stat__value { font-size: 2.6rem; }

  .card { padding: 22px; }
  .card__title { font-size: 1.35rem; }

  /* Tab bar scrolls sideways, with the edge bleeding to hint at more */
  .tabs__bar { margin: 0 -18px 32px; padding: 12px 18px; }
  .tabs__btn { min-height: 46px; }

  .panel__title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .panel__lede { font-size: 15px; }

  /* Wide tables scroll rather than squash */
  .tablewrap { margin-left: -18px; margin-right: -18px; border-left: 0; border-right: 0; }
  .spec th, .spec td { padding: 12px 14px; }
  .spec { min-width: 420px; }

  .footer__grid { padding: 56px 18px; gap: 36px; }
.footer__pitch { font-size: 1.3rem; }

  .galgrid { gap: 8px; }
  .galtile__cap { opacity: 1; transform: none; font-size: 11px; padding: 16px 10px 8px; }

  .proj__body { padding: 22px 20px 26px; }

  /* Before and after: a bigger handle for thumbs */
  .ba__handle::after { width: 46px; height: 46px; margin: -23px 0 0 -23px; }

  .officecard__body { padding: 22px; }
  .mapbox { height: 220px; }

  .check { padding: 14px; min-height: 52px; }
  .input { font-size: 16px; } /* 16px stops iOS zooming in on focus */

  .empty { padding: 40px 20px; }
  .lightbox { padding: 12px; }
  .lightbox__close { top: 12px; right: 12px; }
}

@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .brand__name { font-size: 16px; }
  .hero__title { font-size: 1.95rem; }
  .galgrid { grid-template-columns: 1fr 1fr; }
}

/* Landscape phones: the menu sheet must still fit */
@media (max-height: 480px) and (orientation: landscape) {
  .mnav__link { min-height: 44px; }
  .hero { min-height: auto; }
  .hero__inner { min-height: auto; padding-top: 110px; padding-bottom: 40px; }
}

/* Respect the notch on both sides */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}
