/* ============================================================
   Almost Normal — shared stylesheet
   ============================================================ */

:root {
  color-scheme: dark;

  --ink:        #0C1724;
  --navy:       #132840;
  --navy-soft:  #1B3552;
  --line-dark:  #23384F;
  --line-dark2: #2E4257;

  --graphite:   #39434E;
  --steel:      #8C9AA9;
  --steel-dim:  #5E6975;
  --steel-dark: #8190A0;

  --paper:      #F6F5F2;
  --paper-2:    #EAE8E2;
  --white:      #FCFCFA;
  --line-light: #D8D5CD;

  --brass:      #BC9960;
  --brass-dim:  #7F6234;
  --brass-soft: #E0CDA6;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  Archivo, "Helvetica Neue", Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --gutter: 16px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

@media (min-width: 760px)  { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

svg { max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.wrap   { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }

/* A width modifier sitting ON .wrap would shrink the wrap itself, and
   margin:0 auto would then centre it — breaking alignment with every
   other section. Keep the wrap full width and narrow its children. */
.wrap.narrow, .wrap.mast__in { max-width: 1240px; }
.wrap.mast__in > * { max-width: 820px; }
.wrap.narrow   > * { max-width: 880px; }

/* ---------------- type ---------------- */

.display { font-family: var(--serif); font-weight: 300; letter-spacing: -0.022em; line-height: 1.06; }
.h-xl { font-size: clamp(42px, 7vw, 86px); }
.h-lg { font-size: clamp(32px, 4.6vw, 54px); }
.h-md { font-size: clamp(25px, 3vw, 36px); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.on-dark .label, .label--dark { color: var(--brass); }

.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.58; color: var(--graphite); max-width: 64ch; }
.on-dark .lede { color: var(--steel); }

.body-sm { font-size: 15px; line-height: 1.65; color: var(--graphite); }
.on-dark .body-sm { color: var(--steel); }

.on-dark { background: var(--ink); color: var(--paper); }

/* inline link, underline wipes in on hover */
.link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 280ms var(--ease);
  padding-bottom: 1px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  transition: padding 340ms var(--ease);
}

/* the flush dark bar, shown only at the top of the page */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 36, 0.93);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: opacity 340ms var(--ease);
  pointer-events: none;
}

.nav__inner {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 12px;
  border-radius: 0;
  transition: background 340ms var(--ease), box-shadow 340ms var(--ease),
              border-radius 340ms var(--ease), max-width 340ms var(--ease),
              padding 340ms var(--ease);
}

/* once scrolled, the bar detaches into a floating pill and inverts */
.nav.is-float { padding: 14px var(--gutter) 0; }
.nav.is-float::before { opacity: 0; }

.nav.is-float .nav__inner {
  max-width: 1120px;
  padding-inline: 22px;
  min-height: 62px;
  background: var(--white);
  border-radius: 42px;
  box-shadow: 0 16px 44px rgba(12, 23, 36, 0.16), 0 2px 8px rgba(12, 23, 36, 0.07);
}

.nav.is-float .nav__brand { color: var(--brass-dim); }
.nav.is-float .nav__name  { color: var(--ink); }
.nav.is-float .nav__link  { color: var(--graphite); }
.nav.is-float .nav__link:hover,
.nav.is-float .nav__link[aria-current] { color: var(--ink); }
.nav.is-float .nav__link::after { background: var(--brass-dim); }
.nav.is-float .nav__cta { background: var(--navy); color: var(--white); }
.nav.is-float .nav__cta:hover { background: var(--ink); }

@media (max-width: 879px) {
  .nav.is-float .nav__inner { border-radius: 22px; padding-inline: 18px; }
}

.nav__brand { display: flex; align-items: center; min-height: 30px; gap: 11px; text-decoration: none; flex-shrink: 0; color: var(--brass-soft); transition: color 340ms var(--ease); }
.nav__brand svg { transition: transform 420ms var(--ease); transform-origin: 50% 90%; }
.nav__brand:hover svg { transform: translateY(-2px); }
.nav__name { font-family: var(--serif); font-size: 21px; letter-spacing: -0.015em; color: var(--paper); white-space: nowrap; transition: color 340ms var(--ease); }

