/* ============================================================
   Borgo — case study styles.
   Foundation (tokens, base background, hero, reveal, .picker) lives in
   case-system.css; this file is only what is specific to this page.
   ============================================================ */

:root {
    --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    --bg-grid: rgba(169, 188, 212, .07);
}

/* every top-level section shares one gutter and the blueprint grid —
   the same skin as SeniorTech, so the two cases read as one family */
.voices,
.vision,
.chapter,
.conclusion {
    padding-inline: var(--gutter);
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* bubbles stay only where the page is actually underwater: the app */
.css-bubbles {
    display: none;
}

.chapter--app .css-bubbles {
    display: block;
}

.voices__inner,
.vision__inner,
.chapter__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--sec-max);
    margin-inline: auto;
}

/* chapter heads are left-aligned on this page, so the lead sits flush
   with the eyebrow instead of centring like Insign's */
.lead--flush {
    margin-inline: 0;
}

.lead--center {
    text-align: center;
    margin-inline: auto;
}

.chapter__head {
    margin-bottom: clamp(3rem, 8vh, 5rem);
}

/* ============================================================
   01 — The voices
   ============================================================ */
.voices {
    position: relative;
    overflow: hidden;
    padding-block: var(--sec-y);
}

/* text left, speaking character right — the controls sit directly under
   the quote, not a screen away from it */
.quote-band {
    position: relative;
    margin-top: clamp(1.6rem, 4vh, 2.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 290px);
    grid-template-areas:
        "controls aside"
        "quotes   aside";
    align-items: start;
    column-gap: clamp(1.5rem, 5vw, 4rem);
}

/* the teacup and its note: a small aside on the page's right edge —
   cup and text both anchor right */
.quote-band__aside {
    grid-area: aside;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .9rem;
    text-align: right;
}

/* the note reads as selected text: the highlight lives on an inline
   <mark> so each line's box hugs its own words */
.quote-band__aside p {
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.8;
}

.quote-band__aside mark {
    color: var(--navy-950, #05070F);
    /* gradient layer resists Android force-dark dimming (stays true yellow) */
    background: linear-gradient(var(--yellow), var(--yellow));
    padding: .12em .3em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.quote-band__aside strong {
    font-weight: 700;
    color: inherit;
}

.quote-band__speaker {
    width: var(--cup-size, 64px);
    height: auto;
    animation: speakerFloat 7s infinite ease-in-out;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .45));
    transition: transform .45s var(--ease-out);
}

/* pulses each time the band advances — the character "speaks" the line */
.quote-band.is-speaking .quote-band__speaker {
    transform: scale(1.07) rotate(-2deg);
}

@keyframes speakerFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-band__speaker {
        animation: none;
    }
}

.quote-band__list {
    grid-area: quotes;
    position: relative;
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* only the active quote holds space; the rest are lifted out of flow, so
   the controls sit right under the line being read instead of under the
   height of the longest one */
.quote-band__item {
    position: absolute;
    inset: 0 0 auto 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), visibility .7s;
}

.quote-band__item.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.quote-band blockquote {
    margin: 0;
    padding-left: clamp(1.2rem, 3vw, 2.2rem);
    border-left: 2px solid var(--yellow);
}

.quote-band blockquote p {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.1vw, 1.7rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--white);
    max-width: 30ch;
    margin: 0;
}

.quote-band cite {
    display: block;
    margin-top: 1.4rem;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 1rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--yellow);
}

.quote-band__controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
}

.quote-band__arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--steel-300);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    cursor: pointer;
    transition: color .3s, background-color .3s, border-color .3s;
}

.quote-band__arrow:hover {
    color: var(--navy-900);
    background: var(--yellow);
    border-color: var(--yellow);
}

.quote-band__arrow:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.quote-band__dots {
    display: flex;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.quote-band__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
    transition: background-color .3s, transform .3s;
}

.quote-band__dot[aria-current="true"] {
    background: var(--yellow);
    transform: scale(1.3);
}

.quote-band__dot:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

/* ============================================================
   02 — The vision
   ============================================================ */
.vision {
    position: relative;
    overflow: hidden;
    padding-block: var(--sec-y);
    text-align: center;
}

.vision .section-eyebrow {
    text-align: left;
}

/* text-only section — the vision carries no media */
.vision .intro-large {
    margin-top: clamp(2rem, 6vh, 3.5rem);
}

/* ============================================================
   Chapters (website / app / hubs / activities)

   Each gets a faint tint band so the chapters read as distinct
   without leaving the navy system — the deck used full colour changes.
   ============================================================ */
