/* ============================================================
   Ex BT Engineer London — main.css (v2, redesigned)
   Plain, warm, photo-led. Type scale at practical proportions.
   Big Shoulders Display reserved for logotype + phone CTAs only.
   ============================================================ */

/* ─── @font-face (self-hosted variable WOFF2) ─── */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-var-latin.woff2') format('woff2-variations'),
       url('/assets/fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-var-latin.woff2') format('woff2-variations'),
       url('/assets/fonts/big-shoulders-display-var-latin.woff2') format('woff2');
}


/* ─── tokens ─── */

:root {
  /* paper / ink */
  --paper:        #f3efe3;
  --paper-deep:   #e8e2d0;
  --paper-line:   #d8d1bd;
  --ink:          #15181d;
  --ink-soft:     #2e3239;
  --ink-muted:    #5b6068;
  --ink-quiet:    #8a8e94;

  /* brand */
  --bt-blue:        #003b6f;
  --bt-blue-bright: #0a5fa6;
  --bt-blue-deep:   #001f3d;
  --bt-blue-tint:   #d8e4ee;
  --signal-red:     #b9182b;
  --signal-amber:   #c9882a;

  /* rules */
  --rule:        #c8c0aa;
  --rule-strong: #8a8267;

  /* type families */
  --ff-display: 'Big Shoulders Display', 'Impact', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --ff-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* fluid scale — practical proportions, not poster */
  --fs-micro:      clamp(0.6875rem, 0.66rem + 0.08vw, 0.75rem);
  --fs-small:      clamp(0.8125rem, 0.78rem + 0.12vw, 0.9375rem);
  --fs-body:       clamp(1rem,   0.96rem + 0.15vw, 1.125rem);    /* 16 -> 18 */
  --fs-lede:       clamp(1.0625rem, 1rem + 0.3vw,  1.25rem);     /* 17 -> 20 */
  --fs-h3:         clamp(1.1875rem, 1.1rem + 0.4vw, 1.5rem);     /* 19 -> 24 */
  --fs-h2:         clamp(1.5rem,  1.3rem + 0.9vw, 2.125rem);     /* 24 -> 34 */
  --fs-h1:         clamp(1.875rem, 1.55rem + 1.4vw, 2.875rem);   /* 30 -> 46 */
  --fs-phone-hero: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);       /* 36 -> 56 */
  --fs-phone-cta:  clamp(2rem,   1.55rem + 1.8vw, 3rem);         /* 32 -> 48 */

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: clamp(0.75rem, 0.6rem + 0.5vw, 1.25rem);
  --space-4: clamp(1rem,   0.85rem + 0.6vw, 1.5rem);
  --space-5: clamp(1.25rem, 1rem + 1vw, 2.25rem);
  --space-6: clamp(1.75rem, 1.4rem + 1.5vw, 3.25rem);
  --space-7: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  --space-8: clamp(3.5rem, 2.8rem + 3vw, 6rem);

  /* layout */
  --content-max: 74rem;       /* 1184px */
  --reading-max: 40rem;       /* 640px */
  --gutter:      clamp(1.25rem, 0.9rem + 1.5vw, 2.75rem);

  /* motion */
  --tr-fast: 140ms cubic-bezier(.2,.7,.3,1);
  --tr-med:  260ms cubic-bezier(.2,.7,.3,1);
}


