/* ==========================================================================
   Naidu & Co UK Ltd — main stylesheet
   Design tokens derived from assets/naidu-co-logo.svg
   No framework, no build step. Hand-authored for Lighthouse 90+.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted, latin subset, variable
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — lifted straight from the logo */
  --navy:        #37538F;
  --blue:        #4072B8;
  --green:       #8CC869;
  --ink:         #16233F;

  /* Extended ramp */
  --asphalt:     #0D1524;   /* deepest ground — dark sections */
  --asphalt-2:   #16233F;
  --blue-tint:   #EDF3FA;
  --green-dark:  #5E9A3C;   /* the green that passes as text on white */
  --green-lite:  #B7E39C;   /* the green that passes as small text on navy */

  /* Neutrals — biased blue so they read as chosen, not inherited */
  --paper:        #FFFFFF;
  --paper-2:      #F4F7FB;
  --line:         #DDE4EE;
  --line-2:       #E9EEF5;
  --body:         #4A566E;
  --muted:        #606D85;  /* 5.19:1 on white — the lighter grey failed AA */
  --on-dark:      #E8EDF6;
  --on-dark-mute: #9FAEC7;
  --line-dark:    rgba(255,255,255,.14);

  /* Type */
  --display: 'Archivo', ui-sans-serif, system-ui, 'Segoe UI', Arial, sans-serif;
  --text:    'Inter', ui-sans-serif, system-ui, 'Segoe UI', Arial, sans-serif;
  --mono:    ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;

  --t-xs:   .78rem;
  --t-sm:   .875rem;
  --t-base: clamp(1rem, .97rem + .14vw, 1.0625rem);
  --t-lg:   clamp(1.1rem, 1.04rem + .3vw, 1.3rem);
  --t-h4:   clamp(1.15rem, 1.08rem + .35vw, 1.4rem);
  --t-h3:   clamp(1.4rem, 1.25rem + .7vw, 1.9rem);
  --t-h2:   clamp(1.85rem, 1.5rem + 1.6vw, 3rem);
  --t-h1:   clamp(2.4rem, 1.6rem + 3.6vw, 4.75rem);

  /* Space */
  --gutter:  clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --shell:   1240px;

  /* Form */
  /* Shared height for inputs, selects and any button sitting in a row with
     them, so the quote bar lines up on one baseline. */
  --control-h: 3rem;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow:    0 1px 2px rgba(22,35,63,.05), 0 10px 30px rgba(22,35,63,.07);
  --shadow-lg: 0 2px 6px rgba(22,35,63,.06), 0 24px 60px rgba(22,35,63,.13);

  --ease: cubic-bezier(.32,.72,0,1);
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
/* Photographic slots get their placeholder ground from the container, never
   from the img itself — a background here would fill transparent SVG logos. */

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 800; text-transform: uppercase; }
h2 { font-size: var(--t-h2); font-weight: 800; text-transform: uppercase; }
h3 { font-size: var(--t-h3); font-weight: 700; }
h4 { font-size: var(--t-h4); font-weight: 700; letter-spacing: -.01em; }

p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--green); color: var(--ink);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: var(--t-sm); letter-spacing: .06em;
  padding: .85rem 1.4rem; text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--asphalt); color: var(--on-dark-mute); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 1rem); }

.lede { display: flex; flex-direction: column; gap: 1rem; max-width: 60ch; }
.lede p { font-size: var(--t-lg); color: var(--body); }
.section--dark .lede p { color: var(--on-dark-mute); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  background: var(--green);
  flex: none;
}
/* Brand blue only clears AA on light grounds; on dark the eyebrow goes green. */
.section--dark .eyebrow,
.hero .eyebrow,
.pagehead .eyebrow { color: var(--green); }

/* Signature device: rear-marker chevron, used as a hairline rule.
   It reads as hazard tape on the back of a tipper, so it runs.

   The tile is exactly one stripe period wide — the stripes repeat every 20px
   along a 115deg axis, and a horizontal step of dx moves the pattern
   dx * sin(115deg) along that axis, so one period = 20 / 0.9063 = 22.07px.
   Sizing the tile to that makes every tile identical, and shifting by exactly
   one tile width loops with no seam. */