.chapter {
    position: relative;
    overflow: hidden;
    padding-block: var(--sec-y);
}

/* ============================================================
   Laptop mockup — one machine, the tabs only change its screen.
   The screen is a fixed 16/10 window and the page art is anchored to its
   top edge, so what you see is ONE viewport of the site, never the whole
   scroll.
   ============================================================ */
.laptop {
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
    /* the lid rotates in 3D around its bottom edge (the hinge);
       long perspective distance = mild foreshortening, so the opening
       lid never balloons wide at the top */
    perspective: 3200px;
}

.laptop__lid {
    position: relative;
    padding: clamp(8px, 1vw, 14px);
    padding-top: clamp(14px, 1.8vw, 22px);
    border-radius: clamp(12px, 1.6vw, 18px);
    background: linear-gradient(180deg, #2a2d33 0%, #16181d 100%);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 34px 80px rgba(0, 0, 0, .58), inset 0 1px 1px rgba(255, 255, 255, .12);
    /* closed by default; scrolling the section into view opens it */
    transform-origin: 50% 100%;
    transform: rotateX(-84deg);
    transition: transform 1.4s cubic-bezier(.32, .01, .18, 1);
    will-change: transform;
    transform-style: preserve-3d;
}

/* the lid's edge: a real 3D face standing perpendicular to the lid, so
   the closed machine reads as a slab with thickness, not a sheet */
.laptop__lid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 9px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(180deg, #3a3e46 0%, #1c1f24 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-top: none;
    transform: rotateX(-90deg);
    transform-origin: 50% 100%;
}

.laptop.is-open .laptop__lid {
    transform: rotateX(0deg);
}

/* screen stays dark until the lid is up, like a real machine waking */
.laptop__screen {
    filter: brightness(.15);
    transition: filter 1.1s ease .25s;
}

.laptop.is-open .laptop__screen {
    filter: brightness(1);
}

@media (prefers-reduced-motion: reduce) {

    .laptop__lid,
    .laptop.is-open .laptop__lid {
        transform: none;
        transition: none;
    }

    .laptop__screen,
    .laptop.is-open .laptop__screen {
        filter: none;
        transition: none;
    }
}

.laptop__camera {
    position: absolute;
    top: clamp(5px, .7vw, 9px);
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
}

.laptop__screen {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: clamp(4px, .6vw, 8px);
    background: #05070f;
}

.laptop__screen .picker__view {
    height: 100%;
}

/* full width, top-anchored: the lid crops the scroll, so the visible
   part is exactly the site's first viewport at true proportions */
.laptop__screen img,
.laptop__screen video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* the open base, seen edge-on */
.laptop__base {
    position: relative;
    height: clamp(10px, 1.4vw, 16px);
    width: 106%;
    margin-inline: -3%;
    border-radius: 0 0 clamp(8px, 1.2vw, 14px) clamp(8px, 1.2vw, 14px);
    background: linear-gradient(180deg, #33373e 0%, #14161a 100%);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .5);
}

/* the trackpad notch on the front lip */
.laptop__base span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14%;
    height: 40%;
    border-radius: 0 0 6px 6px;
    background: rgba(0, 0, 0, .45);
}

/* ============================================================
   App — text left, the walkthrough film right. One compact row
   replaces the old pinned five-phone constellation.
   ============================================================ */
.chapter--app {
    background-image:
        linear-gradient(180deg,
            transparent 0%,
            rgba(2, 6, 18, .5) 22%,
            rgba(2, 6, 18, .55) 78%,
            transparent 100%),
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}

.app-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 400px);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.app-duo .chapter__head {
    margin-bottom: 0;
}

/* the film has a transparent background, so it floats on the page with
   no frame — just a deep-sea glow under the phone it contains */
.app-player {
    position: relative;
}

.app-player video {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .55)) drop-shadow(0 0 50px rgba(120, 170, 255, .16));
}

@media (max-width: 860px) {
    .app-duo {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .app-player {
        width: min(420px, 100%);
        margin-inline: auto;
    }
}

/* ============================================================
   Activities
   ============================================================ */
.activity__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: .8rem;
}

.activity__text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.7;
    color: var(--steel-300);
    max-width: 56ch;
}

/* each activity carries its own film — kept small, it illustrates the
   text rather than competing with it */
.activity__player {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-top: clamp(1.6rem, 4vh, 2.4rem);
    border-radius: 14px;
    overflow: hidden;
    background: #05070f;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.activity__player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.activity__mute {
    position: absolute;
    right: .8rem;
    bottom: .8rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .3s;
}

