/* Flo · preview.flo.co/current, rebuilt as one stylesheet.
   Composition follows the screen's shape: wide screens put copy left of the ship,
   tall screens stack copy over the open sea with the ship below. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flo Sans";
  src: url("../fonts/flo-sans.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Registered palette */
  --navy: #0b2d3a;
  --teal: #073d46;
  --ivory: #f4f1e8;
  --seafoam: #d6e5df;
  --frame: #30535b;
  --action: #ff9b72;
  --mint: #a9e8cf;

  /* Field, Paper and state values documented in the Flo DESIGN.md */
  --deep-ocean: #062e49;
  --ocean: #073448;
  --navy-bar: #082c3e;
  --mist: #c3d9ce;
  --paper: #f4f0e2;
  --ink: #0e4149;
  --muted: #526a6d;
  --muted-strong: #355d61;
  --line-paper: #cad2c7;
  --peach-field: #f49a77;
  --peach-body: #543e35;
  --peach-light: #ffbc95;
  --coral: #ff5a36;
  --action-hover: #ffc09a;
  --action-pressed: #ed936c;
  --focus: #ffb78b;
  --focus-ring: #073445;
  --line-section: #b7d9cc26;
  --line-frame: #b5dcd437;
  --line-control: #a9d4c67d;
  --line-hairline: #ffffff1c;
  --wash-coral: #f5dece;
  --wash-teal: #cfd4cd;
  --shadow-mock: 0 16px 35px rgb(0 30 43 / .2);

  /* Measured scrims (DESIGN.md --scrim-*) */
  --scrim-hero:
    linear-gradient(90deg, #031e2cdb 0%, #031e2cd1 32%, #031e2cb8 43%, #031e2c47 57%, #031e2c00 72%),
    linear-gradient(0deg, #032536a6, #03253600 34%),
    linear-gradient(180deg, #03253680, #03253600 180px);
  --scrim-current: linear-gradient(90deg, #073448 0%, #073448f2 27%, #073448d9 40%, #07344833 57%, #07344800 70%);
  --scrim-current-tall: linear-gradient(180deg, #032b3cf2, #032b3cd9 42%, #032b3c33 80%, #032b3c1a);
  --scrim-closing: linear-gradient(180deg, #062e4300 35%, #062e431f 50%, #062e43e8 100%);
  --scrim-closing-tall: linear-gradient(180deg, #0326381a 25%, #032638a6 50%, #032638eb 75%, #032638f5);
  --scrim-hero-short:
    linear-gradient(90deg, #031e2ceb 0%, #031e2ce3 38%, #031e2cc7 48%, #031e2c52 62%, #031e2c00 76%),
    linear-gradient(0deg, #032536a6, #03253600 34%),
    linear-gradient(180deg, #03253680, #03253600 180px);
  --wash-current-short: linear-gradient(180deg, #032b3c99, #032b3c99 calc(100% - 48px), #032b3c00);
  --wash-closing-short: linear-gradient(180deg, #062e4300 0, #062e43b8 80px, #062e43e0 100%);

  /* Type */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-sans: "Flo Sans", Arial, sans-serif;
  --type-display: clamp(56px, 5.4vw, 80px);
  --type-heading: clamp(40px, 3.8vw, 56px);
  --type-heading-demo: clamp(36px, 3.25vw, 48px);
  --type-closing: clamp(44px, 4vw, 60px);
  --type-body: 17px;
  --type-lead: 18px;

  /* Space */
  --gutter: clamp(24px, 5vw, 160px);
  --gutter-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  --section-space: clamp(64px, 7vw, 112px);
  --header-h: 88px;
  --screen: 100vh;

  /* Motion */
  --ease: cubic-bezier(.2, .65, .25, 1);

  /* Tall-screen hero: the ship band, its soft edges, and room below it for the
     captain's log (the hull sits at 82% of the band, so the band lifts only as far
     as the log needs). */
  --band-h: clamp(50vw, 58svh, 106vw);
  --band-fade: calc(var(--band-h) * .22);
  --log-room: 132px;
  --band-bottom: max(0px, calc(var(--log-room) - var(--band-h) * .18));
  --band-top: calc(100% - var(--band-h) - var(--band-bottom));
  --backdrop-h: max(calc(var(--band-top) + var(--band-fade)), 84.5vw);
  --scrim-hero-tall: linear-gradient(180deg,
    #032638b8 0,
    #032638b8 calc(var(--band-top) - 24px),
    #03263800 calc(var(--band-top) + var(--band-fade)),
    #03263800 calc(100% - var(--log-room) - 40px),
    #032638cc calc(100% - var(--log-room) + 12px),
    #032638ed 100%);

  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@supports (height: 100svh) { :root { --screen: 100svh; } }
/* Whole-pixel painting crops keep the Rive canvas on the device-pixel grid,
   so it is never resampled over the sharper poster beneath it. */
@supports (width: round(1.5px, 1px)) {
  :root {
    --band-h: round(clamp(50vw, 58svh, 106vw), 1px);
    --band-fade: round(calc(var(--band-h) * .22), 1px);
    --band-bottom: round(max(0px, calc(var(--log-room) - var(--band-h) * .18)), 1px);
  }
}

@media (min-width: 1600px) {
  :root {
    --type-display: clamp(80px, 4vw, 96px);
    --type-heading: clamp(56px, 3.1vw, 64px);
    --type-heading-demo: clamp(48px, 2.7vw, 56px);
    --type-closing: clamp(60px, 3.2vw, 72px);
    --type-body: 18px;
    --type-lead: 19px;
    --section-space: clamp(112px, 6vw, 144px);
  }
}
@media (max-width: 1000px) {
  :root {
    --type-display: clamp(33px, 9.65vw, 43px);
    --type-heading: 34px;
    --type-heading-demo: 34px;
    --type-closing: 34px;
  }
}
@media (max-width: 640px), (max-height: 520px) {
  :root { --header-h: 76px; }
}
@media (max-width: 640px) {
  :root { --type-body: 16px; --section-space: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--navy);
  color: var(--ivory);
  font: 400 var(--type-body)/1.65 var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--peach-light); color: var(--ink); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--focus-ring);
}

h1, h2 { font-family: var(--font-display); font-optical-sizing: none; font-variation-settings: "opsz" 24; letter-spacing: -.015em; text-wrap: balance; color: var(--ivory); }

.shell {
  width: min(100%, calc(1760px + var(--gutter-left) + var(--gutter-right)));
  margin-inline: auto;
  padding-inline: var(--gutter-left) var(--gutter-right);
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--paper); color: var(--ink);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- Actions ---------- */
.icon-ne { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 48px; padding: 15px 20px;
  border: 0; border-radius: 0;
  font: 400 14px/1.35 var(--font-sans); letter-spacing: 0; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.button-primary { background: var(--action); color: var(--ink); }
.button-primary:hover { background: var(--action-hover); }
.button-primary:active { background: var(--action-pressed); }

.text-control {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line-control); border-radius: 0;
  background: none; color: var(--mint);
  font: 400 14px/1.4 var(--font-sans); white-space: nowrap;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.text-control svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.text-control .icon-ne { width: 14px; height: 14px; }
.text-control:hover { color: var(--peach-light); border-color: currentColor; }
.text-control:disabled { opacity: .6; cursor: default; }
.text-control[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ivory);
  transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.site-header.is-scrolled { background: var(--navy-bar); box-shadow: 0 1px 0 var(--line-hairline); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { width: 122px; height: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px;
  font-size: 14px; line-height: 1.35; color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}
.site-nav a:hover { border-bottom-color: var(--line-control); }
.site-nav a[aria-current="true"] { border-bottom-color: var(--peach-light); }
.header-cta { flex: none; }
/* One primary action per view: while the closing call to action is on screen,
   the header's button steps back to a text control. */
.site-header.is-quiet .header-cta { background: transparent; color: var(--ivory); box-shadow: inset 0 -1px 0 var(--line-control); }
.site-header.is-quiet .header-cta:hover { color: var(--peach-light); }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .header-inner { gap: 16px; justify-content: space-between; }
  .header-cta { gap: 16px; padding-inline: 16px; }
}
@media (max-width: 359px) {
  .brand img { width: 120px; }
  .header-cta { gap: 10px; padding-inline: 12px; }
}

/* ---------- Painted sections, shared ---------- */
.painted { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); }
.painted > .shell { position: relative; z-index: 2; }

/* ---------- 1 · Hero ---------- */
.hero {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr);
  min-height: max(var(--screen), var(--hero-snap, 0px));
  background: var(--deep-ocean);
}
.hero-art { position: absolute; inset: 0; z-index: 0; }
.sea-layer { position: absolute; overflow: hidden; contain: paint; }
.sea-layer > .sea-poster,
.sea-layer > .sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.sea-poster { object-fit: cover; object-position: var(--sea-x, 100%) var(--sea-y, 50%); }
.sea-canvas { opacity: 0; transition: opacity 240ms var(--ease); pointer-events: none; }
.sea-canvas.is-live { opacity: 1; }

/* Wide screens: one crop, copy on the open water left of the ship */
.sea-layer-main { top: 0; right: 0; bottom: 0; width: 100%; --sea-x: 100%; --sea-y: 50%; }
.sea-layer-band { display: none; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim-hero); pointer-events: none; }

.hero-copy { grid-row: 1; padding-top: calc(var(--header-h) + clamp(40px, 10svh, 172px)); }
/* The headline stays on the water: its size follows the space between the
   gutter and the ship's foresail (about 68% of the screen height from the right).
   --h1-measure is the longest headline line in ems (9.4 for the captain line). */
.hero { --copy-room: calc(100vw - 68svh - var(--gutter-left) - 24px); }
.hero h1 {
  max-width: 100%;
  font-size: min(var(--type-display), calc(var(--copy-room) / var(--h1-measure, 9.4)));
  line-height: 1.08;
  font-variation-settings: "opsz" 48;
}
.hero-lead {
  max-width: min(47ch, var(--copy-room));
  margin-top: 28px;
  font-size: var(--type-lead); line-height: 1.6; color: var(--ivory);
}
.hero-audience { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--mist); }
.hero-foot { grid-row: 2; align-self: end; padding-top: 40px; padding-bottom: clamp(32px, 4svh, 56px); }
.captains-log {
  width: min(460px, 42vw, var(--copy-room));
  padding-top: 16px; border-top: 1px solid var(--line-frame);
}
.log-label { font-size: 13px; line-height: 1.5; color: var(--mist); }
.log-entry { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--ivory); }

@media (min-width: 1001px) and (min-aspect-ratio: 9/5) {
  .sea-layer-main { --sea-y: 15%; }
}
/* Ultrawide: fit the painting to twice the screen height, fade it into the field */
@media (min-width: 1001px) and (min-aspect-ratio: 2/1) {
  .sea-layer-main {
    width: min(100%, 200svh); --sea-y: 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 22%);
    mask-image: linear-gradient(90deg, transparent, black 22%);
  }
  .hero { --copy-room: calc(100vw - 136svh - var(--gutter-left) - 24px); }
}
@media (min-width: 1600px) {
  .hero-audience { font-size: 15px; }
}
@media (max-width: 1000px) {
  .hero-lead { font-size: 16px; line-height: 1.5; margin-top: 22px; }
  .hero-audience { margin-top: 16px; font-size: 12px; }
  .log-label { font-size: 12px; }
  .log-entry { margin-top: 6px; font-size: 13px; line-height: 1.55; }
}
/* Short landscape screens (phones on their side, an open foldable with browser bars) */
@media (max-height: 520px) and (min-aspect-ratio: 13/10) {
  .hero-copy { padding-top: calc(var(--header-h) + 16px); }
  .hero h1 { font-size: min(var(--type-display), calc(var(--copy-room) / var(--h1-measure, 9.4)), 9.5svh); }
  .hero-lead { margin-top: 14px; }
  .hero-audience { margin-top: 10px; }
  .hero-foot { padding-top: 20px; padding-bottom: 20px; }
}

/* Tall screens: copy over the open sea, the ship in its own band below.
   Both crops come from the same painting and both carry the moving water. */
@media (max-aspect-ratio: 13/10) {
  .hero { grid-template-rows: auto minmax(calc(var(--band-h) + var(--band-bottom)), 1fr); --copy-room: 100vw; }
  .sea-layer-main {
    top: 0; right: 0; bottom: auto; left: 0; width: auto;
    height: var(--backdrop-h);
    --sea-x: 0%; --sea-y: 50%;
  }
  .sea-layer-band {
    display: block; left: 0; right: 0; bottom: var(--band-bottom); height: var(--band-h);
    --sea-x: 100%; --sea-y: 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent, black 22%, black 84%, transparent);
    mask-image: linear-gradient(180deg, transparent, black 22%, black 84%, transparent);
  }
  .hero-scrim { background: var(--scrim-hero-tall); }
  .hero-copy { padding-top: calc(var(--header-h) + clamp(28px, 4.5svh, 72px)); }
  .hero h1 { font-size: var(--type-display); }
  .hero-lead { max-width: 38ch; }
  .hero-foot { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
  .captains-log { width: 100%; max-width: 560px; padding-top: 12px; }
}
@media (max-aspect-ratio: 13/10) and (min-width: 641px) {
  .hero-lead { max-width: 46ch; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 15px; }
}

/* ---------- 2 · Painted explanation ---------- */
.current {
  display: grid; align-items: center;
  min-height: var(--screen);
  background: var(--ocean);
}
.current-art {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 74%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 28%);
  mask-image: linear-gradient(90deg, transparent, black 28%);
}
.current-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.current-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim-current); pointer-events: none; }
.current-copy { padding-block: var(--section-space); }
.current-editorial { width: min(43%, 580px); }
.current h2 { max-width: 13ch; font-size: var(--type-heading); line-height: 1.12; }
.current-text { max-width: 42ch; margin-top: 28px; }
.current-lead { font-size: 19px; line-height: 1.5; color: var(--ivory); }
.current-text p + p { margin-top: 16px; color: var(--seafoam); line-height: 1.65; }

@media (min-width: 1001px) and (min-aspect-ratio: 2/1) {
  .current-art { width: min(74%, 150svh); }
}
@media (max-aspect-ratio: 13/10) {
  .current { align-items: start; }
  .current-art { left: 0; width: auto; -webkit-mask-image: none; mask-image: none; }
  .current-art img { object-position: 62% center; }
  .current-scrim { background: var(--scrim-current-tall); }
  .current-copy { padding-block: calc(var(--header-h) + 36px) 64px; }
  .current-editorial { width: 100%; max-width: 600px; }
  .current h2 { max-width: 15ch; line-height: 1.1; }
  .current-text { max-width: 46ch; margin-top: 22px; }
  .current-lead { font-size: 18px; line-height: 1.45; }
  .current-text p + p { margin-top: 14px; line-height: 1.55; }
}
/* Short wide screens: copy covers more of the foam, so the left scrim holds longer. */
@media (min-aspect-ratio: 13/10) and (max-height: 640px) {
  .hero-scrim { background: var(--scrim-hero-short); }
}
/* Short tall screens: the copy reaches far down the painting, so it carries its own wash. */
@media (max-aspect-ratio: 13/10) and (max-height: 720px) {
  .current-copy::before {
    content: ""; position: absolute; z-index: -1; inset: 0 -100vw -48px;
    background: var(--wash-current-short);
  }
}

/* ---------- 3 + 4 · Product sections ---------- */
.routing,
.agent {
  display: flex; flex-direction: column; justify-content: center;
  min-height: var(--screen);
  padding-block: var(--section-space);
  color: var(--ivory);
}
.routing { background: var(--teal); }
.agent { background: var(--navy); border-top: 1px solid var(--line-section); }
/* Where the nav links show, a jump to these sections clears the fixed header. */
@media (min-width: 641px) {
  .routing, .agent { padding-top: max(var(--section-space), calc(var(--header-h) + 24px)); }
}
@media (max-width: 640px) {
  .routing, .agent { scroll-margin-top: calc(var(--header-h) - var(--section-space) + 24px); }
}

.section-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: clamp(48px, 6vw, 128px); align-items: end;
}
.section-heading h2 { max-width: 18ch; font-size: var(--type-heading); line-height: 1.12; }
.section-heading p { max-width: 40ch; color: var(--seafoam); line-height: 1.65; }
.design-detail-link { margin-top: 24px; color: var(--ivory); }

.agent-layout {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 5vw, 112px); align-items: start;
}
.agent-editorial { min-width: 0; }
.agent-editorial h2 { max-width: 20ch; font-size: var(--type-heading-demo); line-height: 1.15; }
.agent-editorial p { max-width: 42ch; margin-top: 24px; color: var(--seafoam); line-height: 1.65; }
.agent-interactive { min-width: 0; }
.agent-note { max-width: 66ch; margin-top: 20px; font-size: 14px; line-height: 1.65; color: var(--mist); }

@media (max-width: 1000px) {
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .section-heading h2 { max-width: 19ch; }
  .agent-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .agent-editorial h2 { max-width: 19ch; line-height: 1.12; }
  .agent-editorial p { margin-top: 22px; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .agent-interactive { width: 100%; max-width: 760px; }
}
@media (max-width: 640px) {
  .section-heading p, .agent-editorial p { line-height: 1.55; }
  .agent-note { font-size: 13px; line-height: 1.55; }
}

/* ---------- 5 · Closing ---------- */
.closing {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: var(--screen);
  background: var(--deep-ocean);
}
.closing-art { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 100%; }
.closing-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right 15%; }
.closing-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim-closing); pointer-events: none; }
.closing-copy { padding-top: 96px; padding-bottom: max(clamp(56px, 6svh, 96px), env(safe-area-inset-bottom, 0px)); }
.closing h2 { max-width: 22ch; font-size: var(--type-closing); line-height: 1.12; }
.closing-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 32px; }
.closing-bottom p { max-width: 48ch; color: var(--seafoam); line-height: 1.65; }
.closing-cta { min-width: 220px; padding: 18px 22px; }