.nav__links {
  display: flex;
  gap: 34px;
  align-items: center;
  order: 3;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }

@media (min-width: 880px) {
  .nav__links { order: 0; width: auto; overflow: visible; padding-bottom: 0; }
  .nav__sheet { display: flex; gap: clamp(26px, 2.6vw, 44px); }
  .nav__inner { flex-wrap: nowrap; padding-block: 0; }
}

/* On a phone five links either scrolled out of sight or pushed the sticky
   header to 168px. Below 620px they collapse behind a menu button instead. */
.nav__toggle { display: none; }

@media (max-width: 620px) {
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-right: 10px;
    padding: 0 10px;
    background: none;
    border: 0;
    cursor: pointer;
    border-radius: var(--r-sm);
  }
  .nav__toggle span {
    display: block;
    height: 1.5px;
    background: var(--paper);
    border-radius: 2px;
    transition: transform 280ms var(--ease), opacity 180ms var(--ease), background 340ms var(--ease);
  }
  .nav.is-float .nav__toggle span { background: var(--ink); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav__inner { padding-block: 10px; flex-wrap: wrap; row-gap: 4px; column-gap: 10px; }
  .nav__name { font-size: 17.5px; }
  .nav__brand svg { width: 27px; height: 23px; }
  /* brand, button and call to action must share one line, or the CTA drops
     onto a row of its own and the closed header doubles in height */
  .nav__cta { order: 2; padding: 10px 17px; font-size: 13px; }
  .nav__toggle { margin-right: 2px; }
  .nav__brand { margin-right: auto; }

  .nav__links {
    order: 3;
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    gap: 0;
    padding-bottom: 0;
    transition: grid-template-rows 320ms var(--ease);
  }
  .nav__links > * { min-height: 0; }
  .nav.is-open .nav__links { grid-template-rows: 1fr; }

  .nav__sheet {
    display: flex;
    flex-direction: column;
    /* No padding, margin or border on the sheet itself: those sit outside the
       collapsed grid row and leave the closed header taller than it should be.
       The spacing and the rule live on the links, which the row does clip. */
    padding: 0;
    margin: 0;
  }
  .nav.is-float .nav__sheet .nav__link:first-child { border-top-color: var(--line-light); }
  .nav__sheet .nav__link {
    padding: 13px 2px;
    font-size: 15.5px;
    letter-spacing: normal;
  }
  .nav__sheet .nav__link::after { display: none; }
  .nav__sheet .nav__link:first-child { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
  .nav__sheet .nav__link:last-child { padding-bottom: 6px; }
}

/* Narrow phones: shave the brand and the call to action until all three fit
   one line. Below 350px the wordmark goes and the mark carries the brand. */
@media (max-width: 400px) {
  .nav__name { font-size: 16px; }
  .nav__brand { gap: 9px; }
  .nav__brand svg { width: 25px; height: 21px; }
  .nav__cta { padding: 10px 15px; font-size: 12.5px; }
  .nav__toggle { width: 40px; padding: 0 8px; }
}
@media (max-width: 349px) {
  .nav__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__links, .nav__toggle span { transition: none; }
}

.nav__link {
  font-size: 13.5px;
  color: var(--steel);
  text-decoration: none;
  padding: 13px 0;
  position: relative;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current] { color: var(--paper); }
.nav__link[aria-current]::after { transform: scaleX(1); }

.nav__cta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--brass-soft);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  transition: background 200ms var(--ease);
}
.nav__cta:hover { background: var(--white); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 48px;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn--solid { background: var(--brass-soft); color: var(--ink); }
.btn--solid:hover { background: var(--white); }
.btn--line  { border-color: var(--line-dark); color: var(--paper); }
.btn--line:hover { border-color: var(--brass); color: var(--brass-soft); }
.btn--navy  { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--ink); }
.btn--ghost { border-color: var(--line-light); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brass-dim); }

/* chevron that nudges on hover */
.btn--arrow::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 260ms var(--ease);
  flex-shrink: 0;
}
.btn--arrow:hover::after { transform: rotate(45deg) translate(3px, -3px); }

.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- sections ---------------- */

