@font-face { font-family: Inter; src: url("fonts/Inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
    --paper: #EEF2F6;
    --ink: #0A0E1A;
    --ink-800: #131825;
    --ink-soft: #3B4558;
    --blue: #0B6FD6;
    --blue-signal: #128CFF;
    --teal: #2DD4BF;
    --rule: #C9D3DE;
    --on-ink: #F1F5F9;
    --on-ink-muted: #94A3B8;
    --display: "Space Grotesk", system-ui, sans-serif;
    --body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; z-index: 10; }

.btn { display: inline-block; background: var(--blue); color: #fff; font: 500 1rem/1 var(--body); padding: 14px 22px; border-radius: 8px; text-decoration: none; }
.btn:hover { background: #095CB2; }
.btn-small { padding: 10px 16px; font-size: .9375rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.0625rem/1 var(--display); }
.brand img { flex: none; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding-block: 48px 96px; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.8rem); max-width: 18ch; letter-spacing: -.015em; }
.lead { font-size: 1.25rem; max-width: 56ch; margin-block: 24px 32px; color: var(--ink-soft); }

/* Board: the one loud element */
.board { margin: 48px 0 0; background: var(--ink); color: var(--on-ink); border-radius: 20px; padding: 24px; }
.board figcaption { color: var(--on-ink-muted); font-size: .9375rem; margin-bottom: 16px; }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #232938; border: 1px solid #232938; border-radius: 12px; overflow: hidden; }
.field { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 22px; background: var(--ink); cursor: pointer; animation: fill .5s ease-out backwards; }
.field:nth-child(2) { animation-delay: .15s; } .field:nth-child(3) { animation-delay: .3s; }
.field:nth-child(4) { animation-delay: .45s; } .field:nth-child(5) { animation-delay: .6s; }
.field:nth-child(6) { animation-delay: .75s; }
.field:hover { background: var(--ink-800); }
.field:focus-visible { outline: 2px solid var(--blue-signal); outline-offset: -2px; }
.field[aria-expanded="true"] { background: var(--ink-800); box-shadow: inset 0 3px 0 var(--blue-signal); }
.field-name { font: 600 1.25rem/1.2 var(--display); }
.field-text { color: var(--on-ink-muted); line-height: 1.5; }
.kpi { margin-top: auto; display: grid; gap: 6px; }
.kpi-label { font-size: .875rem; color: var(--on-ink-muted); }
.kpi-value { font: 600 1.75rem/1 var(--display); color: var(--teal); font-variant-numeric: tabular-nums; }
.kpi-value small { font: 400 .9375rem var(--body); color: var(--on-ink-muted); }
.kpi-bar { height: 4px; background: #232938; border-radius: 2px; overflow: hidden; }
.kpi-bar span { display: block; height: 100%; background: var(--teal); transition: width .6s ease; }
.detail { padding: 20px 4px 4px; max-width: 72ch; }
.detail:not(:has(> :not([hidden]))) { padding: 0; }
.detail ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--on-ink-muted); }
@keyframes fill { from { opacity: 0; transform: translateY(6px); } }

/* Steps: real sequence, so numbered */
.steps { padding-block: 96px; border-top: 1px solid var(--rule); }
.steps h2, .sources h2, .product h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.45rem); }
.steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 48px 0 0; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 600 3rem/1 var(--display); color: var(--blue); margin-bottom: 16px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); max-width: 40ch; }

/* Sources table */
.sources { padding-block: 96px; border-top: 1px solid var(--rule); }
.section-lead { color: var(--ink-soft); margin-top: 12px; max-width: 60ch; }
.sources table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.sources th, .sources td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.sources thead th { font: 500 .9375rem var(--body); color: var(--ink-soft); padding-block: 0 12px; }
.sources tbody th { font: 600 1.0625rem/1.4 var(--display); width: 28%; }

/* Product */
.product { padding-block: 96px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.product-text p { color: var(--ink-soft); margin-top: 12px; max-width: 48ch; }
.product h3 { font-size: 1.25rem; margin-top: 40px; }
.shot { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 24px 48px -24px rgba(10, 14, 26, .35); }

/* Closing */
.closing { padding-block: 96px 112px; border-top: 1px solid var(--rule); }
.closing h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.45rem); max-width: 22ch; }
.closing p:not(:last-child) { color: var(--ink-soft); margin-block: 16px 28px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 40px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .9375rem; }
.foot a { color: inherit; }
.foot p a + a { margin-left: 16px; }

@media (max-width: 900px) {
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .steps ol { grid-template-columns: 1fr; gap: 32px; }
    .product { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .top nav a:not(.btn) { display: none; }
    .hero { padding-block: 40px 64px; }
    .board { padding: 16px; margin-top: 48px; }
    .board-grid { grid-template-columns: 1fr; }
    .field { min-height: 0; }
    .sources thead { display: none; }
    .sources tr { display: block; padding-block: 16px; border-bottom: 1px solid var(--rule); }
    .sources th, .sources td { display: block; border: 0; padding: 2px 0; width: auto; }
    .sources tbody th { width: auto; }
    .steps, .sources, .product, .closing { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
