/* ============================================================
   MASS-MARAM — shared site styles (revamp 2026-09)
   Palette: near-black #0a0d12 · bone #f0efe9 · first-light #d6a876
   Type:    Source Serif 4 (display) · Montserrat (UI / body)

   Structure
     1. Tokens            5. Layout primitives     9. Content components
     2. Reset & base      6. Buttons & links      10. Forms
     3. Typography        7. Header & nav         11. Footer
     4. Motion            8. Page sections        12. Responsive & a11y
   ============================================================ */

/* ---------------- 1. Tokens ---------------- */

:root {
  /* colour */
  --bg: #0a0d12;
  --bg-deep: #07090d;
  --bg-panel: #0c1017;
  --bg-raised: #10161f;
  --ink: #f0efe9;
  /* Original ramp (unchanged). The dim end is floored at .55 so the faintest
     text still clears WCAG AA 4.5:1 on --bg, --bg-panel and --bg-deep. */
  --ink-85: rgba(240, 239, 233, .85);
  --ink-70: rgba(240, 239, 233, .8);
  --ink-60: rgba(240, 239, 233, .72);
  --ink-50: rgba(240, 239, 233, .66);
  --ink-45: rgba(240, 239, 233, .62);
  --ink-35: rgba(240, 239, 233, .55);
  --hairline: rgba(240, 239, 233, .08);
  --accent: #d6a876;               /* first-light — small details only, never buttons or headings */
  --accent-40: rgba(214, 168, 118, .4);
  /* added 2026-09 */
  --ink-90: rgba(240, 239, 233, .9);
  --ink-80: rgba(240, 239, 233, .8);
  --hairline-strong: rgba(240, 239, 233, .16);
  --accent-12: rgba(214, 168, 118, .12);
  --bone-hover: #e4e2da;

  /* type */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --t-eyebrow: 11.5px;
  --t-small: 14px;
  --t-body: 16.5px;
  --t-lede: clamp(17.5px, .5vw + 15px, 19.5px);
  --t-h3: clamp(20px, .5vw + 17px, 23px);
  --t-h2-sm: clamp(26px, 1.4vw + 18px, 34px);
  --t-h2: clamp(30px, 2.2vw + 18px, 46px);
  --t-h1: clamp(38px, 4.2vw + 16px, 72px);
  --measure: 38em;   /* ≈ 70 characters of Montserrat at body size */

  /* space */
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --section-sm: clamp(56px, 6vw, 88px);
  --stack: clamp(40px, 5vw, 64px);
  --container: 1200px;
  --narrow: 780px;
  --nav-h: 72px;

  /* motion */
  --ease-out: cubic-bezier(.16, .84, .24, 1);
}

/* ---------------- 2. Reset & base ---------------- */

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, opacity .2s ease;
}
a:hover { color: var(--accent); }

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

::selection { background: var(--accent-40); color: var(--ink); }

/* Anchored sections land below the sticky header instead of under it. */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------------- 3. Typography ---------------- */

.display, .display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .002em;
  color: var(--ink);
  text-wrap: balance;
}
.display-xl { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.04; }
.display-lg, .display { font-size: var(--t-h1); }
.display-md { font-size: var(--t-h2); line-height: 1.12; }
.display-sm { font-size: var(--t-h2-sm); line-height: 1.2; font-weight: 400; }

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.35;
  color: var(--ink);
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow--dim { color: var(--ink-45); }

.lede {
  font-size: var(--t-lede);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 36em;   /* ≈ 68 characters at lede size */
  text-wrap: pretty;
}

.prose { max-width: var(--measure); }
.prose p { color: var(--ink-60); line-height: 1.75; text-wrap: pretty; }
.prose p + p { margin-top: 1.25em; }
.prose--lead p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.2vw + 14px, 24px);
  line-height: 1.6;
  color: var(--ink-90);
}

.text-muted { color: var(--ink-45); }
.text-dim { color: var(--ink-35); }
.text-small { font-size: var(--t-small); line-height: 1.6; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* the whisper voice — italic serif, used in a handful of fixed places */
.whisper {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, .4vw + 13px, 16.5px);
  line-height: 1.6;
  color: var(--ink-45);
  text-wrap: pretty;
}

