/* ==========================================================================
   AGTE — site styles
   Colour tokens live at the top. Change a token once and it updates everywhere.
   ========================================================================== */

:root {
  /* Brand */
  --ochre: #CC7016;          /* AGTE orange: buttons, routes, highlights */
  --ochre-ink: #9E520A;      /* orange that is readable as text on light backgrounds */
  --ochre-soft: #F6E4D2;

  /* Ocean palette (deep teal-navy) */
  --ocean-950: #04161C;
  --ocean-900: #06202A;
  --ocean-800: #0B2A35;
  --ocean-700: #113846;
  --ocean-600: #1B4A58;

  /* Page (light theme) */
  --bg: #EEF2F2;
  --surface: #FFFFFF;
  --surface-alt: #F6F8F8;
  --text: #0B2A35;
  --text-muted: #4B5E65;
  --line: #CAD5D8;
  --line-strong: #9FB0B5;
  --input-border: #788B91;
  --link: var(--ochre-ink);
  --focus: #0B6E8A;
  --error: #B42318;
  --error-bg: #FDECEA;
  --success: #1B6B3A;
  --success-bg: #E6F4EA;

  /* Buttons */
  --btn-bg: var(--ochre);
  --btn-text: var(--ocean-900);
  --btn-bg-hover: #A8590D;
  --btn-text-hover: #FFFFFF;

  /* Always-dark bands (hero, "why" band, footer) */
  --band-bg: var(--ocean-800);
  --band-bg-deep: var(--ocean-900);
  --band-text: #E7EEF0;
  --band-muted: #A8BCC2;
  --band-line: #22505E;
  --band-accent: #F0A559;
  --map-dot: #4A8395;
  --map-grid: #1A4957;
  --au-dot: #93A7AD;

  /* Drawing panels stay light in both themes, like printed spec sheets */
  --panel-bg: #FFFFFF;
  --panel-grid: #E4ECEE;
  --panel-line: #CAD5D8;

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.35rem + 2.2vw, 2.85rem);
  --step-4: clamp(2.45rem, 1.45rem + 4.1vw, 4.5rem);

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
  --max: 1200px;

  --radius-s: 6px;
  --radius-m: 10px;
  --header-h: 72px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061C24;
    --surface: #0B2A35;
    --surface-alt: #0A2630;
    --text: #E7EEF0;
    --text-muted: #A8BCC2;
    --line: #1F4653;
    --line-strong: #3A6674;
    --input-border: #5B8896;
    --link: #F0A559;
    --focus: #6FC3DB;
    --error: #FFB4AB;
    --error-bg: #3B1512;
    --success: #9AD8AE;
    --success-bg: #10311D;
    --btn-bg: var(--ochre);
    --btn-text: var(--ocean-900);
    --btn-bg-hover: #E08A33;
    --btn-text-hover: var(--ocean-950);
    --band-bg: #0B2A35;
    --band-bg-deep: #04161C;
    --band-line: #22505E;
    --panel-bg: #EEF3F4;
    --panel-grid: #DDE6E8;
    --panel-line: #2A5664;
    --au-dot: #4A7D8B;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #061C24;
  --surface: #0B2A35;
  --surface-alt: #0A2630;
  --text: #E7EEF0;
  --text-muted: #A8BCC2;
  --line: #1F4653;
  --line-strong: #3A6674;
  --input-border: #5B8896;
  --link: #F0A559;
  --focus: #6FC3DB;
  --error: #FFB4AB;
  --error-bg: #3B1512;
  --success: #9AD8AE;
  --success-bg: #10311D;
  --btn-bg: var(--ochre);
  --btn-text: var(--ocean-900);
  --btn-bg-hover: #E08A33;
  --btn-text-hover: var(--ocean-950);
  --band-bg: #0B2A35;
  --band-bg-deep: #04161C;
  --band-line: #22505E;
  --panel-bg: #EEF3F4;
  --panel-grid: #DDE6E8;
  --panel-line: #2A5664;
  --au-dot: #4A7D8B;
  color-scheme: dark;
}

