:root {
    --paper: #f3f0e8;
    --paper-deep: #ebe6da;
    --surface: #faf8f2;
    --surface-raised: #fffdf8;
    --ink: #171b18;
    --ink-soft: #3d433e;
    --muted: #737a74;
    --line: #d6d1c5;
    --line-strong: #a9ada8;
    --primary: #264338;
    --secondary: #c85e38;
    --primary-soft: #dce6df;
    --secondary-soft: #f1ded6;
    --page-width: 1240px;
    --page-gutter: clamp(20px, 4.5vw, 72px);
    --shadow: 0 24px 70px rgba(32, 37, 31, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
    color: var(--ink);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 92% 3%, rgba(200, 94, 56, 0.08), transparent 27rem),
        var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    color: inherit;
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--primary);
    color: #fff;
}

.page-shell {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(169, 173, 168, 0.5);
    background: rgba(243, 240, 232, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand-link,
.portfolio-link,
.site-header nav a {
    text-decoration: none;
}

.brand-link {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.brand-link > span:first-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    letter-spacing: 0;
}

.brand-divider {
    width: 22px;
    height: 1px;
    background: var(--line-strong);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header nav a,
.portfolio-link {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    transition: color 160ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.portfolio-link:hover,
.portfolio-link:focus-visible {
    color: var(--ink);
}

.portfolio-link {
    justify-self: end;
}

.hero {
    padding-top: clamp(74px, 10vw, 132px);
    padding-bottom: 42px;
}

.hero-grid {
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: clamp(44px, 8vw, 120px);
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--secondary);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow span {
    color: var(--muted);
}

.hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(58px, 8.5vw, 112px);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.88;
}

.hero-subtitle {
    max-width: 690px;
    margin: 42px 0 0;
    color: var(--ink-soft);
    font-size: clamp(18px, 2.2vw, 28px);
    letter-spacing: -0.025em;
    line-height: 1.36;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.hero-note span {
    color: var(--secondary);
    font-size: 8px;
}

.hero-stamp {
    min-height: 320px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ink);
    background:
        linear-gradient(to bottom, transparent 96%, rgba(23, 27, 24, 0.08) 96%),
        var(--paper-deep);
    background-size: 100% 25px;
}

.hero-stamp > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    font-family: "DM Mono", monospace;
    font-size: 11px;
}

.hero-stamp strong {
    margin-top: auto;
    font-family: "DM Mono", monospace;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: -0.06em;
}

.hero-stamp p {
    margin: 4px 0 0;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1.55;
    text-transform: uppercase;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.metric-card {
    min-height: 230px;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line-strong);
}

.metric-card:last-child {
    border-right: 0;
}

.metric-topline {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.metric-card > p {
    margin: auto 0 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.metric-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(22px, 2.3vw, 31px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.03;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.metric-card small {
    margin-top: 9px;
    color: var(--secondary);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    line-height: 1.4;
}

.story-nav {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
}

.story-nav > span {
    margin-right: auto;
    color: var(--muted);
}

.story-nav a {
    text-decoration: none;
}

.story-nav a:hover,
.story-nav a:focus-visible {
    color: var(--secondary);
}

.data-section {
    padding-block: clamp(88px, 10vw, 144px);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 66px;
}

.section-heading {
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 32px;
}

.section-index {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
}

.section-heading h2,
.methodology h2 {
    margin: 0;
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.section-description {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.control-bar {
    margin-bottom: 18px;
    padding: 18px;
    display: flex;
    align-items: end;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.55);
}

.control-bar--ranking .field--search {
    flex: 1;
}

.field {
    min-width: 210px;
    display: grid;
    gap: 8px;
}

.field > span {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    outline: 0;
    background-color: var(--surface-raised);
    font-size: 13px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
        linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 13px) 19px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.field input {
    padding-right: 14px;
}

.field input::placeholder {
    color: #9b9f9a;
}

.field input:focus,
.field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 67, 56, 0.13);
}

.section-control {
    margin: -10px 0 22px 112px;
    display: flex;
}

.section-control .field {
    width: min(100%, 420px);
}

.chart-panel {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), transparent 55%),
        var(--surface);
    box-shadow: var(--shadow);
}

.chart-panel--ranking {
    min-height: 430px;
}

.chart-canvas {
    width: 100%;
}

.chart-tooltip {
    max-width: 360px;
    padding: 15px 16px;
    border: 1px solid var(--ink);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.97);
    box-shadow: 0 14px 32px rgba(23, 27, 24, 0.14);
}

.chart-tooltip > p {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
}

.chart-tooltip dl {
    margin: 0;
}

.chart-tooltip dl > div {
    min-width: 190px;
    padding: 6px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border-top: 1px solid var(--line);
}

.chart-tooltip dt,
.chart-tooltip dd {
    margin: 0;
    font-size: 10px;
}

.chart-tooltip dt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}