.wordmark {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.meta {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.locations {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-45);
  margin-top: var(--stack);
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

/* ---------------- 4. Motion ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------- 5. Layout primitives ---------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.container--narrow { max-width: var(--narrow); }
.container--form { max-width: 640px; }

.section {
  padding: var(--section) var(--gutter);
}
.section--sm { padding-block: var(--section-sm); }
.section--deep { background: var(--bg-deep); }
.section--panel { background: var(--bg-panel); }
.section--line { border-top: 1px solid var(--hairline); }
.section--flush-top { padding-top: 0; }

/* Section header: eyebrow → title → lede, always in that order and rhythm */
.section-head { max-width: 820px; }
.section-head > .eyebrow { margin-bottom: 18px; }
.section-head > .lede { margin-top: 22px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center > .lede { margin-left: auto; margin-right: auto; }
.section-head + * { margin-top: var(--stack); }

.stack > * + * { margin-top: var(--stack); }
.stack-sm > * + * { margin-top: 24px; }
.stack-xs > * + * { margin-top: 14px; }

.divider {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: var(--stack) 0;
}

.grid {
  display: grid;
  gap: 32px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--gap-lg { gap: 48px 40px; }

/* Two-column "aside + content" split used for form and story sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split__aside { position: sticky; top: calc(var(--nav-h) + 32px); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.cluster--center { justify-content: center; }

/* ---------------- 6. Buttons & links ---------------- */

.btn-pill, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-pill {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-pill:hover { background: var(--bone-hover); border-color: var(--bone-hover); color: var(--bg); }
.btn-pill:active { transform: translateY(1px); }
.btn-pill--lg { min-height: 52px; padding: 0 38px; font-size: 13px; letter-spacing: .16em; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

button.btn-pill, button.btn-ghost { appearance: none; }
.btn-pill[disabled], .btn-ghost[disabled] { opacity: .55; cursor: default; }

/* quiet secondary link — uppercase, hairline underline, arrow stays in copy.
   The underline is a pseudo-element so the hit area can reach 44px without
   pushing the rule away from the text. */
.quiet-link {
  position: relative;
  display: inline-block;
  min-height: 44px;
  padding: 14px 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-70);
}
.quiet-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--hairline-strong);
  transition: background-color .2s ease;
}
.quiet-link:hover { color: var(--accent); }
.quiet-link:hover::after { background: var(--accent-40); }

/* ---------------- 7. Header & nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 13, 18, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
  transition: background-color .3s ease, border-color .3s ease;
}
/* Over the homepage hero the bar starts transparent and firms up on scroll. */
.site-header--overlay {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header--overlay.is-scrolled {
  background: rgba(10, 13, 18, .86);
  border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.site-nav {
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.site-nav .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__item { position: relative; }
.site-nav__link, .site-nav__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 9px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-70);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav__link::after, .site-nav__trigger::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: 8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.site-nav__link:hover, .site-nav__trigger:hover,
.site-nav__trigger[aria-expanded="true"] { color: var(--ink); }
.site-nav__link:hover::after, .site-nav__trigger:hover::after,
.site-nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"], .site-nav__trigger.is-current { color: var(--ink); }
.site-nav__link[aria-current="page"]::after, .site-nav__trigger.is-current::after { transform: scaleX(1); }
.site-nav__trigger svg { width: 10px; height: 10px; flex: 0 0 auto; transition: transform .25s var(--ease-out); }
.site-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown panel — grouped links under small uppercase labels */
.site-nav__menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 70;
  display: none;
  min-width: 264px;
  padding: 18px 10px 14px;
  background: rgba(12, 16, 23, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}
.site-nav__menu--right { left: auto; right: 0; }
.site-nav__menu--wide { width: max-content; min-width: 0; grid-template-columns: repeat(3, auto); gap: 0 16px; padding: 20px 12px 16px; }
.site-nav__menu--wide .nav-col + .nav-col { border-left: 1px solid var(--hairline); padding-left: 16px; }
.site-nav__item.is-open .site-nav__menu { display: block; animation: menuIn .2s var(--ease-out) both; }
.site-nav__item.is-open .site-nav__menu--wide { display: grid; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-group + .nav-group { margin-top: 16px; }
.nav-group__label {
  padding: 0 12px 6px;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-group a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-70);
  white-space: nowrap;
  border-radius: 3px;
}
.nav-group a:hover, .nav-group a:focus-visible { color: var(--ink); background: rgba(240, 239, 233, .05); }
.nav-group a[aria-current="page"] { color: var(--ink); }

.site-nav__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-width: 0; }
.site-nav__actions .btn-pill { padding: 0 20px; min-height: 44px; font-size: 11.5px; }

.site-nav__burger {
  display: none;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.site-nav__burger:hover { border-color: var(--accent); color: var(--accent); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(6, 8, 11, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  padding: 84px var(--gutter) 56px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; animation: fadeIn .25s ease both; }
.mobile-menu__nav { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }
.mobile-menu__link, .mobile-menu__acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 5.5vw, 30px);
  font-weight: 300;
  line-height: 1.25;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
}
.mobile-menu__nav > :last-of-type { border-bottom: 0; }
.mobile-menu__acc svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--ink-45); transition: transform .25s var(--ease-out); }
.mobile-menu__acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu__acc[aria-expanded="true"] { color: var(--accent); }
.mobile-menu__panel { padding: 2px 0 18px; }
.mobile-menu__panel .nav-group + .nav-group, .mobile-menu__panel .nav-col + .nav-col { margin-top: 14px; }
.mobile-menu__panel .nav-group__label { padding-left: 0; }
.mobile-menu__panel .nav-group a { padding: 0; min-height: 44px; font-size: 16px; white-space: normal; }
.mobile-menu__panel .nav-group a:hover { background: none; }
.mobile-menu a.mobile-menu__cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  margin: 28px auto 0;
  padding: 0 34px;
  min-height: 52px;
  color: var(--bg);
}
.mobile-menu__close {
  position: absolute;
  top: 14px;
  right: var(--gutter);
  min-height: 44px;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------------- 7b. Announcement bar (every page) ---------------- */

.announce {
  position: relative;
  z-index: 61;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  padding: 9px var(--gutter);
  background: rgba(6, 8, 11, .92);
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
  letter-spacing: .03em;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-70);
}
.announce__date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.announce__sep { color: var(--ink-35); }
.announce a { color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--hairline-strong); }
.announce a:hover { color: var(--accent); border-color: var(--accent-40); }