.chevron {
  height: 5px;
  background-image: repeating-linear-gradient(115deg,
    var(--blue) 0 10px, var(--green) 10px 20px);
  background-size: 22.07px 100%;
  background-repeat: repeat;
  animation: chevron-run 1.6s linear infinite;
}

@keyframes chevron-run {
  from { background-position-x: 0; }
  to   { background-position-x: 22.07px; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem .85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn__arrow {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--green);
  flex: none;
  transition: transform .25s var(--ease);
}
.btn__arrow svg { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,35,63,.18); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--navy  { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--navy  .btn__arrow { background: var(--green); color: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--paper);
  border-color: rgba(255,255,255,.4);
}
.btn--ghost .btn__arrow { background: rgba(255,255,255,.14); color: var(--paper); }
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.1); }
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--outline .btn__arrow { background: var(--blue-tint); color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); }
.btn--sm { padding: .6rem .75rem .6rem 1.15rem; font-size: var(--t-xs); }
.btn--sm .btn__arrow { width: 24px; height: 24px; }
.btn--sm .btn__arrow svg { width: 12px; height: 12px; }

/* On a phone, ragged auto-width buttons read as an afterthought. Stack the
   primary action groups full width and push the arrow to the far edge, which
   matches how the quote-form submit already behaves. */
@media (max-width: 640px) {
  .hero__actions,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn,
  .cta__actions .btn {
    justify-content: space-between;
    padding-inline: 1.5rem 1rem;
  }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: var(--t-sm);
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--navy); text-decoration: none;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--green); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: var(--on-dark-mute);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .05em;
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar__badges { display: flex; gap: 1.35rem; flex-wrap: wrap; align-items: center; }
.topbar__badge { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar__badge svg { width: 13px; height: 13px; color: var(--green); flex: none; }
.topbar__badge b { color: var(--paper); font-weight: 600; }
.topbar a { color: var(--paper); text-decoration: none; }
.topbar a:hover { color: var(--green); }
@media (max-width: 860px) { .topbar { display: none; } }

.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .25s var(--ease);
}
/* The frosted ground lives on a pseudo-element, not on .header itself:
   backdrop-filter on an ancestor makes it the containing block for
   position:fixed descendants, which would trap the mobile nav drawer. */
.header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(22,35,63,.09); }
.header__in {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 76px;
}
.header__logo { flex: none; display: block; }
.header__logo img { width: clamp(158px, 18vw, 200px); height: auto; }

.nav { margin-left: auto; }
.nav__list {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  display: block; padding: .5rem .55rem;
  font-family: var(--display); font-weight: 600; font-size: .875rem;
  letter-spacing: .02em; color: var(--ink); text-decoration: none;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--blue); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); }

/* Sits above the fixed nav drawer so the burger stays reachable as the close button. */
.header__cta { display: flex; align-items: center; gap: .6rem; flex: none; position: relative; z-index: 2; }
.header__tel {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .875rem; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: .5rem .85rem; border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.header__tel svg { width: 15px; height: 15px; color: var(--blue); }
.header__tel:hover { border-color: var(--navy); }

.burger {
  display: none;
  width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: var(--asphalt);
    padding: 6rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0,0,0,.3);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-dark); }
  .nav__link {
    padding: 1rem .25rem; font-size: 1.05rem; color: var(--paper);
    text-transform: uppercase; font-weight: 700; border-radius: 0;
  }
  .nav__link:hover, .nav__link[aria-current="page"] { color: var(--green); box-shadow: none; }
  /* .nav is taken out of flow here, so its margin-left:auto no longer pushes
     the controls right — move that job to .header__cta. */
  .header__cta { margin-left: auto; }
  .header__cta .header__tel { display: none; }
  .burger { display: inline-flex; }
  body[data-lock] { overflow: hidden; }
}
@media (max-width: 560px) {
  .header__cta .btn { display: none; }
}