.activity__mute:hover {
    background: rgba(0, 0, 0, .7);
}

.activity__mute:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

/* copy (title, text, film) left — the card deck floats on its right */
.chapter--activities .picker__view {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: clamp(1.6rem, 4vw, 3.5rem);
    align-items: center;
}

.chapter--activities .activity__copy { min-width: 0; }
.chapter--activities .activity__player { max-width: none; }

/* ------------------------------------------------------------------
   The cards float: three in loose 3D, each with its own pose and its
   own bobbing rhythm, so no two drift in sync. Hover straightens one.
   ------------------------------------------------------------------ */
.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1100px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-self: center;
}

.card {
    width: clamp(120px, 11vw, 165px);
    border-radius: 12px;
    transform-style: preserve-3d;
    transform: rotateY(var(--ry, 0deg)) rotate(var(--rz, 0deg)) translateY(var(--ty, 0));
    transition: transform .55s var(--ease-out), filter .55s ease;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .5));
    cursor: pointer;
}

.card:nth-child(1) { --ry: 20deg;  --rz: -7deg; --ty: 12px;  z-index: 1; }
.card:nth-child(2) { --ry: -5deg;  --rz: 2deg;  --ty: -14px; z-index: 2; margin-inline: -14px; }
.card:nth-child(3) { --ry: -22deg; --rz: 8deg;  --ty: 10px;  z-index: 1; }

.card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    animation: cardBob var(--bob-t, 6s) ease-in-out var(--bob-d, 0s) infinite alternate;
}

.card:nth-child(1) img { --bob-t: 6.4s; --bob-d: -1.8s; }
.card:nth-child(2) img { --bob-t: 5.3s; --bob-d: -3.9s; }
.card:nth-child(3) img { --bob-t: 7.1s; --bob-d: -0.7s; }

@keyframes cardBob {
    from { transform: translateY(-7px); }
    to   { transform: translateY(7px); }
}

.card:hover {
    transform: rotateY(0deg) rotate(0deg) translateY(calc(var(--ty, 0px) - 8px)) scale(1.12);
    z-index: 5;
    filter: drop-shadow(0 30px 44px rgba(0, 0, 0, .6));
}

@media (prefers-reduced-motion: reduce) {
    .card img {
        animation: none;
    }
}

/* very narrow phones: three cards + negative margins exceed the column */
@media (max-width: 380px) {
    .card {
        width: 100px;
    }

    .card:nth-child(2) {
        margin-inline: -8px;
    }
}

/* ------------------------------------------------------------------
   Hubs — text left, tilted photo pile right. Click / drag / arrows
   leaf through; DOM reorder + nth-child poses do the animation.
   ------------------------------------------------------------------ */
.hub-duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hub-duo .chapter__head {
    margin-bottom: 0;
}

.deck--hubs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
}

.deck__pile {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    list-style: none;
    margin: 0;
    padding: 0;
    cursor: grab;
    touch-action: pan-y;
}

.deck__pile:active {
    cursor: grabbing;
}

.hub-shot {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(169, 188, 212, .18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
    transform: translateX(var(--dx, 0)) translateY(var(--dy, 0)) rotate(var(--rz, 0deg)) scale(var(--s, .92));
    opacity: var(--o, 0);
    transition: transform .65s var(--ease-out), opacity .5s ease, filter .65s ease;
    filter: brightness(var(--b, .6));
}

.hub-shot:nth-child(1) { --dx: 0;    --dy: 0;    --rz: -1.5deg; --s: 1;   --o: 1; --b: 1;  z-index: 3; }
.hub-shot:nth-child(2) { --dx: 4%;   --dy: -14px; --rz: 3deg;   --s: .95; --o: 1; --b: .7; z-index: 2; }
.hub-shot:nth-child(3) { --dx: -4%;  --dy: -26px; --rz: -4deg;  --s: .9;  --o: 1; --b: .5; z-index: 1; }

.hub-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 860px) {
    .hub-duo {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }
}

.deck-nav {
    display: flex;
    gap: .8rem;
}

.deck-arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--steel-300);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    cursor: pointer;
    transition: color .3s, background-color .3s, border-color .3s;
}

.deck-arrow:hover {
    color: var(--navy-900);
    background: var(--yellow);
    border-color: var(--yellow);
}

.deck-arrow:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .chapter--activities .picker__view {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .deck {
        justify-self: center;
        /* centring alone shrink-wrapped the deck to its arrow row
           (~100px) — the photo pile sizes from the deck's width, so it
           collapsed to a thumbnail. Keep the full column width. */
        width: 100%;
    }
}