/* ---------------- 8. Page sections ---------------- */

.page-hero {
  position: relative;
  padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(56px, 6vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.page-hero__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.page-hero__inner > .eyebrow { margin-bottom: 24px; }
.page-hero__mark {
  height: 96px;
  width: auto;
  margin: 0 auto 28px;
}
.page-hero__sub {
  font-size: var(--t-lede);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 640px;
  margin: 26px auto 0;
  text-wrap: pretty;
}
.page-hero .whisper { margin: 26px auto 0; max-width: 580px; }

/* dashed orbit ornament — echoes the spiral mark; decorative only */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(240, 239, 233, .07);
  pointer-events: none;
}

.cta-band {
  position: relative;
  padding: var(--section) var(--gutter);
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.cta-band__inner { max-width: 720px; margin: 0 auto; }
.cta-band .display-md { text-wrap: balance; }
.cta-band .btn-pill--lg { margin-top: 36px; }
.cta-band .whisper { margin-top: 32px; }
.cta-band .whisper + .btn-pill--lg { margin-top: 28px; }

/* ---------------- 9. Content components ---------------- */

/* Card — panel background, hairline border, generous padding */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color .25s ease;
}
.card:hover { border-color: var(--hairline-strong); }
.card > .h3 + p, .card > h3 + p { margin-top: 12px; }
.card p { color: var(--ink-60); line-height: 1.7; text-wrap: pretty; }
.card .meta { margin-top: 8px; }
.card .meta + p { margin-top: 16px; }

/* Cell grid — hairline-separated cells (security, beliefs) */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong);
}
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { background: var(--bg); padding: clamp(26px, 3vw, 40px); }
.cell p { color: var(--ink-70); line-height: 1.7; text-wrap: pretty; }
.cell .h3 + p { margin-top: 12px; }

/* Feature row — label column + body (platform capabilities) */
.feature-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 24px 56px;
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--hairline);
}
.feature-row:last-child { border-bottom: 1px solid var(--hairline); }
.feature-row__label {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 1.6vw + 14px, 30px);
  line-height: 1.2;
  color: var(--ink-45);
}
.feature-row__body h2, .feature-row__body .h3 { margin-bottom: 16px; }
.feature-row__body p { max-width: var(--measure); color: var(--ink-60); line-height: 1.75; text-wrap: pretty; }
.feature-row__body p + p { margin-top: 1em; }

