/* ─── Case study pages ───────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg: #191919;
    --bg-deep: #111111;
    --text: #efedea;
    --muted: #6b6966;
    --line: rgba(255, 255, 255, 0.06);
    --frame: rgba(255, 255, 255, 0.02);
    --gutter: 6vw;
    --measure: 62ch;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.script {
    font-family: "Oooh Baby", cursive;
    font-weight: 400;
    letter-spacing: 0;
}

/* ─── Top bar ────────────────────────────────────────── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem var(--gutter);
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.95), rgba(25, 25, 25, 0));
    font-size: 0.95rem;
    font-weight: 400;
}

.topbar a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.topbar a:hover {
    opacity: 0.6;
}

.topbar__name {
    color: var(--muted);
}

/* progress bar, same language as the homepage scroll indicator */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--text);
    z-index: 21;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    padding: 22vh var(--gutter) 6vh;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(2.75rem, 6vw, 6.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 16ch;
}

.hero__title .script {
    font-size: 1.1em;
    line-height: 0.8;
}

.hero__lede {
    margin-top: 2rem;
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    line-height: 1.45;
    color: var(--muted);
    max-width: 48ch;
}

.meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 5rem;
    border-top: 1px solid var(--line);
}

.meta div {
    padding: 1.1rem 1.5rem 0 0;
}

