/* ==========================================================================
   Blue Ocean Systems — site.css
   Tokens → base → header → buttons → heroes → sections → components →
   pages → footer → motion → print
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Brand constants, drawn from the logo; identical in light and dark schemes */
  --abyss: #061329;
  --abyss-rgb: 6 19 41;
  --shelf: #0d2c52;
  --royal: #17549d;
  --sea: #1f7ab8;
  --sky: #35a3d6;
  --aqua: #74c5ef;
  --aqua-bright: #bfe6f9;
  --on-dark: #e8f1f6;
  --on-dark-muted: #a7bacb;
  --on-dark-line: rgb(232 241 246 / 0.13);
  --brand-gradient: linear-gradient(100deg, var(--royal) 0%, var(--sea) 55%, var(--sky) 100%);

  /* Light scheme */
  --bg: #f6f5f0;
  --bg-raised: #ffffff;
  --bg-inset: #edece5;
  --text: #0b1a2e;
  --text-muted: #45566a;
  --text-subtle: #5b6b7b;
  --border: #d9ddde;
  --border-strong: #b5bfc7;
  --accent: #195aa3;
  --accent-hover: #134a88;
  --accent-ink: #ffffff;
  --accent-wash: rgb(25 90 163 / 0.08);
  --accent-soft: rgb(25 90 163 / 0.3);
  --accent-text: linear-gradient(95deg, #17549d 0%, #1d6fb0 60%, #2386c6 100%);
  --button-fill: linear-gradient(100deg, #17549d, #1f72b5);
  --button-fill-hover: linear-gradient(100deg, #124785, #1a63a3);
  --grid-line: rgb(25 90 163 / 0.07);
  --focus: #195aa3;
  --shadow: 0 1px 2px rgb(7 26 43 / 0.05), 0 18px 40px -24px rgb(7 26 43 / 0.28);

  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071429;
    --bg-raised: #0b1d38;
    --bg-inset: #050f20;
    --text: #e6eef5;
    --text-muted: #a5b7c7;
    --text-subtle: #8b9fb2;
    --border: #1a3254;
    --border-strong: #2b4b72;
    --accent: #6fc0ef;
    --accent-hover: #a6d8f5;
    --accent-ink: #061329;
    --accent-wash: rgb(111 192 239 / 0.1);
    --accent-soft: rgb(111 192 239 / 0.34);
    --accent-text: linear-gradient(95deg, #a6dbf6 0%, #6fc0ef 100%);
    --button-fill: linear-gradient(100deg, #6fc0ef, #9bd6f5);
    --button-fill-hover: linear-gradient(100deg, #8fd0f3, #b8e3f8);
    --grid-line: rgb(111 192 239 / 0.05);
    --focus: #74c5ef;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 20px 44px -24px rgb(0 0 0 / 0.75);
  }
}

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

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

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.nav-lock {
  overflow: hidden;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

[role="list"] {
  list-style: none;
}

strong {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

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

.on-dark :focus-visible {
  outline-color: var(--aqua);
}

main:focus {
  outline: none;
}

::selection {
  background: var(--aqua);
  color: var(--abyss);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--aqua);
  color: var(--abyss);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.skip-link:hover {
  color: var(--abyss);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Italic serif accents: the chart's hydrographic lettering, in the logo's gradient */
h1 em,
h2 em,
.statement em {
  /* Padding keeps italic overhangs inside the painted gradient; margins cancel it. */
  margin-inline: -0.06em;
  padding-inline: 0.06em;
  background: var(--accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--accent);
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif);
  font-size: 1.1em;
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.on-dark h1 em,
.on-dark h2 em {
  background-image: linear-gradient(95deg, #dff3fd 0%, var(--aqua) 100%);
  color: var(--aqua-bright);
}

@media (forced-colors: active) {
  h1 em,
  h2 em,
  .statement em {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
}

/* The frosted bar lives on a pseudo-element: a backdrop-filter on the header
   itself would become the containing block for the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--on-dark-line);
  background: rgb(var(--abyss-rgb) / 0.84);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.site-header.is-scrolled::before,
.site-header.nav-open::before {
  opacity: 1;
}

.site-header.nav-open::before {
  background: var(--abyss);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--on-dark);
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  width: auto;
  height: 36px;
  flex: none;
}

.wordmark {
  display: block;
  width: auto;
  height: 13px;
  aspect-ratio: 2000 / 167;
  fill: currentColor;
}

.brand--footer .brand-mark {
  height: 48px;
}

.brand--footer .wordmark {
  height: 16px;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav ul {
  display: flex;
  gap: 0.125rem;
}

.site-nav ul a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.site-nav ul a:hover {
  color: var(--on-dark);
  background: rgb(232 241 246 / 0.07);
}

.site-nav ul a[aria-current="page"] {
  color: var(--on-dark);
  background: rgb(232 241 246 / 0.1);
}

@media (max-width: 1023.98px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .nav-toggle .bar {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    transform-origin: 12px 12px;
    transition: transform 0.35s var(--ease);
  }

  .nav-toggle[aria-expanded="true"] .bar-1 {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .bar-2 {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 1rem var(--gutter) 2.5rem;
    overflow-y: auto;
    background: var(--abyss);
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    padding: 1.05rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--on-dark-line);
    color: var(--on-dark);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  .site-nav ul a:hover,
  .site-nav ul a[aria-current="page"] {
    background: none;
  }

  .site-nav ul a[aria-current="page"] {
    color: var(--aqua-bright);
  }

  .site-nav .button {
    min-height: 52px;
    font-size: 1rem;
  }
}

/* ---------- Buttons & links ---------- */

.button {
  --btn-bg: var(--button-fill);
  --btn-fg: var(--accent-ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.button:hover {
  --btn-bg: var(--button-fill-hover);
  color: var(--btn-fg);
}

.button:active {
  transform: translateY(1px);
}

.button--sm {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.button--light {
  --btn-bg: var(--aqua);
  --btn-fg: var(--abyss);
}

.button--light:hover {
  --btn-bg: var(--aqua-bright);
}

.button--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-border: rgb(232 241 246 / 0.28);
}

.button--ghost-dark:hover {
  --btn-bg: rgb(232 241 246 / 0.08);
  --btn-border: rgb(232 241 246 / 0.55);
}

.button--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
}

.button--ghost:hover {
  --btn-bg: var(--accent-wash);
  --btn-border: var(--accent);
}

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.25s var(--ease);
}

a:hover > .arrow,
.pillar:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 550;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Heroes ---------- */

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 30%, var(--shelf) 0%, var(--abyss) 62%);
  color: var(--on-dark);
}

.contours {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.contours.is-ready {
  opacity: 1;
}

/* Scrim: keeps text legible over the contour field */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--abyss-rgb) / 0.88) 0%, rgb(var(--abyss-rgb) / 0.6) 36%, rgb(var(--abyss-rgb) / 0) 72%),
    linear-gradient(0deg, rgb(var(--abyss-rgb) / 0.85) 0%, rgb(var(--abyss-rgb) / 0) 38%),
    linear-gradient(180deg, rgb(var(--abyss-rgb) / 0.75) 0%, rgb(var(--abyss-rgb) / 0) 170px);
}

@media (max-width: 720px) {
  .hero::after,
  .page-hero::after {
    background:
      linear-gradient(180deg, rgb(var(--abyss-rgb) / 0.75) 0%, rgb(var(--abyss-rgb) / 0.5) 30%, rgb(var(--abyss-rgb) / 0.78) 100%);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  min-height: min(max(640px, 100svh), 1040px);
  padding-top: calc(var(--header-h) + clamp(3rem, 11vh, 8.5rem));
}

.hero-body {
  position: relative;
}

.on-dark .eyebrow {
  color: var(--aqua);
}

.hero h1 {
  font-size: clamp(3rem, 1.25rem + 6.6vw, 6.75rem);
  line-height: 0.96;
  letter-spacing: -0.048em;
}

.lead {
  max-width: 37rem;
  margin-top: 1.75rem;
  color: var(--on-dark-muted);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-foot {
  margin-top: auto;
  padding-top: clamp(3.5rem, 9vh, 6.5rem);
}

.pillars {
  display: grid;
}

.pillar {
  position: relative;
  display: block;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark);
  text-decoration: none;
}

.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--sky), var(--aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.pillar:hover {
  color: var(--on-dark);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar-index {
  display: block;
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.pillar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pillar-text {
  display: block;
  max-width: 22rem;
  margin-top: 0.3rem;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar {
    padding: 1.5rem 1.75rem 1.9rem 0;
  }

  .pillar:nth-child(even) {
    padding-left: 1.75rem;
    border-left: 1px solid var(--on-dark-line);
  }
}

@media (min-width: 1100px) {
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pillar + .pillar {
    padding-left: 1.75rem;
    border-left: 1px solid var(--on-dark-line);
  }
}

/* Home emblem: the logo mark set in a compass ring, the chart's centrepiece */
.hero-grid {
  position: relative;
}

.hero-emblem {
  display: none;
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(53 163 214 / 0.34), rgb(53 163 214 / 0.1) 60%, transparent);
  filter: blur(12px);
}

.compass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.compass-ring {
  fill: none;
  stroke: rgb(232 241 246 / 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.compass-ring--inner {
  stroke: rgb(232 241 246 / 0.09);
}

.compass-ticks {
  fill: none;
  stroke: rgb(232 241 246 / 0.3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.compass-ticks--major {
  stroke: rgb(232 241 246 / 0.55);
  stroke-width: 1.5;
}

.compass-label {
  fill: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-anchor: middle;
  dominant-baseline: central;
}

.compass-north {
  fill: var(--aqua);
}

.emblem-mark {
  position: relative;
  width: 68%;
  height: auto;
  /* The globe sits slightly left of the image centre (its bands overhang right). */
  transform: translateX(-1%);
  filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.35));
}

@media (min-width: 1100px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 1.2rem + 4.4vw, 5.5rem);
  }

  .hero-emblem {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: end;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
  }
}

.page-hero {
  padding: calc(var(--header-h) + clamp(3.5rem, 10vh, 7.5rem)) 0 clamp(4rem, 9vh, 7rem);
}

.page-hero h1 {
  max-width: 13em;
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.page-hero--full {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--raised {
  background: var(--bg-raised);
}

/* Faint chart graticule */
.section--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 25%, transparent 85%);
}

.section > .container {
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.on-dark .eyebrow::before {
  background: linear-gradient(90deg, var(--sky), var(--aqua));
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.section-head > p:not(.eyebrow) {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section-head--split {
  display: grid;
  gap: 1.25rem 4rem;
  max-width: none;
}

.section-head--split > :last-child {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.section-head--split > p:last-child,
.section-head--split > div:last-child > p {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 34rem;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
  }

  .section-head--split > :last-child {
    padding-bottom: 0.35rem;
  }
}

/* ---------- Home: statement ---------- */

.statement {
  max-width: 18em;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.unknowns {
  display: grid;
  gap: 2.5rem 5rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.unknowns-intro {
  max-width: 30rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.unknowns-list {
  display: grid;
  gap: 2rem 2.5rem;
}

.unknowns-list dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.unknowns-list dt::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.unknowns-list dd {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

@media (min-width: 560px) {
  .unknowns-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .unknowns {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  }
}

/* ---------- Home: practices ---------- */

.practices {
  border-top: 1px solid var(--border);
}

.practice {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

.practice-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: var(--brand-gradient);
  box-shadow: 0 10px 24px -14px var(--royal);
  color: #ffffff;
}

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

.practice-kicker {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.practice h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem);
  letter-spacing: -0.035em;
}

.practice-body > p:not(.practice-kicker) {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.practice .link-arrow {
  margin-top: 1.5rem;
}

.practice-caps {
  align-self: start;
  border-top: 1px solid var(--border);
}

.practice-caps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.practice-caps li:last-child {
  border-bottom: 0;
}

.practice-caps li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

@media (min-width: 900px) {
  .practice {
    grid-template-columns: 3.5rem minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .practice-caps {
    padding-top: 0.2rem;
    border-top: 0;
  }
}

/* ---------- Home: what we build ---------- */

.system-grid {
  display: grid;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.system {
  padding: 1.75rem 1.75rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.system-index {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.system h3 {
  margin-top: 1.1rem;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.system p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Waypoints (the course) ---------- */

.course {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.course::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  border-left: 1.5px dashed var(--border-strong);
}

.waypoint {
  position: relative;
  padding-left: 4.5rem;
}

.wp-marker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wp-marker::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent-wash);
}

.waypoint h3 {
  padding-top: 0.55rem;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.waypoint > p:not(.wp-output) {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.wp-output {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
}

.wp-output span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .course {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    column-gap: 2rem;
    row-gap: 0;
  }

  .course::before {
    top: 23px;
    right: 0;
    bottom: auto;
    left: 24px;
    border-top: 1.5px dashed var(--border-strong);
    border-left: 0;
  }

  .waypoint {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
    padding-left: 0;
    padding-right: 0.5rem;
  }

  .wp-marker {
    position: relative;
  }

  .waypoint h3 {
    padding-top: 0;
    margin-top: 1.5rem;
  }
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  gap: 1rem;
}

.principle {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.principle .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.principle h3 {
  margin-top: 1.5rem;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}

.principle p {
  max-width: 30rem;
  margin-top: 0.6rem;
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.section--raised .card {
  background: var(--bg);
}

.card-index {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.card-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.card h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Pointers (numbered two-column notes) ---------- */

.pointers {
  display: grid;
  column-gap: 3.5rem;
}

.pointers li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
}

.pointer-index {
  padding-top: 0.2rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.pointers h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.pointers p {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .pointers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Feature list (icon rows) ---------- */

.feature-list {
  display: grid;
  column-gap: 3.5rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent);
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.feature-list h3 {
  padding-top: 0.2rem;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.feature-list p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 800px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Callout ---------- */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.callout h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.callout p {
  max-width: 36rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
}

/* ---------- Diagram: incremental modernization ---------- */

.diagram-steps {
  display: grid;
  gap: 1rem;
}

.diagram-step {
  padding: 1.25rem 1.25rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.diagram-step svg {
  width: 100%;
  height: auto;
}

.diagram-step h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
  font-size: 1.1875rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.diagram-step p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .diagram-step {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 1.75rem;
  }

  .diagram-step svg {
    grid-row: span 2;
    align-self: center;
  }

  .diagram-step h3 {
    align-self: end;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .diagram-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.d-pill {
  fill: var(--bg-raised);
  stroke: var(--border-strong);
}

.d-iface {
  fill: var(--accent-wash);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.d-legacy {
  fill: var(--bg-inset);
  stroke: var(--border-strong);
}

.d-mod {
  fill: var(--bg-raised);
  stroke: var(--border-strong);
}

.d-new {
  fill: var(--accent);
}

.d-line {
  fill: none;
  stroke: var(--text-subtle);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.d-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.d-label--accent {
  fill: var(--accent);
}

.d-mod-label {
  fill: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 15px;
}

.d-new-label {
  fill: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 15px;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.split-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
}

.checks {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checks .icon {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  color: var(--accent);
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

/* ---------- Illustration: prototype → product ---------- */

.proto-figure figcaption {
  display: flex;
  justify-content: space-around;
  margin-top: 0.9rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proto-figure {
  position: relative;
}

.proto {
  width: 100%;
  height: auto;
}

.compare-range {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100% - 2rem);
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.proto-figure:has(.compare-range:focus-visible) .proto {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.proto-figure:has(.compare-range:active) .p-handle {
  fill: var(--accent-wash);
}

.p-frame {
  fill: var(--bg);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.p-rule {
  stroke: var(--border);
}

.p-dot {
  fill: var(--border-strong);
}

.wf {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
}

.wf-fill {
  fill: var(--border);
}

.ui-nav {
  fill: var(--abyss);
}

.ui-logo {
  fill: var(--aqua);
}

.ui-nav-text {
  fill: rgb(232 241 246 / 0.4);
}

.ui-surface {
  fill: var(--bg-raised);
  stroke: var(--border);
}

.ui-area {
  fill: var(--accent-wash);
}

.ui-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  stroke-linecap: round;
}

.ui-text {
  fill: var(--border-strong);
}

.ui-kpi {
  fill: var(--text);
}

.ui-bar {
  fill: var(--accent-soft);
}

.ui-bar--hi {
  fill: var(--accent);
}

.p-divider {
  stroke: var(--accent);
  stroke-width: 1.5;
}

.p-handle {
  fill: var(--bg-raised);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.p-handle-icon {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Phases (custom software) ---------- */

.phases {
  display: grid;
  gap: 1rem;
}

.phase {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.phase-step {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase h3 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.phase > p:not(.phase-step) {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.phase-result {
  margin-top: auto;
  padding-top: 1.5rem;
}

.phase-result p {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 500;
}

.phase-result span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .phases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    row-gap: 0;
  }

  .phase {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
  }

  .phase-result {
    margin-top: 0;
  }
}

/* ---------- Stages (approach) ---------- */

.stage {
  display: grid;
  gap: 1.25rem 3.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.stage:last-child {
  border-bottom: 1px solid var(--border);
}

.stage .wp-marker {
  position: relative;
  width: 56px;
  height: 56px;
  font-size: 0.875rem;
}

.stage-name {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  letter-spacing: -0.035em;
}

.stage-kicker {
  margin-top: 0.3rem;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-style: italic;
  line-height: 1.2;
}

.stage-body > p:not(.stage-kicker) {
  max-width: 36rem;
  margin-top: 1.1rem;
  color: var(--text-muted);
}

.stage-output h4 {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chips li {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 0.875rem;
  line-height: 1.3;
}

@media (min-width: 960px) {
  .stage {
    grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .stage-output {
    padding-top: 0.6rem;
  }
}

/* ---------- AI band (home) ---------- */

.ai-band {
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 90% at 82% 18%, var(--shelf) 0%, var(--abyss) 62%);
  color: var(--on-dark);
}

.ai-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(var(--abyss-rgb) / 0.86) 0%, rgb(var(--abyss-rgb) / 0.55) 55%, rgb(var(--abyss-rgb) / 0.3) 100%);
}

.on-dark .section-head > p:not(.eyebrow),
.on-dark .section-head--split > p:last-child,
.on-dark .section-head--split > div:last-child > p {
  color: var(--on-dark-muted);
}

.on-dark .link-arrow {
  color: var(--aqua);
}

.on-dark .link-arrow:hover {
  color: var(--aqua-bright);
}

.ai-points {
  display: grid;
  column-gap: 2.5rem;
}

.ai-points li {
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--on-dark-line);
}

.ai-point-index {
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.ai-points h3 {
  margin-top: 0.9rem;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.ai-points p {
  margin-top: 0.45rem;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

@media (min-width: 720px) {
  .ai-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ai-points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- AI: the build-out stack, surface to sea floor ---------- */

.stack {
  display: grid;
  gap: 1rem;
}

.stack-depth {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-depth:first-child {
  margin-bottom: 0.75rem;
}

.stack-depth:last-child {
  margin-top: 0.75rem;
}

.stack-layers {
  display: grid;
  gap: 6px;
}

/* Water gets deeper, and bluer, toward the infrastructure at the bottom. */
.stack-layer {
  --layer-bg: #e3f2fb;
  --layer-fg: #0b1a2e;
  --layer-muted: #36506c;
  --chip-bg: rgb(255 255 255 / 0.6);
  display: grid;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--layer-bg);
  color: var(--layer-fg);
}

.stack-layer:nth-child(2) {
  --layer-bg: #c6e5f7;
  --layer-muted: #2e4a66;
}

.stack-layer:nth-child(3) {
  --layer-bg: #8fcaed;
  --layer-muted: #203c5a;
  --chip-bg: rgb(255 255 255 / 0.45);
}

.stack-layer:nth-child(4) {
  --layer-bg: #2a74b3;
  --layer-fg: #ffffff;
  --layer-muted: #e3f0fa;
  --chip-bg: rgb(var(--abyss-rgb) / 0.24);
}

.stack-layer:nth-child(5) {
  --layer-bg: #103c73;
  --layer-fg: #ffffff;
  --layer-muted: #d3e4f4;
  --chip-bg: rgb(255 255 255 / 0.12);
}

.stack-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.8;
}

.stack-name h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.stack-name p {
  margin-top: 0.15rem;
  color: var(--layer-muted);
  font-size: 0.875rem;
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-chips li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.stack-rail {
  padding: 1.75rem;
  border: 1.5px dashed var(--accent-soft);
  border-radius: var(--radius);
}

.stack-rail-kicker {
  margin-top: 1.25rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-rail h3 {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.stack-rail p:not(.stack-rail-kicker) {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 720px) {
  .stack-layer {
    grid-template-columns: 2rem 12rem minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .stack {
    grid-template-columns: minmax(0, 1fr) 15rem;
  }

  .stack-rail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-block: 1.85rem;
  }
}

/* ---------- AI: customization ladder ---------- */

.ladder {
  display: grid;
  gap: 1rem;
}

.rung {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.rung-step {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rung h3 {
  margin-top: 1.1rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.rung > p:not(.rung-step, .effort) {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.effort {
  display: flex;
  gap: 4px;
  margin-top: 1.25rem;
}

.effort i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.effort i.on {
  background: var(--brand-gradient);
}

.rung-best {
  margin-top: auto;
  padding-top: 1.25rem;
}

.rung-best p {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 500;
}

.rung-best span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ladder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    row-gap: 0;
  }

  .rung {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    align-content: start;
  }

  .rung-best {
    margin-top: 0;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: 1.125rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  max-width: 44rem;
  padding-bottom: 1.6rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.email-card {
  container-type: inline-size;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.email-link {
  display: inline-block;
  color: var(--text);
  font-size: clamp(1.1rem, 6.6cqi, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.email-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.email-card hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.email-card h2 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.email-card h2 + p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-aside h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.contact-aside > * + h2 {
  margin-top: 3rem;
}

.checklist {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.checklist li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.55rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.checklist strong,
.steps strong {
  color: var(--text);
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  color: var(--text-muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  padding-top: 0.15rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.steps strong {
  display: block;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Call to action ---------- */

.cta {
  padding-block: 0 var(--section-y);
}

.section--raised + .cta {
  padding-top: calc(var(--section-y) * 0.55);
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 2rem 4rem;
  align-items: end;
  padding: clamp(2.25rem, 1.5rem + 4vw, 5rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 85% 20%, var(--shelf) 0%, var(--abyss) 60%);
  color: var(--on-dark);
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(var(--abyss-rgb) / 0.88) 0%, rgb(var(--abyss-rgb) / 0.5) 60%, rgb(var(--abyss-rgb) / 0.2) 100%);
}

.cta-panel h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cta-panel p {
  max-width: 32rem;
  margin-top: 1.1rem;
  color: var(--on-dark-muted);
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.cta-email {
  padding-bottom: 2px;
  border-bottom: 1px solid rgb(191 230 249 / 0.35);
  color: var(--aqua-bright);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  text-decoration: none;
}

.cta-email:hover {
  border-bottom-color: currentColor;
  color: #ffffff;
}

@media (min-width: 960px) {
  .cta-panel {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .cta-actions {
    align-items: flex-end;
  }
}

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

.site-footer {
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  background: var(--abyss);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1.1rem;
}

.footer-email {
  display: inline-block;
  margin-top: 1rem;
  color: var(--aqua-bright);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-email:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-col h2 {
  margin-bottom: 1rem;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--aqua-bright);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.8125rem;
}

.footer-motto {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-body > *,
  .hero-foot {
    animation: rise 1s var(--ease) both;
  }

  .hero-body > :nth-child(2) {
    animation-delay: 0.07s;
  }

  .hero-body > :nth-child(3) {
    animation-delay: 0.14s;
  }

  .hero-body > :nth-child(n + 4) {
    animation-delay: 0.21s;
  }

  .hero-foot {
    animation-delay: 0.3s;
  }

  .hero-emblem {
    animation: emerge 1.4s var(--ease) 0.15s both;
  }
}

@keyframes emerge {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .skip-link,
  .contours,
  .cta,
  .hero-emblem,
  .hero-actions,
  .email-actions {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .hero,
  .page-hero,
  .site-footer {
    min-height: 0;
    padding-top: 1rem;
    background: none !important;
    color: #000000 !important;
  }

  .hero::after,
  .page-hero::after,
  .section--grid::before {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .on-dark,
  .on-dark * {
    color: #000000 !important;
  }

  h1 em,
  h2 em,
  .statement em {
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  .wordmark {
    fill: #0c2d87;
  }
}

@media (prefers-color-scheme: dark) {
  .ui-nav {
    fill: #143560;
  }
}
