/* ==========================================================================
   Keelson — design system
   Tokens → base → layout → components → pages → motion → utilities
   See BRAND.md for the rationale behind each decision.
   ========================================================================== */

/* ── Fonts (self-hosted, subset, variable) ─────────────────────────────── */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-adjusted fallbacks keep layout shift small while web fonts load */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 89%;
  ascent-override: 83%;
  descent-override: 30%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Hanken Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 95%;
  ascent-override: 105%;
  descent-override: 32%;
  line-gap-override: 0%;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  /* palette */
  --midnight-950: #0a1018;
  --midnight-900: #0e1620;
  --midnight-850: #121c28;
  --midnight-800: #172331;
  --midnight-700: #213044;
  --harbour-600: #34475d;
  --steel-500: #63778b;
  --fog-300: #a3abb5;
  --stone-300: #cfc6b5;
  --stone-200: #e6dfd1;
  --stone-100: #eee8dc;
  --ivory-50: #f6f2ea;
  --ivory-0: #fbf9f4;
  --ink-900: #141a21;
  --ink-700: #2c343e;
  --ink-500: #565e68;
  --brass-300: #d6bb8d;
  --brass-400: #c9a877;
  --brass-500: #b08d57;
  --brass-700: #7d5e2e;

  /* type */
  --serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Hanken Fallback", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.22rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.35vw, 2.625rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.4vw, 3.75rem);
  --step-5: clamp(2.6rem, 1.8rem + 3.7vw, 5.25rem);
  --step-6: clamp(2.9rem, 1.7rem + 5.6vw, 7.25rem);

  /* space */
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --section-y: clamp(4.5rem, 2.8rem + 7.5vw, 10rem);
  --max: 1380px;
  --header-h: 76px;
  --radius: 2px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.45s;

  /* light theme (default) */
  --bg: var(--ivory-50);
  --bg-raised: var(--ivory-0);
  --fg: var(--ink-900);
  --fg-body: var(--ink-700);
  --muted: var(--ink-500);
  --rule: rgba(20, 26, 33, 0.14);
  --rule-strong: rgba(20, 26, 33, 0.32);
  --accent: var(--brass-700);
  --accent-line: var(--brass-500);
  --focus: var(--brass-700);
  --btn-bg: var(--midnight-900);
  --btn-fg: var(--ivory-50);
  --btn-bg-hover: var(--midnight-700);

  color-scheme: light;
}

/* Dark surfaces — any element can opt in */
.theme-dark,
.site-header,
.site-footer,
.menu__panel {
  --bg: var(--midnight-900);
  --bg-raised: var(--midnight-850);
  --fg: #efe9dd;
  --fg-body: #d4d0c8;
  --muted: var(--fog-300);
  --rule: rgba(239, 233, 221, 0.14);
  --rule-strong: rgba(239, 233, 221, 0.34);
  --accent: var(--brass-400);
  --accent-line: var(--brass-500);
  --focus: var(--brass-300);
  --btn-bg: #efe9dd;
  --btn-fg: var(--midnight-900);
  --btn-bg-hover: var(--brass-300);
  color-scheme: dark;
}
.theme-stone {
  --bg: var(--stone-200);
  --bg-raised: var(--stone-100);
  --rule: rgba(20, 26, 33, 0.16);
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--fg);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
h2 {
  font-size: var(--step-4);
  line-height: 1.06;
  letter-spacing: -0.018em;
}
h3 {
  font-size: var(--step-2);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.008em;
}
h4 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
em,
i {
  font-style: italic;
}
h1 em,
h2 em,
h3 em,
.lead em,
.statement em {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--accent);
}
/* Within sections on light and stone surfaces the italic phrase stays in ink — brass
   is kept for the heroes, dark bands and lead copy so that it reads as an accent
   rather than a rule applied to every heading. */
h2 em,
h3 em {
  color: inherit;
}
.theme-dark h2 em {
  color: var(--accent);
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule-strong);
  transition: color var(--dur) var(--ease-out), text-decoration-color var(--dur) var(--ease-out);
}
a:hover {
  text-decoration-color: var(--accent-line);
}
strong {
  font-weight: 600;
  color: var(--fg);
}
abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted var(--rule-strong);
}
::selection {
  background: var(--brass-300);
  color: var(--midnight-900);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}
:focus:not(:focus-visible) {
  outline: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ── Accessibility helpers ─────────────────────────────────────────────── */
.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;
  background: var(--brass-300);
  color: var(--midnight-900);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}

/* ── Layout primitives ─────────────────────────────────────────────────── */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - 2 * var(--gutter), 920px);
}
.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg-body);
}
.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}
.section--flush-top {
  padding-top: 0;
}
/* two consecutive light sections share one gap instead of two */
.section:not([class*="theme-"]) + .section:not([class*="theme-"]):not(.section--ruled) {
  padding-top: 0;
}
.section--ruled > .wrap {
  border-top: 1px solid var(--rule);
  padding-top: var(--section-y);
}
.section--ruled {
  padding-top: 0;
}
/* the rule already separates the sections; avoid an empty band framed by two hairlines */
.section:not([class*="theme-"]):has(+ .section--ruled) {
  padding-bottom: calc(var(--section-y) * 0.55);
}
/* two dark surfaces in a row need a seam */
.section.theme-dark + .section.theme-dark,
.section.theme-dark + .cta-band {
  border-top: 1px solid var(--rule);
}

/* Single-column layouts declare their track explicitly: an implicit `auto` track
   sizes to max-content and lets a wide table (the planning matrix) push the page
   wider than the viewport on phones. Wider layouts override this below. */
.split,
.section-head,
.briefing-layout,
.enquiry-layout,
.systems,
.discretion,
.region-feature,
.cta-band__inner,
.footer-top,
.menu__grid,
.hazard__body {
  grid-template-columns: minmax(0, 1fr);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.4vw, 2.5rem);
}
.split {
  display: grid;
  gap: 2.5rem clamp(1rem, 2.4vw, 2.5rem);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .split__aside {
    grid-column: 1 / span 3;
  }
  .split__main {
    grid-column: 4 / -1;
  }
  .split--even .split__aside {
    grid-column: 1 / span 6;
  }
  .split--even .split__main {
    grid-column: 7 / -1;
  }
  .split--reverse .split__aside {
    grid-column: 9 / -1;
    grid-row: 1;
  }
  .split--reverse .split__main {
    grid-column: 1 / span 7;
    grid-row: 1;
  }
  .sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}
