/* ==========================================================================
   AnchorPoint Bond - Design System
   Institutional navy + signal blue on white. Enterprise layout primitives.
   ========================================================================== */

:root {
  /* Colour palette -------------------------------------------------------- */
  --navy-950:       #061430;
  --navy-900:       #0a1f44;
  --navy-800:       #10306b;
  --navy-700:       #1a4390;

  --blue:           #0b5cd5;
  --blue-hover:     #0848a8;
  --blue-50:        #eef4ff;
  --blue-100:       #dbe7fd;
  --blue-200:       #b9d0f8;
  --sky:            #7cc4ff;

  --paper:          #ffffff;
  --canvas:         #f4f7fb;
  --canvas-deep:    #eaeff6;
  --rule:           #e3e8f0;
  --rule-strong:    #c9d3e1;

  --text:           #10213f;
  --text-2:         #475873;
  --text-3:         #5f6f88;
  --text-inv:       #ffffff;
  --text-inv-2:     #b7c5de;
  --text-inv-3:     #8fa3c4;

  /* Legacy aliases used by component rules */
  --ink:            var(--navy-900);
  --accent:         var(--blue);
  --accent-hover:   var(--blue-hover);
  --accent-wash:    var(--blue-50);
  --accent-rule:    var(--blue-200);

  /* State indicators */
  --state-done:     #127a3a;
  --state-done-bg:  #ecfbf1;
  --state-done-ru:  #b6e8c8;
  --state-wait:     #a14a06;
  --state-wait-bg:  #fff6eb;
  --state-wait-ru:  #fbd5a8;
  --state-err:      #b42318;
  --state-err-bg:   #fef3f2;
  --state-err-ru:   #fecdca;

  /* Chart ramp (ordinal, validated light-end >= 2:1 on white) */
  --viz-1:          #6da7ec;
  --viz-2:          #256abf;
  --viz-3:          #104281;

  /* Typography ------------------------------------------------------------ */
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --t--2: 0.75rem;
  --t--1: 0.875rem;
  --t-0:  1rem;
  --t-1:  1.1875rem;
  --t-2:  1.5rem;
  --t-3:  clamp(1.875rem, 1.3rem + 1.9vw, 2.625rem);
  --t-4:  clamp(2.375rem, 1.5rem + 3.4vw, 3.75rem);

  /* Spacing --------------------------------------------------------------- */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 6.5rem;
  --s8: 8rem;

  --measure: 68ch;
  --width:   1240px;
  --width-narrow: 860px;

  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow:    0 1px 2px rgba(10, 31, 68, 0.05), 0 8px 24px -6px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 2px 4px rgba(10, 31, 68, 0.04), 0 24px 48px -12px rgba(10, 31, 68, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

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

::selection { background: var(--blue-100); color: var(--navy-900); }

/* Typography --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: var(--t-4); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: var(--t-3); letter-spacing: -0.028em; }
h3 { font-size: var(--t-2); }
h4 { font-size: var(--t-1); }

p, li { text-wrap: pretty; }

.lede {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
}

.measure { max-width: var(--measure); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--t--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s2);
}
.section-head .eyebrow::before,
.page-head .eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.muted { color: var(--text-2); }
.small { font-size: 0.9375rem; }
.mono  { font-family: var(--font-mono); font-size: 0.9375em; }

/* Layout ------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}
.wrap--narrow { max-width: var(--width-narrow); }

.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
.section--rule { border-top: 1px solid var(--rule); }
.section--paper { background: var(--canvas); }

.stack > * + * { margin-top: var(--s2); }
.stack-lg > * + * { margin-top: var(--s3); }

.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.section-head { max-width: 760px; margin-bottom: var(--s5); }
.section-head h2 + p { margin-top: var(--s2); font-size: 1.0625rem; }

/* Skip link ---------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: var(--text-inv);
  padding: var(--s2) var(--s3);
  font-size: var(--t--1);
}
.skip:focus { left: 0; color: var(--text-inv); }

/* Utility bar -------------------------------------------------------------- */
.notice {
  background: var(--navy-950);
  color: var(--text-inv-3);
  font-size: 0.8125rem;
  line-height: 1.5;
  padding-block: 0.625rem;
}
.notice .wrap { position: relative; padding-left: calc(clamp(1.25rem, 3vw, 2rem) + 1.125rem); }
.notice .wrap::before {
  content: "";
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b544;
  box-shadow: 0 0 0 3px rgba(245, 181, 68, 0.2);
}
.notice strong { color: var(--text-inv); font-weight: 600; }
.notice a { color: var(--sky); text-decoration: underline; }
.notice a:hover { color: #ffffff; }

/* Header ------------------------------------------------------------------- */
.masthead {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow 0.2s var(--ease);
}
.masthead.is-scrolled { box-shadow: 0 6px 24px -12px rgba(10, 31, 68, 0.25); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy-900);
}
.brand svg { flex: none; }
.brand:hover { color: var(--navy-900); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand__name em { font-style: normal; font-weight: 500; color: var(--blue); }

.nav { display: flex; align-items: center; gap: var(--s3); }
.nav__list { display: flex; gap: 0.25rem; list-style: none; }
.nav__list a {
  position: relative;
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.9375rem;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__list a:hover { color: var(--blue); background: var(--blue-50); }
.nav__list a[aria-current="page"] { color: var(--blue); }
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9375rem;
  right: 0.9375rem;
  bottom: -18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.release-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  white-space: nowrap;
}
.release-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e39a1c;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 154, 28, 0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(227, 154, 28, 0); }
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}
.nav-toggle::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.nav-toggle[aria-expanded="true"] { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.625rem; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 32px -16px rgba(10, 31, 68, 0.25);
    padding: var(--s1) clamp(1.25rem, 3vw, 2rem) var(--s3);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; width: 100%; }
  .nav__list a {
    padding: 0.875rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav__list a:hover { background: transparent; }
  .nav__list a[aria-current="page"]::after { left: 0; right: auto; top: 25%; bottom: 25%; width: 3px; height: auto; border-radius: 0 3px 3px 0; margin-left: -0.25rem; }
  .masthead__inner { position: relative; min-height: 68px; }
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.9375rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(10, 31, 68, 0.12), 0 6px 16px -6px rgba(11, 92, 213, 0.55);
}
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #ffffff; transform: translateY(-1px); }
.btn--primary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.125rem;
  transition: transform 0.15s ease;
}
.btn--primary:hover::after { transform: translateX(2px) rotate(45deg); }
button.btn--primary::after { display: none; }
.btn--ghost {
  background: var(--paper);
  border-color: var(--rule-strong);
  color: var(--navy-900);
}
.btn--ghost:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.btn--small { padding: 0.5625rem 0.9375rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]:hover { background: inherit; }
.btn--primary[disabled]:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost[disabled]:hover { background: var(--paper); border-color: var(--rule-strong); color: var(--navy-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero --------------------------------------------------------------------- */
.hero,
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-inv-2);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(59, 130, 246, 0.38), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.hero::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero { padding-block: clamp(4rem, 8vw, 7rem) clamp(4.5rem, 9vw, 7.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 { color: var(--text-inv); max-width: 18ch; }
.hero .eyebrow {
  color: var(--sky);
  background: rgba(124, 196, 255, 0.1);
  border: 1px solid rgba(124, 196, 255, 0.25);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  margin-bottom: var(--s3);
}
.hero .lede { margin-top: var(--s3); color: var(--text-inv-2); }
.hero .btn-row { margin-top: var(--s4); }
.hero .btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.28); color: #ffffff; }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #ffffff; color: #ffffff; }
.hero__note {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--text-inv-3);
  max-width: 60ch;
}
.hero__note a { color: var(--sky); }
.hero__note a:hover { color: #ffffff; }
.hero__art { position: relative; }
.hero__art img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35)); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; }
}