/* --------------------------------------------------------------- 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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  font-weight: 750;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

ul, ol { margin: 0; padding: 0; }

.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: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: var(--radius-s);
  font-weight: 650;
}
.skip-link:focus { top: 0.75rem; }

main:focus { outline: none; }

[hidden] { display: none !important; }
[data-icon] { display: inline-flex; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }

.display {
  font-size: var(--step-4);
  font-stretch: 116%;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.h2 {
  font-size: var(--step-3);
  font-stretch: 112%;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: var(--step-1);
  font-stretch: 104%;
  font-weight: 700;
  line-height: 1.25;
}

.display.is-long { font-size: clamp(2.2rem, 1.3rem + 3.1vw, 3.7rem); }

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  max-width: 38em;
}

.muted { color: var(--text-muted); }

.section-head {
  display: grid;
  gap: var(--space-2);
  max-width: 46rem;
  margin-bottom: var(--space-5);
}

.section-head p { color: var(--text-muted); max-width: 40em; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-text-hover); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }

.on-band .btn-ghost { color: var(--band-text); border-color: #4C7886; }
.on-band .btn-ghost:hover { border-color: var(--band-text); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  color: var(--link);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.brand img { height: 44px; width: auto; max-width: none; }

@media (max-width: 520px) {
  .brand img { height: 36px; }
}

.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; }

.wordmark-mark {
  font-size: 1.6rem;
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  line-height: 1;
}

.wordmark-mark::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  background: var(--ochre);
  border-radius: 2px;
}

.wordmark-name {
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
}

.site-nav { display: flex; align-items: center; gap: var(--space-3); }

.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.nav-link,
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.sub-toggle:hover { background: var(--surface-alt); }

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.5em;
}

.sub-toggle .icon { transition: transform 160ms ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.has-sub { position: relative; }

.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  padding: 0.5rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 18px 40px -18px rgba(4, 22, 28, 0.35);
}

.sub-menu[hidden] { display: none; }

.sub-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
}

.sub-menu a:hover { background: var(--surface-alt); }
.sub-menu a[aria-current="page"] { color: var(--link); }

.sub-menu .sub-all {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.sub-menu .sub-all a { color: var(--link); font-weight: 650; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 960px) {
  .wordmark-name { display: none; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-2) var(--gutter) var(--space-3);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(4, 22, 28, 0.4);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; }

  .nav-link, .sub-toggle { width: 100%; justify-content: space-between; padding-inline: 0.5rem; }

  .sub-menu {
    position: static;
    min-width: 0;
    margin: 0.25rem 0 0.5rem;
    border: 0;
    box-shadow: none;
    border-left: 2px solid var(--ochre);
    border-radius: 0;
    padding: 0 0 0 0.5rem;
  }

  .header-cta { width: 100%; }
}

/* --------------------------------------------------------------- hero */
.band {
  background: var(--band-bg);
  color: var(--band-text);
}

.band .muted, .band-muted { color: var(--band-muted); }
.band a:not(.btn) { color: var(--band-accent); }

.hero { display: grid; grid-template-rows: auto auto; overflow: hidden; }

.hero-copy {
  display: grid;
  gap: var(--space-3);
  max-width: 42rem;
  padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem) clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
}

/* a little smaller than other page headlines, so the map gets real room */
.hero-copy .display { font-size: clamp(2.2rem, 1.3rem + 2.9vw, 3.5rem); }

.hero-copy .lead { color: var(--band-muted); }

.hero-map { position: relative; height: clamp(260px, 42vh, 480px); }