.meta dt {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.meta dd {
    font-size: 1rem;
    font-weight: 400;
}

/* ─── Media frames ───────────────────────────────────── */
.figure {
    padding: 0 var(--gutter);
    margin: 4rem 0;
}

.figure img,
.figure video,
.slot {
    width: 100%;
    border-radius: 8px;
    border: 32px solid var(--frame);
    background: var(--bg-deep);
}

.figure figcaption {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.figure--pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    max-width: calc(900px + 2 * var(--gutter));
    margin-inline: auto;
}

.figure--trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

.figure--pair figcaption,
.figure--trio figcaption {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* phone screens laid out on a framed stage */
.stage {
    margin: 4rem var(--gutter) 0;
    padding: 4rem 2rem;
    border-radius: 8px;
    border: 32px solid var(--frame);
    background: var(--bg-deep);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3vw;
}

.stage img {
    height: min(68vh, 640px);
    width: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.stage--hero {
    margin-top: 0;
}

.stage--hero img:nth-child(2) {
    margin-top: 3rem;
}

.stage .phone {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.stage--hero .phone:nth-child(2) {
    margin-top: 3rem;
}

.stage--hero img:nth-child(2) {
    margin-top: 0;
}

.phone figcaption {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
}

.phone figcaption span {
    color: var(--muted);
    margin-right: 0.35rem;
    letter-spacing: 0.06em;
}

.stage__caption {
    margin: 0.9rem var(--gutter) 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* flow maps: keep them calm, they're texture as much as content */
.figure--maps img {
    border-width: 16px;
}

/* wide strip of states, scrolls sideways like the homepage track */
.strip {
    overflow-x: auto;
    border-radius: 8px;
    border: 32px solid var(--frame);
    background: var(--bg-deep);
    padding: 3rem 2rem;
    scrollbar-width: none;
}

.strip::-webkit-scrollbar {
    display: none;
}

.figure .strip img {
    width: auto;
    max-width: none;
    height: min(56vh, 520px);
    border: 0;
    border-radius: 0;
    background: none;
}

.strip__hint {
    margin-left: 0.5rem;
    color: var(--text);
}

/* placeholder until real exports land */
.slot {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.85rem;
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.015) 14px 15px),
        var(--bg-deep);
}

.slot--phone {
    aspect-ratio: 9 / 16;
}

.slot--wide {
    aspect-ratio: 21 / 9;
}

.slot strong {
    display: block;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 0.35rem;
}

/* ─── Sections ───────────────────────────────────────── */
.section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 4vw;
    padding: 8rem var(--gutter) 0;
}

.section__label {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.section__num {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.section__title {
    margin-top: 0.5rem;
    font-size: clamp(1.75rem, 2.6vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.section__body {
    max-width: var(--measure);
}

.section__body p+p {
    margin-top: 1.25rem;
}

.section__body p {
    font-size: 1.1rem;
    color: #b9b6b1;
}

.section__body strong {
    color: var(--text);
    font-weight: 500;
}

.lead {
    font-size: clamp(1.35rem, 2vw, 1.9rem) !important;
    line-height: 1.35;
    color: var(--text) !important;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ─── Pillars / lists ────────────────────────────────── */
.pillars {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
    list-style: none;
}

.pillars li {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.pillars span:first-child {
    font-weight: 400;
    color: var(--text);
}

.pillars span:last-child {
    color: var(--muted);
}

/* ─── Two tracks ─────────────────────────────────────── */
.tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 2.5rem;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.tracks div {
    background: var(--bg);
    padding: 1.75rem;
}

.tracks h3 {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.tracks p {
    font-size: 1rem !important;
    color: var(--text) !important;
}

/* breathing room after boxed blocks */
.tracks + p,
.steps + p,
.pillars + p,
.reasons + p {
    margin-top: 1.5rem;
}

/* ─── Ship → learn loop ──────────────────────────────── */
.loop {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.loop li {
    font-family: "Oooh Baby", cursive;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--text);
}

.loop li:not(:last-child)::after {
    content: "→";
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: var(--muted);
    margin-left: 0.75rem;
    vertical-align: middle;
}

.loop li:last-child::after {
    content: "↺";
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    color: var(--muted);
    margin-left: 0.75rem;
    vertical-align: middle;
}

/* ─── Part dividers ───────────────────────────────────── */
.part {
    margin: 10rem var(--gutter) 0;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.part__num {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.part__title {
    font-family: "Oooh Baby", cursive;
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1;
}

.part + .section {
    padding-top: 4rem;
}

/* ─── Decision blocks ────────────────────────────────── */
.decision {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}

.decision:first-child {
    padding-top: 0;
    border-top: 0;
}

.decision__num {
    font-size: 0.75rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted) !important;
    margin-bottom: 0.75rem;
}

.decision h3 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.decision .pillars,
.decision .evo {
    margin: 1.5rem 0;
}

.decision .decision__tradeoff {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--text);
    background: var(--bg-deep);
    font-size: 1rem;
    color: var(--text);
}

/* ─── Case study v3 format ───────────────────────────── */
.kicker {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.kicker span {
    color: var(--text);
    margin-right: 0.75rem;
}

.hero__tagline {
    margin-top: 1rem;
    font-size: clamp(1.5rem, 3vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--muted);
    max-width: 24ch;
}

.hero__tagline .script {
    color: var(--text);
    font-size: 1.2em;
}

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

.facts div {
    padding: 1.1rem 1.5rem 1.1rem 0;
}

.facts dt {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.facts dd {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.bullets {
    list-style: none;
    margin: 1.5rem 0;
}

.bullets li {
    position: relative;
    padding: 0 0 0 1.25rem;
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
    color: #b9b6b1;
    line-height: 1.55;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
}

.bullets strong {
    color: var(--text);
    font-weight: 500;
}

.bullets + p {
    margin-top: 1.25rem;
}

.cs .section__title {
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

.cs .phone figcaption {
    font-weight: 300;
    color: #b9b6b1;
    max-width: 30ch;
    text-align: center;
    line-height: 1.4;
}

.cs .phone figcaption span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.3rem;
}

.cs .decision {
    padding: 2.25rem 0;
}

.cs .decision:first-of-type {
    border-top: 1px solid var(--line);
    padding-top: 2.25rem;
}

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 10rem var(--gutter) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pager a {
    padding: 2.5rem 0;
    text-decoration: none;
    font-size: clamp(1.5rem, 3vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    transition: opacity 0.2s ease;
}

.pager a:hover {
    opacity: 0.6;
}

.pager__next {
    text-align: right;
    border-left: 1px solid var(--line);
}

.pager__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.pager__prev {
    color: var(--muted) !important;
    align-self: end;
}

.next--slim {
    margin-top: 0;
    padding-top: 2.5rem;
    border-top: 0;
    align-items: center;
}

.next--slim p {
    color: var(--muted);
}

/* ─── Stats ──────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 46rem;
    margin-top: 3rem;
}

.stats strong {
    display: block;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stats span {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 22ch;
    line-height: 1.45;
}

/* ─── Callout ────────────────────────────────────────── */
.callout {
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg-deep);
}

.callout h3 {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.callout p {
    font-size: 1.05rem !important;
}

/* ─── Colour swatches ────────────────────────────────── */
.swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.swatches i {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-bottom: 0.75rem;
}

.swatches strong {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

.swatches span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* taller stage for long email screenshots */
.stage--emails img {
    height: min(88vh, 860px);
}

/* scrollable page preview */
.browser {
    height: min(78vh, 760px);
    overflow-y: auto;
    border-radius: 8px;
    border: 32px solid var(--frame);
    background: var(--bg-deep);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.figure .browser img {
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: none;
}

.reasons--rules li {
    background: var(--bg-deep);
    border-color: var(--line);
}

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

/* ─── Recommendation reasons ─────────────────────────── */
.reasons {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.reasons li {
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: rgba(196, 170, 255, 0.07);
    border: 1px solid rgba(196, 170, 255, 0.14);
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
}

.reasons span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b8a6e8;
    margin-bottom: 0.4rem;
}

.figure--narrow {
    max-width: calc(980px + 2 * var(--gutter));
    margin-inline: auto;
}

/* ─── Now vs Next ────────────────────────────────────── */
.versus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.versus h3 {
    font-family: "Oooh Baby", cursive;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.versus div:first-child h3 {
    color: var(--muted);
}

.versus p {
    font-size: 1.15rem !important;
    line-height: 1.45;
}

.versus div:last-child p {
    color: var(--text) !important;
}

/* ─── Stages ─────────────────────────────────────────── */
.evo {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}

.evo li {
    position: relative;
    padding: 1.5rem 1.25rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.evo li::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text);
}

.evo span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.evo strong {
    display: block;
    color: var(--text);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

/* ─── Sign-up steps ──────────────────────────────────── */
.steps {
    list-style: none;
    counter-reset: s;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 2rem 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.steps li {
    counter-increment: s;
    background: var(--bg);
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.45;
}

.steps li::before {
    content: counter(s, decimal-leading-zero);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.steps strong {
    display: block;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.section--tight {
    padding-top: 4rem;
}

/* ─── Decisions ──────────────────────────────────────── */
.decisions {
    list-style: none;
    counter-reset: d;
    margin-top: 1rem;
}

.decisions li {
    counter-increment: d;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.decisions li:first-child {
    border-top: 1px solid var(--line);
}

.decisions h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.decisions h3::before {
    content: counter(d, decimal-leading-zero) "  ";
    color: var(--muted);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    margin-right: 0.5rem;
}

.decisions p {
    font-size: 1.05rem !important;
}

/* ─── Footer / next ──────────────────────────────────── */
.next {
    margin-top: 10rem;
    padding: 6rem var(--gutter) 4rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.next a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.next a:hover {
    opacity: 0.6;
}

.next__big {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.next__small {
    font-size: 0.95rem;
    font-weight: 400;
}

/* ─── Reveal ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ─── Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --gutter: 16px;
    }

    .topbar {
        padding: 1.25rem var(--gutter);
    }

    .hero {
        padding-top: 16vh;
    }

    .meta {
        grid-template-columns: 1fr 1fr;
        margin-top: 3rem;
    }

    .meta div {
        padding-bottom: 1rem;
    }

    .section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 5rem;
    }

    .section__label {
        position: static;
    }

    .figure {
        margin: 2.5rem 0;
    }

    .figure img,
    .figure video,
    .slot {
        border-width: 12px;
    }

    .figure--pair,
    .figure--trio {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stage {
        margin-top: 2.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 2rem 1rem;
        gap: 1rem;
        border-width: 12px;
        scrollbar-width: none;
    }

    .stage::-webkit-scrollbar {
        display: none;
    }

    .stage img {
        height: 440px;
        scroll-snap-align: center;
    }

    .stage--hero img:nth-child(2),
    .stage--hero .phone:nth-child(2) {
        margin-top: 0;
    }

    .stage .phone {
        scroll-snap-align: center;
    }

    .versus,
    .evo,
    .reasons {
        grid-template-columns: 1fr;
    }

    .evo li {
        padding: 1.25rem 0 1.25rem 1.25rem;
        border-left: 1px solid var(--line);
    }

    .evo {
        border-top: 0;
    }

    .evo li::before {
        top: 1.6rem;
        left: -4px;
    }

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

    .section--tight {
        padding-top: 2.5rem;
    }

    .part {
        margin-top: 6rem;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

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

    .facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 2.5rem;
    }

    .pager {
        grid-template-columns: 1fr;
        margin-top: 6rem;
    }

    .pager__next {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stage--emails img {
        height: 560px;
    }

    .browser {
        border-width: 12px;
        height: 70vh;
    }

    .section--tight .section__label {
        display: none;
    }

    .strip {
        border-width: 12px;
        padding: 1.5rem 1rem;
    }

    .figure .strip img {
        height: 380px;
    }

    .pillars li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

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

    .next {
        margin-top: 6rem;
        padding-top: 4rem;
    }
}

/* ═══ Case study v3: single text column + image gallery ═══════════════ */
.cs3 {
    --mat: #232322;
    --faint: #4c4b48;
    font-size: 16px;
}

.cs3 main {
    padding: 0 var(--gutter);
}

.cs3 .col {
    max-width: 58ch;
    margin: 0 auto;
}

.cs3 section.col {
    margin-top: 5.5rem;
}

.cs3 section.col + section.col {
    margin-top: 4rem;
}

.cs3 .col h2 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.cs3 .col p,
.cs3 .cs-list li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.cs3 .col p + p {
    margin-top: 1rem;
}

.cs3 .col strong {
    color: var(--text);
    font-weight: 500;
}

.cs3 .col em {
    font-style: normal;
    color: #b9b6b1;
}

/* hero */
.cs-hero {
    padding-top: 12rem;
}

.cs-kicker {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.cs-kicker span {
    color: var(--text);
    margin-right: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.cs-hero h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.cs-tagline {
    margin-top: 0.75rem;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.3;
    color: var(--muted);
}

.cs-tagline .script {
    color: var(--text);
    font-size: 1.35em;
}

.cs-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.cs-facts dt {
    font-size: 13px;
    color: var(--muted);
}

.cs-facts dd {
    font-size: 15px;
    color: var(--text);
}

/* list */
.cs-list {
    list-style: none;
}

.cs-list li {
    padding-left: 1.1rem;
    position: relative;
}

.cs-list li + li {
    margin-top: 0.6rem;
}

.cs-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--faint);
}

/* gallery: .full spans both columns, plain li = half */
.gallery {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1rem;
    max-width: 1296px;
    margin: 5rem auto 0;
}

.gallery .full {
    grid-column: 1 / -1;
}

.gallery figure {
    margin: 0;
}

.mat {
    aspect-ratio: 10 / 7;
    border-radius: 20px;
    background: var(--mat);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mat img {
    height: 86%;
    width: auto;
    max-width: 88%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.gallery .full .mat img {
    height: 88%;
}

/* wide screenshots fill the mat instead */
.mat--wide img {
    height: auto;
    width: 88%;
    max-height: 88%;
}

.gallery figcaption {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 15px;
    line-height: 1.45;
    color: var(--muted);
}

.gallery figcaption span:first-child {
    flex-shrink: 0;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

/* pager + footer */
.cs-pager {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1296px;
    margin: 9rem auto 0;
    padding: 2rem var(--gutter);
    border-top: 1px solid var(--line);
}

.cs-pager a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cs-pager a:first-child {
    color: var(--muted);
}

.cs-pager a:hover {
    opacity: 0.6;
}

.cs-pager small {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    margin-right: 0.5rem;
}

.cs-foot {
    display: flex;
    justify-content: space-between;
    max-width: 1296px;
    margin: 0 auto;
    padding: 1.5rem var(--gutter) 3rem;
    font-size: 13px;
    color: var(--muted);
}

.cs-foot a {
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 768px) {
    .cs-hero {
        padding-top: 7rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3.5rem;
    }

    .mat {
        aspect-ratio: 4 / 5;
        border-radius: 16px;
    }

    .mat--wide {
        aspect-ratio: 10 / 7;
    }

    .cs3 section.col {
        margin-top: 3.5rem;
    }

    .cs-pager {
        margin-top: 5rem;
    }
}

/* ─── v3 layout refinements (from Figma) ─────────────── */
.cs-hero {
    max-width: 1001px;
    margin: 0 auto;
    padding-top: 120px;
    display: grid;
    grid-template-columns: 580px 1fr;
    align-items: start;
}

.cs-hero .cs-facts {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    gap: 1.1rem 2rem;
}

.cs3 .gallery {
    margin-top: 160px;
}

.cs3 .cs-hero + .gallery {
    margin-top: 80px;
}

.gallery .full .mat {
    aspect-ratio: 1296 / 750;
}

.gallery .full .mat img {
    height: 76%;
}

.cs3 section.col {
    margin-top: 160px;
}

.cs3 section.col + section.col {
    margin-top: 88px;
}

.col-pair {
    max-width: 1240px;
    margin: 160px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.col-pair h2 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.col-pair p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.col-pair p + p {
    margin-top: 1rem;
}

@media (max-width: 1100px) {
    .cs-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 58ch;
    }

    .cs-hero .cs-facts {
        padding-top: 1.5rem;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 768px) {
    .cs-hero {
        padding-top: 7rem;
    }

    .cs3 .gallery,
    .cs3 section.col {
        margin-top: 4.5rem;
    }

    .cs3 section.col + section.col {
        margin-top: 3rem;
    }

    .col-pair {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 4.5rem;
    }

    .gallery .full .mat {
        aspect-ratio: 4 / 5;
    }

    .gallery .full .mat img {
        height: 86%;
    }
}

/* ─── Exact spacing from Figma frame "Desktop · 1441" ─── */
.cs3 .cs-hero { padding-top: 194px; }               /* 74 topbar + 120 */
.cs3 .cs-hero__main .cs-kicker { margin-bottom: 20px; }
.cs3 .cs-hero h1 { font-size: 52px; line-height: 52px; }
.cs3 .cs-tagline { margin-top: 12px; }
.cs3 .cs-hero .cs-facts {
    display: flex; flex-direction: column; gap: 18px;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
}
.cs3 .cs-hero .cs-facts { grid-template-columns: none; }
.cs3 .cs-facts .cs-facts__row { display: flex; gap: 32px; }
.cs3 .cs-facts dd { margin-top: 2px; }

.cs3 .cs-hero + .gallery { margin-top: 80px; }
.cs3 .gallery { margin-top: 160px; gap: 16px; }
.cs3 .gallery figcaption { margin-top: 16px; }

.cs3 .col-pair { margin-top: 160px; }
.cs3 section.col { margin-top: 160px; }
.cs3 section.col + section.col { margin-top: 88px; }
.cs3 section.col.col--tight { margin-top: 64px; }

.cs3 .col h2, .cs3 .col-pair h2 { margin-bottom: 10px; }
.cs3 .col p + p, .cs3 .col-pair p + p, .cs3 .cs-list li + li { margin-top: 10px; }

.cs3 .cs-pager { margin-top: 144px; padding: 32px 0; max-width: 1296px; }
.cs3 .cs-foot { padding: 24px 0 48px; max-width: 1296px; }
.cs3 .cs-pager, .cs3 .cs-foot { width: calc(100% - 2 * 72px); }
.cs3 main { padding: 0 72px; }
.cs3 .cs-kicker { line-height: 16px; }
.cs3 .cs-tagline { line-height: 39px; }
.cs3 .cs-facts dt { line-height: 16px; }
.cs3 .cs-facts dd { line-height: 18px; }
.cs3 .col { max-width: 580px; }
.cs3 .col h2, .cs3 .col-pair h2 { line-height: 19px; }
.cs3 .col p, .cs3 .col-pair p, .cs3 .cs-list li { line-height: 26px; }
.cs3 .gallery figcaption { line-height: 22px; }
.cs3 .cs-pager a { line-height: 19px; }
.cs3 .cs-foot { line-height: 16px; }
@media (max-width: 768px) { .cs3 main { padding: 0 16px; } }
.cs3 .cs-tagline .script { line-height: 0; }

/* ─── v3 mat variants ─── */
.cs3 .mat--wide img,
.cs3 .gallery .full .mat--wide img {
    width: 88%;
    height: auto;
    max-height: 88%;
    border-radius: 8px;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.cs3 .mat--multi {
    gap: 48px;
}

.cs3 .gallery .full .mat--multi img {
    height: 76%;
    max-width: none;
}

@media (max-width: 768px) {
    .cs3 .mat--wide { aspect-ratio: 10 / 7; }
    .cs3 .gallery .full .mat--wide { aspect-ratio: 10 / 7; }
    .cs3 .mat--multi { gap: 12px; }
    .cs3 .gallery .full .mat--multi img { height: 70%; max-width: 30%; object-fit: contain; }
}

/* ═══ Light theme, shared with prototype/light.html ═══════════════════ */
.cs3 {
    --bg: #f6f7f8;
    --text: #000;
    --muted: #6e6e73;
    --faint: #a1a1a6;
    --mat: #ecedef;
    --line: rgba(0, 0, 0, .08);
    background: var(--bg);
    color: var(--text);
    font-weight: 400;
}

.cs3 ::selection { background: #000; color: #fff; }

.cs3 .col em { color: #3a3a3c; }
.cs3 .cs-hero .cs-facts { border-top-color: var(--line); }
.cs3 .cs-pager, .cs3 .cs-foot { border-top-color: var(--line); }
.cs3 .cs-hero h1 { font-weight: 600; }
.cs3 .gallery figcaption span:first-child { color: var(--faint); }

.cs3 .mat img,
.cs3 .mat--wide img,
.cs3 .gallery .full .mat--wide img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .06)) drop-shadow(0 16px 36px rgba(0, 0, 0, .12));
}

.cs3 .progress { background: #000; height: 2px; }

/* name + glass nav, same as the homepage */
.cs3 .me {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 20;
    text-decoration: none;
    line-height: 1.3;
}
.cs3 .me strong { display: block; font-size: 15px; font-weight: 500; }
.cs3 .me span { display: block; font-size: 14px; color: var(--muted); }

.cs3 .glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
}
.cs3 .glass-nav a {
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 16px;
    border-radius: 999px;
    color: #1d1d1f;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}
.cs3 .glass-nav a[aria-current] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cs3 .glass-nav a:hover { background: rgba(255, 255, 255, .8); }
.cs3 .glass-nav a:focus-visible, .cs3 .me:focus-visible, .cs3 .cs-pager a:focus-visible {
    outline: 2px solid #000; outline-offset: 2px;
}

@media (max-width: 768px) {
    .cs3 .me { top: 16px; left: 16px; }
    .cs3 .glass-nav { top: auto; bottom: 20px; }
    .cs3 .cs-foot { padding-bottom: 96px; }
}