/* Page head ---------------------------------------------------------------- */
.page-head { padding-block: var(--s6) clamp(3.5rem, 6vw, 5rem); }
.page-head h1 { font-size: var(--t-4); color: var(--text-inv); }
.page-head .eyebrow { color: var(--sky); }
.page-head .lede { margin-top: var(--s2); color: var(--text-inv-2); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-inv-3);
  margin-bottom: var(--s4);
}
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.crumbs a { color: var(--text-inv-2); text-decoration: none; }
.crumbs a:hover { color: #ffffff; text-decoration: underline; }
.crumbs [aria-current] { color: #ffffff; }

/* Standards strip ---------------------------------------------------------- */
.strip {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s4);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
}
.strip__label {
  font-size: var(--t--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) clamp(1.25rem, 3vw, 2.75rem);
  list-style: none;
}
.strip__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.strip__list img { width: 22px; height: 22px; }

/* Cards -------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.grid > .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue-100); }
.card--flat { background: transparent; border: 0; padding: 0; box-shadow: none; }
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-100);
  margin-bottom: var(--s3);
}
.card__icon img { width: 32px; height: 32px; }
.card__num {
  display: inline-block;
  font-size: var(--t--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.625rem;
}
.card h3 { font-size: var(--t-1); margin-bottom: 0.625rem; }
.card p { color: var(--text-2); font-size: 0.9375rem; }

.card--step .card__icon + .card__num { position: absolute; top: clamp(1.5rem, 2.5vw, 2rem); right: clamp(1.5rem, 2.5vw, 2rem); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--blue-100); line-height: 1; }

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s4);
  align-items: start;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--text-inv-2);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.callout::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 196, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.callout > * { grid-column: 2; position: relative; }
.callout > div:first-child { grid-column: 1 / -1; }
.callout h3 { color: #ffffff; }
.callout p + p { margin-top: var(--s2); }
.callout p { color: var(--text-inv-2); max-width: 72ch; }
.callout__head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s1); }
.callout__head .card__icon { margin: 0; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
@media (max-width: 720px) { .callout > * { grid-column: 1 / -1; } }

/* Definition rows ---------------------------------------------------------- */
.deflist {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.deflist__row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: var(--s3);
  padding: 1.125rem var(--s3);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.deflist__row:last-child { border-bottom: 0; }
.deflist__row dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-900);
  align-self: start;
  padding-top: 0.125rem;
}
.deflist__row dd { color: var(--text-2); font-size: 0.9375rem; }
.deflist--interactive .deflist__row { cursor: pointer; }
.deflist--interactive .deflist__row:hover { background: var(--canvas); }
.deflist__row.is-active { background: var(--blue-50); box-shadow: inset 4px 0 0 var(--blue); }
.deflist__row.is-active dt { color: var(--blue); }
@media (max-width: 720px) {
  .deflist__row { grid-template-columns: 1fr; gap: 0.375rem; }
}

