:root {
    --navy: #1a2e35;
    --navy-dark: #0f1c21;
    --navy-light: #243d47;
    --teal: #1a5f6c;
    --pink: #e86c8d;
    --pink-light: #f5a5b8;
    --green: #7bc4a8;
    --white: #ffffff;
    --gray: #6b7c85;
    --gray-light: #f5f7f8;
    --line: rgba(26, 46, 53, 0.12);
    --line-dark: rgba(255, 255, 255, 0.14);
    --gold: #d4a853;
    --red: #e85c5c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--navy);
    font-family: "DM Sans", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 1rem 2rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.logo-text {
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

section {
    padding: 6.5rem 2rem;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
}

.container-narrow {
    margin: 0 auto;
    max-width: 900px;
}

.paper-hero {
    align-items: center;
    background: var(--navy);
    color: var(--white);
    display: flex;
    min-height: 88svh;
    padding: 8rem 2rem 5rem;
    position: relative;
    text-align: center;
}

.paper-hero::after {
    content: "";
    display: none;
}

.paper-hero .container-narrow {
    position: relative;
    z-index: 1;
}

.hero-label {
    color: var(--pink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-label:empty,
.stacked-title .word-small:empty {
    display: none;
}

.stacked-title span {
    display: block;
    font-family: "Space Grotesk", "Arial Narrow", "Avenir Next Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.paper-hero .word-small,
.stacked-title .word-small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 1.18rem;
}

.stacked-title .word-large {
    color: var(--navy);
    font-size: 5rem;
    line-height: 0.95;
}

.paper-hero .word-large {
    color: var(--white);
    font-size: 5.9rem;
    line-height: 0.92;
}

.stacked-title .word-accent,
.paper-hero .word-accent {
    color: var(--pink);
}

.hero-subtitle,
.section-intro {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.75;
    margin: 2rem auto 0;
    max-width: 760px;
}

.section-header-stacked {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header-stacked .word-small {
    color: var(--gray);
}

.section-intro {
    color: var(--gray);
    text-align: center;
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section-dark .word-small {
    color: rgba(255, 255, 255, 0.55);
}

.section-dark .word-large {
    color: var(--white);
}

.section-dark .section-intro {
    color: rgba(255, 255, 255, 0.72);
}

.section-light {
    background: var(--gray-light);
}

.stat-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3.5rem;
}

.stat-card {
    border-top: 4px solid var(--pink);
    padding-top: 1.3rem;
    text-align: center;
}

.stat-number {
    color: var(--pink);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
}

.stat-label {
    color: var(--navy);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-top: 0.9rem;
    text-transform: uppercase;
}

.stat-copy {
    color: var(--gray);
    font-size: 0.96rem;
    line-height: 1.62;
    margin: 0.75rem auto 0;
    max-width: 310px;
}

.section-dark .stat-label {
    color: var(--white);
}

.section-dark .stat-copy {
    color: rgba(255, 255, 255, 0.76);
}

.finding-grid,
.question-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

.finding-grid {
    grid-template-columns: repeat(4, 1fr);
}

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

.finding-card,
.question-card {
    border-top: 4px solid var(--pink);
    min-width: 0;
    padding-top: 1.35rem;
}

.finding-number {
    color: var(--pink);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.finding-label,
.question-kicker,
.bar-kicker {
    color: var(--gray);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.finding-title,
.question-title {
    color: var(--navy);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.finding-copy,
.question-copy,
.option-copy {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.62;
}

.question-title + .question-copy::before,
.options::before {
    color: var(--teal);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.2;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.question-title + .question-copy::before {
    content: "Prompt shown to models";
}

.options::before {
    content: "Choices shown to models";
}

.question-copy + .question-copy {
    margin-top: 0.65rem;
}

.model-list {
    color: var(--teal);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.55;
    margin-top: 1rem;
    text-transform: uppercase;
}

.section-dark .finding-title,
.section-dark .question-title {
    color: var(--white);
}

.section-dark .finding-copy,
.section-dark .question-copy,
.section-dark .option-copy,
.section-dark .question-kicker,
.section-dark .bar-kicker,
.section-dark .model-list {
    color: rgba(255, 255, 255, 0.75);
}

.section-dark .question-title + .question-copy::before,
.section-dark .options::before {
    color: var(--pink);
}

.options {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.option {
    border-left: 3px solid var(--pink);
    padding-left: 1rem;
}

.option-model-default {
    background: rgba(232, 108, 141, 0.08);
    border-left-color: var(--red);
    padding: 0.8rem 1rem;
}

.option-label {
    align-items: baseline;
    color: var(--teal);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.74rem;
    font-weight: 900;
    gap: 0.45rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.option-badge {
    background: var(--pink);
    border-radius: 3px;
    color: var(--white);
    display: inline-block;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    padding: 0.18rem 0.36rem;
}

.section-dark .option-label {
    color: var(--pink);
}

.bar-list {
    display: grid;
    gap: 1rem;
    margin: 3.5rem auto 0;
    max-width: 980px;
}

.bar-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(11rem, 0.32fr) minmax(0, 1fr) 4.8rem;
    align-items: center;
}

.bar-label,
.bar-value {
    color: var(--navy);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.bar-value {
    color: var(--pink);
    text-align: right;
}

.bar-track {
    background: rgba(26, 46, 53, 0.08);
    border-radius: 4px;
    height: 1rem;
    overflow: hidden;
}

.bar-fill {
    background: var(--pink);
    border-radius: 4px;
    display: block;
    height: 100%;
    width: var(--value);
}

.bar-track.scaled {
    overflow: visible;
    position: relative;
}

.bar-track.scaled .bar-fill {
    border-radius: 0 4px 4px 0;
}

.bar-median {
    background: var(--gold);
    bottom: -0.35rem;
    left: var(--median);
    position: absolute;
    top: -0.35rem;
    width: 2px;
    z-index: 3;
}

.bar-scale {
    color: var(--gray);
    display: flex;
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0.06em;
    margin: 0.4rem 0 0;
}

.bar-scale-note {
    color: var(--gray);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 1.25rem;
    text-align: center;
}

.section-dark .bar-scale,
.section-dark .bar-scale-note {
    color: rgba(255, 255, 255, 0.72);
}

.section-dark .bar-median {
    background: var(--gold);
}

.chart-method-link {
    display: inline-block;
    font-weight: 800;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.axis-list {
    display: grid;
    gap: 1rem;
    margin: 3.5rem auto 0;
    max-width: 980px;
}

.axis-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(10rem, 0.28fr) minmax(0, 1fr) 4.4rem;
}

.axis-label,
.axis-value {
    color: var(--navy);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.axis-value {
    color: var(--pink);
    text-align: right;
}

.axis-track {
    background: rgba(26, 46, 53, 0.08);
    border-radius: 4px;
    height: 1.05rem;
    overflow: hidden;
    position: relative;
}

.axis-zero {
    background: rgba(26, 46, 53, 0.38);
    bottom: 0;
    left: 50%;
    position: absolute;
    top: 0;
    width: 2px;
    z-index: 2;
}

.axis-fill {
    border-radius: 4px;
    display: block;
    height: 100%;
    left: var(--left);
    position: absolute;
    top: 0;
    width: var(--width);
}

.axis-positive {
    background: var(--green);
}

.axis-negative {
    background: var(--pink);
}

.matrix-wrap {
    margin-top: 3.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.matrix-grid {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: minmax(8rem, 1fr) repeat(8, minmax(4.7rem, 0.8fr));
    min-width: 860px;
}

.matrix-corner,
.matrix-head,
.matrix-row-label,
.matrix-cell {
    align-items: center;
    border-radius: 4px;
    display: flex;
    min-height: 2.8rem;
    padding: 0.5rem;
}

.matrix-corner,
.matrix-head,
.matrix-row-label {
    color: var(--navy);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.matrix-head {
    justify-content: center;
    text-align: center;
}

.matrix-cell {
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    justify-content: center;
    text-align: center;
}

.matrix-high {
    background: rgba(123, 196, 168, 0.58);
}

.matrix-mid {
    background: rgba(123, 196, 168, 0.22);
}

.matrix-low {
    background: rgba(232, 108, 141, 0.18);
}

.matrix-lowest {
    background: rgba(232, 108, 141, 0.42);
}

.section-dark .bar-label {
    color: var(--white);
}

.section-dark .bar-track,
.section-dark .axis-track,
.section-dark .stacked-track {
    background: rgba(255, 255, 255, 0.14);
}

.section-dark .axis-label {
    color: var(--white);
}

.section-dark .axis-zero {
    background: rgba(255, 255, 255, 0.44);
}

.stacked-track {
    background: rgba(26, 46, 53, 0.08);
    border-radius: 4px;
    display: flex;
    height: 1rem;
    overflow: hidden;
}

.segment-context {
    background: var(--green);
    width: var(--context);
}

.segment-same {
    background: var(--pink);
    width: var(--same);
}

.segment-over {
    background: var(--gold);
    width: var(--over);
}

.segment-other {
    background: var(--gray);
    width: var(--other);
}

.stacked-track.direction {
    height: 2.4rem;
}

.segment-faith {
    align-items: center;
    background: var(--teal);
    color: var(--white);
    display: flex;
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    width: var(--faith);
}

.segment-secular {
    align-items: center;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    width: var(--secular);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.legend-item {
    align-items: center;
    color: var(--gray);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 0.45rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-dark .legend-item {
    color: rgba(255, 255, 255, 0.72);
}

.legend-swatch {
    border-radius: 2px;
    display: inline-block;
    height: 0.72rem;
    width: 0.72rem;
}

.bar-fill.faith-collapsing {
    background: var(--teal);
}

.bar-fill.secular-collapsing {
    background: var(--gold);
}

.bar-direction-tag {
    border-radius: 999px;
    color: var(--white);
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.bar-direction-tag.faith-collapsing {
    background: var(--teal);
    color: var(--white);
}

.bar-direction-tag.secular-collapsing {
    background: var(--gold);
    color: var(--navy);
}

.axis-ticks {
    height: 1rem;
    position: relative;
}

.axis-tick {
    color: var(--gray);
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.axis-tick.zero {
    color: var(--navy);
    font-weight: 800;
}

.section-dark .axis-tick {
    color: rgba(255, 255, 255, 0.72);
}

.section-dark .axis-tick.zero {
    color: var(--white);
}

.bar-row-labeled {
    align-items: start;
}

.stacked-cell {
    display: grid;
    gap: 0.4rem;
}

.seg-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
}

.seg-mark {
    align-items: center;
    color: var(--navy);
    display: inline-flex;
    font-family: "Space Grotesk", "Arial Narrow", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.35rem;
    letter-spacing: 0.04em;
}

.seg-mark::before {
    border-radius: 2px;
    content: "";
    display: inline-block;
    height: 0.6rem;
    width: 0.6rem;
}

.seg-mark-context::before {
    background: var(--green);
}

.seg-mark-same::before {
    background: var(--pink);
}

.seg-mark-over::before {
    background: var(--gold);
}

.seg-mark-other::before {
    background: var(--gray);
}

.section-dark .seg-mark {
    color: rgba(255, 255, 255, 0.82);
}

.callout {
    border-top: 4px solid var(--pink);
    margin: 4rem auto 0;
    max-width: 880px;
    padding-top: 1.5rem;
    text-align: center;
}

.callout p {
    color: var(--gray);
    font-size: 1.12rem;
    line-height: 1.7;
}

.section-dark .callout p {
    color: rgba(255, 255, 255, 0.82);
}

footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 1050px) {
    .finding-grid,
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    .site-header {
        padding: 0.9rem 1rem;
    }

    section {
        padding: 4.5rem 1.25rem;
    }

    .paper-hero {
        min-height: auto;
        padding: 7rem 1rem 4rem;
    }

    .paper-hero .word-large,
    .stacked-title .word-large {
        font-size: 3rem;
    }

    .paper-hero .word-small,
    .stacked-title .word-small {
        font-size: 1rem;
    }

    .stat-grid,
    .finding-grid {
        grid-template-columns: 1fr;
    }

    .bar-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .bar-value,
    .axis-value {
        text-align: left;
    }

    .axis-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
}

@media print {
    .site-header {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    section {
        break-inside: avoid;
        padding: 2rem 0;
    }

    .paper-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .paper-hero .word-large,
    .stacked-title .word-large {
        font-size: 3.2rem;
    }

    .question-card,
    .finding-card,
    .stat-card,
    .bar-row,
    .axis-row {
        break-inside: avoid;
    }

    .matrix-wrap {
        overflow: visible;
    }

    .matrix-grid {
        min-width: 0;
    }
}
