/* Antenna Systems - site styles. Mobile-first. Tokens sampled from the client leaflet. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Brand */
  --brand-teal: #07b19f;        /* accents, icons, teal text on dark (7.8:1 on black) */
  --brand-teal-bright: #3fd0bf; /* focus ring on dark */
  --brand-teal-dark: #00796f;   /* buttons with white text, links on light (5.3:1) */
  --brand-teal-darker: #00635b;
  --brand-teal-tint: #e3f4f1;
  --ink: #000808;
  --panel: #131e21;
  --panel-2: #1c2a2e;

  /* Neutrals */
  --text: #13201f;
  --text-muted: #4a5a59;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c3d1cf;
  --surface: #ffffff;
  --surface-alt: #f2f6f5;
  --border: #d8e3e1;
  --border-dark: #2c3c40;
  --note-bg: #fff6dc;
  --note-border: #c98a00;

  /* Type */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-4: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem);

  /* Layout */
  --wrap: 72rem;
  --gutter: 1rem;
  --radius: 12px;
  --radius-sm: 8px;
  --space: clamp(3rem, 2rem + 4vw, 5.5rem);
  --header-h: 4rem;
  --focus: var(--brand-teal-dark);
}

@media (min-width: 48em) { :root { --gutter: 1.5rem; } }

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, .h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-teal-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-teal-darker); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
ul { padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); 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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand-teal); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }

/* Dark contexts */
.dark, .site-header, .hero, .page-hero, .site-footer, .demo-bar {
  --focus: var(--brand-teal-bright);
  color: var(--text-on-dark);
}
.dark a:not(.btn), .site-footer a { color: var(--text-on-dark); }

/* --- Demo bar & review notes ------------------------------------------------ */
.demo-bar {
  background: #2a2f31; color: #d9dfe0; text-align: center;
  font-size: 0.75rem; font-weight: 500; padding: 0.25rem var(--gutter);
}
.review-note {
  margin: 1.5rem 0; padding: 0.85rem 1rem;
  background: var(--note-bg); border: 2px dashed var(--note-border); border-radius: var(--radius-sm);
  color: #3d2c00; font-size: var(--step--1); line-height: 1.5;
}
.dark .review-note, .hero .review-note, .page-hero .review-note { color: #3d2c00; }
.review-note[id] { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; }
.review-note[id] strong { background: var(--note-border); color: #fff; padding: 0.1rem 0.5rem; border-radius: 4px; font-size: 0.8rem; letter-spacing: 0.04em; }

/* --- Buttons ------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brand-teal-dark); color: #fff; }
.btn-primary:hover { background: var(--brand-teal-darker); color: #fff; }
.btn-primary.on-dark { background: var(--brand-teal); color: #00110f; }
.btn-primary.on-dark:hover { background: var(--brand-teal-bright); color: #00110f; }
.btn-secondary { background: transparent; color: var(--brand-teal-dark); border-color: currentColor; }
.btn-secondary:hover { background: var(--brand-teal-tint); color: var(--brand-teal-darker); }
.btn-secondary.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-secondary.on-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; }
@media (max-width: 29.99em) { .btn-row .btn { flex: 1 1 100%; } }

.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* --- Header -------------------------------------------------------------- */
/* Mobile: brand + Call/Email/Menu; nav is a panel below the bar.
   Desktop: single row - brand | nav | phone, all inside the centred .wrap. */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border-dark); }