.route-map {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.route-map .graticule { fill: none; stroke: var(--map-grid); stroke-width: 1; opacity: 0.55; }
.route-map .map-dot { fill: var(--map-dot); }

.route-map .origin { fill: #CBDEE3; opacity: 0.95; }
.route-map .leader { stroke: #5C8896; stroke-width: 1; }

.route-map .route,
.route-map .route-halo,
.route-map .route-pulse { fill: none; stroke-linecap: round; }

.route-map .route { stroke: #E58324; stroke-width: 2.4; }
.route-map .route-halo { stroke: var(--ochre); stroke-width: 9; opacity: 0.18; }

/* the moving comet along each route; JS sets the dash pattern and offset */
.route-map .route-pulse {
  stroke: #FFE0B8;
  stroke-width: 3;
  opacity: 0;
}

.route-map.is-animated .route,
.route-map.is-animated .route-halo {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1700ms cubic-bezier(0.32, 0.6, 0.2, 1) var(--delay, 0ms);
}

.route-map.is-animated.is-drawn .route,
.route-map.is-animated.is-drawn .route-halo { stroke-dashoffset: 0; }

.route-map .shipment { fill: #FFFFFF; }
.route-map .shipment-halo { fill: #FFC178; opacity: 0.45; }

.route-map .city-dot { fill: #FFFFFF; }
.route-map .city-ring { fill: none; stroke: var(--ochre); stroke-width: 3; }

.route-map .city-pulse {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.route-map.is-drawn .city-pulse { animation: pulse 2000ms ease-out 1600ms 2; }

@keyframes pulse {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.4); }
}

.route-map .city-label {
  fill: #FFFFFF;
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  font-stretch: 108%;
  paint-order: stroke;
  stroke: #072330;
  stroke-width: 6px;
  stroke-linejoin: round;
}

.map-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #3B6875;
  background: rgba(4, 22, 28, 0.72);
  color: var(--band-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.map-toggle:hover { border-color: var(--band-text); }
.map-toggle[hidden] { display: none; }

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-inner { order: 1; }
  .hero-map { order: 2; }
  .hero-map { text-align: right; }
  .map-toggle { position: static; margin: 0.5rem var(--gutter) 1.5rem; }
  .hero-map { height: auto; }
  .route-map { height: auto; }
  .route-map .city-label, .route-map .leader { display: none; }
  .hero-copy { padding-block: 2.5rem 1.75rem; }
}

/* --------------------------------------------------------------- category list ("manifest") */
.manifest { list-style: none; border-top: 1px solid var(--line); }

.manifest-row {
  position: relative;
  display: grid;
  grid-template-columns: 208px minmax(0, 1.25fr) minmax(0, 1fr) 44px;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.manifest-row:hover .manifest-go { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.manifest-row:hover .manifest-title a { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }

.art-panel {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-m);
  background-color: var(--panel-bg);
  background-image:
    linear-gradient(var(--panel-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel-grid) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
  overflow: hidden;
}

.art-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
}

.art-panel img.is-photo { object-fit: cover; padding: 0; }

.manifest-body { display: grid; gap: 0.4rem; }

.manifest-title { font-size: var(--step-2); font-stretch: 108%; font-weight: 740; }

.manifest-title a { color: var(--text); text-decoration: none; }

/* Makes the whole row clickable while keeping one clean link for screen readers */
.manifest-title a::after { content: ""; position: absolute; inset: 0; }

.manifest-body p { color: var(--text-muted); max-width: 42em; }

.manifest-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.manifest-products li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--text-muted);
  background: var(--surface);
  overflow-wrap: anywhere;
}

.manifest-go {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

@media (max-width: 1020px) {
  .manifest-row { grid-template-columns: 180px minmax(0, 1fr) 44px; }
  .manifest-products { grid-column: 2; grid-row: 2; }
  .manifest-go { grid-column: 3; grid-row: 1 / span 2; }
  .manifest-art { grid-row: 1 / span 2; }
}

@media (max-width: 640px) {
  .manifest-row { grid-template-columns: 112px minmax(0, 1fr); gap: 0.85rem 1rem; align-items: start; padding-block: 1.25rem; }
  .manifest-art { grid-column: 1; grid-row: 1; }
  .manifest-body { grid-column: 2; grid-row: 1; }
  .manifest-products { grid-column: 1 / -1; grid-row: 2; }
  .manifest-go { display: none; }
  .manifest-title { font-size: 1.2rem; }
  .manifest-body p { font-size: 0.95rem; }
  .art-panel { background-size: 12px 12px; }
}

/* Compact list (about page, category page "other categories") */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-3);
  list-style: none;
}

.cat-tile { position: relative; display: grid; gap: 0.75rem; }

.cat-tile a { color: var(--text); text-decoration: none; font-weight: 700; font-stretch: 104%; }
.cat-tile a::after { content: ""; position: absolute; inset: 0; }
.cat-tile:hover a { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }

/* --------------------------------------------------------------- why band */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.why-statement { display: grid; gap: var(--space-3); }
.why-statement p { color: var(--band-muted); max-width: 34em; }

.why-list { list-style: none; display: grid; }

.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--band-line);
}

.why-item:last-child { border-bottom: 1px solid var(--band-line); }

.why-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-s);
  background: var(--band-bg-deep);
  color: var(--band-accent);
}