/* ─── reset & base ─── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--bt-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--tr-fast);
}
a:hover, a:focus-visible { color: var(--signal-red); }

button {
  font: inherit; background: none; border: 0; color: inherit; cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--signal-red);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--bt-blue); color: var(--paper); }

.skip-link {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: var(--space-2) var(--space-3);
}
.skip-link:focus {
  left: var(--space-3); top: var(--space-3);
  width: auto; height: auto; z-index: 9999;
}

.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ─── HEADER (sticky, thin) ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 227, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 60px;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.site-logo .lm-ex {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-blue);
  padding: 0.35em 0.55em;
  border: 1px solid var(--bt-blue);
  border-radius: 1px;
  align-self: center;
}
.site-logo .lm-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.4rem);
  letter-spacing: -0.005em;
}

.primary-nav { display: none; }

@media (min-width: 920px) {
  .primary-nav { display: block; justify-self: end; margin-right: var(--space-3); }
  .primary-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: clamp(var(--space-3), 1.6vw, var(--space-4));
  }
  .primary-nav a {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 0.5em 0;
    border-bottom: 1px solid transparent;
    transition: border-color var(--tr-fast), color var(--tr-fast);
  }
  .primary-nav a:hover, .primary-nav a:focus-visible {
    color: var(--bt-blue); border-bottom-color: var(--bt-blue); outline: none;
  }
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  color: var(--paper);
  background: var(--bt-blue);
  padding: 0.55em 0.9em;
  border-radius: 2px;
  line-height: 1;
  transition: background var(--tr-fast);
}
.header-call:hover, .header-call:focus-visible {
  background: var(--signal-red);
  color: var(--paper);
  outline: none;
}
.header-call-icon { font-size: 1em; }
.header-call-number {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.header-call-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-right: 0.2em;
}
@media (max-width: 480px) {
  .header-call-label { display: none; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px; min-height: 44px;
  justify-content: center; align-items: center;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 920px) { .menu-toggle { display: none; } }

#primary-nav.mobile-open {
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-3) var(--gutter) var(--space-4);
}
#primary-nav.mobile-open ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
#primary-nav.mobile-open li a {
  display: block;
  padding: 0.85em 0;
  font-size: var(--fs-lede);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-line);
}


/* ─── HERO (split: text left, photo right on desktop; stacked on mobile) ─── */

.hero {
  padding-block: clamp(var(--space-5), 4vw, var(--space-7));
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-6); }
}

.hero-text > * + * { margin-top: var(--space-3); }
.hero-text > p:first-child { margin-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.eyebrow::before {
  content: '';
  width: 1.6em; height: 1px;
  background: var(--bt-blue);
}

.hero h1 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--bt-blue); }

.hero-sub {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}

.hero-cta {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 0 var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bt-blue);
  color: var(--paper);
  border-radius: 2px;
  text-decoration: none;
  text-align: left;
  transition: background var(--tr-fast), transform var(--tr-fast);
  margin-top: var(--space-2);
}
.hero-cta:hover, .hero-cta:focus-visible {
  background: var(--signal-red);
  color: var(--paper);
  outline: none;
}
.hero-cta-icon {
  font-size: 1.6em;
  line-height: 1;
  grid-row: span 2;
}
.hero-cta-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-cta-number {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-phone-cta);
  line-height: 1;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em var(--space-3);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 0.4em; }
.hero-meta li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bt-blue); flex-shrink: 0;
}

.hero-photo {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 14px 40px -20px rgba(0, 31, 61, 0.5),
              0 2px 6px -2px rgba(0, 31, 61, 0.2);
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,31,61,0) 60%, rgba(0,31,61,0.35) 100%);
  pointer-events: none;
}
.hero-photo-caption {
  position: absolute;
  left: var(--space-3); right: var(--space-3);
  bottom: var(--space-3);
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  z-index: 1;
}


/* ─── TRUST STRIP (thin band, below hero) ─── */

.trust-strip {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) clamp(var(--space-3), 3vw, var(--space-5));
  list-style: none; padding: var(--space-3) var(--gutter); margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.trust-strip li {
  display: inline-flex; align-items: center; gap: 0.45em;
}
.trust-strip li::before {
  content: '✓';
  display: inline-block;
  color: var(--bt-blue);
  font-weight: 700;
}


/* ─── SECTIONS (generic) ─── */

.section { padding-block: clamp(var(--space-6), 5vw, var(--space-7)); }
.section-tinted { background: var(--paper-deep); border-block: 1px solid var(--paper-line); }
.section-dark   { background: var(--ink); color: var(--paper); }

.section-header { max-width: 50rem; margin-bottom: var(--space-5); }
.section-header > * + * { margin-top: var(--space-2); }

.h2 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.section-dark .h2 { color: var(--paper); }

.section-lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 48ch;
}
.section-dark .section-lede { color: rgba(243, 239, 227, 0.78); }


/* ─── SERVICE CARDS (3-up, with photos) ─── */