/* grid children may shrink below their content's intrinsic width (wide tables scroll inside their own wrapper) */
.split > *,
.briefing-layout > *,
.enquiry-layout > *,
.systems > *,
.discretion > *,
.region-feature > *,
.cta-band__inner > *,
.footer-top > * {
  min-width: 0;
}
.stack > * + * {
  margin-top: var(--stack, 1.25rem);
}
.stack-lg > * + * {
  margin-top: 2rem;
}

/* ── Typographic components ────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
  flex: none;
}
.eyebrow--plain::before {
  display: none;
}
.lead {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.42;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.005em;
  max-width: 34em;
}
.lead--sm {
  font-size: var(--step-1);
}
.statement {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.24;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
  line-height: 1.6;
}
.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}
.measure {
  max-width: 38em;
}

.section-head {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .section-head > .eyebrow {
    grid-column: 1 / span 3;
    padding-top: 0.9em;
  }
  .section-head > .section-head__body {
    grid-column: 4 / -1;
  }
  .section-head--center {
    text-align: center;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .section-head--center > * {
    grid-column: 1 !important;
  }
}
.section-head__body > * + * {
  margin-top: 1.25rem;
}
.section-head__body p:not(.lead) {
  max-width: 40em;
}

/* Long-form copy */
.prose {
  max-width: 41rem;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.6em;
  line-height: 1.12;
}
.prose h3 {
  margin-top: 2em;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.75em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose > h2:first-child {
  font-size: var(--step-4);
  line-height: 1.06;
}
.prose > h2:first-child + .lead {
  margin-top: 1.25rem;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 0.5em;
}
.prose li::marker {
  color: var(--accent);
}
.prose blockquote {
  border-left: 1px solid var(--accent-line);
  padding-left: 1.5rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--fg);
}
.prose a {
  text-decoration-color: var(--accent-line);
}
.prose .lead {
  max-width: none;
}

/* ── Buttons & links ───────────────────────────────────────────────────── */
.btn {
  --pad-y: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: var(--pad-y) 1.6rem;
  min-height: 3.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
}
.btn .i-arrow {
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .i-arrow,
.link-arrow:hover .i-arrow {
  transform: translateX(4px);
}
.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-strong);
}
.btn--outline:hover {
  background: transparent;
  border-color: var(--accent-line);
  color: var(--fg);
}
.btn--small {
  --pad-y: 0.6rem;
  min-height: 2.5rem;
  padding-inline: 1.1rem;
  font-size: 0.875rem;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: progress;
}
.i-arrow {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  padding-block: 0.35rem;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.link-arrow:hover {
  background-size: 100% 1px;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--fg);
  background: transparent;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(14, 22, 32, 0.97);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--fg);
  margin-right: auto;
}
.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--brass-400);
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-right: -0.26em;
}
.brand__descriptor {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
.primary-nav ul {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--fg);
  opacity: 0.86;
  padding-block: 0.5rem;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out), opacity var(--dur);
}
.primary-nav a:hover,
.primary-nav a[aria-current] {
  opacity: 1;
  background-size: 100% 1px;
}
.header-cta {
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .primary-nav,
  .header-cta {
    display: none;
  }
  :root {
    --header-h: 66px;
  }
}