section { padding: clamp(76px, 10vw, 136px) 0; }

.sec-head { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-end; justify-content: space-between; }
.sec-head__main  { flex: 999 1 420px; min-width: 0; }
.sec-head__aside { flex: 1 1 280px; min-width: 0; }
.sec-head h2 { margin-top: 20px; }

.rule { height: 1px; background: var(--line-light); border: 0; margin: 0; }
.on-dark .rule { background: var(--line-dark); }

/* ---------------- hero ---------------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(76px, 12vw, 156px) 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__grid { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero__col { flex: 4 1 500px; min-width: 0; }
.hero__art { flex: 2 1 350px; min-width: 0; display: flex; justify-content: center; }
.hero h1 { margin-top: 22px; color: var(--white); }
.hero h1 span { display: block; color: var(--brass-soft); }
.hero__sub { margin-top: 28px; max-width: 42ch; }

/* ---------------- page masthead ---------------- */

.mast { background: var(--ink); color: var(--paper); padding: clamp(52px, 8vw, 96px) 0 clamp(46px, 6vw, 76px); position: relative; overflow: hidden; }
.mast::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.mast__in { position: relative; max-width: 820px; }
.mast h1 { color: var(--white); margin-top: 20px; }
.mast .lede { margin-top: 22px; color: var(--steel); }

/* ---------------- cards that link ---------------- */

.card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px 36px;
  background: var(--white);
  border: 0;
  border-radius: var(--r-lg);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,23,36,.05);
  transition: box-shadow 280ms var(--ease), transform 280ms var(--ease);
}
.card-link::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms var(--ease);
}
.card-link:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12,23,36,.13); }
.card-link:hover::before { transform: scaleX(1); }
.card-link h3 { font-family: var(--serif); font-size: 25px; font-weight: 300; letter-spacing: -0.018em; line-height: 1.16; }
.card-link__go {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.card-link__go::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.4px solid currentColor;
  border-top: 1.4px solid currentColor;
  transform: rotate(45deg);
  transition: transform 260ms var(--ease);
}
.card-link:hover .card-link__go::after { transform: rotate(45deg) translate(3px, -3px); }

/* Four cards. auto-fit gives three across at most widths and leaves the
   fourth stranded on its own row, so the counts are set explicitly: four,
   then two, then one. Never an orphan. */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
@media (max-width: 1140px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .card-grid { grid-template-columns: 1fr; } }

/* ---------------- tabs ---------------- */

.tabs { margin-top: clamp(40px, 5vw, 60px); }

.tablist { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line-light); }
.on-dark .tablist { border-bottom-color: var(--line-dark); }

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 16px 22px 15px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--steel-dim);
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  transition: color 180ms var(--ease), border-color 220ms var(--ease);
}
.tab:first-child { padding-left: 0; }
.tab:hover { color: var(--ink); border-bottom-color: var(--line-light); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass-dim); }

/* the same row, built from real links instead of tab buttons */
.pagetabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-light);
  scrollbar-width: none;
}
.pagetabs::-webkit-scrollbar { display: none; }
.pagetabs .tab { display: inline-flex; align-items: center; text-decoration: none; }

.tabpanel { padding-top: clamp(32px, 4vw, 48px); }
.tabpanel[hidden] { display: none; }

.panel-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 4.5vw, 64px); }
.panel-grid__main { flex: 999 1 440px; min-width: 0; }
.panel-grid__side { flex: 1 1 300px; min-width: 0; }
.panel-grid h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; }
.panel-grid .lede { margin-top: 18px; }

.deliv { list-style: none; padding: 0; margin: 30px 0 0; border-top: 0; }
.deliv li {
  display: flex;
  gap: 20px;
  padding: 16px 18px;
  margin-inline: -18px;
  border-radius: var(--r-sm);
  border-bottom: 0;
  font-size: 15.5px;
  line-height: 1.55;
  transition: padding-left 240ms var(--ease);
}
.deliv li:hover { background: var(--paper-2); }
.deliv li span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brass-dim);
  padding-top: 5px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.spec { background: var(--paper-2); border-radius: var(--r-lg); padding: 30px 30px 32px; }