/* Tables ------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  background: var(--canvas);
}
tbody tr { transition: background-color 0.15s ease; }
tbody tr:hover { background: #f9fbfe; }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); vertical-align: top; }
td code { color: var(--blue); font-weight: 600; background: var(--blue-50); }

/* Code --------------------------------------------------------------------- */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--canvas-deep);
  padding: 0.125em 0.4em;
  border-radius: 4px;
}
.code {
  background: var(--navy-950);
  color: #cfd8e6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #13254a;
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 0.75rem 1.25rem;
  background: #0b1a3a;
  border-bottom: 1px solid #16294f;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-inv-3);
}
.code__bar span:first-child { display: inline-flex; align-items: center; gap: 0.875rem; }
.code__bar span:first-child::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
  margin-right: 32px;
}
.code pre {
  margin: 0;
  padding: var(--s3) var(--s4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
}
.code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.tok-key { color: #8ec5ff; }
.tok-str { color: #9be9b4; }
.tok-num { color: #ffd479; }
.tok-com { color: #6b7fa3; font-style: italic; }

/* Model (simulator) -------------------------------------------------------- */
.model {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.model__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  color: var(--text-inv-3);
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.model__bar strong { color: var(--text-inv); font-weight: 600; }
.model__body { padding: clamp(1.25rem, 3vw, 2rem); }

.model__banner {
  display: flex;
  gap: 0.75rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  color: var(--navy-800);
  margin-bottom: var(--s4);
}
.model__banner > span:first-child { color: var(--blue); font-size: 1.0625rem; line-height: 1.3; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.figure::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue-100); }
.figure:nth-child(3)::before { background: var(--state-done-ru); }
.figure__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.375rem;
}
.figure__value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); font-variant-numeric: tabular-nums; }

.tranches { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: var(--s4); list-style: none; }
.tranche {
  display: grid;
  grid-template-columns: 130px 1fr 150px 160px;
  align-items: center;
  gap: var(--s3);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 1.125rem var(--s3);
  background: var(--paper);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.tranche.is-current { border-color: var(--blue-100); border-left-color: var(--blue); background: var(--blue-50); }
.tranche.is-settled { border-color: var(--state-done-ru); border-left-color: var(--state-done); background: var(--state-done-bg); }
.tranche__id { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.tranche__name { font-weight: 700; font-size: 0.9375rem; color: var(--navy-900); }
.tranche__cond { font-size: 0.875rem; color: var(--text-2); }
.tranche__ref { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); margin-top: 0.25rem; }
.tranche__amt { font-weight: 800; text-align: right; color: var(--navy-900); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .tranche { grid-template-columns: 1fr; gap: 0.625rem; }
  .tranche__amt { text-align: left; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--canvas);
  color: var(--text-2);
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.tag--done { background: var(--state-done-bg); border-color: var(--state-done-ru); color: var(--state-done); }
.tag--wait { background: var(--state-wait-bg); border-color: var(--state-wait-ru); color: var(--state-wait); }
.tag--live { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue); }
.model__bar .tag { border-color: transparent; }
.tranche .tag { justify-self: end; }
@media (max-width: 900px) { .tranche .tag { justify-self: start; } }

.model__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  margin-bottom: var(--s4);
}
.model__controls .spacer {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
}
.model__controls .spacer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--state-done); }

