:root {
    color-scheme: light;

    --ink: #0d0f12;
    --ink-soft: #3d434d;
    --muted: #6b7280;
    --line: #e4e6ea;
    --line-soft: #eef0f3;
    --paper: #ffffff;
    --sand: #f7f7f6;
    --accent: #1d4ed8;
    --accent-soft: #eef3ff;

    --shell: 1120px;
    --radius: 14px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.022em;
    font-weight: 700;
}

p {
    margin: 0;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 22px;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.lede {
    color: var(--ink-soft);
    font-size: 19px;
}

.note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.masthead[data-scrolled='true'] {
    border-bottom-color: var(--line);
}

.masthead .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 62px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
}

.wordmark span:last-child {
    font-weight: 500;
    color: var(--muted);
}

.masthead nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
}

.lang a,
.lang span {
    padding: 6px 12px;
    text-decoration: none;
    color: var(--muted);
}

.lang [aria-current='true'] {
    background: var(--ink);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.btn.ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn.small {
    min-height: 38px;
    font-size: 14px;
    padding: 0 16px;
}

.btn.light {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.btn.outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
}

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

.hero {
    padding: 64px 0 40px;
}

.hero h1 {
    max-width: 19ch;
    font-size: clamp(2.2rem, 5.4vw, 3.6rem);
}

.hero .lede {
    max-width: 58ch;
    margin-top: 18px;
    font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats div {
    padding: 24px;
    border-right: 1px solid var(--line-soft);
}

.stats div:first-child {
    padding-left: 0;
}

.stats div:last-child {
    border-right: 0;
}

.stats b {
    display: block;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.stats span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

section {
    padding: 68px 0;
}

section.sand {
    background: var(--sand);
    border-block: 1px solid var(--line-soft);
}

.head {
    max-width: 62ch;
    margin-bottom: 38px;
}

.head h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.head p {
    margin-top: 16px;
    color: var(--ink-soft);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.step {
    position: relative;
    padding-top: 26px;
    border-top: 3px solid var(--line);
}

.step.now {
    border-top-color: var(--accent);
}

.step.late {
    border-top-color: #d1d5db;
}

.step h3 {
    font-size: 1.1rem;
}

.step p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 15.5px;
}

.step .count {
    display: block;
    margin-top: 14px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.step .count small {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.step .tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.step.late .tag {
    background: #f1f2f4;
    color: var(--muted);
}

.gap {
    margin-top: 26px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: #17307a;
    font-size: 15.5px;
    font-weight: 500;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -18px rgba(13, 15, 18, 0.4);
}

.card h3 {
    font-size: 1.02rem;
}

.card p {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.55;
}

.card .figure {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 15px;
    font-weight: 600;
}

.card .figure b {
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.card .figure span {
    display: block;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
}

.shot {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 24px 60px -40px rgba(13, 15, 18, 0.55);
}

.shotcard {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.shotcard .shot {
    box-shadow: none;
    border-radius: calc(var(--radius) - 8px);
}

.shotcard .caption {
    margin-top: auto;
    padding: 14px 8px 4px;
    font-size: 14px;
}

.caption {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.caption b {
    color: var(--ink);
    font-weight: 600;
}

.tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.tabs button {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

.tabs button[aria-selected='true'] {
    background: var(--ink);
    color: #fff;
}

.panel[hidden] {
    display: none;
}

.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.duo > .chartbox,
.duo > .shotcard,
.duo > div {
    display: flex;
    flex-direction: column;
}

.duo .columns {
    flex: 1;
    min-height: 210px;
}

.duo .bars {
    flex: 1;
    align-content: space-between;
}

.split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 34px;
    align-items: center;
}

.cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.cities li {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 14px;
}

.cities li b {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.cities li span {
    color: var(--muted);
    font-size: 13px;
}

ul.plain {
    margin: 0;
    padding: 0;
    list-style: none;
}

.facts {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.facts li {
    padding-left: 26px;
    position: relative;
    color: var(--ink-soft);
    font-size: 15.5px;
}

.facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--accent);
}

.facts li.limit::before {
    background: #c9ccd2;
}

.close {
    background: var(--ink);
    color: #fff;
    padding: 76px 0;
}

.close h2 {
    max-width: 20ch;
    font-size: clamp(1.9rem, 4.4vw, 2.8rem);
}

.close p {
    max-width: 54ch;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 17.5px;
}

.close .actions {
    margin-top: 30px;
}

footer {
    padding: 34px 0 52px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

footer .shell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: center;
    justify-content: space-between;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.js .rise {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.js .rise.seen {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .rise {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card:hover,
    .btn:hover {
        transform: none;
    }
}

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

    .split,
    .duo {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats div {
        padding: 20px 18px;
    }

    .stats div:nth-child(odd) {
        padding-left: 0;
    }

    .stats div:nth-child(2) {
        border-right: 0;
    }

    .stats div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line-soft);
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .stats b {
        font-size: 1.55rem;
    }

    .hero {
        padding: 52px 0 32px;
    }

    section {
        padding: 52px 0;
    }

    .cards,
    .steps {
        grid-template-columns: 1fr;
    }

    .actions .btn {
        width: 100%;
    }

    .masthead .shell {
        height: 56px;
    }

    .wordmark span:last-child {
        display: none;
    }
}

.bars {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.bars > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 74px;
    align-items: center;
    gap: 14px;
}

.bars dt,
.bars .label {
    font-size: 14.5px;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.bars .track {
    height: 30px;
    border-radius: 6px;
    background: var(--line-soft);
    overflow: hidden;
}

.bars .fill {
    display: block;
    height: 100%;
    width: var(--w);
    border-radius: 6px;
    background: var(--accent);
}

.bars .fill.soft {
    background: #aebeed;
}

.bars .fill.ink {
    background: var(--ink);
}

.bars dd,
.bars .value {
    margin: 0;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bars .value small {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.columns {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    height: 210px;
    padding: 0;
    margin: 0;
}

.columns > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
    text-align: center;
}

.columns .bar {
    height: var(--h);
    border-radius: 6px 6px 2px 2px;
    background: var(--accent);
}

.columns .bar.partial {
    background: repeating-linear-gradient(135deg, #aebeed 0 6px, #c9d4f3 6px 12px);
}

.columns .n {
    font-size: 13.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.columns .y {
    font-size: 12.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
    padding-top: 34px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 6%;
    right: 6%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 62%, #d8dbe1 62%, #d8dbe1 100%);
}

.timeline > div {
    position: relative;
}

.timeline > div::before {
    content: '';
    position: absolute;
    top: -34px;
    left: 0;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--paper);
    box-shadow: 0 0 0 1px var(--accent);
}

.timeline > div.last::before {
    background: #d8dbe1;
    box-shadow: 0 0 0 1px #c3c7cf;
}

.timeline h3 {
    font-size: 1.02rem;
}

.timeline p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 15px;
}

.timeline .when {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.timeline > div.last .when {
    color: var(--muted);
}

.chartbox {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.chartbox h3 {
    font-size: 1.05rem;
}

.chartbox .note {
    margin-top: 14px;
}

.chartbox .note:last-child {
    margin-top: auto;
    padding-top: 14px;
}

.chartbox .bars,
.chartbox .columns {
    margin-top: 20px;
}

.grid-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grid-facts div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.grid-facts b {
    display: block;
    font-size: 1rem;
}

.grid-facts p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 15px;
}

.shot {
    position: relative;
    margin: 0;
}

button.shot {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: zoom-in;
    text-align: left;
    font: inherit;
}

button.shot::after {
    content: attr(data-zoom);
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(13, 15, 18, 0.82);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.18s ease;
}

button.shot:hover::after,
button.shot:focus-visible::after {
    opacity: 1;
}

.viewer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: rgba(9, 10, 12, 0.94);
    padding: 18px;
}

.viewer[hidden] {
    display: none;
}

.viewer .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    padding: 4px 4px 14px;
}

.viewer .bar p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 70ch;
}

.viewer .bar p b {
    color: #fff;
}

.viewer .stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.viewer picture {
    display: contents;
}

.viewer img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.viewer .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 14px;
}

.viewer button {
    min-height: 40px;
    min-width: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.viewer button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.viewer .count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    padding-inline: 6px;
}

body.locked {
    overflow: hidden;
}

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

    .timeline {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 0;
        padding-left: 30px;
    }

    .timeline::before {
        top: 6px;
        bottom: 6px;
        left: 9px;
        right: auto;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 62%, #d8dbe1 62%, #d8dbe1 100%);
    }

    .timeline > div::before {
        top: 2px;
        left: -30px;
    }
}

@media (max-width: 620px) {
    .grid-facts {
        grid-template-columns: 1fr;
    }

    .bars > div {
        grid-template-columns: 78px minmax(0, 1fr) 64px;
        gap: 10px;
    }

    .columns {
        height: 170px;
        gap: 5px;
    }

    .columns .n {
        font-size: 11px;
    }

    .columns .y {
        font-size: 11px;
    }

    .viewer {
        padding: 10px;
    }
}