.spec dl { margin: 0; display: grid; gap: 18px; }
.spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-dim); }
.spec dd { margin: 5px 0 0; font-size: 16px; color: var(--ink); line-height: 1.45; }

/* ---------------- data ---------------- */

.data-grid { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 72px); margin-top: clamp(40px, 5vw, 60px); }
.data-grid__a { flex: 1 1 340px; min-width: 0; }
.data-grid__b { flex: 999 1 420px; min-width: 0; }

.chart-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  line-height: 1.6;
  color: var(--steel-dim);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}
.on-dark .chart-note { color: var(--steel-dark); border-top-color: var(--line-dark); }

.stack { display: flex; width: 100%; height: 52px; overflow: hidden; border-radius: var(--r-xs); }
.stack span { display: block; height: 100%; transition: opacity 220ms var(--ease); }
.stack:hover span { opacity: 0.55; }
.stack span:hover { opacity: 1; }

.legend { list-style: none; padding: 0; margin: 26px 0 0; }
.legend li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14.5px;
  transition: padding-left 220ms var(--ease);
}
.legend li:hover { padding-left: 6px; }
.legend b { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; transform: translateY(1px); }
.legend .l-name { flex: 1 1 auto; }
.legend .l-val { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--graphite); }

.corridor { margin-top: clamp(40px, 5vw, 56px); overflow-x: auto; padding-bottom: 8px; }

/* ---------------- method ---------------- */

.method { margin-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line-light); }
.method__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-light);
  position: relative;
  transition: background 260ms var(--ease), padding-left 260ms var(--ease);
}
.method__row:hover { background: var(--paper-2); padding-left: 14px; }
.method__n { flex: 0 0 auto; width: 64px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--brass-dim); padding-top: 9px; }
.method__t { flex: 1 1 240px; min-width: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; }
.method__d { flex: 999 1 380px; min-width: 0; }

/* ---------------- governance ---------------- */

.gov { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.gov__cell { background: #101E30; border-radius: var(--r-lg); padding: 36px 32px 40px; position: relative; overflow: hidden; transition: background 280ms var(--ease); }
.gov__cell::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 400ms var(--ease);
}
.gov__cell:hover { background: #142537; }
.gov__cell:hover::before { transform: scaleY(1); }
.gov__cell h3 { font-family: var(--serif); font-size: 24px; font-weight: 300; color: var(--white); letter-spacing: -0.015em; margin-top: 16px; }
.gov__cell p { margin-top: 14px; }

/* ---------------- figures strip ---------------- */

.strip { position: relative; padding-bottom: clamp(40px, 6vw, 72px); }
.strip__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.fig {
  padding: 24px 28px 26px;
  background: #101E30;
  border-radius: var(--r-lg);
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: background 280ms var(--ease);
}
.fig:hover { background: #142537; }
@media (min-width: 760px) { .fig { display: block; padding: 28px 30px 32px; } }
.fig__n { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; color: var(--white); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.fig__k { font-size: 13px; color: var(--steel); line-height: 1.45; }
@media (min-width: 760px) { .fig__k { margin-top: 9px; } }

/* ---------------- faq ---------------- */

.faq { margin-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); transition: padding-left 240ms var(--ease); }
.faq details:hover { padding-left: 10px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 40px 24px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--brass-dim);
  border-bottom: 1.5px solid var(--brass-dim);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 300ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 0 28px; max-width: 76ch; }

/* ---------------- leadership ---------------- */

.lead { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 4vw, 52px); align-items: flex-start; }
.lead__a { flex: 1 1 280px; min-width: 0; }
.lead__b { flex: 999 1 420px; min-width: 0; }
.monogram { width: 100%; max-width: 260px; aspect-ratio: 1 / 1; background: var(--ink); display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-lg); }

/* ---------------- contact + footer ---------------- */

.contact { background: var(--ink); color: var(--paper); padding: clamp(68px, 9vw, 116px) 0; }
.contact h2 { color: var(--white); margin-top: 22px; }