.scrim {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(13,21,36,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--asphalt);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,21,36,.95) 0%, rgba(13,21,36,.86) 30%,
                            rgba(22,35,63,.5) 56%, rgba(22,35,63,.18) 100%),
    linear-gradient(to top, rgba(13,21,36,.88) 0%, transparent 42%);
}
/* On a narrow viewport the 100deg scrim swallows the whole frame, so switch it
   to a vertical wash and let the photograph read behind the type. */
@media (max-width: 760px) {
  .hero__media img { object-position: 58% 50%; }
  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(13,21,36,.92) 0%, rgba(13,21,36,.72) 38%,
                                 rgba(22,35,63,.55) 62%, rgba(13,21,36,.9) 100%);
  }
}

.hero__in { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2rem, 4vw, 3rem); }
.hero__body { max-width: 46rem; display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 { color: var(--paper); }
.hero h1 .hl { color: var(--green); }
.hero__sub {
  font-size: var(--t-lg);
  color: var(--on-dark);
  max-width: 40rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .35rem; }

/* Dividers sit in the gutter between cells, never against the type. The first
   cell of each row stays flush left so it lines up with the hero copy above. */
.hero__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}
.hero__fact {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.hero__fact:last-child { border-bottom: 0; }

@media (min-width: 620px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__fact { padding: 1.15rem 1.75rem; border-bottom: 0; border-left: 1px solid var(--line-dark); }
  .hero__fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  /* keep the two rows apart */
  .hero__fact:nth-child(1), .hero__fact:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
}

@media (min-width: 1000px) {
  .hero__facts { grid-template-columns: repeat(4, 1fr); }
  .hero__fact { padding: 1.15rem 1.75rem; border-left: 1px solid var(--line-dark); border-bottom: 0; }
  .hero__fact:nth-child(odd) { padding-left: 1.75rem; border-left: 1px solid var(--line-dark); }
  .hero__fact:nth-child(1), .hero__fact:nth-child(2) { border-bottom: 0; }
  .hero__fact:first-child { padding-left: 0; border-left: 0; }
  .hero__fact:last-child { padding-right: 0; }
}
.hero__fact dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: .3rem;
}
.hero__fact dd {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: 1.05rem; color: var(--paper); letter-spacing: -.005em;
}
.hero__fact dd .u { color: var(--green); }

/* --------------------------------------------------------------------------
   8. Credentials strip
   -------------------------------------------------------------------------- */
.creds { background: var(--paper); border-bottom: 1px solid var(--line-2); }
.creds__in {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap; padding-block: 1.35rem;
}
.creds__label {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); flex: none;
}
.creds__list {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; margin: 0; padding: 0;
}
.cred {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink);
  white-space: nowrap;
}
.cred svg { width: 15px; height: 15px; color: var(--green-dark); flex: none; }
.cred .code { font-family: var(--mono); font-size: .8rem; color: var(--body); }
/* Dashed outline, not reduced opacity — opacity dropped these below AA. */
.cred--todo { border-style: dashed; color: var(--muted); }
.cred--todo svg { color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.svc {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.svc__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,21,36,.65), transparent 55%);
}
.svc__flag {
  position: absolute; z-index: 1; left: 0; bottom: 0;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green); color: var(--ink);
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .7rem;
}
.svc__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.svc__title {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); letter-spacing: -.01em; line-height: 1.15;
}
.svc__desc { font-size: var(--t-sm); color: var(--body); flex: 1; }
.svc__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-top: .85rem; border-top: 1px solid var(--line-2);
}
.svc__price { font-family: var(--mono); font-size: var(--t-sm); color: var(--muted); }
.svc__price b { color: var(--ink); font-size: 1rem; font-weight: 700; }
.svc__go {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--blue-tint); color: var(--navy); flex: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.svc__go svg { width: 14px; height: 14px; }
.svc:hover .svc__go { background: var(--green); color: var(--ink); transform: translateX(3px); }