/* Menu (progressively enhanced <details>) */
.menu {
  position: static;
}
.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 0.6rem 0;
  position: relative;
  z-index: 2;
  user-select: none;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu__icon {
  position: relative;
  width: 22px;
  height: 10px;
}
.menu__icon::before,
.menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.menu__icon::before {
  top: 0;
}
.menu__icon::after {
  top: 9px;
}
.menu[open] .menu__icon::before {
  top: 4.5px;
  transform: rotate(45deg);
}
.menu[open] .menu__icon::after {
  top: 4.5px;
  transform: rotate(-45deg);
}
.menu__label-close {
  display: none;
}
.menu[open] .menu__label-open {
  display: none;
}
.menu[open] .menu__label-close {
  display: inline;
}
.menu__panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--midnight-900) url("/assets/img/contours.svg") right center / cover no-repeat;
  color: var(--fg);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: clamp(2rem, 5vw, 4rem) 3rem;
  border-top: 1px solid var(--rule);
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__panel {
    animation: menu-in 0.5s var(--ease-out) both;
  }
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.menu__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .menu__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  }
}
.menu__group h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.menu__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu__group li + li {
  margin-top: 0.35rem;
}
.menu__group a {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 300;
  line-height: 1.3;
  text-decoration: none;
  color: var(--fg);
}
.menu__group a:hover,
.menu__group a[aria-current] {
  color: var(--brass-300);
}
.menu__aside {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
@media (min-width: 900px) {
  .menu__aside {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding: 0 0 0 2.5rem;
  }
}
.menu-open {
  overflow: hidden;
}

/* ── Hero (home) ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: max(100svh, 660px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  overflow: hidden;
  background: var(--midnight-900);
  isolation: isolate;
}
.hero__art {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 48%);
}
.hero__art svg {
  width: 100%;
  height: 100%;
}
.hero__veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  z-index: -1;
  background: linear-gradient(0deg, var(--midnight-900) 8%, rgba(14, 22, 32, 0));
  pointer-events: none;
}
.hero__content {
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
}
.hero h1 {
  font-size: var(--step-6);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 11ch;
}
.hero h1 .eyebrow {
  display: flex;
  max-width: none;
  margin-bottom: 1.75rem;
  letter-spacing: 0.2em;
  line-height: 1.5;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero h1 .line > span {
  display: inline-block;
}
.hero__lead {
  margin-top: 1.75rem;
  max-width: 33em;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--fg-body);
}
.hero .actions {
  margin-top: 2rem;
}
.hero .hero__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero .hero__triad {
  margin-top: 2.25rem;
}
.hero__triad {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0;
}
.hero__triad > div {
  padding: 1.35rem 0;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.9375rem;
  color: var(--fg-body);
}
.hero__triad .numeral {
  font-size: 1rem;
}
@media (min-width: 900px) {
  .hero__triad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero__triad > div {
    padding: 1.25rem 2rem 1.4rem 0;
  }
  .hero__triad > div + div {
    border-left: 1px solid var(--rule);
    padding-left: 2rem;
  }
}
@media (max-width: 899px) {
  .hero__art .m-labels,
  .hero__art .m-benchmark text {
    display: none;
  }
  .hero__art {
    inset: 0;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 85%);
  }
  .hero__triad > div + div {
    border-top: 1px solid var(--rule);
  }
}
@media (max-width: 599px) {
  .hero h1 .eyebrow::before {
    display: none;
  }
}

/* Map artwork — chart-style rendering of real coastline, rivers and terrain */
.region-map {
  --land: #152233;
  --water: #0b131c;
  --line: #efe9dd;
  background: var(--water);
}
.m-graticule {
  fill: none;
  stroke: var(--line);
  stroke-opacity: 0.045;
  stroke-width: 1;
}
/* water-lining: bands that follow every shore, as on engraved nautical charts */
.m-wl {
  fill: none;
  stroke: var(--line);
  stroke-linejoin: round;
}
.m-wl--1 { stroke-width: 4.5; stroke-opacity: 0.06; }
.m-wl--2 { stroke-width: 11; stroke-opacity: 0.028; }
.m-wl--3 { stroke-width: 20; stroke-opacity: 0.016; }
.m-land {
  fill: var(--land);
}
.m-contour {
  fill: none;
  stroke: var(--line);
  stroke-opacity: 0.16;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.m-contour--index {
  stroke-opacity: 0.32;
  stroke-width: 1.1;
}
.m-lake {
  fill: var(--water);
  stroke: var(--line);
  stroke-opacity: 0.32;
  stroke-width: 0.7;
}
.m-coast path {
  fill: none;
  stroke: var(--line);
  stroke-opacity: 0.68;
  stroke-width: 1.05;
  stroke-linejoin: round;
}
.m-border {
  fill: none;
  stroke: var(--brass-400);
  stroke-opacity: 0.45;
  stroke-dasharray: 5 7;
}
.m-label {
  fill: var(--line);
  fill-opacity: 0.6;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.m-label--water {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: none;
  fill-opacity: 0.48;
}
.m-label--border {
  font-size: 10px;
  fill-opacity: 0.38;
}
.m-tick {
  stroke: var(--line);
  stroke-opacity: 0.35;
  stroke-width: 1;
  fill: none;
}
.m-tick-label,
.m-attrib,
.m-north text {
  fill: var(--line);
  fill-opacity: 0.45;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.m-attrib {
  font-size: 9px;
  letter-spacing: 0.06em;
  fill-opacity: 0.32;
}
.m-scale {
  fill: none;
  stroke: var(--brass-400);
  stroke-opacity: 0.7;
  stroke-width: 1;
}
.m-scale--fill {
  fill: var(--brass-400);
  fill-opacity: 0.55;
}
.m-north path {
  fill: none;
  stroke: var(--brass-400);
  stroke-width: 1.1;
}
.m-north .m-north__fill {
  fill: var(--brass-400);
  stroke: none;
}
.m-benchmark circle {
  fill: var(--brass-400);
}
.m-benchmark .m-benchmark__ring {
  fill: none;
  stroke: var(--brass-400);
  stroke-opacity: 0.7;
}
.m-benchmark text {
  fill: var(--brass-300);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.m-hatch-line {
  stroke: var(--brass-400);
  stroke-opacity: 0.6;
  stroke-width: 1.2;
}
.m-lowland {
  stroke: var(--brass-400);
  stroke-opacity: 0.5;
  stroke-width: 0.8;
}
.m-crossing circle {
  fill: var(--midnight-900);
  stroke: var(--brass-300);
  stroke-width: 1.3;
}
.m-crossing text {
  fill: var(--brass-300);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-anchor: middle;
}
.region-map--layers .m-layer,
.region-map--layers .m-coast path,
.region-map--layers .m-contour {
  transition: opacity 0.5s var(--ease-out), stroke 0.5s var(--ease-out), stroke-opacity 0.5s, stroke-width 0.5s;
}
.region-map--layers:not(.show-lowlands) [data-layer="lowlands"],
.region-map--layers:not(.show-crossings) [data-layer="crossings"] {
  opacity: 0;
}
.region-map--layers.show-slopes .m-contour {
  stroke: var(--brass-400);
  stroke-opacity: 0.45;
}
.region-map--layers.show-shoreline .m-coast path {
  stroke: var(--brass-300);
  stroke-opacity: 0.95;
  stroke-width: 2.2;
}
/* hero: pointer and scroll parallax (values set by main.js) */
.hero__art svg {
  transform: translate3d(0, calc(var(--sy, 0) * 70px), 0) scale(calc(1 + var(--sy, 0) * 0.05));
  transform-origin: 60% 40%;
}
.hero__art .m-relief {
  transform: translate(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -11px));
}
.hero__art .m-labels,
.hero__art .m-benchmark {
  transform: translate(calc(var(--mx, 0) * 7px), calc(var(--my, 0) * 5px));
}
@media (max-width: 899px) {
  .hero__art .m-chart {
    display: none;
  }
}

/* ── Page hero (inner pages) ───────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)) 0 clamp(3.5rem, 7vw, 6.5rem);
  background: var(--midnight-900) url("/assets/img/contours.svg") right center / cover no-repeat;
  overflow: hidden;
}
.page-hero .breadcrumbs {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-hero h1 {
  margin-top: 1.5rem;
  max-width: 16ch;
}
.page-hero h1.wide {
  max-width: 20ch;
}
.page-hero .lead {
  margin-top: 1.75rem;
  color: var(--fg-body);
  max-width: 36em;
}
.page-hero__meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.page-hero__meta span {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}
.page-hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  opacity: 0.5;
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--fg);
}

/* ── Index list (numbered editorial rows) ──────────────────────────────── */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.index-list > li {
  border-top: 1px solid var(--rule);
}
.index-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 1.5rem;
  gap: 0.35rem 1rem;
  padding: 1.6rem 0 1.7rem;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.index-row__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.0625rem;
  padding-top: 0.3rem;
}
.index-row__title {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.2;
  color: var(--fg);
  transition: transform var(--dur) var(--ease-out);
}
.index-row__desc {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: 0.9688rem;
  max-width: 36em;
}
.index-row .i-arrow {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  color: var(--accent);
  opacity: 0.4;
  transition: opacity var(--dur), transform var(--dur) var(--ease-out);
}
a.index-row:hover .index-row__title {
  transform: translateX(6px);
}
a.index-row:hover .i-arrow {
  opacity: 1;
  transform: translateX(4px);
}
a.index-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--accent-line);
  transition: width 0.7s var(--ease-out);
}
a.index-row:hover::before {
  width: 100%;
}
@media (max-width: 599px) {
  .index-row {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }
  .index-row .i-arrow {
    display: none;
  }
}
@media (min-width: 900px) {
  .index-row {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.15fr) 2rem;
    align-items: baseline;
    padding: 2rem 0 2.1rem;
  }
  .index-row__desc {
    grid-column: 3;
    grid-row: 1;
  }
  .index-row .i-arrow {
    grid-column: 4;
  }
}