.mail {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: clamp(21px, 3.4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.022em;
  color: var(--brass-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 6px;
  word-break: break-word;
  transition: border-color 260ms var(--ease), color 260ms var(--ease);
}
.mail:hover { border-bottom-color: var(--brass); color: var(--white); }

footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  color: var(--steel-dark);
  font-size: 14px;
  padding: clamp(56px, 7vw, 92px) 0 30px;
}
/* a slow diagonal lift across the panel, so it is not a flat black slab */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(27,53,82,0) 38%, rgba(27,53,82,0.55) 100%),
    radial-gradient(90% 120% at 12% 0%, rgba(188,153,96,0.07) 0%, rgba(188,153,96,0) 60%);
  pointer-events: none;
}
.foot { position: relative; }

.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: clamp(32px, 4vw, 60px);
  padding-bottom: clamp(44px, 5vw, 68px);
}

.foot__mark { display: inline-flex; align-items: center; gap: 12px; color: var(--brass); text-decoration: none; }
.foot__mark span { font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--white); letter-spacing: -0.01em; }
.foot__slogan {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--paper);
  max-width: none;
}
.foot__slogan em { font-style: normal; color: var(--brass-soft); display: block; }
.foot__brand p:not(.foot__slogan) { margin-top: 20px; font-size: 14.5px; line-height: 1.65; color: var(--steel-dark); max-width: 30ch; }

.foot__h {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dark);
  margin: 0 0 18px;
}
.foot__h + .foot__h, .foot__col .foot__h ~ .foot__h { margin-top: 30px; }

.foot__col a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #CBD3DC;
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.4;
  padding: 7px 0;
  transition: color 180ms var(--ease);
}
.foot__col a + .foot__h { margin-top: 30px; }
.foot__col a:hover { color: var(--brass-soft); }
.foot__col a svg { opacity: 0.55; transition: transform 240ms var(--ease), opacity 180ms var(--ease); }
.foot__col a:hover svg { opacity: 1; transform: translate(2px, -2px); }
.foot__col > a { display: flex; }

.foot__next p { font-size: 15.5px; line-height: 1.55; color: var(--paper); max-width: 26ch; margin-bottom: 16px; }

.foot__legal { color: #CBD3DC; text-decoration: none; transition: color 180ms var(--ease); }
.foot__legal:hover { color: var(--brass-soft); }

.foot__bar {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  justify-content: space-between;
  font-size: 13px;
}

@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  z-index: 100;
  background: var(--brass-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(12, 23, 36, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- forms ---------------- */

fieldset { border: 0; margin: 0 0 40px; padding: 0; }
legend { padding: 0; }
.fs-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); margin-bottom: 26px; width: 100%; }
.fs-head h2 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; letter-spacing: -0.018em; }

.row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; min-width: 0; margin-bottom: 20px; }
.field--full { flex: 1 1 100%; }