.svc--flat .svc__body { padding-top: 1.4rem; }
.svc--flat .svc__icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--blue-tint); color: var(--navy); margin-bottom: .2rem;
}
.svc--flat .svc__icon svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   10. Quote bar & forms
   -------------------------------------------------------------------------- */
.quotebar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--asphalt-2) 100%);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.quotebar::before {
  content: ''; position: absolute; top: 0; right: 0; width: 5px; height: 100%;
  background: repeating-linear-gradient(180deg, var(--blue) 0 12px, var(--green) 12px 24px);
}
.quotebar__head { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: baseline; margin-bottom: 1.35rem; }
.quotebar__head h3 { color: var(--paper); }
.quotebar__note { font-family: var(--mono); font-size: var(--t-xs); color: var(--green-lite); letter-spacing: .06em; }

.qform { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.qform .field--action { display: flex; }
.qform .field--action .btn {
  width: 100%;
  justify-content: space-between;
  min-height: var(--control-h);
  padding-block: 0;              /* height comes from --control-h, not padding */
}

.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-mute);
}
.field input, .field select, .field textarea {
  font-family: var(--text); font-size: .95rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: .7rem .9rem;
  min-height: var(--control-h);
  width: 100%;
  min-width: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }

.form-light .field label { color: var(--muted); }
.form-light .field input,
.form-light .field select,
.form-light .field textarea { border-color: var(--line); }
.form-light .field input:hover,
.form-light .field select:hover,
.form-light .field textarea:hover { border-color: var(--blue); }

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

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line-dark); }
.stat { background: var(--asphalt); padding: 1.6rem 1.4rem; }
.stat__n {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1;
  color: var(--green); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  display: block; margin-bottom: .5rem;
}
.stat__k {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper); display: block; margin-bottom: .4rem;
}
.stat__d { font-size: var(--t-sm); color: var(--on-dark-mute); margin: 0; }

/* --------------------------------------------------------------------------
   12. Data table (EWC materials)
   -------------------------------------------------------------------------- */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
table.data { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--t-sm); }
table.data th, table.data td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data thead th {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
  background: var(--paper-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--blue-tint); }