/* ── Comparison ────────────────────────────────────────────────────────── */
.compare {
  border-top: 1px solid var(--rule-strong);
}
.compare__head,
.compare__row {
  display: grid;
  gap: 0.5rem 2.5rem;
}
.compare__head {
  padding: 1.1rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.compare__head span:last-child {
  color: var(--accent);
}
.compare__row {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.compare__row p:first-child {
  color: var(--muted);
}
.compare__row p:last-child {
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--fg);
  line-height: 1.4;
}
@media (min-width: 760px) {
  .compare__head,
  .compare__row {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
  }
}
@media (max-width: 759px) {
  .compare__head span:first-child {
    display: none;
  }
}

/* ── Pillars (roman-numeral principles) ────────────────────────────────── */
.pillars {
  display: grid;
  gap: 2.75rem clamp(1.5rem, 3vw, 3rem);
}
@media (min-width: 760px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .pillars--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pillars--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pillar {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.pillar h3 {
  margin: 0.85rem 0 0.75rem;
}
.pillar p {
  color: var(--fg-body);
  font-size: 0.9688rem;
}

/* ── Regional section ──────────────────────────────────────────────────── */
.region-feature {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1000px) {
  .region-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}
.region-feature__map {
  position: relative;
  aspect-ratio: 1600 / 1224;
  border: 1px solid var(--rule);
  background: var(--midnight-950);
  overflow: hidden;
}
.region-feature__map svg {
  width: 100%;
  height: 100%;
}
.hazard-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--rule);
}
.hazard-list li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9688rem;
}
.hazard-list li strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
}
.hazard-list li span {
  max-width: 44em;
}
@media (max-width: 520px) {
  .hazard-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ── Systems diagram ───────────────────────────────────────────────────── */
.systems {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1000px) {
  .systems {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}
.systems__figure svg {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  overflow: visible;
}
.sys-link {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
  transition: stroke 0.4s, stroke-width 0.4s;
}
.sys-link--cross {
  stroke-dasharray: 2 5;
}
.sys-pulse {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1.4;
  stroke-dasharray: 0.06 0.94;
  stroke-dashoffset: 1;
  opacity: 0;
}
.sys-node circle {
  fill: var(--bg);
  stroke: var(--rule-strong);
  stroke-width: 1;
  transition: stroke 0.4s, fill 0.4s;
}
.sys-node text {
  fill: var(--fg);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-anchor: middle;
}
.sys-core circle {
  fill: none;
  stroke: var(--accent-line);
}
.sys-core text {
  fill: var(--fg);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  text-anchor: middle;
}
.sys-ring {
  fill: none;
  stroke: var(--rule);
  stroke-dasharray: 1 6;
}
/* hovering a node or its legend row traces that system's dependencies */
.systems:has([data-k="power"]:hover) .k-power,
.systems:has([data-k="telecom"]:hover) .k-telecom,
.systems:has([data-k="payments"]:hover) .k-payments,
.systems:has([data-k="health"]:hover) .k-health,
.systems:has([data-k="supply"]:hover) .k-supply,
.systems:has([data-k="transport"]:hover) .k-transport,
.systems:has([data-k="fuel"]:hover) .k-fuel,
.systems:has([data-k="water"]:hover) .k-water {
  stroke: var(--accent-line);
  stroke-width: 1.8;
  stroke-dasharray: none;
}
.systems:has([data-k="power"]:hover) .sys-node[data-k="power"] circle,
.systems:has([data-k="telecom"]:hover) .sys-node[data-k="telecom"] circle,
.systems:has([data-k="payments"]:hover) .sys-node[data-k="payments"] circle,
.systems:has([data-k="health"]:hover) .sys-node[data-k="health"] circle,
.systems:has([data-k="supply"]:hover) .sys-node[data-k="supply"] circle,
.systems:has([data-k="transport"]:hover) .sys-node[data-k="transport"] circle,
.systems:has([data-k="fuel"]:hover) .sys-node[data-k="fuel"] circle,
.systems:has([data-k="water"]:hover) .sys-node[data-k="water"] circle {
  fill: var(--accent-line);
  stroke: var(--accent-line);
}
.sys-node {
  cursor: default;
}
.systems__legend li {
  transition: background 0.3s;
}
.systems__legend li:hover {
  background: linear-gradient(90deg, rgba(176, 141, 87, 0.1), transparent 70%);
}
.systems__legend {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.systems__legend li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
}
.systems__legend strong {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}
@media (max-width: 520px) {
  .systems__legend li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ── Engagement steps ──────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 0 2.25rem 3.25rem;
}
.step::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.55rem;
  bottom: -0.55rem;
  width: 1px;
  background: var(--rule-strong);
}
.step:last-child::before {
  display: none;
}
.step__dot {
  position: absolute;
  left: 0.25rem;
  top: 0.3rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--bg);
}
.step:last-child .step__dot {
  background: var(--accent-line);
}
.step .numeral {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}
.step h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.9375rem;
  color: var(--fg-body);
  max-width: 34em;
}
@media (min-width: 1100px) {
  .steps--horizontal {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 1.75rem;
  }
  .steps--horizontal .step {
    padding: 2.5rem 0 0;
  }
  .steps--horizontal .step::before {
    left: 0;
    right: -1.75rem;
    top: 0.37rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .steps--horizontal .step__dot {
    left: 0;
    top: 0;
  }
}

/* ── Investment / tiers ────────────────────────────────────────────────── */
.tiers {
  display: grid;
  border-top: 1px solid var(--rule-strong);
}
.tier {
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.tier__name {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
}
.tier .tier__price {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-3);
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.tier__price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.tier p {
  font-size: 0.9375rem;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.9063rem;
  color: var(--fg-body);
}
.tier li {
  padding: 0.45rem 0 0.45rem 1.25rem;
  position: relative;
  border-top: 1px solid var(--rule);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent-line);
}
@media (min-width: 900px) {
  /* Five editorial columns on wide screens; wraps to rows of three or two in between.
     The negative margin + overflow hide the left hairline of the first tier in every row. */
  .tiers {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    overflow: hidden;
  }
  .tier {
    padding: 2.25rem 1.75rem 2.5rem;
    border-bottom: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    margin-left: -1px;
  }
  .tier:first-child {
    padding-left: 0;
  }
}
.fee-notes {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: 3rem;
}
@media (min-width: 900px) {
  .fee-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fee-notes ul {
  padding-left: 1.1em;
  font-size: 0.9375rem;
}
.fee-notes li + li {
  margin-top: 0.4rem;
}
.fee-notes li::marker {
  color: var(--accent);
}

/* ── Notes & callouts ──────────────────────────────────────────────────── */
.note {
  border-left: 1px solid var(--accent-line);
  padding: 0.25rem 0 0.25rem 1.35rem;
  font-size: 0.9063rem;
  color: var(--muted);
  max-width: 46em;
}
.note strong {
  color: var(--fg);
}
.callout {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.callout > * + * {
  margin-top: 1rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--rule-strong);
  padding: 0.35rem 0.7rem 0.32rem;
  border-radius: 99px;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
}
.tag--established::before {
  background: var(--accent-line);
}
.tag--location::before {
  background: linear-gradient(90deg, var(--accent-line) 50%, transparent 50%);
}
.tag--scenario::before {
  background: transparent;
}

/* ── Hazard briefings ──────────────────────────────────────────────────── */
.briefing-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1100px) {
  .briefing-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 5rem;
  }
}
.toc {
  font-size: 0.875rem;
}
.toc h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--rule);
}
.toc li a {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  text-decoration: none;
  color: var(--muted);
  margin-left: -1px;
  border-left: 1px solid transparent;
}
.toc li a:hover,
.toc li a[aria-current="true"] {
  color: var(--fg);
  border-left-color: var(--accent-line);
}
@media (max-width: 1099px) {
  .toc {
    border: 1px solid var(--rule);
    padding: 1.25rem 1.5rem;
  }
  .toc ol {
    columns: 2 14rem;
    border: 0;
  }
  .toc li a {
    padding-left: 0;
  }
}
.part-head {
  padding-top: 1rem;
  margin: 4.5rem 0 2rem;
}
.part-head:first-child {
  margin-top: 0;
}
.part-head h2 {
  font-size: var(--step-4);
  margin-top: 1rem;
}
.part-head p {
  margin-top: 1.25rem;
  max-width: 42em;
}
.hazard {
  border-top: 1px solid var(--rule-strong);
  padding: 2.25rem 0 2.5rem;
}
.hazard__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.hazard__head h3 {
  font-size: var(--step-3);
  font-weight: 300;
}
.hazard__body {
  display: grid;
  gap: 1.75rem 3rem;
}
@media (min-width: 900px) {
  .hazard__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}