/* field captions only — never the option rows, which are labels too */
.grp-label,
label:not(.opt):not(.choice):not(.pill) {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--graphite);
  margin-bottom: 10px;
}
.req { color: var(--brass-dim); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  min-height: 50px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
textarea { resize: vertical; min-height: 118px; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass-dim) 50%), linear-gradient(135deg, var(--brass-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
input:hover, select:hover, textarea:hover { border-color: #BFB9AC; }
input:focus, select:focus, textarea:focus { border-color: var(--brass-dim); box-shadow: 0 0 0 3px rgba(127, 98, 52, 0.30); }

.opts { display: flex; flex-direction: column; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line-light);
  background: var(--white);
  cursor: pointer;
  margin-top: -1px;
  min-height: 50px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), padding-left 200ms var(--ease);
}
.opt:hover { background: var(--paper); padding-left: 19px; }
.opt input { margin: 4px 0 0; accent-color: var(--navy); width: 17px; height: 17px; flex-shrink: 0; }
.opt span { font-family: var(--sans); font-size: 15.5px; line-height: 1.45; letter-spacing: normal; text-transform: none; color: var(--ink); }
.opt small { display: block; font-family: var(--sans); color: var(--steel-dim); font-size: 13px; letter-spacing: normal; text-transform: none; margin-top: 3px; }
.opt:first-child { border-top-left-radius: var(--r-sm); border-top-right-radius: var(--r-sm); }
.opt:last-child  { border-bottom-left-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
.opt:has(input:checked) { border-color: var(--brass-dim); background: var(--paper-2); position: relative; z-index: 1; }

.out { background: var(--paper-2); color: var(--ink); border-radius: var(--r-lg); padding: clamp(28px, 3.6vw, 38px); margin-top: 8px; }
.out__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.out__body { font-family: var(--mono); font-size: 12.5px; line-height: 1.85; color: var(--steel-dim); white-space: pre-wrap; word-break: break-word; margin-top: 20px; min-height: 110px; }
.out__body.is-ready { color: var(--ink); }
.out__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.out__mail { margin-top: 20px; font-size: 13.5px; color: var(--steel-dim); }
.out__mail a { color: var(--brass-dim); }

.cols { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 72px); padding-block: clamp(52px, 7vw, 88px); align-items: flex-start; }
.cols__form { flex: 999 1 460px; min-width: 0; }
.cols__side { flex: 1 1 290px; min-width: 0; }

.side-card { border: 0; border-radius: var(--r-lg); background: var(--white); padding: 30px 28px 34px; box-shadow: 0 1px 2px rgba(12,23,36,.05); transition: box-shadow 280ms var(--ease); }
.side-card:hover { box-shadow: 0 14px 32px rgba(12,23,36,.10); }
.side-card + .side-card { margin-top: 20px; }
.side-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 300; letter-spacing: -0.015em; margin-top: 14px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: s; }
.steps li { display: flex; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-light); font-size: 14.5px; line-height: 1.55; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--brass-dim); padding-top: 4px; }
.pledge { list-style: none; padding: 0; margin: 16px 0 0; }
.pledge li { padding: 11px 0; border-top: 1px solid var(--line-light); font-size: 14px; line-height: 1.5; color: var(--graphite); }

/* two-column prose */
.cols2 { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; }
.col { flex: 1 1 300px; min-width: 0; }
.fit { background: var(--paper-2); border-radius: var(--r-lg); padding: 34px 32px 36px; transition: background 280ms var(--ease); }
.fit:hover { background: #E2DFD7; }
.fit h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 23px; font-weight: 300; letter-spacing: -0.015em; }

ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 14px; line-height: 1.55; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--brass-dim); transition: width 240ms var(--ease); }
ul.ticks li:hover::before { width: 22px; }


/* ============================================================
   Enquiry: conversation, not questionnaire
   ============================================================ */

.talk { max-width: 720px; margin-inline: auto; padding-block: clamp(48px, 7vw, 84px); }

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
}
.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--steel);
}
.reassure span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

