/* METARSURVEY — design system
   Navy is the corporate colour, survey blue for technical highlights,
   orange only for targets, primary calls to action and key details. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  /* brand */
  --navy: #09294a;
  --navy-deep: #061c33;
  --navy-2: #0f3560;
  --blue: #1269a3;
  --blue-light: #4fa3e0;     /* blue on navy */
  --orange: #e99a2b;
  --grey: #788794;           /* decorative / large text only on white */
  /* neutrals */
  --white: #ffffff;
  --bg-2: #f3f5f7;
  --bg-3: #e8edf1;
  --ink: #13283d;            /* body text on white */
  --muted: #4b5d6e;          /* secondary text on white */
  --line: #dbe2e8;
  --line-dark: #22476d;
  --on-navy: #e7eef5;
  --on-navy-muted: #a9bccd;
  --error: #b42318;
  --success: #1d6b3a;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --space: clamp(72px, 9vw, 136px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 80px;
  --shadow: 0 1px 2px rgba(9, 41, 74, .06), 0 12px 32px -12px rgba(9, 41, 74, .18);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.125rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .site-head :focus-visible { outline-color: var(--orange); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 300; background: var(--orange); color: var(--navy); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.dark { background: var(--navy); color: var(--on-navy); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark a:not(.btn) { color: var(--blue-light); }
.dark a:not(.btn):hover { color: var(--white); }

/* Eyebrow: small technical label with an orange survey tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--orange); border-radius: 50%; box-shadow: inset 0 0 0 2px transparent; flex: none; }
.dark .eyebrow, .hero .eyebrow { color: var(--blue-light); }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 44rem; }
.dark .lede { color: var(--on-navy-muted); }
.muted { color: var(--muted); }
.dark .muted { color: var(--on-navy-muted); }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head .lede { margin: 0; }
.section-head--stack { grid-template-columns: 1fr; max-width: 52rem; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Editable placeholder for unconfirmed content */
.placeholder {
  border: 1.5px dashed var(--grey); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(120, 135, 148, .06) 10px 20px);
  padding: 18px 20px; border-radius: var(--radius); color: var(--muted);
}
.placeholder strong { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; font-weight: 500; }
.placeholder p { margin: 0; font-size: 0.9375rem; }
.dark .placeholder { border-color: var(--on-navy-muted); color: var(--on-navy-muted); }
.dark .placeholder strong { color: var(--white); }
.tbc { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; border: 1px dashed currentColor; padding: 1px 8px; border-radius: 3px; white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0;
  padding: 14px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #f2ac48; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover .arr { transform: translateX(3px); }
.link-arrow .arr { transition: transform .2s var(--ease); }

/* ---------- Header ---------- */

.site-head { position: fixed; inset: 0 0 auto 0; z-index: 200; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-head.is-solid, .site-head.is-open, .site-head--solid { background: var(--navy); box-shadow: 0 1px 0 var(--line-dark); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--head-h); }
.logo { display: inline-flex; text-decoration: none; }
.logo-svg { height: 40px; width: auto; }
.lg-m { fill: var(--white); }
.lg-sw { fill: var(--blue-light); }
.lg-ct { stroke: #9aa8b4; }
.lg-tg { stroke: var(--orange); }
.lg-tgd { fill: var(--orange); }
.lg-w1 { fill: var(--white); }
.lg-w2 { fill: #9aa8b4; }

.nav ul { list-style: none; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav a:not(.btn) {
  color: var(--white); text-decoration: none; font-size: 0.9375rem; font-weight: 600;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--blue-light); }
.nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--orange); }
.nav .btn { padding: 11px 18px; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; color: var(--white); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; content: ""; transition: transform .25s var(--ease); }
.nav-toggle span { top: 17px; }
.nav-toggle span::before { left: 0; right: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-top: 1px solid var(--line-dark); display: none; max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; }
  .nav li { border-bottom: 1px solid var(--line-dark); }
  .nav a:not(.btn) { display: block; padding: 16px 0; border-bottom: 0; }
  .nav a[aria-current="page"]:not(.btn) { color: var(--orange); }
  .nav li.nav-cta { border: 0; padding-top: 20px; }
  .nav .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 420px) { .logo-svg { height: 32px; } }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy-deep); min-height: min(100vh, 920px); min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero--page { min-height: min(68vh, 620px); min-height: min(68svh, 620px); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 28, 51, .9) 0%, rgba(6, 28, 51, .62) 48%, rgba(6, 28, 51, .2) 100%),
    linear-gradient(0deg, rgba(6, 28, 51, .85) 0%, rgba(6, 28, 51, 0) 40%);
}
.hero .wrap { width: 100%; padding-top: calc(var(--head-h) + 56px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero--page h1 { max-width: 20ch; }
.hero__sub { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: #d7e2ec; max-width: 38rem; margin-bottom: 2rem; }
.crumbs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--orange); }

/* Brand bar along the bottom of the home hero */
.hero__bar { position: relative; border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(6, 28, 51, .55); }
.hero__bar .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.hero__tagline { margin: 0; font-weight: 700; color: var(--white); }
.hero__tagline span { color: var(--orange); }
.acronym { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy-muted); }
.acronym b { color: var(--orange); font-weight: 500; }