table.data .ewc {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  color: var(--navy); font-weight: 600; white-space: nowrap;
}
table.data .mat { color: var(--ink); font-weight: 600; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: .18rem .5rem; border-radius: 4px; white-space: nowrap;
}
.tag--inert { background: #E9F2E4; color: #3F6B2C; }
.tag--haz   { background: #FBEFE8; color: #8F4A15; }

/* --------------------------------------------------------------------------
   13. Split feature
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.15fr 1fr; }
}
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--asphalt); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 5px;
  background: repeating-linear-gradient(115deg, var(--blue) 0 10px, var(--green) 10px 20px);
}

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; font-size: var(--t-sm); }
.ticks svg { width: 20px; height: 20px; color: var(--green-dark); margin-top: .15rem; }
.section--dark .ticks svg { color: var(--green); }
.ticks b { color: var(--ink); font-weight: 600; }
.section--dark .ticks b { color: var(--paper); }

/* --------------------------------------------------------------------------
   14. Sectors
   -------------------------------------------------------------------------- */
.sector {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.5rem 1.4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.sector:hover { background: rgba(255,255,255,.08); border-color: var(--green); transform: translateY(-3px); }
.sector__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(140,200,105,.15); color: var(--green);
}
.sector__icon svg { width: 21px; height: 21px; }
/* h3 for correct document outline; sized like an h4. */
.sector h3 { color: var(--paper); font-size: var(--t-h4); }
.sector p { font-size: var(--t-sm); color: var(--on-dark-mute); }

/* --------------------------------------------------------------------------
   15. Areas
   -------------------------------------------------------------------------- */
.areas__list { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.area {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
  font-size: var(--t-sm); font-weight: 500; text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.area svg { width: 13px; height: 13px; color: var(--blue); }
.area:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.area:hover svg { color: var(--green); }

/* --------------------------------------------------------------------------
   16. Pull quote
   -------------------------------------------------------------------------- */
.pull {
  border-left: 4px solid var(--green);
  padding: .25rem 0 .25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.pull blockquote {
  margin: 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.3; color: var(--ink); letter-spacing: -.015em;
}
.section--dark .pull blockquote { color: var(--paper); }
.pull cite {
  font-style: normal; font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.section--dark .pull cite { color: var(--on-dark-mute); }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta { background: var(--green); color: var(--ink); position: relative; overflow: hidden; }
.cta__in { display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 880px) { .cta__in { grid-template-columns: 1.3fr auto; } }
.cta h2 { color: var(--ink); }
.cta p { color: rgba(22,35,63,.78); max-width: 46ch; margin-top: .75rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .btn--navy .btn__arrow { background: var(--green); color: var(--ink); }
.cta .btn--outline { border-color: rgba(22,35,63,.35); }
.cta .btn--outline .btn__arrow { background: rgba(22,35,63,.1); color: var(--ink); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--asphalt); color: var(--on-dark-mute); font-size: var(--t-sm); }
.footer__grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__brand { display: flex; flex-direction: column; gap: 1.15rem; }
.footer__brand img { width: 190px; }
/* h3 keeps the outline sequential after the last h2 in <main>; styled as a label. */
.footer h3 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); font-weight: 600; margin: 0 0 1rem;
  line-height: 1.4;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer a { color: var(--on-dark-mute); text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__tel {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600;
  color: var(--paper); display: inline-block;
}
.footer__legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem 2rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
}
.footer__legal ul { flex-direction: row; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   19. Mobile call bar
   -------------------------------------------------------------------------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ink);
    border-top: 3px solid var(--green);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem .5rem;
    font-family: var(--display); font-weight: 700; font-size: .82rem;
    letter-spacing: .06em; text-transform: uppercase;
    color: #fff; text-decoration: none;
  }
  .callbar a + a { background: var(--green); color: var(--ink); }
  .callbar svg { width: 16px; height: 16px; }
  body { padding-bottom: 62px; }
}

/* --------------------------------------------------------------------------
   20. Interior page header + article layout
   -------------------------------------------------------------------------- */
.pagehead { position: relative; background: var(--asphalt); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(13,21,36,.95) 20%, rgba(22,35,63,.7) 70%, rgba(22,35,63,.45) 100%);
}
.pagehead__in { padding-block: clamp(2.75rem, 6vw, 4.75rem); display: flex; flex-direction: column; gap: 1.1rem; }
.pagehead h1 { color: var(--paper); font-size: clamp(2rem, 1.5rem + 2.6vw, 3.6rem); }
.pagehead p { max-width: 52ch; font-size: var(--t-lg); color: var(--on-dark); }

.crumbs {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em;
  color: var(--on-dark-mute);
}
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li::after { content: '/'; margin-left: .45rem; color: rgba(255,255,255,.3); }
.crumbs li:last-child::after { content: ''; }

.layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0,1fr) 360px; } }

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1.1rem; }
.prose h2 { font-size: var(--t-h3); text-transform: none; letter-spacing: -.02em; margin-top: 1rem; }
.prose h3 { font-size: var(--t-h4); margin-top: .75rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 900px) { .aside { position: static; } }

.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.35rem; box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: .85rem; font-size: var(--t-h4); }
.panel--dark { background: var(--asphalt-2); border-color: transparent; color: var(--on-dark-mute); }
.panel--dark h3 { color: var(--paper); }
.panel--dark .field label { color: var(--on-dark-mute); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: .5rem; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > *:not(summary) { padding-bottom: 1.15rem; max-width: 68ch; }

/* --------------------------------------------------------------------------
   21. Reveal on scroll (progressive — content is visible without JS)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    /* Without this, an infinite animation (the chevron) restarts thousands of
       times a second instead of stopping — flicker, not stillness. */
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.mono { font-family: var(--mono); }
.nums { font-variant-numeric: tabular-nums; }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gap-sm { --gap: .6rem; }
.gap-lg { --gap: 1.5rem; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.maxw-prose { max-width: 62ch; }