.block { margin-bottom: clamp(40px, 5vw, 56px); }
.block__h {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 31px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.block__s { font-size: 15px; color: var(--steel-dim); margin-bottom: 26px; }

/* selectable tiles */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 12px; }
.choice {
  position: relative;
  display: block;
  padding: 20px 22px 22px 50px;
  background: var(--white);
  border: 1.5px solid var(--line-light);
  border-radius: var(--r-md);
  cursor: pointer;
  margin: 0;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice::before {
  content: "";
  position: absolute;
  left: 20px; top: 22px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #C6BFB0;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.choice:hover { border-color: #C6BFB0; transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--white); }
.choice:has(input:checked)::before { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3.5px var(--white); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.choice__t { display: block; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.choice__d { display: block; font-size: 13.5px; color: var(--steel-dim); margin-top: 5px; line-height: 1.45; }
/* the catch-all sits on its own row, under the four named areas */
.choice--wide { grid-column: 1 / -1; }

/* multi-select pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  min-height: 46px;
  margin: 0;
  border: 1.5px solid var(--line-light);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--graphite);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill:hover { border-color: #C6BFB0; }
.pill:has(input:checked) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pill:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }

/* optional extras, folded away */
.more { margin-top: 8px; }
.more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 46px;
  border: 1.5px solid var(--line-light);
  border-radius: var(--r-pill);
  font-size: 14.5px;
  color: var(--graphite);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 260ms var(--ease);
}
.more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.more > summary:hover { border-color: #C6BFB0; color: var(--ink); }
.more__body { padding-top: 26px; }

.talk .field { margin-bottom: 22px; }
.talk input[type="text"], .talk input[type="email"], .talk select, .talk textarea {
  border-radius: var(--r-md);
  padding: 16px 18px;
  min-height: 56px;
  font-size: 16.5px;
}
.talk textarea { min-height: 128px; }
.talk select { background-position: calc(100% - 22px) 25px, calc(100% - 16px) 25px; }


/* ============================================================
   Hero globe
   ============================================================ */

.globe { margin: 0; width: 100%; max-width: 520px; }
.globe canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.globe figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-dark);
}
@media (max-width: 760px) {
  .globe { max-width: 360px; margin-inline: auto; }
}


/* ============================================================
   Drifting background shades
   Three soft fields on slow, mismatched cycles so they never fall
   into step. Transform and opacity only, so it stays on the GPU
   and costs nothing to paint.
   ============================================================ */

.flow { position: absolute; inset: -20%; pointer-events: none; z-index: 0; }
.flow span {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}
.flow span:nth-child(1) {
  width: 62%; height: 72%; left: -6%; top: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(27,53,82,0.85) 0%, rgba(27,53,82,0) 68%);
  animation: drift-a 41s var(--ease) infinite alternate;
}
.flow span:nth-child(2) {
  width: 58%; height: 64%; right: -8%; top: 6%;
  background: radial-gradient(circle at 50% 50%, rgba(188,153,96,0.13) 0%, rgba(188,153,96,0) 66%);
  animation: drift-b 53s var(--ease) infinite alternate;
}
.flow span:nth-child(3) {
  width: 70%; height: 60%; left: 18%; bottom: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(19,40,64,0.9) 0%, rgba(19,40,64,0) 70%);
  animation: drift-c 67s var(--ease) infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(14%, 9%, 0) scale(1.18); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0,0,0) scale(1.05); }
  100% { transform: translate3d(-11%, 13%, 0) scale(0.9); }
}
@keyframes drift-c {
  0%   { transform: translate3d(0,0,0) scale(0.95); }
  100% { transform: translate3d(-9%, -11%, 0) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .flow span { animation: none; }
}

/* the grid and the content both sit above the shades */
.mast, .hero { position: relative; overflow: hidden; }
.mast::before, .hero::before { z-index: 1; }
.mast__in, .hero__grid { position: relative; z-index: 2; }


/* ============================================================
   The switch: the same chain, with and without someone on your side
   ============================================================ */

.engine {
  margin-top: clamp(36px, 4vw, 54px);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(19,40,64,0.34);
  overflow: hidden;
  transition: background 520ms var(--ease), border-color 520ms var(--ease);
}
.engine[data-on="true"] {
  background: rgba(188,153,96,0.055);
  border-color: rgba(188,153,96,0.34);
}

/* one source of truth for which half of every pair is showing */
.engine .on { display: none; }
.engine[data-on="true"] .off { display: none; }
.engine[data-on="true"] .on { display: revert; }

.engine__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line-dark);
}
.engine[data-on="true"] .engine__bar { border-bottom-color: rgba(188,153,96,0.22); }
.engine__kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 10px;
}
.engine__title {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em;
  font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; color: var(--white); margin: 0;
}
.engine__sub { margin: 8px 0 0; font-size: 14.5px; color: var(--steel-dark); }

/* the switch itself */
.switch {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 9px 20px 9px 11px; min-height: 48px;
  background: var(--white); border: 1px solid transparent;
  border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: background 300ms var(--ease);
}
.switch:hover { background: #FFFFFF; }
.switch:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.switch__track {
  position: relative; width: 42px; height: 24px; border-radius: var(--r-pill);
  background: #C9C4B8; flex-shrink: 0;
  transition: background 320ms var(--ease);
}
.switch__knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 3px rgba(12,23,36,0.3);
  transition: transform 320ms var(--ease);
}
.engine[data-on="true"] .switch__track { background: var(--navy); }
.engine[data-on="true"] .switch__knob { transform: translateX(18px); }

/* the diagram */
.engine__diagram {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 4vw, 54px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 34px);
}
.engine__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.engine__wires path {
  fill: none; stroke-width: 1.25;
  stroke: var(--steel-dim); stroke-dasharray: 4 5;
  transition: stroke 520ms var(--ease);
}
.engine[data-on="true"] .engine__wires path { stroke: var(--brass); stroke-dasharray: none; }