/* ============================================================
   Placeholders — visible, obviously unfinished, easy to grep for
   ============================================================ */
.is-placeholder {
    display: grid;
    place-items: center;
    min-height: 140px;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, .03) 0 10px,
            rgba(255, 255, 255, .06) 10px 20px);
    border: 1px dashed rgba(247, 255, 0, .35);
    border-radius: 12px;
}

.is-placeholder span {
    font-family: var(--font-display);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(247, 255, 0, .7);
    text-align: center;
    padding: 1rem;
}

/* ============================================================
   Close
   ============================================================ */
.conclusion {
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-align: center;
    padding-block: calc(var(--sec-y) * 1.3) var(--sec-y);
}

.conclusion-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.5;
    color: var(--white);
    max-width: 40ch;
    margin: 0 auto;
}

.end-links {
    margin-top: 4rem;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.end-links a {
    color: var(--steel-300);
    transition: color .25s ease;
}

.end-links a:hover {
    color: var(--navy-950, #05070F);
    background: var(--yellow);
}

/* ============================================================
   Mobile type scale — the big statement sizes floor too high
   on a narrow column
   ============================================================ */
/* ============================================================
   Responsive — the laptop and the quote band are the two things
   that actually break on a narrow column
   ============================================================ */
@media (max-width: 900px) {

    /* the site tabs sit above the laptop once the picker stacks */
    .laptop {
        max-width: 100%;
    }
}

@media (max-width: 760px) {

    /* speaker drops under the quote instead of squeezing the text */
    .quote-band {
        grid-template-columns: 1fr;
        grid-template-areas:
            "quotes"
            "controls"
            "speaker";
        row-gap: 1.2rem;
    }

    .quote-band__speaker {
        justify-self: center;
        width: clamp(70px, 22vw, 120px);
    }

    /* stacked, the note no longer shares a narrow side column — let it use
       the full width and centre it under the cup instead of hugging the
       right edge one word per line. Resetting grid-area is essential: the
       desktop `grid-area: aside` has no matching area here, so it spawned a
       content-sized implicit column (~96px) that crushed the note. */
    .quote-band__aside {
        grid-area: auto;
        grid-column: 1;
        align-items: center;
        text-align: center;
    }

    .quote-band__aside p {
        max-width: 34ch;
        margin-inline: auto;
    }
}

@media (max-width: 600px) {

    .laptop__lid {
        padding: 6px;
        padding-top: 12px;
    }

    .laptop__screen {
        aspect-ratio: 4 / 3;
    }

    .activity__player video {
        aspect-ratio: 4 / 3;
    }


    .intro-large,
    .conclusion-text {
        font-size: 1.2rem;
        line-height: 1.55;
    }

    .opener-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .quote-band blockquote p {
        font-size: 1.2rem;
        max-width: none;
    }

    .end-links {
        flex-direction: column;
        gap: 1.2rem;
    }
}

/* ============================================================
   Deck pass — sections added from the portfolio deck (pages 4–20):
   context, science, define, exchange, ecosystem, takeaways, plus
   synced picker captions.
   ============================================================ */

/* hero tagline, under the title */
.hero-intro {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.7;
    color: var(--steel-300);
    max-width: 46ch;
    margin-top: var(--space-3);
}

.hero-intro strong {
    color: var(--yellow);
    font-weight: 500;
}

/* ------------------------------------------------------------------
   .duo — two facing cards (context, science, exchange)
   ------------------------------------------------------------------ */
.duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.duo--exchange {
    margin-top: var(--space-5);
    text-align: left;
}

.duo__card {
    padding: 1.6rem 1.7rem;
    border-radius: 14px;
    border: 1px solid rgba(169, 188, 212, .14);
    background: rgba(13, 22, 49, .55);
}

.duo__card--dark {
    background: rgba(5, 7, 15, .72);
    border-color: rgba(247, 255, 0, .28);
}

.duo__kicker {
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: .9rem;
}

.duo__title {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: .7rem;
}

.duo__card p:not(.duo__kicker) {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--steel-300);
}

.duo__card p + p {
    margin-top: .6rem;
}

.duo__card strong {
    color: var(--white);
}

.duo__card strong.hl {
    color: var(--yellow);
}

.duo__list {
    list-style: none;
    margin: 0 0 .9rem;
    columns: 2;
    column-gap: 1.4rem;
}

.duo__list li {
    font-size: .92rem;
    line-height: 2;
    color: var(--steel-100);
}

.duo__list li::before {
    content: '— ';
    color: var(--yellow);
}

/* ------------------------------------------------------------------
   04 — define: statement, HMW, missing piece
   ------------------------------------------------------------------ */
.statement {
    margin-top: var(--space-4);
    padding: 1.8rem 2rem;
    border-left: 3px solid var(--yellow);
    background: rgba(13, 22, 49, .55);
    border-radius: 0 14px 14px 0;
    max-width: 62ch;
}

.statement__kicker,
.hmw__kicker,
.missing__label {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--steel-500);
    margin-bottom: .8rem;
}