.hazard__body h4 {
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.hazard__body p + p {
  margin-top: 0.85rem;
}
.hazard__body ul {
  padding-left: 1.1em;
  margin: 0;
}
.hazard__body li + li {
  margin-top: 0.4rem;
}
.hazard__body li::marker {
  color: var(--accent);
}
.hazard__body .src {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
}
sup.ref a {
  font-size: 0.72em;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  padding: 0 0.1em;
}

/* Matrix */
.matrix-wrap {
  /* positioned so the visually-hidden cell labels (position: absolute) stay inside
     the scroll container instead of widening the page on small screens */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  -webkit-overflow-scrolling: touch;
}
.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.875rem;
}
.matrix caption {
  text-align: left;
  padding: 1.25rem 1.25rem 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.matrix th,
.matrix td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.matrix thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: bottom;
}
.matrix tbody th {
  text-align: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--fg);
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  vertical-align: middle;
}
.dot--full {
  background: var(--accent-line);
}
.dot--half {
  background: linear-gradient(90deg, var(--accent-line) 50%, transparent 50%);
}
.matrix-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
}
.matrix-key span {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

/* Map figure with layer controls */
.map-figure {
  border: 1px solid var(--rule);
  background: var(--midnight-950);
}
.map-figure__canvas {
  aspect-ratio: 1600 / 1224;
  width: 100%;
  overflow: hidden;
}
.map-figure__canvas svg {
  width: 100%;
  height: 100%;
}
.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--rule);
}
.map-controls button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 99px;
  padding: 0.5rem 0.95rem 0.5rem 0.75rem;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  cursor: pointer;
  min-height: 2.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.map-controls button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--brass-400);
  transition: background 0.3s;
}
.map-controls button[aria-pressed="true"] {
  border-color: var(--brass-400);
  background: rgba(201, 168, 119, 0.1);
}
.map-controls button[aria-pressed="true"]::before {
  background: var(--brass-400);
}
.map-figure figcaption {
  padding: 0 1rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.crossing-list {
  columns: 2 13rem;
  column-gap: 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0 1rem 1rem 2.25rem;
  margin: 0;
}

/* ── Icon grid (equipment) ─────────────────────────────────────────────── */
.icon-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 700px) {
  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.icon-card {
  padding: 2rem clamp(0rem, 2vw, 2rem) 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .icon-card {
    padding-right: 2rem;
  }
}
.icon-card svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.25rem;
}
.icon-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}
.icon-card p {
  font-size: 0.9375rem;
}