.engine__col { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 2vw, 22px); position: relative; z-index: 1; }
.engine__col:last-of-type { align-items: flex-end; text-align: right; }
.node { max-width: 100%; }

.node {
  display: inline-flex; align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  background: rgba(12,23,36,0.86);
  font-size: 13.5px; line-height: 1.3; color: var(--steel);
  transition: border-color 520ms var(--ease), color 520ms var(--ease);
}
.engine[data-on="true"] .node[data-node="out"] {
  border-color: rgba(188,153,96,0.42); color: var(--paper);
}

.engine__hubwrap { position: relative; z-index: 1; display: flex; justify-content: center; }
.engine__hub {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 92px; height: 92px; border-radius: var(--r-md);
  border: 1.5px dashed var(--steel-dim);
  background: rgba(12,23,36,0.9);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--steel-dark); line-height: 1.5;
  transition: border-color 520ms var(--ease), color 520ms var(--ease), background 520ms var(--ease);
}
.engine[data-on="true"] .engine__hub {
  border-style: solid; border-color: var(--brass);
  color: var(--brass); background: rgba(188,153,96,0.10);
}

/* the line underneath */
.engine__foot {
  padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 34px);
  border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--steel-dark); line-height: 1.6;
}
.engine[data-on="true"] .engine__foot { border-top-color: rgba(188,153,96,0.22); }
.engine__foot p { margin: 0; max-width: 62ch; }
.engine__footline {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper); margin-bottom: 7px !important;
}
.engine[data-on="true"] .engine__foot .on {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 36px;
}

@media (max-width: 760px) {
  /* stacked, the wires would cross everything, so the order carries the story */
  .engine__diagram { grid-template-columns: 1fr; gap: 18px; }
  .engine__wires { display: none; }
  .engine__col, .engine__col:last-of-type { align-items: stretch; text-align: left; }
  .engine__hubwrap { padding: 4px 0; }
  .engine__hub { width: 100%; height: 64px; border-radius: var(--r-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .engine, .engine *, .switch__knob, .switch__track { transition: none !important; }
}


/* ============================================================
   Send, and what happens after it
   ============================================================ */

.send { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 8px; }
.send__note { margin: 0; font-size: 14px; color: var(--steel-dim); }
.send__note.is-bad { color: #7F6234; }
#btn-send[disabled] { opacity: 0.6; pointer-events: none; }

.sent { text-align: center; padding-block: clamp(40px, 7vw, 76px); }
.sent__tick { width: 72px; height: 72px; margin-bottom: 26px; }
.sent__tick circle, .sent__tick path {
  fill: none; stroke: var(--brass); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.sent__h {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.025em;
  font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; color: var(--ink); margin: 0;
}
.sent__p { margin: 16px auto 0; max-width: 34ch; font-size: 17px; line-height: 1.55; color: var(--graphite); }
.sent__meta { margin: 26px 0 0; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel-dim); }

/* the tick draws itself, then the words arrive under it */
.sent.is-in .sent__tick circle {
  stroke-dasharray: 180; stroke-dashoffset: 180;
  animation: draw 760ms cubic-bezier(.22,.7,.3,1) 60ms forwards;
}
.sent.is-in .sent__tick path {
  stroke-dasharray: 46; stroke-dashoffset: 46;
  animation: draw 380ms cubic-bezier(.22,.7,.3,1) 620ms forwards;
}
.sent.is-in .sent__h   { animation: rise 620ms cubic-bezier(.22,.7,.3,1) 520ms both; }
.sent.is-in .sent__p   { animation: rise 620ms cubic-bezier(.22,.7,.3,1) 640ms both; }
.sent.is-in .sent__meta{ animation: rise 620ms cubic-bezier(.22,.7,.3,1) 780ms both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sent.is-in .sent__tick circle, .sent.is-in .sent__tick path,
  .sent.is-in .sent__h, .sent.is-in .sent__p, .sent.is-in .sent__meta {
    animation: none; stroke-dashoffset: 0; opacity: 1; transform: none;
  }
}