.log {
  background: var(--navy-950);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  height: 200px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #a9b8d0;
  border: 1px solid #13254a;
}
.log__row { display: flex; gap: 1rem; }
.log__t { color: #5d7196; flex: none; user-select: none; }
.log__m--ok { color: #9be9b4; }
.log__m--info { color: #8ec5ff; }

/* Tranche planner (calculator) -------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc__form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--canvas);
  border-right: 1px solid var(--rule);
}
.calc__out { padding: clamp(1.5rem, 3vw, 2.25rem); min-width: 0; }
.calc__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s2);
}
.calc .field { margin-bottom: 1.125rem; }
.calc .figures { margin-bottom: var(--s4); }
.calc .figure__value { font-size: 1.3125rem; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__form { border-right: 0; border-bottom: 1px solid var(--rule); }
}

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--canvas-deep);
  border-radius: var(--radius);
}
.seg button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.seg button:hover { color: var(--navy-900); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--blue); box-shadow: var(--shadow-sm), 0 0 0 1px var(--rule); }

.share-row {
  display: grid;
  grid-template-columns: 12px 1fr 92px;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
}
.share-row + .share-row { border-top: 1px solid var(--rule); }
.share-row label { margin: 0 !important; font-size: 0.875rem !important; }
.share-row .hint { display: block; }
.share-row input { text-align: right; padding-right: 2rem; font-variant-numeric: tabular-nums; }
.share-input { position: relative; }
.share-input::after { content: "%"; position: absolute; right: 0.875rem; top: 50%; transform: translateY(-50%); font-size: 0.875rem; color: var(--text-3); pointer-events: none; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.swatch--1 { background: var(--viz-1); }
.swatch--2 { background: var(--viz-2); }
.swatch--3 { background: var(--viz-3); }

.calc__sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--state-done-bg);
  color: var(--state-done);
  border: 1px solid var(--state-done-ru);
  font-variant-numeric: tabular-nums;
}
.calc__sum.is-invalid { background: var(--state-err-bg); color: var(--state-err); border-color: var(--state-err-ru); }

/* Stacked allocation bar */
.stackbar { position: relative; margin-bottom: var(--s4); }
.stackbar__track { display: flex; gap: 2px; background: var(--paper); }
.stackbar__seg {
  position: relative;
  min-width: 0;
  padding-block: 8px;
  cursor: default;
  outline: none;
}
.stackbar__fill {
  display: block;
  height: 24px;
  transition: filter 0.15s ease;
}
.stackbar__seg:last-child .stackbar__fill { border-radius: 0 4px 4px 0; }
.stackbar__seg:hover .stackbar__fill,
.stackbar__seg:focus-visible .stackbar__fill { filter: brightness(1.08) saturate(1.1); }
.stackbar__seg:focus-visible { box-shadow: 0 0 0 2px var(--blue); border-radius: 4px; }
.stackbar__seg[data-i="1"] .stackbar__fill { background: var(--viz-1); }
.stackbar__seg[data-i="2"] .stackbar__fill { background: var(--viz-2); }
.stackbar__seg[data-i="3"] .stackbar__fill { background: var(--viz-3); }
.stackbar__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stackbar__label strong { display: block; color: var(--navy-900); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.stackbar__axis {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule-strong);
  margin-top: 0.75rem;
  padding-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.stackbar__empty {
  padding: var(--s3);
  border: 1px dashed var(--state-err-ru);
  border-radius: var(--radius);
  background: var(--state-err-bg);
  color: var(--state-err);
  font-size: 0.9375rem;
  margin-bottom: var(--s4);
}
.stackbar__empty[hidden], .stackbar[hidden] { display: none; }

.viz-tip {
  position: absolute;
  z-index: 5;
  bottom: calc(100% - 4px);
  min-width: 220px;
  max-width: 280px;
  padding: 0.75rem 0.875rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
  pointer-events: none;
  transform: translateX(-50%);
}
.viz-tip[hidden] { display: none; }
.viz-tip__head { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--navy-900); margin-bottom: 0.25rem; }
.viz-tip__row { display: flex; justify-content: space-between; gap: var(--s2); font-variant-numeric: tabular-nums; }
.viz-tip__row b { color: var(--navy-900); }

.calc-table td, .calc-table th { padding: 0.75rem 1rem; }
.calc-table td:nth-child(n+4), .calc-table th:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table td:first-child { white-space: nowrap; color: var(--navy-900); font-weight: 700; }
.calc-table td:first-child .swatch { display: inline-block; vertical-align: -1px; margin-right: 0.5rem; }
.calc-table tfoot td { font-weight: 800; color: var(--navy-900); background: var(--canvas); border-bottom: 0; }
.calc-table tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.calc .table-scroll { box-shadow: none; }
.calc__foot { margin-top: var(--s2); font-size: 0.8125rem; color: var(--text-3); }

/* Lifecycle explorer ------------------------------------------------------- */
.lifecycle {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: var(--s4);
  overflow: hidden;
}
.lifecycle__canvas {
  overflow-x: auto;
  padding: var(--s3) var(--s3) var(--s2);
  background:
    radial-gradient(circle at 1px 1px, var(--rule) 1px, transparent 0) 0 0 / 20px 20px,
    var(--paper);
}
.lifecycle__canvas svg { min-width: 780px; width: 100%; height: auto; }
.lifecycle__panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s1) var(--s3);
  align-items: baseline;
  padding: 1.125rem var(--s3);
  border-top: 1px solid var(--rule);
  background: var(--canvas);
  font-size: 0.9375rem;
  color: var(--text-2);
}
.lifecycle__state { font-family: var(--font-mono); font-weight: 700; font-size: 0.875rem; color: var(--blue); }
.lifecycle__moves { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.lifecycle__moves li {
  font-size: 0.8125rem;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.lifecycle__moves li b { font-family: var(--font-mono); font-size: 0.75rem; color: var(--navy-900); }
.lifecycle__moves li.is-offsystem { border-style: dashed; }
.lifecycle__hint { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--text-3); }
@media (max-width: 720px) { .lifecycle__panel { grid-template-columns: 1fr; } }

.sm-node { cursor: pointer; outline: none; }
.sm-node rect { fill: #ffffff; stroke: var(--rule-strong); stroke-width: 1.5; transition: fill 0.15s ease, stroke 0.15s ease; }
.sm-node text { fill: var(--navy-900); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.sm-node:hover rect { stroke: var(--blue); }
.sm-node:focus-visible rect { stroke: var(--blue); stroke-width: 3; }
.sm-node.is-terminal rect { stroke-width: 3; }
.sm-node.is-hold rect { stroke: #e7a86b; stroke-dasharray: 4 3; }
.sm-node.is-target rect { fill: var(--blue-50); stroke: var(--blue); }
.sm-node.is-active rect { fill: var(--blue); stroke: var(--blue); }
.sm-node.is-active text { fill: #ffffff; }
.sm-edge { fill: none; stroke: #a7b4c8; stroke-width: 1.5; marker-end: url(#sm-arrow); transition: stroke 0.15s ease; }
.sm-edge.is-dashed { stroke-dasharray: 5 4; }
.sm-edge.is-active { stroke: var(--blue); stroke-width: 2.25; marker-end: url(#sm-arrow-on); }
.sm-label { font-family: var(--font-sans); font-size: 11px; fill: var(--text-3); font-weight: 600; }
.sm-label.is-active { fill: var(--blue); }

/* Timeline ----------------------------------------------------------------- */
.phases { display: grid; gap: var(--s3); position: relative; padding-left: 2.5rem; }
.phases::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-200) 30%, var(--rule-strong) 100%);
}
.phase {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--s3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}
.phase::before {
  content: "";
  position: absolute;
  left: calc(-2.5rem + 4px);
  top: 2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rule-strong);
}
.phase--current { border-color: var(--blue-200); box-shadow: 0 0 0 4px var(--blue-50), var(--shadow); }
.phase--current::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-100); }
.phase__when {
  align-self: start;
  justify-self: start;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 800;
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.3125rem 0.875rem;
}
.phase--current .phase__when { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.phase h3 { font-size: var(--t-1); margin-bottom: 0.5rem; }
.phase p { color: var(--text-2); font-size: 0.9375rem; }
.phase ul { margin-top: var(--s2); list-style: none; color: var(--text-2); font-size: 0.9375rem; }
.phase li { position: relative; margin-top: 0.5rem; padding-left: 1.625rem; }
.phase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230b5cd5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (max-width: 720px) { .phase { grid-template-columns: 1fr; gap: var(--s2); } }

/* Changelog ---------------------------------------------------------------- */
.changelog {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.changelog__entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--s3);
  padding: var(--s3);
  border-bottom: 1px solid var(--rule);
}
.changelog__entry:last-child { border-bottom: 0; }
.changelog__entry:first-child { background: linear-gradient(90deg, var(--blue-50), transparent 60%); }
.changelog__date {
  align-self: start;
  justify-self: start;
  font-size: 0.8125rem;
  color: var(--navy-800);
  font-weight: 700;
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
  font-variant-numeric: tabular-nums;
}
.changelog__body p { font-size: 0.9375rem; color: var(--text-2); }
.changelog__body strong { display: block; color: var(--navy-900); font-weight: 700; font-size: 1rem; margin-bottom: 0.125rem; }
@media (max-width: 720px) { .changelog__entry { grid-template-columns: 1fr; gap: 0.625rem; } }

/* Prose -------------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--t-2); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); margin-bottom: var(--s2); }
.prose h3 { font-size: var(--t-1); margin-top: var(--s4); margin-bottom: 0.5rem; }
.prose p { margin-top: var(--s2); color: var(--text-2); }
.prose ul, .prose ol { margin-top: var(--s2); padding-left: 1.25rem; color: var(--text-2); }
.prose li { margin-top: 0.5rem; }
.prose li::marker { color: var(--blue); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Forms -------------------------------------------------------------------- */
.field { margin-bottom: var(--s3); }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.4375rem;
}
.field .hint { font-size: 0.8125rem; color: var(--text-3); font-weight: 400; }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input:hover, select:hover, textarea:hover { border-color: #aab8cc; }
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 92, 213, 0.15);
}
input[aria-invalid="true"] { border-color: var(--state-err); }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  font-size: 0.9375rem;
  margin-top: var(--s3);
}
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--state-done-bg); border: 1px solid var(--state-done-ru); color: var(--state-done); }
.form-status--err { background: var(--state-err-bg); border: 1px solid var(--state-err-ru); color: var(--state-err); }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--s5); align-items: start; }
.contact-grid > div:last-child > .card { border-top: 4px solid var(--blue); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.contact-grid .stack-lg .card { padding-left: calc(clamp(1.5rem, 2.5vw, 2rem) + 3.5rem); }
.contact-grid .stack-lg .card::before {
  content: "";
  position: absolute;
  left: clamp(1.5rem, 2.5vw, 2rem);
  top: clamp(1.5rem, 2.5vw, 2rem);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-50) center / 24px no-repeat;
  border: 1px solid var(--blue-100);
}
.contact-grid .stack-lg .card:nth-child(1)::before { background-image: url("../img/icon-mail.svg"); }
.contact-grid .stack-lg .card:nth-child(2)::before { background-image: url("../img/icon-clock.svg"); }
.contact-grid .stack-lg .card:nth-child(3)::before { background-image: url("../img/icon-shield.svg"); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* Footer ------------------------------------------------------------------- */
.footer {
  background: var(--navy-950);
  color: var(--text-inv-3);
  padding-top: var(--s6);
  padding-bottom: var(--s4);
  margin-top: auto;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky) 50%, var(--blue));
}
.disclosure {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: var(--s3);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-inv-3);
  margin-bottom: var(--s5);
}
.disclosure strong { color: #ffffff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer .brand, .footer .brand:hover { color: #ffffff; }
.footer .brand__name em { color: var(--sky); }
.footer h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--s2);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.625rem; }
.footer a { font-size: 0.9375rem; color: var(--text-inv-2); text-decoration: none; transition: color 0.15s ease; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer__about { font-size: 0.9375rem; color: var(--text-inv-3); max-width: 34ch; margin-top: var(--s2); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: var(--text-inv-3);
}
.footer-base a { font-size: inherit; }

/* Error page --------------------------------------------------------------- */
.centered { text-align: center; max-width: 60ch; margin-inline: auto; }
.centered .btn-row { justify-content: center; }
.centered .eyebrow { justify-content: center; }