/* METAR acronym band */
.metar { background: var(--navy-deep); color: var(--on-navy); border-bottom: 1px solid var(--line-dark); }
.metar .wrap { padding-top: clamp(36px, 4vw, 52px); padding-bottom: clamp(36px, 4vw, 52px); }
.metar__title { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); margin: 0 0 22px; }
.metar__grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metar__grid li { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; border-left: 1px solid var(--line-dark); }
.metar__grid li:first-child { padding-left: 0; border-left: 0; }
.metar__l { font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 800; line-height: .9; color: var(--white); letter-spacing: -0.02em; }
.metar__grid li:nth-child(4) .metar__l, .metar__grid li:nth-child(5) .metar__l { color: var(--blue-light); }
.metar__w { font-weight: 700; font-size: clamp(0.9375rem, 1.3vw, 1.125rem); color: var(--on-navy); }
.metar__first { color: var(--orange); }
@media (max-width: 720px) {
  .metar__grid { grid-template-columns: 1fr; gap: 0; }
  .metar__grid li { flex-direction: row; align-items: baseline; gap: 18px; padding: 10px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .metar__grid li:first-child { border-top: 0; }
  .metar__l { font-size: 2.25rem; width: 1.2em; }
}
.foot-metar { font-size: 0.875rem; }
.foot-metar abbr { text-decoration: none; color: var(--white); font-weight: 700; }
.foot-metar b { color: var(--orange); font-weight: 700; }

/* Page header without photo (contact, 404) */
.page-head { background: var(--navy); color: var(--white); padding: calc(var(--head-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-head h1 { color: var(--white); }
.page-head .lede { color: var(--on-navy-muted); }
.contour-bg { position: absolute; right: -80px; top: 0; bottom: 0; width: min(720px, 70%); opacity: .5; pointer-events: none; }
.contour-bg path { fill: none; stroke: var(--line-dark); stroke-width: 1.2; }

/* ---------- Split layouts ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }
.media { margin: 0; position: relative; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.media--tall img { aspect-ratio: 4 / 5; }
.media figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.media .target-mark { position: absolute; width: 56px; height: 56px; right: -14px; top: -14px; }

.checklist { list-style: none; display: grid; gap: 12px; margin: 1.5rem 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border: 2px solid var(--orange); border-radius: 50%; }
.checklist li::after { content: ""; position: absolute; left: 5px; top: calc(0.5em + 5px); width: 2px; height: 2px; background: var(--orange); }

.def-list { list-style: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.def-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.def-list b { font-family: var(--mono); font-weight: 500; color: var(--orange); font-size: 1.25rem; line-height: 1.3; }
.dark .def-list { border-top-color: var(--line-dark); }
.dark .def-list li { border-bottom-color: var(--line-dark); }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 24px; list-style: none; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards--5 > :nth-child(-n+3) { grid-column: span 2; }
.cards--5 > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1000px) { .cards--3, .cards--5 { grid-template-columns: 1fr 1fr; } .cards--5 > * { grid-column: auto !important; } }
@media (max-width: 640px) { .cards--3, .cards--5 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card figure { margin: 0; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__num { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--blue); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 8px; color: var(--navy); }
.card .link-arrow::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.card--plain { padding: 28px; }
.card--plain h3 { margin-bottom: 8px; }

/* Industry tiles with photo background */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; }
.tiles > li:nth-child(-n+2) { grid-column: span 3; }
.tiles > li:nth-child(n+3) { grid-column: span 2; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles > li { grid-column: auto !important; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--white); min-height: 360px; display: flex; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 28, 51, .94) 0%, rgba(6, 28, 51, .55) 45%, rgba(6, 28, 51, .1) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile__body { margin-top: auto; padding: 28px; }
.tile h3 { color: var(--white); margin-bottom: 8px; }
.tile p { color: #d7e2ec; margin: 0; }
.tile .mono { color: var(--orange); display: block; margin-bottom: 10px; }

/* ---------- Workflow ---------- */

.flow { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: flow; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--blue) 0 85%, var(--orange) 85% 100%); }
.flow li { position: relative; padding: 64px 20px 0 0; }
.flow .node { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); display: grid; place-items: center; font-family: var(--mono); font-size: 0.8125rem; color: var(--navy); font-weight: 500; }
.flow li:last-child .node { border-color: var(--orange); background: var(--orange); color: var(--navy); }
.flow h3 { font-size: 1.125rem; margin-bottom: 6px; }
.flow p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.dark .flow .node { background: var(--navy); color: var(--white); border-color: var(--blue-light); }
.dark .flow li:last-child .node { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.dark .flow p { color: var(--on-navy-muted); }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue) 0 85%, var(--orange) 85% 100%); }
  .flow li { padding: 8px 0 0 76px; min-height: 48px; }
}