.service-cards {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .service-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .service-cards { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--bt-blue);
  box-shadow: 0 18px 40px -22px rgba(0, 31, 61, 0.35);
}
.service-card-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-deep);
}
.service-card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 480ms cubic-bezier(.2,.7,.3,1);
}
.service-card:hover .service-card-photo img { transform: scale(1.04); }
.service-card-body {
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
  flex: 1;
}
.service-card h3 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.service-card p {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3em;
  font-size: var(--fs-small);
}
.service-card ul li {
  display: grid;
  grid-template-columns: 1em 1fr;
  gap: 0.5em;
  color: var(--ink-soft);
}
.service-card ul li::before {
  content: '✓';
  color: var(--bt-blue);
  font-weight: 700;
}
.service-card-link {
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-blue);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4em;
  align-self: flex-start;
}
.service-card-link::after {
  content: '→'; transition: transform var(--tr-fast);
}
.service-card-link:hover {
  color: var(--signal-red);
}
.service-card-link:hover::after { transform: translateX(4px); }


/* ─── WORK GALLERY ─── */

.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.3,1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-2);
  background: linear-gradient(0deg, rgba(0,31,61,0.85) 0%, rgba(0,31,61,0) 100%);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  pointer-events: none;
}


/* ─── ABOUT (split layout: text + image) ─── */

.about {
  background: var(--paper-deep);
  border-block: 1px solid var(--paper-line);
}
.about-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-6); } }

.about-text > * + * { margin-top: var(--space-3); }
.about-text p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.about-text p.lede {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-lede);
  color: var(--ink);
  line-height: 1.4;
}
.about-text ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 0.6em;
}
.about-text ul li {
  display: grid;
  grid-template-columns: 1em 1fr;
  gap: 0.6em;
  font-size: var(--fs-body);
  color: var(--ink-soft);
}
.about-text ul li::before {
  content: '✓';
  color: var(--bt-blue);
  font-weight: 700;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ─── COVERAGE (4 columns of areas, no dark band) ─── */

.coverage-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) { .coverage-grid { grid-template-columns: repeat(4, 1fr); } }

.region-block { display: grid; gap: var(--space-2); align-content: start; }
.region-block h3 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  letter-spacing: -0.005em;
  margin: 0;
}
.region-block h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr-fast);
}
.region-block h3 a:hover { border-bottom-color: var(--bt-blue); color: var(--bt-blue); }
.region-block ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.25em;
}
.region-block ul li a {
  display: inline-block;
  font-size: var(--fs-small);
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.2em 0;
  border-bottom: 1px solid transparent;
  transition: color var(--tr-fast), border-color var(--tr-fast);
}
.region-block ul li a:hover {
  color: var(--bt-blue);
  border-bottom-color: var(--bt-blue);
}


/* ─── WHY-US row ─── */

.why-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-item {
  border-top: 2px solid var(--bt-blue);
  padding-top: var(--space-3);
}
.why-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--bt-blue);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-2);
}
.why-item h3 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
.why-item p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}


/* ─── CTA BAND ─── */

.cta-band {
  background: var(--bt-blue);
  color: var(--paper);
  padding-block: clamp(var(--space-6), 5vw, var(--space-7));
  text-align: center;
}
.cta-band-lede {
  font-size: var(--fs-lede);
  margin: 0 auto var(--space-3);
  max-width: 38ch;
  color: rgba(243, 239, 227, 0.85);
}
.cta-band-number {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-phone-hero);
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--paper);
  text-decoration: none;
  line-height: 1;
  padding: 0.1em 0;
  border-bottom: 2px solid rgba(243, 239, 227, 0.45);
  transition: border-color var(--tr-fast), color var(--tr-fast);
}
.cta-band-number:hover, .cta-band-number:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.cta-band-meta {
  margin: var(--space-3) 0 0;
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  color: rgba(243, 239, 227, 0.75);
}


/* ─── PAGE HERO (smaller hero used on content pages) ─── */

.page-hero {
  padding-block: clamp(var(--space-5), 4vw, var(--space-6));
  border-bottom: 1px solid var(--rule);
}
.page-hero-inner { display: grid; gap: var(--space-3); max-width: 50rem; }
.page-hero h1 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.page-hero .hero-sub {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}