/* Pillars — icon, serif heading, short paragraph */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}
.pillar svg { margin-bottom: 22px; }
.pillar .h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-60); line-height: 1.7; }

/* Numbered flow — five short steps (the vessel-to-console chain) */
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 28px;
  counter-reset: flow;
}
.flow__step { padding-top: 18px; border-top: 1px solid var(--hairline-strong); }
.flow__step .meta { color: var(--ink-45); }
.flow__step p { margin-top: 10px; color: var(--ink-70); line-height: 1.6; font-size: 15.5px; }

/* Statement — a short serif line that closes a section */
.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.2vw + 14px, 24px);
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
  max-width: 720px;
  margin: var(--stack) auto 0;
  text-wrap: balance;
}

/* Journal treatment — date, headline, one-line thesis, arrow */
.journal-item {
  display: block;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
}
.journal-item:last-child { border-bottom: 1px solid var(--hairline); }
.journal-item__date { display: block; }
.journal-item__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 1.2vw + 16px, 27px);
  line-height: 1.3;
  margin-top: 12px;
  text-wrap: balance;
}
.journal-item__thesis {
  margin-top: 10px;
  color: var(--ink-60);
  line-height: 1.7;
  max-width: var(--measure);
  text-wrap: pretty;
}
.journal-item__arrow {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
a.journal-item:hover .journal-item__title { color: var(--accent); }
a.journal-item:hover { color: var(--ink); }

/* Evolution ladder — emphasis descends; the future fades, it never glows */
.ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  text-align: center;
}
.ladder__step-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3vw + 10px, 46px);
  line-height: 1.1;
}
.ladder__step-state {
  margin-top: 12px;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-45);
}
/* Only the big word fades; the state caption stays at a legible tint (AA). */
.ladder__step:nth-child(1) .ladder__step-name { opacity: 1; }
.ladder__step:nth-child(2) .ladder__step-name { opacity: .8; }
.ladder__step:nth-child(3) .ladder__step-name { opacity: .6; }
.ladder__step:nth-child(4) .ladder__step-name { opacity: .42; }

/* Deployment map + cards */
.deploy-map {
  position: relative;
  height: 440px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
}
#deploy-map-canvas { position: absolute; inset: 0; }

.owl-marker { position: relative; background: none; border: none; padding: 0; cursor: pointer; }
.owl-marker__dot {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(6, 8, 11, .6);
}
.owl-marker__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.deploy-map.pulsing .owl-marker__ring { animation: owlPulse 2s ease-out 3; }
@keyframes owlPulse {
  0% { width: 10px; height: 10px; opacity: .8; }
  100% { width: 56px; height: 56px; opacity: 0; }
}
.owl-marker__label {
  position: absolute;
  left: 16px; top: -4px;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-90);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.owl-marker:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.deploy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.deploy-card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 32px);
}
.deploy-card h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.3; }
.deploy-card__state {
  margin-top: 8px;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.deploy-card p { margin-top: 14px; color: var(--ink-60); line-height: 1.7; text-wrap: pretty; }
.deploy-caption {
  margin-top: 24px;
  font-size: var(--t-small);
  color: var(--ink-45);
  line-height: 1.65;
  max-width: 760px;
}

/* Quiet blocks — paired secondary topics */
.quiet-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 56px;
}
.quiet-block .h3, .quiet-block h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.35;
  margin-bottom: 14px;
  text-wrap: balance;
}
.quiet-block p, .quiet-block li { color: var(--ink-60); line-height: 1.7; text-wrap: pretty; }
.quiet-block ul { margin: 0 0 20px; padding-left: 20px; }
.quiet-block li { margin-bottom: 8px; }
.quiet-block p + p { margin-top: 12px; }
.quiet-block .quiet-link { margin-top: 6px; }

/* Four-point handshake (Project MARAM) */
.handshake__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(28px, 3vw, 36px) 0;
  border-top: 1px solid var(--hairline);
}
.handshake__row:last-child { border-bottom: 1px solid var(--hairline); }
.handshake__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--ink-45);
}
.handshake__row h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.3; margin-bottom: 8px; }
.handshake__row p { color: var(--ink-60); line-height: 1.7; }