.why-icon .icon { width: 26px; height: 26px; }

.why-item h3 { margin-bottom: 0.3rem; }
.why-item p { color: var(--band-muted); }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* --------------------------------------------------------------- process */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  counter-reset: step;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: calc((100% - 4 * var(--space-3)) / 5 - 22px);
  border-top: 2px dashed var(--line-strong);
}

.process-step { position: relative; display: grid; gap: 0.6rem; align-content: start; }

.process-stop {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--ochre);
  color: var(--text);
  font-weight: 800;
  font-stretch: 112%;
}

.process-step:last-child .process-stop { background: var(--ochre); color: var(--ocean-900); }

.process-step p { color: var(--text-muted); font-size: 0.98rem; }

@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 22px; bottom: 22px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .process-step { grid-template-columns: 44px 1fr; column-gap: var(--space-2); padding-bottom: var(--space-3); }
  .process-step .process-stop { grid-row: span 2; }
  .process-step:last-child { padding-bottom: 0; }
}

/* --------------------------------------------------------------- offices */
.offices {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-5);
  align-items: center;
}

.au-map { width: 100%; max-width: 440px; height: auto; justify-self: center; }
.au-map .au-land { stroke: var(--line-strong); stroke-width: 1; }
.au-map .au-dot { fill: var(--au-dot); }
.au-map .au-pin-ring { fill: none; stroke: var(--ochre); stroke-width: 2.5; }
.au-map .au-pin-dot { fill: var(--text); }
.au-map .au-label {
  fill: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.office-list { list-style: none; display: grid; gap: var(--space-3); }

.office {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ochre);
  border-radius: var(--radius-m);
}

.office-city { font-size: var(--step-2); font-stretch: 116%; font-weight: 780; letter-spacing: -0.01em; }
.office-meta { color: var(--text-muted); }
.office a { font-weight: 600; }

.call-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* comfortable tap target: a phone link is mostly tapped on a phone */
.call-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.15rem;
  font-weight: 700;
}

.contact-line { display: inline-flex; align-items: flex-start; gap: 0.45rem; }
.contact-line .icon { margin-top: 0.2em; }

@media (max-width: 860px) {
  .offices { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* --------------------------------------------------------------- partners */
.partners { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.partners img { max-height: 48px; width: auto; filter: grayscale(1); opacity: 0.85; }

/* --------------------------------------------------------------- CTA band */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: end;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-top: 6px solid var(--ochre);
}

.cta-copy { display: grid; gap: var(--space-2); }
.cta-copy p { color: var(--text-muted); max-width: 34em; }

.subscribe { display: grid; gap: 0.6rem; }
.subscribe h3 { font-size: 1.05rem; }
.subscribe p { color: var(--text-muted); font-size: 0.95rem; }

.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; width: auto; }
.subscribe label { font-weight: 650; font-size: 0.98rem; }

.cta-single { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

@media (max-width: 860px) {
  .cta, .cta-single { grid-template-columns: 1fr; align-items: start; gap: var(--space-4); }
}

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* --------------------------------------------------------------- page header (inner pages) */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--space-5); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; font-size: var(--step--1); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-3);
}