.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.4em;
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0; padding: 0;
  list-style: none;
}
.crumbs li:not(:last-child)::after { content: '·'; margin-left: 0.4em; color: var(--rule-strong); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--bt-blue); }
.crumbs li[aria-current="page"] { color: var(--ink); }


/* ─── ARTICLE BODY (reading width) ─── */

.article { padding-block: clamp(var(--space-5), 4vw, var(--space-7)); }
.article-body {
  max-width: var(--reading-max);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
}
.article-body > * + * { margin-top: var(--space-3); }
.article-body h2 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--ink);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}
.article-body p { margin: 0 0 var(--space-3); color: var(--ink-soft); }
.article-body p.lede {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-lede);
  color: var(--ink);
  line-height: 1.45;
  border-left: 3px solid var(--bt-blue);
  padding-left: var(--space-3);
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol {
  padding-left: 1.4em;
  margin: var(--space-3) 0;
}
.article-body li { margin-bottom: 0.4em; line-height: 1.55; }
.article-body a {
  color: var(--bt-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.article-body a:hover { color: var(--signal-red); }
.article-body blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--bt-blue);
  background: var(--paper-deep);
  font-style: italic;
}

.tech-detail {
  padding: var(--space-4);
  background: var(--paper-deep);
  border-left: 3px solid var(--rule-strong);
  margin: var(--space-4) 0;
}
.tech-detail-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.5em;
}
.tech-detail-name {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-2);
}
.tech-detail p { margin: 0 0 0.6em; }
.tech-detail p:last-child { margin-bottom: 0; }


/* ─── FAQ ─── */

.faq { padding-block: clamp(var(--space-5), 4vw, var(--space-7)); }
.faq-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  max-width: var(--reading-max);
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-3) 0;
}
.faq-item summary {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--ink);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  padding: 0.25em 2em 0.25em 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0.05em;
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: 1.5em;
  color: var(--bt-blue);
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  line-height: 1.6;
}
.faq-answer p { margin: 0 0 var(--space-2); }
.faq-answer p:last-child { margin: 0; }


/* ─── SISTER FOOTER ─── */

.site-footer {
  background: var(--ink);
  color: rgba(243, 239, 227, 0.78);
  padding-block: clamp(var(--space-5), 4vw, var(--space-7));
}
.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer-col p, .footer-col ul, .footer-col address { margin: 0; }
.footer-brand {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  color: var(--paper);
  margin-bottom: var(--space-2) !important;
  line-height: 1.05;
}
.footer-byline {
  font-size: var(--fs-small);
  color: rgba(243, 239, 227, 0.65);
  margin-bottom: var(--space-3) !important;
}
.footer-tax {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: rgba(243, 239, 227, 0.5);
  line-height: 1.6;
}
.footer-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 239, 227, 0.55);
  margin-bottom: var(--space-2) !important;
}
.footer-phone {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem);
  color: var(--paper);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.4em;
}
.footer-phone:hover { color: var(--signal-amber); }
.footer-email {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  color: rgba(243, 239, 227, 0.88);
  text-decoration: underline;
  text-decoration-color: rgba(243, 239, 227, 0.3);
  text-underline-offset: 0.2em;
  margin-bottom: var(--space-3);
  word-break: break-all;
}
.footer-address {
  font-style: normal;
  font-size: var(--fs-small);
  color: rgba(243, 239, 227, 0.7);
  line-height: 1.5;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li a {
  display: block;
  padding: 0.25em 0;
  font-size: var(--fs-small);
  color: rgba(243, 239, 227, 0.78);
  text-decoration: none;
}
.footer-col li a:hover { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; }

.footer-network {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(243, 239, 227, 0.12);
}

.network-banner {
  text-align: center;
  margin: 0 auto var(--space-5);
  max-width: 44rem;
}
.network-banner-eyebrow {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.82rem + 0.6vw, 1.25rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 239, 227, 0.92);
  margin: 0 0 var(--space-4) !important;
  line-height: 1.2;
}
.network-banner-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  padding: clamp(0.9rem, 0.6rem + 1.2vw, 1.6rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--paper);
  border: 2px solid var(--bt-blue);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 8px 24px -12px rgba(0, 31, 61, 0.6);
}
.network-banner-badge::before,
.network-banner-badge::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--bt-blue);
  background: var(--paper);
}
.network-banner-badge::before {
  top: -8px; left: -8px;
  border-right: 0; border-bottom: 0;
}
.network-banner-badge::after {
  bottom: -8px; right: -8px;
  border-left: 0; border-top: 0;
}
.network-banner-badge-mark {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.875rem, 1.45rem + 2.2vw, 3.25rem);
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--bt-blue);
}
.network-banner-badge-sub {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .network-banner-badge-sub { white-space: normal; text-align: center; max-width: 18em; }
}
.footer-network ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3);
}
.footer-network li a {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  color: rgba(243, 239, 227, 0.6);
  text-decoration: none;
  border-bottom: 1px dotted rgba(243, 239, 227, 0.25);
  padding-bottom: 0.1em;
}
.footer-network li a:hover {
  color: var(--paper);
  border-bottom-color: rgba(243, 239, 227, 0.7);
  border-bottom-style: solid;
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: rgba(243, 239, 227, 0.5);
  border-top: 1px solid rgba(243, 239, 227, 0.12);
}