/* Sensor-to-shore — five bands, ivory datum driven purely by scroll */
.sensor-chain { position: relative; padding-left: 44px; }
.sensor-chain__rail {
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--hairline-strong);
}
.sensor-chain__datum {
  position: absolute;
  left: 8.5px; top: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 10px rgba(240, 239, 233, .5);
}
@media (prefers-reduced-motion: reduce) { .sensor-chain__datum { display: none; } }
.sensor-band { padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.sensor-band:last-child { border-bottom: none; }
.sensor-band h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sensor-band p { color: var(--ink-60); line-height: 1.7; }

/* Product frame — the live map demonstration (platform page) */
.map-frame {
  max-width: 1160px;
  margin: var(--stack) auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 12px 40px rgba(0, 0, 0, .5);
  background: #0d141d;
}
.map-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--hairline);
}
.map-frame__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(240, 239, 233, .18); }
.map-frame__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 520px;
}
.map-view {
  position: relative;
  min-height: 460px;
  background: linear-gradient(160deg, #0c1622 0%, #0a121c 55%, #091019 100%);
  overflow: hidden;
}
#fleet-map { position: absolute; inset: 0; }
.map-view__chips { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.map-chip {
  background: rgba(6, 8, 11, .72);
  border: 1px solid rgba(240, 239, 233, .14);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-70);
}
.map-panel {
  background: #0d131c;
  border-left: 1px solid var(--hairline);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-panel__label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 6px; }
.map-panel__vessel { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.2; }
.map-panel__route { font-size: 12px; color: var(--ink-45); margin-top: 4px; }
.map-panel__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-cell {
  background: rgba(240, 239, 233, .04);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 13px;
}
.stat-cell__k { font-size: 10px; letter-spacing: .18em; color: var(--ink-45); text-transform: uppercase; }
.stat-cell__v { font-size: 19px; font-weight: 300; margin-top: 3px; line-height: 1.2; }
.stat-cell__v small { font-size: 11px; color: var(--ink-45); }
.map-panel__alert {
  border: 1px solid rgba(214, 168, 118, .35);
  background: rgba(214, 168, 118, .07);
  border-radius: 8px;
  padding: 12px 14px;
}
.map-panel__alert-k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.map-panel__alert-v { font-size: 13px; line-height: 1.5; color: var(--ink-90); }
.map-panel__insight {
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(240, 239, 233, .03);
}
.map-panel__insight-k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 6px; }
.map-panel__insight-v { font-size: 12.5px; line-height: 1.6; color: var(--ink-60); }

/* Article (Insights) */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) var(--gutter) clamp(72px, 8vw, 112px);
}
.article__date { display: block; }
.article h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 3.6vw + 12px, 54px);
  line-height: 1.12;
  margin-top: 18px;
  text-wrap: balance;
}
.article__body { margin-top: 40px; }
.article__body p {
  font-size: clamp(17px, .3vw + 16px, 18.5px);
  line-height: 1.8;
  color: var(--ink-90);
  text-wrap: pretty;
}
.article__body p + p { margin-top: 1.4em; }
.article__body blockquote {
  margin: 44px 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(21px, 1.2vw + 16px, 27px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
}
.article__back { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hairline); }


/* Solution cards — one question per cell, used on the homepage band and the solutions hub */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong);
}
.sol-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2vw, 28px);
  color: var(--ink);
  transition: background-color .25s ease;
}
.sol-card:hover { background: var(--bg-raised); }
.sol-card__q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, .6vw + 16px, 22px);
  line-height: 1.3;
  text-wrap: balance;
}
.sol-card__what { flex: 1 1 auto; font-size: 14.5px; line-height: 1.65; color: var(--ink-60); text-wrap: pretty; }
.sol-card .ladder-tag { align-self: flex-start; }
.sol-card__arrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Ladder tag — where a solution sits on Monitor → Predict → Advise → Assure */
.ladder-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-70);
  white-space: nowrap;
}
.ladder-tag b { font-weight: 500; color: var(--accent); }
.ladder-tag--dim b { color: var(--ink-45); }