/* ── Role table (planning / procurement / installation) ────────────────── */
.roles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.role {
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.role h3 {
  font-size: var(--step-2);
  margin: 0.6rem 0 0.75rem;
}
.role p {
  font-size: 0.9375rem;
}
@media (min-width: 900px) {
  .roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .role {
    padding: 2rem 2rem 2.25rem;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }
  .role:first-child {
    border-left: 0;
    padding-left: 0;
  }
}
.role__who {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
}

/* ── Figures ───────────────────────────────────────────────────────────── */
.figure {
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: clamp(1rem, 3vw, 2.5rem);
}
.figure svg {
  width: 100%;
  height: auto;
}
.figure figcaption {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 52em;
}
.line-art {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-art .soft {
  stroke-opacity: 0.35;
}
.line-art .accent {
  stroke: var(--accent-line);
}
.line-art .fill-accent {
  fill: var(--accent-line);
  stroke: none;
}
.line-art .fill-bg {
  fill: var(--bg-raised);
}
.line-art text {
  fill: var(--fg);
  stroke: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.line-art text.cap {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--muted);
}
.line-art text.serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  fill: var(--accent);
}
.line-art text.num {
  fill: var(--midnight-900);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: 0;
}
.annotation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ann;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.annotation-list li {
  counter-increment: ann;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.annotation-list li::before {
  content: counter(ann);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-line);
  color: var(--midnight-900);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}
.annotation-list strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  margin-bottom: 0.15rem;
}

/* ── Document plates (deliverables) ───────────────────────────────────── */
.figure--plates {
  view-timeline-name: --plates;
}
.figure--plates .plates {
  display: block;
  max-width: 880px;
  margin-inline: auto;
}
.plates {
  stroke-width: 1.1;
}
.plates .fill-soft {
  fill: var(--fg);
  fill-opacity: 0.06;
  stroke: none;
}
.plates text.cap {
  font-size: 13px;
  fill: var(--fg);
}
.plates text.big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 34px;
  letter-spacing: 0;
  fill: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* each sheet settles onto the table as the figure scrolls into view */
    .plates .plate {
      animation: plate-settle linear both;
      animation-timeline: --plates;
      animation-range: entry 0% entry 70%;
    }
    /* children 1–2 are <title> and <desc>; the sheet underneath lands first, the card last */
    .plates .plate:nth-child(4) {
      animation-range: entry 10% entry 80%;
    }
    .plates .plate:nth-child(5) {
      animation-range: entry 20% entry 90%;
    }
  }
}
@keyframes plate-settle {
  from {
    opacity: 0;
    transform: translate(0, 14px);
  }
}

/* ── Letter from the practice ──────────────────────────────────────────── */
.letter {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.002em;
  color: var(--fg);
  max-width: 38em;
}
.letter p + p {
  margin-top: 1.1em;
}
.letter__dateline {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2rem;
}
.letter__sign {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  font-variant-caps: small-caps;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.letter__sign::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent-line);
  margin-bottom: 1rem;
}

/* Optional single photograph on the About page (see BRAND.md → Photograph policy).
   Sits in the margin column beside the letter; the markup is a commented placeholder
   until the owner supplies a licensed image. */
.about-photo {
  margin: 2.25rem 0 0;
  max-width: 18rem;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  filter: grayscale(1) contrast(0.96);
}
.about-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Discretion block ──────────────────────────────────────────────────── */
.discretion {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1000px) {
  .discretion {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6rem;
  }
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.check-list li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.check-list li::before {
  content: "";
  width: 0.8rem;
  height: 0.45rem;
  border-left: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
  transform: rotate(-45deg) translate(2px, 6px);
}
.check-list strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
}

/* ── Articles / insights ───────────────────────────────────────────────── */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
@media (min-width: 900px) {
  .article-list--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .article-list--3 > li + li {
    border-left: 1px solid var(--rule);
  }
  .article-list--3 .article-card {
    padding-inline: 1.75rem;
  }
  .article-list--3 > li:first-child .article-card {
    padding-left: 0;
  }
}
.article-list > li {
  border-bottom: 1px solid var(--rule);
}
.article-card {
  display: grid;
  gap: 0.9rem;
  padding: 2rem 0 2.25rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  align-content: start;
}
.article-card__meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-card h3 {
  font-size: var(--step-2);
  transition: color var(--dur);
}
.article-card p {
  font-size: 0.9375rem;
  color: var(--fg-body);
  max-width: 46em;
}
.article-card .link-arrow {
  margin-top: 0.5rem;
  justify-self: start;
}
a.article-card:hover h3 {
  color: var(--accent);
}
a.article-card:hover .link-arrow {
  background-size: 100% 1px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--rule-strong);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--fg);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--dur) var(--ease-out);
  flex: none;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 1.6rem;
  max-width: 44em;
}
.faq details > div > * + * {
  margin-top: 0.85rem;
}

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--midnight-900) url("/assets/img/contours.svg") left center / cover no-repeat;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }
}
.cta-band h2 {
  font-size: var(--step-5);
  max-width: 13ch;
}
.cta-band p {
  color: var(--fg-body);
  max-width: 30em;
}
.cta-band .actions {
  margin-top: 1.75rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--midnight-950);
  color: var(--fg-body);
  padding: clamp(4rem, 8vw, 6.5rem) 0 2.5rem;
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 600px) and (max-width: 999px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1000px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}
.footer-brand .brand__mark {
  width: 44px;
  height: 44px;
  color: var(--brass-400);
}
.footer-brand p {
  margin-top: 1.5rem;
  max-width: 24em;
  color: var(--muted);
}
.footer-brand .footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--fg);
  margin-top: 1.75rem;
  line-height: 1.25;
}
.footer-nav h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li + li {
  margin-top: 0.55rem;
}
.footer-nav a {
  text-decoration: none;
  color: var(--fg-body);
}
.footer-nav a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
}
.footer-bottom {
  display: grid;
  gap: 1.25rem;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (min-width: 900px) {
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 3rem;
  }
}
.footer-bottom p + p {
  margin-top: 0.5rem;
}
.footer-emergency {
  border-left: 1px solid var(--accent-line);
  padding-left: 1rem;
}