.header-inner { position: relative; display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.no-js .header-inner { flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; margin-right: auto; }
.brand:hover { color: #fff; }
.brand img { width: 3.2rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brand-1 { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; }
.brand-2 { font-weight: 400; font-size: 1.1rem; letter-spacing: 0.16em; }
.tagline { font-family: var(--font-script); font-weight: 500; color: var(--brand-teal); font-size: 1.6rem; line-height: 1; margin: 0; }

.header-contact { display: none; list-style: none; margin: 0; padding: 0; text-align: right; }
.site-header a { color: var(--text-on-dark); }
.header-tel { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.header-tel .icon { color: var(--brand-teal); }
.header-email { font-size: var(--step--1); color: var(--text-on-dark-muted) !important; text-decoration: none; }
.header-tel:hover span, .header-email:hover { text-decoration: underline; }

.header-actions { display: flex; gap: 0.25rem; }
.icon-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-width: 3rem; min-height: 3rem; padding: 0.25rem 0.4rem; border-radius: var(--radius-sm);
  background: none; border: 0; color: #fff; font: inherit; font-size: 0.7rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.site-header .icon-btn { color: #fff; }
.icon-btn .icon { color: var(--brand-teal); width: 1.4rem; height: 1.4rem; }
.icon-btn:hover { background: var(--panel); }
.menu-toggle .icon-close, .nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }
.no-js .menu-toggle { display: none; }

/* Navigation: mobile panel */
.site-nav { background: var(--panel); }
.no-js .site-nav { order: 10; flex-basis: 100%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.js .site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  padding-inline: var(--gutter); border-top: 1px solid var(--border-dark); box-shadow: 0 16px 24px rgba(0, 0, 0, 0.4);
}
.js .nav-open .site-nav { display: block; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.nav-list { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.nav-list > li { border-bottom: 1px solid var(--border-dark); }
.nav-list a {
  display: flex; align-items: center; min-height: 3rem; padding: 0.5rem 0;
  color: #fff; text-decoration: none; font-weight: 600;
}
.nav-list a:hover { color: var(--brand-teal); }
.nav-list a[aria-current="page"] { color: var(--brand-teal); }
.nav-list a[aria-current="page"]::before {
  content: ""; width: 4px; height: 1.2em; background: var(--brand-teal); border-radius: 2px; margin-right: 0.6rem;
}
/* On mobile the services list is always shown, under a plain label (2 taps to any service). */
.sub-toggle { display: none; }
.sub-label { display: block; padding: 0.85rem 0 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-list a { font-weight: 500; min-height: 2.75rem; padding-left: 0.75rem; }
.sub-h { margin: 0.5rem 0 0; padding: 0.5rem 0 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted); border-top: 1px solid var(--border-dark); }

/* Navigation: desktop single row */
@media (min-width: 64em) {
  :root { --header-h: 4.75rem; }
  .site-header { position: static; }
  .brand { margin-right: 0; }
  .brand img { width: 3.6rem; }
  .brand-1, .brand-2 { font-size: 1.2rem; }
  .header-actions { display: none; }
  .header-contact { display: block; margin-left: auto; }
  .js .site-nav, .no-js .site-nav, .site-nav {
    display: block; position: static; order: 0; flex-basis: auto; margin: 0 0 0 2rem; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .nav-list { display: flex; align-items: center; gap: 0.25rem; padding: 0; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a, .sub-toggle {
    display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; white-space: nowrap;
    border-radius: var(--radius-sm); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  }
  .nav-list > li > a[aria-current="page"]::before { display: none; }
  /* Current page/section: underline only. Open/hover: background only. */
  .nav-list > li > a[aria-current="page"], .sub-toggle.is-current { color: #fff; box-shadow: inset 0 -3px 0 var(--brand-teal); border-radius: 0; }
  .nav-list > li > a:hover, .sub-toggle:hover { background: var(--panel); color: #fff; }
  .sub-toggle { background: none; border: 0; cursor: pointer; }
  .sub-toggle[aria-expanded="true"] { background: var(--panel-2); }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .sub-label { display: none; }
  .sub {
    display: none; position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 60; width: 17rem;
    padding: 0.5rem; background: var(--panel); border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  }
  .no-js .has-sub:hover .sub, .no-js .has-sub:focus-within .sub, .sub.is-open { display: block; }
  .no-js .sub-toggle { display: inline-flex; }
  .sub-list a { min-height: 2.5rem; padding: 0.45rem 0.75rem; border-radius: 6px; color: #fff; font-weight: 500; }
  .sub-list a:hover { background: var(--panel-2); color: #fff; }
  .sub-list a[aria-current="page"] { background: var(--panel-2); color: var(--brand-teal); }
  .sub-list a[aria-current="page"]::before { display: none; }
  .sub-list:first-child li:first-child a { font-weight: 700; }
  .sub-h { padding-left: 0.75rem; }
}

/* Narrow desktops: tighten the single-row header so five menu items fit */
@media (min-width: 64em) and (max-width: 79.99em) {
  .site-nav, .js .site-nav, .no-js .site-nav { margin-left: 1rem; }
  .nav-list { gap: 0; }
  .nav-list > li > a, .sub-toggle { padding-inline: 0.6rem; }
  .header-email { display: none; }
  .header-tel { font-size: 1rem; }
  .header-tel .icon { display: none; }
  .brand img { width: 3rem; }
  .brand-1, .brand-2 { font-size: 1.05rem; }
}
.header-tel { white-space: nowrap; }

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { padding-block: 0.85rem; font-size: var(--step--1); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--text-muted); }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* --- Hero (home) ----------------------------------------------------------- */
.hero { position: relative; background: var(--ink); 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: var(--hero-pos, 70% 50%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 8, 8, 0.72) 0%, rgba(0, 8, 8, 0.9) 60%, rgba(0, 8, 8, 0.97) 100%);
}
.hero-inner { padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem); }
.hero-content { max-width: 40rem; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-teal-dark);
}
.hero .eyebrow, .page-hero .eyebrow, .dark .eyebrow { color: var(--brand-teal); }
.hero h1 { margin-bottom: 0.5em; }
.hero h1 em { font-style: normal; color: var(--brand-teal); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--text-muted); max-width: 42rem; }
.hero .lead, .page-hero .lead { color: var(--text-on-dark-muted); }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--text-on-dark-muted); font-weight: 600; font-size: var(--step--1); }
.hero-points li { display: flex; align-items: center; gap: 0.4rem; }
.hero-points .icon { color: var(--brand-teal); }
@media (min-width: 48em) {
  .hero::after { background: linear-gradient(90deg, rgba(0, 8, 8, 0.97) 0%, rgba(0, 8, 8, 0.88) 45%, rgba(0, 8, 8, 0.35) 100%); }
}

/* --- Page hero (inner pages) ----------------------------------------------- */
.page-hero { background: var(--ink) radial-gradient(ellipse at 85% 0%, rgba(7, 177, 159, 0.22), transparent 55%); }
.page-hero-inner { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.page-hero .breadcrumb { padding: 0 0 1.25rem; }
.page-hero .breadcrumb a { color: var(--text-on-dark-muted); }
.page-hero .breadcrumb [aria-current], .page-hero .breadcrumb li + li::before { color: var(--text-on-dark-muted); }
.page-hero h1 { max-width: 46rem; }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; }

/* Audience switch: segmented control at the top of every audience page */
.audience-switch {
  display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-dark); border-radius: 999px;
}
.audience-switch a {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.4rem 1rem;
  border-radius: 999px; color: var(--text-on-dark-muted); font-size: var(--step--1); font-weight: 600; text-decoration: none;
}
.audience-switch a .icon { width: 1.1rem; height: 1.1rem; }
.audience-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.audience-switch a[aria-current] { background: var(--brand-teal); color: #00110f; }
.audience-switch a[aria-current]:hover { background: var(--brand-teal); color: #00110f; }

/* Audience chooser (home page and services hub) */
.route-card { padding: 0; overflow: hidden; }
.route-card > picture img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.route-card .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.route-list { list-style: none; padding: 0; margin: 0.5rem 0 1.25rem; border-top: 1px solid var(--border); }
.route-list a {
  display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.5rem 0;
  border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; text-decoration: none;
}
.route-list a > .icon:first-child { color: var(--brand-teal-dark); }
.route-list a span { flex: 1; }
.route-list a:hover { color: var(--brand-teal-darker); }
.route-card .btn { margin-top: auto; align-self: flex-start; }
.signpost { display: flex; gap: 0.85rem; align-items: flex-start; margin-top: 2rem; padding: 1rem 1.15rem; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-muted); }
.signpost .icon { color: var(--brand-teal-dark); margin-top: 0.2rem; }
.signpost p { margin: 0; }
.page-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
@media (min-width: 56em) {
  .page-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .page-hero-media img { aspect-ratio: 4 / 3; }
}
.page-hero-icon {
  display: inline-flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(7, 177, 159, 0.15); color: var(--brand-teal); margin-bottom: 1rem;
}
.page-hero-icon .icon { width: 1.75rem; height: 1.75rem; }

/* --- Sections -------------------------------------------------------------- */
.section { padding-block: var(--space); }
.section-alt { background: var(--surface-alt); }
.section-tight { padding-block: 2.5rem; }
/* Directly after a plain white section, don't double the gap */
.section:not(.section-alt):not(.section-dark) + .section-tight { padding-top: 0; }
.section-tight .signpost { margin-top: 0; }
.section-dark { background: var(--panel); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); }
.dark .section-head p { color: var(--text-on-dark-muted); }

/* --- Cards & grids --------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
ul.grid { list-style: none; padding: 0; margin: 0; }
@media (min-width: 40em) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--brand-teal-tint); color: var(--brand-teal-dark); margin-bottom: 1rem;
}
.card-icon .icon { width: 1.5rem; height: 1.5rem; }
.card-link { margin-top: auto; padding-top: 1rem; }
/* Whole-card click target, single link for screen readers */
.card-link a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(.card-link a:hover) { border-color: var(--brand-teal-dark); box-shadow: 0 6px 20px rgba(0, 60, 55, 0.1); }
.card:has(.card-link a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-link a:focus-visible { outline: none; }

/* Compact link cards on phones: icon beside text, less scrolling */
@media (max-width: 39.99em) {
  .card-compact { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem 1.25rem; }
  .card-compact .card-icon { grid-row: span 3; margin: 0; width: 2.75rem; height: 2.75rem; }
  .card-compact p { margin-bottom: 0; }
  .card-compact .card-link { padding-top: 0.5rem; }
}

.audience-card { padding: 0; overflow: hidden; }
.audience-card picture img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.audience-card .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* --- Split (text + image) ------------------------------------------------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-media.wide img { aspect-ratio: 4 / 3; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .split.reverse .split-media { order: -1; }
}
.media-caption { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.6rem; }

/* --- Lists ------------------------------------------------------------------ */
.ticks { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand-teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300796f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.ticks.cols { gap: 0.6rem 2rem; }
@media (min-width: 40em) { .ticks.cols { grid-template-columns: 1fr 1fr; } }

/* --- Steps (install/repair/maintain) -------------------------------------- */
.steps { counter-reset: step; }
.step { padding: 1.5rem; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--border-dark); }
.step h3 { display: flex; align-items: center; gap: 0.6rem; color: #fff; }
.step h3 .icon { color: var(--brand-teal); width: 1.5rem; height: 1.5rem; }
.step p { color: var(--text-on-dark-muted); }

/* --- Charge note ------------------------------------------------------------ */
.info-box {
  display: flex; gap: 0.85rem; align-items: flex-start; margin: 1.75rem 0 0;
  padding: 1rem 1.15rem; border-radius: var(--radius-sm);
  background: var(--brand-teal-tint); border-left: 4px solid var(--brand-teal-dark);
}
.info-box .icon { color: var(--brand-teal-dark); margin-top: 0.15rem; }
.info-box p { margin: 0; }

/* --- Related services ------------------------------------------------------- */
.related { margin-top: 0; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.related-audience { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.related-audience span { color: var(--text-muted); font-weight: 600; }
.related-link {
  display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600; text-decoration: none;
}
.related-link > .icon:first-child { color: var(--brand-teal-dark); }
.related-link span { flex: 1; }
.related-link:hover { border-color: var(--brand-teal-dark); color: var(--brand-teal-darker); }

/* --- Case study / gallery -------------------------------------------------- */
.feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56em) { .feature { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; } }
.feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.feature-media picture:first-child { grid-column: 1 / -1; }
.feature-media img { border-radius: var(--radius-sm); width: 100%; object-fit: cover; }
.feature-media picture:first-child img { aspect-ratio: 16 / 9; }
.feature-media picture:not(:first-child) img { aspect-ratio: 1; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48em) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.gallery figcaption { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.4rem; line-height: 1.4; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.case-meta li { background: var(--brand-teal-tint); color: var(--brand-teal-darker); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: var(--step--1); font-weight: 600; }
.case-placeholder { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; color: var(--text-muted); }

/* --- Contact page ---------------------------------------------------------- */
.contact-cards { display: grid; gap: 1rem; }
@media (min-width: 48em) { .contact-cards { grid-template-columns: 1fr 1fr; } .contact-card-email { grid-column: 1 / -1; } }
@media (min-width: 64em) { .contact-cards { grid-template-columns: 1fr 1fr 1.45fr; } .contact-card-email { grid-column: auto; } }
.contact-card {
  display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem; min-height: 9rem;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
}
.contact-card .icon { width: 2rem; height: 2rem; color: var(--brand-teal-dark); margin-bottom: 0.5rem; }
.contact-card small { font-size: var(--step--1); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card strong { font-size: var(--step-1); overflow-wrap: anywhere; }
/* Long email: smaller text so it stays on one line; <wbr> after @ if it ever must wrap */
.contact-card-email strong { font-size: clamp(1rem, 0.85rem + 0.45vw, 1.15rem); overflow-wrap: normal; }
.contact-card:hover { border-color: var(--brand-teal-dark); color: var(--text); }
.contact-card:hover strong { color: var(--brand-teal-darker); }

.faq { display: grid; gap: 0.75rem; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; min-height: 3.25rem; cursor: pointer; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--brand-teal-dark);
  border-bottom: 2px solid var(--brand-teal-dark); transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--text-muted); }

/* --- Prose ------------------------------------------------------------------ */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

/* --- Contact band ------------------------------------------------------------ */
/* Teal call-to-action strip: action only (contact details live in the footer).
   Dark text and buttons on brand teal: ~7.8:1. */
.contact-band { --focus: var(--ink); background: var(--brand-teal); color: #00110f; }
.contact-band-inner { display: grid; gap: 1.25rem; padding-block: 2.25rem; align-items: center; }
.contact-band h2 { font-size: var(--step-2); margin-bottom: 0.25rem; color: #00110f; }
.contact-band p { color: #00221e; margin: 0; }
.contact-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--panel); color: #fff; }
.btn-ink-outline { background: transparent; color: #00110f; border-color: rgba(0, 17, 15, 0.55); }
.btn-ink-outline:hover { background: rgba(0, 17, 15, 0.08); color: #00110f; border-color: #00110f; }
@media (max-width: 29.99em) { .contact-band-actions .btn { flex: 1 1 100%; } }
@media (min-width: 48em) {
  .contact-band-inner { grid-template-columns: 1fr auto; gap: 2rem; }
}

/* --- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 1.5rem; padding-block: 3rem 1.5rem; }
.footer-brand img { width: 9rem; }
.footer-brand .tagline { margin-top: 0.75rem; white-space: nowrap; }
.footer-h-plain, .footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin: 0 0 0.75rem; }
.footer-contact-list, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { display: flex; gap: 0.6rem; align-items: flex-start; padding-block: 0.4rem; }
.footer-contact-list .icon { color: var(--brand-teal); margin-top: 0.15rem; }
.footer-contact-list a, .footer-links a { text-decoration: none; }
.footer-contact-list a:hover, .footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-links a { display: flex; align-items: center; min-height: 2.75rem; color: var(--text-on-dark-muted); }
.footer-toggle { display: none; }
.footer-base { border-top: 1px solid var(--border-dark); padding-block: 1.25rem 2rem; font-size: var(--step--1); }

/* Mobile accordions: only collapse when JS can reopen them */
@media (max-width: 47.99em) {
  .js .footer-group { border-top: 1px solid var(--border-dark); }
  .js .footer-group .footer-h { margin: 0; }
  .js .footer-h-static { display: none; }
  .js .footer-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    min-height: 3.25rem; padding: 0; background: none; border: 0; color: #fff; cursor: pointer;
    font: inherit; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  }
  .js .footer-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .js .footer-links { display: none; padding-bottom: 0.75rem; }
  .js .footer-links.is-open { display: block; }
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (min-width: 64em) {
  .footer-grid { grid-template-columns: 1fr 1.35fr 1fr 1fr 0.85fr; }
}

/* --- Motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --- Print ------------------------------------------------------------------- */
@media print {
  .site-nav, .header-actions, .demo-bar, .skip-link, .contact-band .btn { display: none !important; }
  .site-header, .hero, .page-hero, .contact-band, .site-footer { background: none !important; color: #000 !important; }
  .hero::after { display: none; }
}
.gallery-more { margin-top: 1.5rem; }

/* --- Case studies ----------------------------------------------------------- */
/* Each project is its own card so text and photos never run into the next project */
.case {
  align-items: start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem);
  box-shadow: 0 2px 10px rgba(0, 40, 36, 0.05);
}
.case + .case { margin-top: 2rem; }
.section:not(.section-alt) .case { background: var(--surface-alt); box-shadow: none; }
.case h2, .case h3 { margin-bottom: 0.6rem; }
.case h2 { font-size: var(--step-2); }
.case .ticks { margin-bottom: 0.5rem; }
.feature-media-single { grid-template-columns: 1fr; }
.feature-media-single picture:first-child img { aspect-ratio: 4 / 5; max-height: 34rem; object-position: center 30%; }
.work-jump { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Inner page hero with background photo (same treatment as the home hero) */
.page-hero-bg .page-hero-inner { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.page-hero-bg .page-hero-text { max-width: 40rem; }
.page-hero-bg .page-hero-icon { background: rgba(7, 177, 159, 0.22); }