.chart-tooltip dd {
    font-family: "DM Mono", monospace;
    font-weight: 500;
    text-align: right;
}

.show-all-row {
    padding-top: 24px;
    display: flex;
    justify-content: center;
}

.text-button {
    padding: 11px 4px;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    transition:
        color 160ms ease,
        border-color 160ms ease;
}

.text-button:hover,
.text-button:focus-visible {
    border-color: var(--secondary);
    color: var(--secondary);
}

.empty-state {
    min-height: 260px;
    padding: 40px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.insight-card {
    max-width: 880px;
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 3px solid var(--secondary);
    background: var(--secondary-soft);
}

.insight-card--top {
    margin: 0 0 20px 112px;
}

.insight-card--bottom {
    margin: 20px 0 0 112px;
}

.insight-card > span {
    color: var(--secondary);
    font-family: "DM Mono", monospace;
}

.insight-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
}

.segmented-control {
    padding: 4px;
    display: inline-flex;
    gap: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface-raised);
}

.segmented-control button {
    min-width: 92px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    transition:
        color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.segmented-control button:hover {
    color: var(--ink);
}

.segmented-control button.is-active {
    background: var(--primary);
    color: white;
}

.segmented-control button:focus-visible {
    outline: 3px solid rgba(38, 67, 56, 0.2);
    outline-offset: 2px;
}

.comparison-controls {
    margin: -10px 0 20px 112px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 14px;
}

.comparison-controls .field {
    min-width: 0;
}

.comparison-mark {
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
}

.comparison-legend {
    margin: 0 0 18px 112px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comparison-legend > span {
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.55);
    color: var(--ink-soft);
    font-size: 10px;
}

.legend-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 50%;
}

.legend-dot--primary {
    background: var(--primary);
}

.legend-dot--secondary {
    background: var(--secondary);
}

.methodology {
    padding-block: clamp(88px, 11vw, 156px);
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(56px, 9vw, 130px);
}

.methodology-intro {
    position: sticky;
    top: 110px;
    align-self: start;
}

.methodology-intro > p:last-child {
    margin: 28px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--ink);
}

.methodology-grid article {
    min-height: 280px;
    padding: 24px;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.methodology-grid article:nth-child(2n) {
    border-right: 0;
}

.methodology-grid span {
    color: var(--secondary);
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.methodology-grid h3 {
    margin: 66px 0 14px;
    font-size: 21px;
    letter-spacing: -0.035em;
}

.methodology-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.methodology-note {
    grid-column: 2;
    margin-top: -86px;
    padding: 24px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 28px;
    border: 1px solid var(--primary);
    background: var(--primary-soft);
}

.methodology-note strong {
    font-size: 12px;
}

.methodology-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.7;
}

.about-project {
    padding-block: clamp(94px, 12vw, 168px);
    border-top: 1px solid var(--ink);
}

.about-project-header {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: end;
}

.about-project h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.about-project-lead {
    max-width: 680px;
}

.about-project-lead p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.75;
}

.about-project-lead p:first-child {
    color: var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -0.025em;
    line-height: 1.5;
}

.about-project-lead p + p {
    margin-top: 22px;
}

.project-process {
    margin-top: clamp(72px, 9vw, 116px);
    scroll-margin-top: 90px;
}

.project-process-heading {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: end;
}

.section-kicker,
.footer-kicker {
    margin: 0;
    color: var(--secondary);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.project-process-heading h3,
.project-detail-grid h3,
.project-notes-grid h3 {
    margin: 7px 0 0;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.process-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line-strong);
    list-style: none;
}

.process-list li {
    min-height: 310px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line-strong);
}

.process-list li:last-child {
    border-right: 0;
}