/* ── Enquiry form ──────────────────────────────────────────────────────── */
.enquiry-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1100px) {
  .enquiry-layout {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 5rem;
  }
}
.form {
  --field-bg: var(--ivory-0);
}
.form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form fieldset + fieldset {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
/* choice groups inside a section are ordinary fields, not new sections */
.form .fields fieldset + fieldset {
  margin-top: 0;
}
.form legend {
  padding: 0;
  width: 100%;
}
.form-section-head {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 2rem;
}
.form-section-head .numeral {
  font-size: 1.375rem;
}
.form-section-head h2 {
  font-size: var(--step-3);
}
.form-section-head p {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--muted);
}
.fields {
  display: grid;
  gap: 1.75rem 1.75rem;
}
@media (min-width: 700px) {
  .fields--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field--full {
    grid-column: 1 / -1;
  }
}
.field {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.field > label,
.field > .label,
.choice-group > legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.req {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.15rem;
}
.opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8125rem;
  margin-left: 0.35rem;
}
.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--field-bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  min-height: 3.25rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.form textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.55;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d5e2e' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: var(--ink-500);
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.form [aria-invalid="true"] {
  border-color: #9b3b2e !important;
}
.field-error {
  font-size: 0.8125rem;
  color: #8f3326;
  font-weight: 500;
  display: flex;
  gap: 0.4rem;
}
.field-error:empty {
  display: none;
}
.field-error::before {
  content: "—";
}
.choice-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.choice-group > legend {
  margin-bottom: 0.4rem;
}
.choices {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 700px) {
  .choices--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choices--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.choice {
  position: relative;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--field-bg);
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--fg-body);
  transition: border-color 0.25s, background 0.25s;
}
.choice:hover {
  border-color: var(--rule-strong);
}
.choice input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.1rem 0 0;
  border: 1px solid var(--ink-500);
  border-radius: 50%;
  background: var(--ivory-0);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.choice input[type="checkbox"] {
  border-radius: 2px;
}
.choice input::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
  background: var(--midnight-900);
}
.choice input[type="checkbox"]::before {
  border-radius: 0;
  width: 0.6rem;
  height: 0.35rem;
  background: none;
  border-left: 1.5px solid var(--ivory-0);
  border-bottom: 1.5px solid var(--ivory-0);
  transform: rotate(-45deg) scale(0);
  margin-top: -0.15rem;
}
.choice input:checked {
  border-color: var(--midnight-900);
}
.choice input[type="checkbox"]:checked {
  background: var(--midnight-900);
}
.choice input:checked::before {
  transform: scale(1);
}
.choice input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}
.choice:has(input:checked) {
  border-color: var(--midnight-900);
  background: var(--ivory-0);
  color: var(--fg);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.choice input:focus-visible {
  outline: none;
}
.choice small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 0.15rem;
}
.form-privacy {
  margin-top: 1.25rem;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  gap: 1.5rem;
}
/* Cloudflare Turnstile runs invisibly; when it must ask the visitor to interact,
   its widget appears inside this site-styled panel. */
.turnstile-slot:empty {
  display: none;
}
.verify-panel {
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
  background: var(--ivory-0);
  padding: 1.25rem 1.5rem 0.25rem;
  margin-bottom: -1.5rem;
}
.verify-panel[hidden] {
  display: none;
}
.verify-panel + .turnstile-slot:not(:empty) {
  background: var(--ivory-0);
  border: 1px solid var(--rule-strong);
  border-top: 0;
  padding: 0.75rem 1.5rem 1.25rem;
}
.verify-panel[hidden] + .turnstile-slot {
  border: 0;
  padding: 0;
  background: none;
}
.form-status {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule-strong);
  background: var(--ivory-0);
  font-size: 0.9375rem;
}
.form-status:empty,
.form-status[hidden] {
  display: none;
}
.form-status--error {
  border-color: #b5584a;
  color: #6f2a20;
}
.form-status ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1em;
}
.form-status a {
  color: inherit;
}
.form-success {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--midnight-900);
  color: #efe9dd;
}
.form-success[hidden] {
  display: none;
}
.form-success h2 {
  color: #efe9dd;
  font-size: var(--step-4);
  margin-top: 1rem;
}
.form-success p {
  color: #d4d0c8;
  margin-top: 1.25rem;
  max-width: 34em;
}
.form-success .ref {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--brass-300);
}
.spinner {
  width: 1rem;
  height: 1rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.is-submitting .spinner {
  display: inline-block;
}
.is-submitting .i-arrow {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.aside-panel {
  border-top: 1px solid var(--rule-strong);
  padding-top: 1.5rem;
}
.aside-panel + .aside-panel {
  margin-top: 2.5rem;
}
.aside-panel h2 {
  font-size: var(--step-1);
  font-weight: 400;
  margin-bottom: 1rem;
}
.aside-panel ol,
.aside-panel ul {
  padding-left: 1.1em;
  font-size: 0.9063rem;
}
.aside-panel li + li {
  margin-top: 0.6rem;
}
.aside-panel li::marker {
  color: var(--accent);
}
.aside-panel p {
  font-size: 0.9063rem;
}

/* ── References ────────────────────────────────────────────────────────── */
.ref-group + .ref-group {
  margin-top: 3.5rem;
}
.ref-group h2 {
  font-size: var(--step-3);
  margin-bottom: 1.5rem;
}
.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}
.ref-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.ref-list li:target {
  background: linear-gradient(90deg, rgba(176, 141, 87, 0.12), transparent);
}
.ref-list .ref-n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.ref-list a {
  font-weight: 500;
  color: var(--fg);
  word-break: break-word;
}
.ref-list p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── 404 ───────────────────────────────────────────────────────────────── */
.not-found {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-h) + 4rem) 4rem;
  background: var(--midnight-900) url("/assets/img/contours.svg") center / cover no-repeat;
}
.not-found h1 {
  font-size: var(--step-6);
  margin-top: 1.5rem;
}