/* ─── STICKY MOBILE CALL BAR ─── */

.sticky-call {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--bt-blue);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem);
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  min-height: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -8px 30px -10px rgba(17, 21, 27, 0.25);
}
.sticky-call:hover, .sticky-call:focus-visible {
  background: var(--signal-red); color: var(--paper); outline: none;
}
.sticky-call-icon { font-size: 1.1em; line-height: 1; }
.sticky-call-tap {
  font-family: var(--ff-mono);
  font-size: 0.55em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.75;
  margin-right: 0.4em;
}
@media (min-width: 768px) { .sticky-call { display: none; } }
@media (max-width: 767px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom) + 0.75rem); }
}


/* ─── BLOG ─── */

.post-meta {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: var(--space-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em var(--space-3);
}
.post-meta li { list-style: none; display: inline-flex; align-items: center; gap: 0.45em; }
.post-meta li + li::before {
  content: '·';
  margin-right: 0.45em;
  color: var(--rule-strong);
}

.post-lead {
  padding-block: var(--space-4) 0;
  margin: 0;
}
.post-lead figure { margin: 0; max-width: var(--reading-max); }
.post-lead .post-lead-photo {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}
.post-lead .post-lead-photo img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* index of all posts */
.blog-index-cards {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .blog-index-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .blog-index-cards { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--bt-blue);
  box-shadow: 0 18px 40px -22px rgba(0, 31, 61, 0.35);
}
.blog-card-photo {
  position: relative;
  aspect-ratio: 5 / 3;
  max-height: 11rem;
  overflow: hidden;
  background: var(--paper-deep);
}
.blog-card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 480ms cubic-bezier(.2,.7,.3,1);
}
.blog-card:hover .blog-card-photo img { transform: scale(1.04); }
.blog-card-body {
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
  flex: 1;
}
.blog-card-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bt-blue);
  margin: 0;
}
.blog-card h3 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.blog-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.blog-card:hover h3 a { color: var(--bt-blue); }
.blog-card p {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}

/* related-posts strip */
.related-posts h2 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--fs-h2);
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

/* ─── NEIGHBOURHOOD GRID (used on region pages) ─── */

.neighbourhood-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .neighbourhood-grid { grid-template-columns: repeat(4, 1fr); } }
.neighbourhood-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: background var(--tr-fast), border-color var(--tr-fast), color var(--tr-fast);
}
.neighbourhood-grid a:hover, .neighbourhood-grid a:focus-visible {
  background: var(--bt-blue);
  border-color: var(--bt-blue);
  color: var(--paper);
  outline: none;
}
.nbh-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bt-blue);
}
.neighbourhood-grid a:hover .nbh-tag,
.neighbourhood-grid a:focus-visible .nbh-tag { color: var(--paper); }
.nbh-name {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-h3);
}