/* Illustration — a fictional-world sketch, always labelled as such */
.illustration {
  border: 1px dashed var(--hairline-strong);
  padding: clamp(24px, 3vw, 40px);
  max-width: var(--measure);
}
.illustration__note {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 18px;
}
.illustration p { color: var(--ink-70); line-height: 1.75; text-wrap: pretty; }
.illustration p + p { margin-top: 1em; }

/* Link list — "questions that come first" under a vessel type */
.link-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.link-list a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14.5px; color: var(--ink-70); }
.link-list a::before { content: "→"; margin-right: 10px; color: var(--accent); }
.link-list a:hover { color: var(--ink); }

/* Glossary */
.glossary { margin: 0; }
.glossary > div { padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--hairline); }
.glossary > div:last-child { border-bottom: 1px solid var(--hairline); }
.glossary dt { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.3; color: var(--ink); }
.glossary dd { margin: 10px 0 0; max-width: var(--measure); color: var(--ink-60); line-height: 1.75; text-wrap: pretty; }
.glossary dd a { color: var(--ink-70); border-bottom: 1px solid var(--hairline-strong); }
.glossary dd a:hover { color: var(--accent); }

/* Anchor cells (vessel types): three across, then two wider, so five never leaves an orphan */
.anchor-cells { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.anchor-cells .cell { grid-column: span 2; }
.anchor-cells .cell:nth-child(4), .anchor-cells .cell:nth-child(5) { grid-column: span 3; }
.anchor-cells .cell h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.3; margin-bottom: 12px; }

/* ---------------- 10. Forms ---------------- */

.mm-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid var(--hairline-strong);
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--bg-panel);
  text-align: left;
}
.mm-form .field { display: flex; flex-direction: column; gap: 8px; }
.mm-form label {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.mm-form label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-45); font-size: 12px; }
.mm-form input, .mm-form textarea {
  width: 100%;
  background: rgba(240, 239, 233, .05);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  color: var(--ink);
  padding: 13px 16px;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.mm-form textarea { resize: vertical; min-height: 96px; }
.mm-form input:focus, .mm-form textarea:focus {
  border-color: var(--accent);
  background: rgba(240, 239, 233, .07);
  outline: 2px solid var(--accent-40);
  outline-offset: 0;
}
.mm-form .field-error { font-size: 13px; color: var(--accent); display: none; }
.mm-form .field.invalid .field-error { display: block; }
.mm-form .field.invalid input, .mm-form .field.invalid textarea { border-color: var(--accent); }
.mm-form button[type="submit"] { align-self: flex-start; margin-top: 4px; }
.mm-form button[disabled] { opacity: .6; cursor: default; }
.mm-form .form-failure { font-size: 13px; color: var(--accent); }

.form-outcome {
  border: 1px solid var(--accent-40);
  background: var(--accent-12);
  padding: clamp(24px, 3.5vw, 40px);
  display: none;
  text-align: left;
}
.form-outcome h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.2vw + 16px, 27px); line-height: 1.35; }
.form-outcome p { color: var(--ink-70); line-height: 1.7; margin-top: 14px; }
.form-outcome__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.slot-note { font-size: 12.5px; color: var(--ink-45); margin: 20px 0 8px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.slot-grid button {
  min-height: 40px;
  background: rgba(240, 239, 233, .05);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  color: var(--ink);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.slot-grid button:hover, .slot-grid button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------------- 11. Footer ---------------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 6vw, 80px) var(--gutter) 40px;
}
.site-footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) repeat(4, minmax(130px, 1fr));
  gap: 48px 40px;
}
.site-footer .wordmark { display: block; margin-bottom: 18px; }
.site-footer__tag {
  font-size: var(--t-small);
  color: var(--ink-45);
  line-height: 1.7;
  max-width: 300px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__head {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 10px;
}
.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: var(--ink-70);
}
.site-footer__col a:hover { color: var(--accent); }
.site-footer__base {
  max-width: var(--container);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--ink-45);
}
.site-footer__base a { color: var(--ink-45); }
.site-footer__base a:hover { color: var(--accent); }
.site-footer__legal { display: flex; gap: 24px; }

/* Utility page (404 / privacy / terms) */
.utility {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section) var(--gutter);
}
.utility--doc { align-items: flex-start; text-align: left; justify-content: flex-start; min-height: 60vh; }
.utility .quiet-link { margin-top: 40px; }