/* ── Motion ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero .eyebrow,
  .hero__lead,
  .hero .actions,
  .hero__note,
  .hero__triad {
    animation: rise 1.1s var(--ease-out) both;
  }
  .hero .eyebrow {
    animation-delay: 0.1s;
  }
  .hero h1 .line > span {
    animation: line-up 1.25s var(--ease-out) both;
  }
  .hero h1 .line:nth-child(1) > span {
    animation-delay: 0.2s;
  }
  .hero h1 .line:nth-child(2) > span {
    animation-delay: 0.32s;
  }
  .hero h1 .line:nth-child(3) > span {
    animation-delay: 0.44s;
  }
  .hero__lead {
    animation-delay: 0.65s;
  }
  .hero .actions {
    animation-delay: 0.8s;
  }
  .hero__note {
    animation-delay: 0.9s;
  }
  .hero__triad {
    animation-delay: 1.05s;
  }
  /* Hero map: coastline traces in, terrain builds from sea level to the peaks,
     then light passes slowly across the contours and the water lines breathe. */
  .hero__art .m-coast path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.8s var(--ease-inout) forwards;
    animation-delay: calc(0.15s + var(--c, 0) * 0.12s);
  }
  .hero__art .m-land,
  .hero__art .m-lake {
    animation: fade 2s var(--ease-out) 0.9s both;
  }
  .hero__art .m-waterlines {
    animation: fade 2.4s var(--ease-out) 1.8s both;
  }
  .hero__art .m-wl--3 {
    animation: tide 9s ease-in-out 4s infinite;
  }
  .hero__art .m-wl--2 {
    animation: tide 9s ease-in-out 5.5s infinite;
  }
  .hero__art .m-contour {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.6s var(--ease-out) forwards, glint 16s ease-in-out infinite;
    animation-delay: calc(1.1s + var(--l, 0) * 0.13s), calc(6s + var(--x, 0) * 4.5s);
  }
  .hero__art .m-contour--index {
    animation-name: draw, glint-index;
  }
  .hero__art .m-labels text {
    animation: fade 1.4s var(--ease-out) both;
    animation-delay: calc(2.8s + var(--i, 0) * 0.12s);
  }
  .hero__art .m-benchmark,
  .hero__art .m-border,
  .hero__art .m-chart {
    animation: fade 1.6s var(--ease-out) 3.2s both;
  }
  .hero__art .m-benchmark__ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: breathe 5s var(--ease-inout) 4s infinite;
  }
  .hero__art .m-relief,
  .hero__art .m-labels,
  .hero__art .m-benchmark,
  .hero__art svg {
    will-change: transform;
  }
  .page-hero h1,
  .page-hero .eyebrow,
  .page-hero .lead,
  .page-hero__meta,
  .page-hero .actions {
    animation: rise 1s var(--ease-out) both;
  }
  .page-hero .eyebrow {
    animation-delay: 0.05s;
  }
  .page-hero h1 {
    animation-delay: 0.15s;
  }
  .page-hero .lead {
    animation-delay: 0.3s;
  }
  .page-hero__meta,
  .page-hero .actions {
    animation-delay: 0.42s;
  }

  /* Systems diagram pulses */
  .systems__figure .sys-pulse {
    animation: pulse 7s linear infinite;
    animation-delay: calc(var(--n, 0) * 0.85s);
  }

  /* Scroll-driven reveals, where supported (falls back to fully visible) */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .reveal-stagger > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes tide {
  0%,
  100% {
    stroke-opacity: 0.016;
  }
  50% {
    stroke-opacity: 0.045;
  }
}
@keyframes glint {
  0%,
  14%,
  100% {
    stroke: var(--line);
    stroke-opacity: 0.16;
  }
  6% {
    stroke: var(--brass-300);
    stroke-opacity: 0.5;
  }
}
@keyframes glint-index {
  0%,
  14%,
  100% {
    stroke: var(--line);
    stroke-opacity: 0.32;
  }
  6% {
    stroke: var(--brass-300);
    stroke-opacity: 0.8;
  }
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@keyframes pulse {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  45% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4.5rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .menu,
  .cta-band,
  .hero__art,
  .map-controls,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .theme-dark,
  .page-hero,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
    --fg: #000;
    --fg-body: #111;
    --muted: #444;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ── Maps: island chart & external risk map (appended) ── */
/* Static maps stroke the coastline by reusing the land shape (one copy of the geometry). */
.m-coast > use {
  fill: none;
  stroke: var(--line);
  stroke-opacity: 0.68;
  stroke-width: 1.05;
  stroke-linejoin: round;
}
.region-map--layers .m-coast > use {
  transition: stroke 0.5s var(--ease-out), stroke-opacity 0.5s, stroke-width 0.5s;
}
.region-map--layers.show-shoreline .m-coast > use {
  stroke: var(--brass-300);
  stroke-opacity: 0.95;
  stroke-width: 2.2;
}
/* Island chart: no layer controls, so the caption carries the rule */
.map-figure--island .map-figure__canvas {
  aspect-ratio: 1600 / 1270;
}
.map-figure--island figcaption {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
/* named points of dependency (ferry terminals, aerodromes, highway passes) */
.m-feature circle {
  fill: var(--brass-400);
}
.m-feature .m-feature__ring {
  fill: none;
  stroke: var(--brass-400);
  stroke-opacity: 0.55;
  stroke-width: 1;
}
.m-feature text {
  fill: var(--brass-300);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