@media (min-width: 1001px) and (min-aspect-ratio: 2/1) {
  .closing-art {
    width: min(100%, 200svh);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 22%);
    mask-image: linear-gradient(90deg, transparent, black 22%);
  }
  .closing-art img { object-position: right center; }
}
/* Wide but short screens put the headline over the sunset; anchor a wash to the copy.
   From 821px tall the documented desktop scrim and headline position hold. */
@media (min-aspect-ratio: 13/10) and (max-height: 820px) {
  .closing-copy::before {
    content: ""; position: absolute; z-index: -1; inset: 0 -100vw;
    background: var(--wash-closing-short);
  }
}
@media (max-aspect-ratio: 13/10) {
  .closing-art img { object-position: 76% center; }
  .closing-scrim { background: var(--scrim-closing-tall); }
  .closing-copy { padding-top: calc(var(--header-h) + 96px); padding-bottom: max(48px, env(safe-area-inset-bottom, 0px)); }
  .closing h2 { max-width: 18ch; line-height: 1.1; }
  .closing-bottom { flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 22px; }
  .closing-bottom p { max-width: 40ch; line-height: 1.55; }
}
@media (max-width: 640px) {
  .closing-cta { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--ink); color-scheme: light; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding-top: 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}
.footer-caption { max-width: 42ch; font-size: 12px; line-height: 1.6; color: var(--muted); }
.footer-link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-left: auto;
  font-size: 14px; line-height: 1.4; color: var(--muted-strong);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.footer-link:hover { color: var(--ink); }
@media (max-width: 640px) {
  .footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-top: 28px; }
  .footer-link { margin-left: 0; justify-self: end; }
  .footer-caption { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Scrolling ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Proximity at most, and only with a fine pointer on large screens. */
@media (min-width: 1001px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  main > section { scroll-snap-align: start; }
  /* The natural-height footer is a destination too, so it can never be trapped. */
  .site-footer { scroll-snap-align: end; }
  html:has(.agent-demo:focus-within, .site-footer:focus-within) { scroll-snap-type: none; }
}

/* ---------- Foldables with a reported hinge (Viewport Segments API) ---------- */
@media (horizontal-viewport-segments: 2) and (min-aspect-ratio: 13/10) {
  .hero { --copy-room: calc(env(viewport-segment-width 0 0, 50vw) - var(--gutter-left) - 24px); }
  .current-editorial { width: calc(env(viewport-segment-width 0 0, 50vw) - var(--gutter-left) - 24px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sea-canvas { display: none; }
}