.process-number {
    color: var(--secondary);
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.process-list h4 {
    margin: auto 0 15px;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.process-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.project-detail-grid {
    margin-top: clamp(52px, 7vw, 88px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1px;
    border: 1px solid var(--line-strong);
    background: var(--line-strong);
}

.aggregate-detail,
.technology-detail {
    min-width: 0;
    padding: clamp(26px, 3.5vw, 46px);
    background: rgba(255, 253, 248, 0.65);
}

.aggregate-detail > p:last-child,
.technology-detail > p:last-child {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.aggregate-detail ul {
    margin: 34px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.aggregate-detail li {
    padding: 14px 0;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

.aggregate-detail li::before {
    content: "—";
    color: var(--secondary);
}

.technology-detail {
    background: var(--primary-soft);
}

.technology-detail ul {
    margin: 34px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.technology-detail li {
    padding: 9px 12px;
    border: 1px solid rgba(38, 67, 56, 0.35);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.58);
    color: var(--primary);
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

.project-notes-grid {
    margin-top: 1px;
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: 1px;
    background: var(--line-strong);
}

.source-reference,
.data-disclaimer {
    min-width: 0;
    padding: clamp(28px, 4vw, 52px);
    background: var(--surface-raised);
}

.source-reference > p:not(.section-kicker),
.data-disclaimer > p:not(.section-kicker) {
    margin: 24px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.72;
}

.source-reference .source-attribution {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.external-link {
    width: fit-content;
    margin-top: 24px;
    padding-bottom: 5px;
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    border-bottom: 1px solid currentColor;
    color: var(--primary);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none;
    transition:
        color 160ms ease,
        border-color 160ms ease;
}

.external-link:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.external-link:focus-visible,
.data-disclaimer a:focus-visible,
.page-footer a:focus-visible {
    outline: 3px solid rgba(200, 94, 56, 0.35);
    outline-offset: 4px;
    border-radius: 2px;
}

.data-disclaimer {
    border-left: 4px solid var(--secondary);
    background: var(--secondary-soft);
}

.data-disclaimer a {
    color: var(--primary);
    font-weight: 650;
    text-underline-offset: 3px;
}

.page-footer {
    border-top: 1px solid var(--ink);
    background: var(--primary);
    color: var(--surface-raised);
}

.page-footer .page-shell {
    padding-block: clamp(56px, 7vw, 84px) 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.75fr) minmax(0, 1fr);
    gap: clamp(44px, 7vw, 100px);
}

.footer-identity h2 {
    max-width: 420px;
    margin: 13px 0 0;
    font-size: clamp(30px, 3.3vw, 46px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}

.footer-identity > p:last-child {
    max-width: 420px;
    margin: 24px 0 0;
    color: rgba(255, 253, 248, 0.7);
    font-size: 13px;
    line-height: 1.7;
}

.footer-kicker {
    color: #ef9d7e;
}

.footer-column h2 {
    margin: 0;
    color: rgba(255, 253, 248, 0.52);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-column > p,
.footer-contact {
    margin: 22px 0 0;
    color: rgba(255, 253, 248, 0.66);
    font-size: 11px;
    line-height: 1.75;
}

.footer-links {
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}

.footer-links a,
.footer-source-link {
    width: fit-content;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--surface-raised);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.footer-contact a {
    color: var(--surface-raised);
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

.footer-source-link {
    margin-top: 22px;
    text-underline-offset: 5px;
}

.page-footer a {
    transition: color 160ms ease;
}

.page-footer a:hover {
    color: #ef9d7e;
}

.page-footer a:focus-visible {
    outline-color: rgba(255, 253, 248, 0.85);
}

.footer-bottom {
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    border-top: 1px solid rgba(255, 253, 248, 0.22);
    color: rgba(255, 253, 248, 0.58);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    line-height: 1.6;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    flex: 0 0 auto;
    color: var(--surface-raised);
    text-decoration: none;
}

.loading-page,
.error-page {
    min-height: calc(100vh - 67px);
    padding-block: 110px;
}

.loading-title,
.loading-subtitle,
.loading-card {
    position: relative;
    overflow: hidden;
    background: var(--paper-deep);
}

.loading-title::after,
.loading-subtitle::after,
.loading-card::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: loading-shimmer 1.4s infinite;
}

.loading-title {
    width: min(760px, 92%);
    height: clamp(110px, 16vw, 190px);
}

.loading-subtitle {
    width: min(600px, 76%);
    height: 30px;
    margin-top: 38px;
}

.loading-metrics {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.loading-card {
    height: 220px;
}

.error-page h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(48px, 8vw, 92px);
    letter-spacing: -0.065em;
    line-height: 0.95;
}

.error-page > p:not(.eyebrow) {
    max-width: 600px;
    margin: 28px 0;
    color: var(--muted);
    line-height: 1.6;
}

.primary-button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: transparent;
    color: var(--primary);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes loading-shimmer {
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 980px) {
    .site-header nav {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-stamp {
        min-height: 0;
        padding: 18px 20px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 22px;
    }

    .hero-stamp strong {
        margin: 0;
    }

    .metric-grid {
        margin-top: 76px;
        grid-template-columns: 1fr 1fr;
    }

    .metric-card:nth-child(2) {
        border-right: 0;
    }

    .metric-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line-strong);
    }

    .methodology {
        grid-template-columns: 1fr;
    }

    .methodology-intro {
        position: static;
    }

    .methodology-note {
        grid-column: 1;
        margin-top: 0;
    }

    .about-project-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

    .process-list li {
        min-height: 260px;
        border-bottom: 1px solid var(--line-strong);
    }

    .process-list li:nth-child(2n) {
        border-right: 0;
    }

    .process-list li:last-child {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .project-detail-grid,
    .project-notes-grid {
        grid-template-columns: 1fr;
    }

    .data-disclaimer {
        border-top: 4px solid var(--secondary);
        border-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    :root {
        --page-gutter: 17px;
    }

    .header-inner {
        min-height: 60px;
    }

    .brand-divider,
    .brand-link > span:last-child {
        display: none;
    }

    .portfolio-link {
        font-size: 10px;
    }

    .hero {
        padding-top: 66px;
    }

    .hero h1 {
        font-size: clamp(52px, 17vw, 76px);
        letter-spacing: -0.07em;
    }

    .hero-subtitle {
        margin-top: 30px;
        font-size: 18px;
    }

    .hero-stamp {
        grid-template-columns: auto 1fr;
    }

    .hero-stamp p {
        display: none;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 190px;
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .metric-card:last-child {
        border-bottom: 0;
    }

    .story-nav {
        min-height: 72px;
        overflow-x: auto;
        gap: 22px;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .story-nav::-webkit-scrollbar {
        display: none;
    }

    .story-nav > span {
        display: none;
    }

    .data-section {
        scroll-margin-top: 60px;
    }

    .section-heading {
        margin-bottom: 36px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .section-index {
        width: 44px;
        height: 44px;
    }

    .section-heading h2,
    .methodology h2,
    .about-project h2 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .section-description {
        font-size: 14px;
    }

    .control-bar {
        padding: 14px;
        align-items: stretch;
        flex-direction: column;
    }

    .field {
        width: 100%;
        min-width: 0;
    }

    .section-control,
    .insight-card--top,
    .insight-card--bottom,
    .comparison-controls,
    .comparison-legend {
        margin-left: 0;
    }

    .chart-panel {
        padding: 10px 4px 8px;
        border-radius: 14px;
    }

    .chart-panel--ranking {
        padding-left: 0;
    }

    .insight-card {
        padding: 16px;
    }

    .segmented-control {
        width: 100%;
    }

    .segmented-control button {
        min-width: 0;
        flex: 1;
        padding-inline: 8px;
    }

    .comparison-controls {
        grid-template-columns: 1fr;
    }

    .comparison-mark {
        height: auto;
        justify-items: start;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .methodology-grid article,
    .methodology-grid article:nth-child(2n) {
        min-height: 230px;
        border-right: 0;
    }

    .methodology-grid h3 {
        margin-top: 48px;
    }

    .methodology-note {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-process-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .process-list li,
    .process-list li:last-child {
        min-height: 230px;
        grid-column: auto;
        border-right: 0;
    }

    .project-detail-grid,
    .project-notes-grid {
        margin-inline: -1px;
    }

    .aggregate-detail,
    .technology-detail,
    .source-reference,
    .data-disclaimer {
        padding: 24px 20px;
    }

    .external-link {
        width: 100%;
        justify-content: space-between;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-identity {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .loading-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .loading-card {
        height: 160px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .story-nav,
    .control-bar,
    .section-control,
    .comparison-controls,
    .show-all-row,
    .page-footer {
        display: none !important;
    }

    .data-section,
    .methodology,
    .about-project {
        break-inside: avoid;
    }

    body {
        background: white;
    }
}


/*# sourceMappingURL=styles.da07b933cc62a42ffb69.css.map*/