/* Colours are brand v2 (brand/tokens.json). The navy sections are fixed in both
   themes, as in the deck; only the light sections follow the reader's theme. */
:root {
  --bg: #FFFFFF;
  --surface: #F6F8FB;
  --border: #DDE3EA;
  --fg: #15181E;
  --body: #3A414B;
  --muted: #5B6470;
  --accent: #1C6FE8;
  --accent-strong: #1C4FD8;
  --accent-soft: #E4EFFD;
  --label: #1C4FD8;
  --navy: linear-gradient(90deg, #102654 0%, #0C1838 30%, #090D18 60%, #07080B 100%);
  --on-navy: #F2F5F9;
  --on-navy-2: #D5DBE3;
  --on-navy-3: #8A93A3;
  --sky: #3FA9FF;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Nunito Sans', 'Avenir Next', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080B; --surface: #0D0F14; --border: #1E222A; --fg: #E9EDF2;
    --body: #B4BCC7; --muted: #7F8794; --accent: #3FA9FF; --accent-strong: #3FA9FF;
    --accent-soft: rgba(63,169,255,.14); --label: #3FA9FF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07080B; --surface: #0D0F14; --border: #1E222A; --fg: #E9EDF2;
  --body: #B4BCC7; --muted: #7F8794; --accent: #3FA9FF; --accent-strong: #3FA9FF;
  --accent-soft: rgba(63,169,255,.14); --label: #3FA9FF; color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--body); max-width: 760px; margin-top: 18px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label); margin-bottom: 14px; }

/* Buttons: solid is the one thing the page asks for. */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--sans); padding: 15px 22px; border-radius: 10px; text-decoration: none; transition: background .16s var(--ease), border-color .16s var(--ease); }
.btn-primary { background: #1C6FE8; color: #fff; }
.btn-primary:hover { background: #1C4FD8; }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); color: var(--on-navy); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }

/* Navy sections */
.navy { background: var(--navy); color: var(--on-navy); position: relative; }
.navy .kicker { color: var(--sky); }
.navy .lede { color: var(--on-navy-2); }

header.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
header.top img { height: 30px !important; width: auto; }
header.top .btn { padding: 11px 16px; font-size: 15px; }

.hero { padding: 168px 0 112px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.06; }
.hero .sub { font-size: clamp(19px, 2.2vw, 24px); color: var(--on-navy-2); margin-top: 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .mark { justify-self: center; width: min(300px, 70%); }
.hero .mark path.bar { opacity: .35; animation: run 2.6s var(--ease) infinite; }
.hero .mark path.bar:nth-child(2) { animation-delay: .11s; }
.hero .mark path.bar:nth-child(3) { animation-delay: .22s; }
.hero .mark path.bar:nth-child(4) { animation-delay: .33s; }
.hero .mark path.bar:nth-child(5) { animation-delay: .44s; }
/* The brand's one motion: tranches light top to bottom, like a step plan executing. */
@keyframes run { 0% { opacity: .35; } 12% { opacity: 1; } 55% { opacity: 1; } 80%, 100% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hero .mark path.bar { animation: none; opacity: 1; } html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .hero { padding: 128px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .mark { display: none; }
}

.question { padding: 104px 0; border-top: 1px solid rgba(255,255,255,.06); }
.question h2 { font-size: clamp(32px, 4.8vw, 54px); max-width: 860px; }
.question p { font-size: clamp(21px, 2.6vw, 30px); color: var(--on-navy-2); margin-top: 28px; max-width: 820px; line-height: 1.4; }

/* Light sections */
section.light { padding: 104px 0; }
section.light + section.light { border-top: 1px solid var(--border); }
@media (max-width: 640px) { section.light, .question { padding: 72px 0; } }

.rows { margin-top: 44px; border-bottom: 1px solid var(--border); }
.row { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: baseline; padding: 22px 8px; border-top: 1px solid var(--border); }
.row dt { font-family: var(--serif); font-size: 25px; line-height: 1.2; color: var(--label); }
.row dd { color: var(--body); font-size: 19px; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 6px; } }

.bar { margin-top: 36px; background: var(--accent-soft); border-left: 4px solid var(--accent-strong); border-radius: 0 10px 10px 0; padding: 20px 26px; font-size: clamp(18px, 2vw, 21px); color: var(--fg); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.card { border-top: 3px solid var(--accent); padding-top: 16px; }
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--body); font-size: 16.5px; margin-top: 6px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.shot { margin-top: 44px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.shot-scroll { overflow-x: auto; }
.shot img { min-width: 900px; width: 100%; }
.caption { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.note { color: var(--body); margin-top: 28px; max-width: 820px; }

/* Timeline (from the deck's "Where we start" slide) */
.start { padding: 104px 0; }
.timeline { margin-top: 44px; overflow-x: auto; }
.timeline svg { width: 100%; min-width: 720px; height: auto; display: block; }
.start .bar { background: rgba(255,255,255,.06); border-left-color: var(--sky); color: var(--on-navy); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.split > div { padding: 26px 28px; }
.split .before { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split .after { background: var(--accent-soft); border-left: 4px solid var(--accent-strong); border-radius: 0 10px 10px 0; }
.split h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 12px; color: var(--muted); }
.split .after h3 { color: var(--label); }
.split ul { padding-left: 22px; color: var(--body); }
.split .after ul { color: var(--fg); }
.split li + li { margin-top: 6px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

.contact { padding: 112px 0; text-align: left; }
.contact h2 { font-size: clamp(32px, 4.8vw, 54px); max-width: 820px; }
.contact .verbs { font-family: var(--serif); font-size: clamp(21px, 2.6vw, 28px); color: var(--on-navy-2); margin-top: 18px; }
.contact p.ask { color: var(--on-navy-2); margin-top: 28px; max-width: 640px; }
.contact .cta { margin-top: 30px; }

footer { background: #07080B; color: var(--on-navy-3); font-size: 14.5px; padding: 32px 0; border-top: 1px solid rgba(255,255,255,.06); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer img { height: 22px !important; width: auto; }

/* Explainer pages */
.page-top { padding: 132px 0 64px; }
.page-top h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; max-width: 860px; }
.page-top .sub { font-size: clamp(18px, 2vw, 21px); color: var(--on-navy-2); margin-top: 18px; max-width: 760px; }
.crumb { font-size: 14px; color: var(--on-navy-3); margin-bottom: 18px; }
.crumb a { color: var(--on-navy-2); text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 56px 0 14px; }
.prose p, .prose li { color: var(--body); font-size: 18.5px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin-top: 12px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--fg); font-weight: 600; }
.figtable { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16.5px; font-variant-numeric: tabular-nums; }
.figtable th, .figtable td { text-align: left; padding: 11px 10px; border-top: 1px solid var(--border); }
.figtable th { font-weight: 600; color: var(--muted); font-size: 14.5px; }
.figtable td.num, .figtable th.num { text-align: right; white-space: nowrap; }
.figtable tr.total td { font-weight: 600; color: var(--fg); border-top: 2px solid var(--fg); }
.table-scroll { overflow-x: auto; }
.faq dt { font-weight: 600; font-size: 19px; margin-top: 26px; color: var(--fg); }
.faq dd { color: var(--body); margin-top: 6px; }
footer nav a { color: var(--on-navy-2); text-decoration: none; margin-right: 18px; }