/* Three-layer explanation (acquisition → processing → information) */
.layers { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.layers li { padding: 32px 28px; border-right: 1px solid var(--line); position: relative; }
.layers li:last-child { border-right: 0; }
.layers li::after { content: "→"; position: absolute; right: -14px; top: 32px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-weight: 700; z-index: 1; }
.layers li:last-child::after { display: none; }
.layers .mono { color: var(--blue); display: block; margin-bottom: 12px; }
.layers p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .layers { grid-template-columns: 1fr; } .layers li { border-right: 0; border-bottom: 1px solid var(--line); } .layers li::after { content: "↓"; right: 28px; top: auto; bottom: -14px; } }

/* ---------- Service detail rows ---------- */

.service { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service .split { align-items: start; }
.service:nth-of-type(even) .media { order: 2; }
@media (max-width: 900px) { .service:nth-of-type(even) .media { order: 0; } }
.service h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.service__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin: 1.75rem 0; }
@media (max-width: 560px) { .service__cols { grid-template-columns: 1fr; } }
.service__cols h3 { font-size: 0.75rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.service__cols ul { list-style: none; display: grid; gap: 8px; }
.service__cols li { padding-left: 18px; position: relative; color: var(--muted); }
.service__cols li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--orange); }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--grey); padding: 6px 10px; border-radius: 3px; margin-bottom: 1rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.note { border-left: 3px solid var(--orange); background: var(--bg-2); padding: 18px 22px; color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0; }
.note strong { color: var(--navy); }
.dark .note { background: var(--navy-2); color: var(--on-navy-muted); }
.dark .note strong { color: var(--white); }

/* Sub-navigation on long pages */
.subnav { position: sticky; top: var(--head-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 0; white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); border-bottom-color: var(--blue); }