.statement__text {
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.5;
    color: var(--white);
}

.hmw {
    margin-top: var(--space-4);
    padding: 1.8rem 2rem;
    border-radius: 14px;
    background: var(--yellow);
    max-width: 62ch;
}

.hmw__kicker {
    color: rgba(5, 7, 15, .6);
}

.hmw__text {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.55;
    color: var(--navy-950);
}

.hmw__text strong {
    font-weight: 700;
}

.missing {
    margin-top: var(--space-5);
    max-width: 62ch;
}

.missing__answer {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--white);
}

.missing__answer em {
    font-style: normal;
    color: var(--yellow);
}

.missing__note {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--steel-300);
    max-width: 52ch;
}

/* ------------------------------------------------------------------
   06 — ecosystem: three-phase flow
   ------------------------------------------------------------------ */
.flow {
    list-style: none;
    counter-reset: phase;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.flow__step {
    counter-increment: phase;
    padding: 1.6rem 1.7rem;
    border-radius: 14px;
    border: 1px solid rgba(169, 188, 212, .14);
    background: rgba(13, 22, 49, .55);
}

.flow__kicker {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--yellow);
}

.flow__kicker::after {
    content: ' · 0' counter(phase);
    color: var(--steel-500);
}

.flow__step h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--white);
    margin: .7rem 0 .6rem;
}

.flow__step p:not(.flow__kicker) {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--steel-300);
}

.flow__step strong {
    color: var(--white);
}

/* blueprint placeholder — same dashed language as the other placeholders */
.shot-borgo {
    margin-top: var(--space-4);
    width: 100%;
}

.shot-borgo.is-placeholder {
    aspect-ratio: 21 / 9;
}

.shot-borgo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ------------------------------------------------------------------
   11 — takeaways
   ------------------------------------------------------------------ */
.takeaways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.takeaway {
    padding: 1.5rem 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(169, 188, 212, .14);
    background: rgba(13, 22, 49, .55);
}

.takeaway h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: .6rem;
}

.takeaway p {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--steel-300);
}

/* ------------------------------------------------------------------
   synced captions under a picker's media
   ------------------------------------------------------------------ */
.picker__main {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    min-width: 0;
}

.picker__stage--captions .picker__view {
    /* caption panels never need to hold pointer focus */
    pointer-events: none;
}

@media (max-width: 900px) {
    .duo__list {
        columns: 1;
    }
}

/* ============================================================
   Hubs — one compact strip: every render shares the same height
   and the row scrolls sideways, so the section stays short
   ============================================================ */
.hub-rail {
    display: flex;
    gap: clamp(.7rem, 1.4vw, 1rem);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-block: .4rem 1.1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(169, 188, 212, .35) transparent;
    /* soft edges hint there is more to drag */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.hub-rail::-webkit-scrollbar {
    height: 6px;
}

.hub-rail::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(169, 188, 212, .3);
}

.hub-rail__item {
    flex: 0 0 auto;
    margin: 0;
    height: clamp(230px, 34vh, 330px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(169, 188, 212, .14);
    scroll-snap-align: center;
}

.hub-rail__item img {
    display: block;
    height: 100%;
    width: auto;
    transition: transform .8s var(--ease-out);
}

.hub-rail__item:hover img {
    transform: scale(1.04);
}

/* ============================================================
   Scroll life — the page moves as it is read.

   1. Reveals get depth: blur + a longer rise, and card groups stagger.
   2. Where the engine supports scroll-driven animations, media drifts
      at its own speed (parallax) while scrolling; the collage angles
      and the reveal system keep working without it.
   ============================================================ */
.reveal {
    transform: translateY(46px);
    filter: blur(7px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}

.reveal.is-in {
    filter: blur(0);
}

/* grouped cards arrive one after the other, not as a wall */
.duo__card.reveal:nth-child(2)   { transition-delay: .14s; }
.takeaway.reveal:nth-child(2)    { transition-delay: .14s; }
.takeaway.reveal:nth-child(3)    { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.is-in {
        filter: none;
        transition: none;
        transform: none;
    }
}