.page-head-copy { display: grid; gap: var(--space-3); }

@media (max-width: 860px) {
  .page-head-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* --------------------------------------------------------------- category page */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem var(--space-4);
}

.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 0.6rem; align-items: start; }
.checklist .icon { color: var(--ochre-ink); width: 24px; height: 24px; margin-top: 1px; }
:root[data-theme="dark"] .checklist .icon { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checklist .icon { color: var(--link); } }

.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 var(--space-4);
}

.product {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding-block: var(--space-3);
  border-top: 2px solid var(--text);
}

.product p { color: var(--text-muted); }

.surface-band { background: var(--surface); border-block: 1px solid var(--line); }

.notice {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

/* --------------------------------------------------------------- about page */
.prose { display: grid; gap: var(--space-2); max-width: 44rem; }
.prose p { color: var(--text-muted); }
.prose p strong { color: var(--text); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-5);
  align-items: start;
}

.pull {
  font-size: var(--step-3);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.015em;
  padding-left: var(--space-3);
  border-left: 6px solid var(--ochre);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* --------------------------------------------------------------- forms */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-card {
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-3); }
.form-grid .span-2 { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 0.35rem; align-content: start; }

.field label { font-weight: 650; font-size: 0.98rem; }
.field .optional { font-weight: 500; color: var(--text-muted); }
.field .hint { font-size: var(--step--1); color: var(--text-muted); }

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.input:hover { border-color: var(--text-muted); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }

.input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 600;
}

.field-error[hidden] { display: none; }

.error-summary {
  display: grid;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border: 2px solid var(--error);
  border-radius: var(--radius-m);
  background: var(--error-bg);
}

.error-summary[hidden] { display: none; }
.error-summary h2 { font-size: 1.1rem; }
.error-summary ul { padding-left: 1.1rem; }
.error-summary a { color: var(--error); font-weight: 600; }

.form-status {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: var(--space-4);
  border-radius: var(--radius-m);
  border: 2px solid var(--success);
  background: var(--success-bg);
}

.form-status[hidden] { display: none; }
.form-status h2, .form-status h3 { font-size: var(--step-2); }
.form-status.is-error { border-color: var(--error); background: var(--error-bg); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.form-note { font-size: var(--step--1); color: var(--text-muted); }

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

.side-panel { display: grid; gap: var(--space-3); }

.side-card {
  display: grid;
  gap: 0.5rem;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.side-card h2 { font-size: 1.15rem; }

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; max-width: 52rem; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 56px;
  padding-block: 0.9rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .icon { transition: transform 180ms ease; color: var(--link); }
.faq details[open] summary .icon { transform: rotate(45deg); }

.faq .faq-answer { padding: 0 0 var(--space-3); color: var(--text-muted); max-width: 44em; }

/* --------------------------------------------------------------- footer */
.site-footer {
  background: var(--band-bg-deep);
  color: var(--band-text);
  padding-block: var(--space-6) var(--space-4);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.site-footer h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--band-text);
  margin-bottom: 0.75rem;
}

.site-footer p, .site-footer li { color: var(--band-muted); font-size: 0.95rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.2rem; }
.site-footer a { color: var(--band-text); text-decoration: none; display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: var(--band-accent); text-decoration: underline; }

.footer-brand { display: grid; gap: var(--space-2); align-content: start; }
.footer-brand .wordmark-name { color: var(--band-muted); border-color: var(--band-line); }
.footer-brand .wordmark-mark { color: var(--band-text); }
.footer-logo { width: min(230px, 80%); height: auto; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--band-line);
  font-size: var(--step--1);
  color: var(--band-muted);
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- simple pages */
.simple-page {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  max-width: 40rem;
  padding-block: var(--space-6);
}

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

/* --------------------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .map-toggle, .cta .subscribe { display: none; }
  .band { background: none; color: #000; }
}