/* MapLibre attribution stays readable on the dark basemap (licence condition). */
.maplibregl-ctrl-attrib { background: rgba(6, 8, 11, .82); font-size: 10.5px; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib a, .maplibregl-ctrl-attrib button { color: rgba(240, 239, 233, .75); }

/* ---------------- 12. Responsive & a11y ---------------- */

@media (max-width: 1199px) {
  .site-nav__links { display: none; }
  .site-nav__burger { display: inline-flex; }
}

@media (max-width: 1024px) {
  .anchor-cells .cell, .anchor-cells .cell:nth-child(4) { grid-column: span 3; }
  .anchor-cells .cell:nth-child(5) { grid-column: span 6; }
  .pillars { gap: 40px 32px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__aside { position: static; }
  .grid--3 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .feature-row { grid-template-columns: 1fr; gap: 12px; }
  .feature-row__label { font-size: 13px; font-family: var(--sans); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
  .cells--3 { grid-template-columns: 1fr; }
  .map-frame__body { grid-template-columns: 1fr; min-height: 0; }
  .map-view { min-height: 340px; }
  .map-panel { border-left: none; border-top: 1px solid var(--hairline); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .deploy-map { height: 360px; }
}

@media (max-width: 760px) {
  /* The demo pill and the burger cannot share the row; the pill lives in the drawer. */
  .site-nav__actions .btn-pill { display: none; }
  .site-nav { gap: 16px; }
  .grid--2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .handshake__row { grid-template-columns: 44px 1fr; gap: 18px; }
  .handshake__num { font-size: 24px; }
  .quiet-blocks { gap: 40px; }
  .ladder { gap: 32px 24px; }
}

@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .sol-grid { grid-template-columns: 1fr; }
  .announce { font-size: 12px; padding: 8px var(--gutter); }
  .announce__date, .announce__sep { display: none; }
  .anchor-cells .cell, .anchor-cells .cell:nth-child(4), .anchor-cells .cell:nth-child(5) { grid-column: span 6; }
  .mobile-menu { padding-top: 76px; }
  .flow { grid-template-columns: 1fr; }
  .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .cells, .cells--2, .cells--3 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__tag { max-width: none; }
  .site-footer__base { margin-top: 36px; font-size: 12px; gap: 14px; }
  .handshake__row { grid-template-columns: 1fr; gap: 6px; }
  .sensor-chain { padding-left: 32px; }
  .sensor-chain__rail { left: 8px; }
  .sensor-chain__datum { left: 4.5px; }
  .deploy-map { height: 300px; }
  /* The nowrap label to the right of the dot runs off a phone-width map;
     sit it under the dot instead, centred, and let it wrap. */
  .owl-marker__label {
    left: 50%; top: calc(50% + 12px);   /* 50% = dot centre, even with the touch padding */
    transform: translateX(-50%);
    width: max-content; max-width: 132px;
    white-space: normal; text-align: center; line-height: 1.5;
    font-size: 10px;
  }
  .map-view { min-height: 280px; }
  /* The map attribution owns the bottom edge on a phone-width map; the
     replay chips move up out of its way. */
  .map-view__chips { left: 12px; top: 12px; bottom: auto; flex-wrap: wrap; gap: 6px; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder__step-name { font-size: 30px; }

  /* Primary actions go full-width so they are unmissable one-handed. */
  .btn-pill--lg, .cta-band .btn-pill, .mm-form button[type="submit"] { width: 100%; }
  .form-outcome__actions .btn-pill, .form-outcome__actions .btn-ghost { flex: 1 1 auto; }
}

@media (pointer: coarse) {
  .site-footer__col a { min-height: 44px; }
  .site-footer__base a { display: inline-flex; align-items: center; min-height: 44px; }
  .slot-grid button { min-height: 44px; }
  /* The map pin is a 10px dot — give it an invisible finger-sized hit area. */
  .owl-marker { padding: 17px; margin: -17px; }
}

/* Long unbroken strings must not force a horizontal scroll. */
p, li, h1, h2, h3, blockquote, .journal-item__title { overflow-wrap: break-word; }

@media print {
  .site-header, .mobile-menu, .skip-link, .cta-band, .site-footer__grid { display: none !important; }
  body { background: #fff; color: #000; }
}