/* ---------- Principles (approach) ---------- */

.principles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.principles .mono { color: var(--blue); padding-top: 6px; }
.principles h3 { margin-bottom: 6px; }
.principles p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */

.map { position: relative; margin: 0; }
.map > img { width: 100%; height: auto; }
.map__over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__over .arc { fill: none; stroke: var(--orange); stroke-width: 1.3; stroke-dasharray: 2 5; opacity: .85; }
.map__over .pt { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.map__over .hq { fill: var(--orange); }
.map__over .ring { fill: none; stroke: var(--orange); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.8s var(--ease) infinite; }
.map__over text { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; fill: var(--white); }
.map__over .region { font-family: var(--font); font-size: 22px; font-weight: 800; letter-spacing: .02em; fill: var(--white); opacity: .92; }
.map__over .hq-label { fill: var(--orange); }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
@media (max-width: 700px) { .map__over text:not(.region) { display: none; } .map__over .region { font-size: 30px; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin-top: 20px; font-size: 0.875rem; color: var(--on-navy-muted); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.legend .l-hq { background: var(--orange); }
.legend .l-mk { background: var(--blue-light); border-radius: 2px; }
.legend .l-rt { width: 22px; height: 0; border-top: 2px dashed var(--orange); }

.regions { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); margin-top: 48px; }
.regions li { padding: 28px 28px 0 0; }
.regions li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.regions .mono { color: var(--orange); display: block; margin-bottom: 8px; }
.regions p { color: var(--on-navy-muted); margin: 0; }
@media (max-width: 820px) { .regions { grid-template-columns: 1fr; } .regions li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 24px; } }

/* ---------- CTA band ---------- */

.cta { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 56px; align-items: center; }
.cta h2 { color: var(--white); margin-bottom: 0.35em; }
.cta p { color: var(--on-navy-muted); margin: 0; max-width: 40rem; font-size: 1.125rem; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
@media (max-width: 980px) { .form-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form legend { grid-column: 1 / -1; font-weight: 800; color: var(--navy); font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 4px; padding: 0; float: left; width: 100%; }
.form legend .mono { display: block; color: var(--blue); margin-bottom: 4px; font-weight: 500; }
@media (max-width: 640px) { .form, .form fieldset { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--muted); }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #9fb0c0; border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 105, 163, .2); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: 0.875rem; margin: 0; font-weight: 600; }
.field .error:empty { display: none; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--bg-2); border-radius: var(--radius); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check label { font-weight: 600; color: var(--navy); }
.check .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--radius); margin: 0; font-weight: 600; border: 1.5px solid currentColor; }
.form-status[hidden] { display: none; }
.form-status.is-success { color: var(--success); background: #eef7f1; }
.form-status.is-error { color: var(--error); background: #fdf1f0; }
.form-actions { grid-column: 1 / -1; display: grid; gap: 14px; }
.privacy { font-size: 0.875rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-card { background: var(--bg-2); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.aside-card h2 { font-size: 1.25rem; margin-bottom: 12px; }
.aside-card dl { margin: 0; }
.aside-card dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.aside-card dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.aside-card dd { margin: 4px 0 0; }
.steps-small { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps-small li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.steps-small li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--blue); display: grid; place-items: center; font-family: var(--mono); font-size: 0.75rem; color: var(--navy); }

/* ---------- Footer ---------- */

.foot { background: var(--navy-deep); color: var(--on-navy-muted); padding: 72px 0 32px; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.foot .foot-base a { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
.foot .logo-svg { height: 36px; margin-bottom: 20px; }
.foot p { margin: 0 0 .6em; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot-head { color: var(--white); font-weight: 700; margin-bottom: 14px !important; }
.foot-tag { color: var(--white); font-weight: 700; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.875rem; }
.foot-base p { margin: 0; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */

.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .code { font-family: var(--mono); color: var(--orange); font-size: 0.875rem; letter-spacing: 0.14em; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
