/* Neurocode cards build: 20260729-ios-arrows-deck-06 — change the version in index.php after every upload. */
:root {
    --ink: #081a3f;
    --muted: #5f708d;
    --blue: #1268f3;
    --cyan: #58d7ff;
    --gold: #d6a85f;
    --paper: #f7fbff;
    --glass: rgba(255, 255, 255, 0.74);
    --card-w: clamp(330px, 28vw, 430px);
    --card-h: calc(var(--card-w) * 1.3333);
    --ease: cubic-bezier(.2, .82, .24, 1);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    min-height: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    font-family: "Noto Sans", Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background: #eef6ff;
    overflow: visible;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

button, a {
    font: inherit;
}

button {
    color: inherit;
}

.experience {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: visible;
    isolation: isolate;
    padding: calc(var(--nav-h) + clamp(24px, 3vw, 48px)) clamp(18px, 5vw, 84px) max(28px, env(safe-area-inset-bottom));
    background: radial-gradient(circle at 70% 8%, rgba(42, 141, 255, .16), transparent 32%),
    radial-gradient(circle at 17% 88%, rgba(103, 220, 255, .14), transparent 30%),
    linear-gradient(135deg, #f9fcff 0%, #eef6ff 48%, #fff7eb 100%);
}

.time-grid {
    position: absolute;
    inset: 0;
    z-index: -5;
    opacity: .45;
    background-image: linear-gradient(rgba(26, 108, 236, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 108, 236, .07) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at 52% 50%, #000, transparent 72%);
}

.ambient {
    position: absolute;
    z-index: -3;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.ambient::before, .ambient::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    inset: 10%;
    border: 1px solid rgba(32, 132, 255, .2);
}

.ambient::after {
    inset: 24%;
    border-color: rgba(214, 168, 95, .25);
}

.ambient--left {
    width: 560px;
    height: 560px;
    left: -340px;
    top: 38%;
    border: 1px solid rgba(42, 135, 255, .15);
}

.ambient--right {
    width: 720px;
    height: 720px;
    right: -420px;
    top: -300px;
    border: 1px solid rgba(42, 135, 255, .12);
}

.intro {
    position: relative;
    z-index: 30;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 56px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.brand b {
    color: var(--blue);
}

.brand__mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 10px 28px rgba(23, 89, 180, .12), inset 0 0 0 1px rgba(20, 105, 240, .14);
}

.brand__mark svg {
    width: 31px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.intro__copy {
    text-align: right;
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 64px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 800;
}

h1 span {
    color: var(--blue);
}

.intro__lead {
    max-width: 570px;
    margin: 16px 0 0 auto;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.deck {
    position: relative;
    z-index: 10;
    max-width: 1500px;
    min-height: min(66svh, 710px);
    margin: clamp(8px, 1vw, 18px) auto 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
}

.deck__stage {
    position: relative;
    width: 100%;
    height: min(66svh, 710px);
    min-height: 510px;
    perspective: 1800px;
    touch-action: pan-y pinch-zoom;
    outline: none;
}

.deck__halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(57vw, 780px);
    height: min(57vw, 780px);
    transform: translate(-50%, -46%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 215, 255, .19), rgba(18, 104, 243, .06) 44%, transparent 68%);
    pointer-events: none;
    animation: halo 7s ease-in-out infinite;
}

.deck__halo::before,
.deck__halo::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    border: 1px solid rgba(18, 104, 243, .18);
    animation: spin 24s linear infinite;
}

.deck__halo::after {
    inset: 27%;
    border-style: dashed;
    animation-duration: 17s;
    animation-direction: reverse;
}

.neuro-card {
    position: absolute;
    left: 50%;
    top: 48%;
    width: var(--card-w);
    height: var(--card-h);
    border-radius: clamp(22px, 2vw, 32px);
    cursor: default;
    transform-origin: 50% 88%;
    transform-style: preserve-3d;
    transition: transform .78s var(--ease),
    opacity .55s var(--ease),
    filter .55s var(--ease);
    will-change: transform;
    outline: none;
    user-select: none;
}

.neuro-card.is-active {
    cursor: pointer;
}

.neuro-card.is-active:focus-visible .card__inner {
    box-shadow: 0 0 0 4px rgba(18, 104, 243, .3), 0 30px 80px rgba(15, 62, 130, .24);
}

.card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-style: preserve-3d;
    transition: transform .9s var(--ease), box-shadow .45s ease;
    box-shadow: 0 24px 70px rgba(15, 54, 113, .18),
    0 2px 0 rgba(255, 255, 255, .9) inset;
}

.neuro-card.is-active:hover .card__inner {
    box-shadow: 0 34px 90px rgba(15, 70, 155, .28), 0 2px 0 rgba(255, 255, 255, .9) inset;
}

.neuro-card.is-flipped .card__inner {
    transform: rotateY(180deg);
}

.neuro-card.is-flipped .card__front {
    pointer-events: none;
}

.neuro-card.is-flipped .card__back {
    pointer-events: auto;
}

.card__face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, .88);
}

.card__front {
    pointer-events: auto;
}

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

.card__back {
    pointer-events: none;
    transform: rotateY(180deg);
    padding: clamp(22px, 2vw, 34px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 11px;
    /*background: radial-gradient(circle at 92% 4%, rgba(214, 168, 95, .18), transparent 28%),*/
    /*radial-gradient(circle at 4% 96%, rgba(88, 215, 255, .16), transparent 26%),*/
    /*rgba(251, 253, 255, .96);*/
    box-shadow: inset 0 0 0 1px rgba(18, 104, 243, .12);
}

.card__back::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: calc(clamp(22px, 2vw, 32px) - 10px);
    border: 1px solid rgba(18, 104, 243, .11);
    pointer-events: none;
}

.card__number {
    position: absolute;
    z-index: 3;
    top: clamp(20px, 1.7vw, 28px);
    right: clamp(22px, 1.8vw, 30px);
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.card__text {
    position: relative;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 30px 0 0;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    transform: translateZ(0);
    scrollbar-width: none;
}

.card__text::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.card__text p {
    margin: 0 0 13px;
    color: #172746;
    font-size: clamp(12.7px, .94vw, 15.2px);
    line-height: 1.47;
    letter-spacing: -.012em;
    text-wrap: pretty;
}

.card__text p:last-child {
    margin-bottom: 0;
}

.card__flip-hint {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
}

.card__flip-hint svg {
    width: 19px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-button {
    position: relative;
    z-index: 60;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(18, 104, 243, .17);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 35px rgba(14, 72, 154, .12);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}

.nav-button:hover {
    transform: scale(1.08);
    background: #fff;
    box-shadow: 0 18px 45px rgba(14, 72, 154, .2);
}

.nav-button:active {
    transform: scale(.95);
}

.nav-button:focus-visible {
    outline: 3px solid rgba(18, 104, 243, .27);
    outline-offset: 3px;
}

.nav-button svg {
    width: 24px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.controls {
    position: relative;
    z-index: 70;
    max-width: 1200px;
    margin: -12px auto 0;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 22px;
    padding: 13px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 18px 50px rgba(14, 72, 154, .11);
    backdrop-filter: blur(18px);
}

.counter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.counter span:first-child {
    color: var(--blue);
    font-size: 19px;
    font-weight: 800;
}

.counter i {
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), rgba(18, 104, 243, .12));
}

.flip-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    padding: 11px 16px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #1268f3, #3c9bff);
    box-shadow: 0 10px 24px rgba(18, 104, 243, .24);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    transition: transform .3s var(--ease), box-shadow .3s;
}

.flip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(18, 104, 243, .3);
}

.flip-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dots {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 104, 243, .2);
    cursor: pointer;
    transition: width .35s var(--ease), border-radius .35s, background .35s;
}

.dot.is-active {
    width: 25px;
    border-radius: 99px;
    background: var(--blue);
}

.dot:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.swipe-hint {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    color: rgba(8, 26, 63, .38);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.swipe-hint span {
    width: 28px;
    height: 1px;
    background: currentColor;
}

.sources p,
.sources ol,
.sources li {
  color: var(--muted);
  font-size: 11px;
}

.sources ol {
  /*padding-left: 0;*/
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes halo {
    0%, 100% {
        opacity: .75;
        transform: translate(-50%, -46%) scale(.96);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -46%) scale(1.04);
    }
}

@media (max-width: 1000px) {
    .intro {
        display: grid;
        gap: 24px;
    }

    .intro__copy {
        text-align: left;
        max-width: 760px;
    }

    .intro__lead {
        margin-left: 0;
    }

    .deck {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
    }

    .nav-button {
        width: 48px;
        height: 48px;
    }

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

@media (max-width: 720px) {
    :root {
        --card-w: min(82vw, 350px);
        --mobile-stage-pad: 86px;
    }

    html {
        scroll-behavior: auto;
    }

    body {
        min-height: 100dvh;
    }

    .experience {
        min-height: 100dvh;
        padding: calc(var(--nav-h) + max(14px, env(safe-area-inset-top))) 10px max(22px, env(safe-area-inset-bottom));
    }

    .brand {
        font-size: 18px;
    }

    .brand__mark {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .intro {
        gap: 17px;
    }

    h1 {
        font-size: clamp(31px, 10vw, 47px);
    }

    .intro__lead {
        font-size: 13px;
    }

    .deck {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        min-height: calc(var(--card-h) + var(--mobile-stage-pad));
        margin-top: 2px;
    }

    .deck__stage {
        height: calc(var(--card-h) + var(--mobile-stage-pad));
        min-height: 0;
        touch-action: pan-y pinch-zoom;
    }

    .deck__halo {
        width: min(118vw, 520px);
        height: min(118vw, 520px);
    }

    .nav-button {
        width: 36px;
        height: 36px;
    }

    .nav-button svg {
        width: 19px;
    }

    .neuro-card {
        top: 50%;
    }

    .card__back {
        padding: 20px;
        gap: 11px;
    }

    .card__back::before {
        inset: 9px;
    }

    .card__text {
        padding: 1px 25px 0 0;
        scroll-padding-block: 8px;
    }

    .card__text p {
        font-size: 12.5px;
        line-height: 1.44;
    }

    .card__scrollbar {
        top: 45px;
        right: 17px;
        bottom: 54px;
        width: 4px;
        opacity: .86;
    }

    .controls {
        margin-top: 0;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .flip-button {
        gap: 7px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 11.5px;
        white-space: nowrap;
    }

    .counter i {
        width: 20px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.is-active {
        width: 18px;
    }

    .swipe-hint {
        margin-top: 12px;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-height: 760px) and (min-width: 721px) {
    :root {
        --card-w: clamp(310px, 26vw, 385px);
    }

    .experience {
        padding-top: calc(var(--nav-h) + 22px);
    }

    .intro__lead {
        display: none;
    }

    .deck, .deck__stage {
        min-height: 530px;
        height: 66vh;
    }

    .controls {
        margin-top: -24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .neuro-card, .card__inner {
        transition-duration: .18s !important;
    }
}

/* v2: desktop click fix, compact heading and performance pass */
.intro {
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding-inline: 2px;
}

.intro__copy {
    flex: 1 1 auto;
    max-width: 960px;
}

h1 {
    font-size: clamp(26px, 2.75vw, 44px);
    line-height: 1.05;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.intro__lead {
    max-width: 760px;
    font-size: 13px;
    margin-top: 10px;
}

.deck {
    margin-top: clamp(2px, .5vw, 8px);
}

.neuro-card {
    transform: translate3d(calc(-50% + var(--card-x, 0px)), calc(-50% + var(--card-y, 0px)), var(--card-z, 0px)) rotateZ(var(--card-r, 0deg)) scale(var(--card-s, 1));
    transition: transform .64s var(--ease), opacity .45s var(--ease);
    contain: layout style paint;
}

.card__inner {
    transition: transform .72s var(--ease), box-shadow .32s ease;
}

.deck__halo {
    animation: none;
    opacity: .9;
}

.deck__halo::before,
.deck__halo::after {
    animation: none;
}

.nav-button,
.controls {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .92);
}

.ambient {
    filter: none;
}

@media (max-width: 1000px) {
    .intro {
        align-items: flex-start;
    }

    h1 {
        white-space: normal;
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: clamp(28px, 8.5vw, 42px);
        line-height: 1.02;
    }

    .intro__lead {
        margin-top: 9px;
    }
}


/* v3: mobile scroll and viewport resilience */
@media (max-width: 390px) {
    :root {
        --card-w: min(80vw, 318px);
        --mobile-stage-pad: 78px;
    }

    .experience {
        padding-inline: 8px;
    }

    .deck {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .nav-button {
        width: 33px;
        height: 33px;
    }

    .card__back {
        padding: 18px;
    }

    .card__text p {
        font-size: 12px;
        line-height: 1.42;
    }

    .controls {
        border-radius: 18px;
    }

    .dots {
        gap: 5px;
    }
}

@media (max-width: 720px) and (orientation: landscape) {
    :root {
        --card-w: min(42vw, 300px);
        --mobile-stage-pad: 62px;
    }

    .intro {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .intro__copy {
        min-width: 0;
    }

    .eyebrow, .intro__lead {
        display: none;
    }

    h1 {
        font-size: clamp(25px, 5vw, 38px);
    }

    .deck {
        margin-top: 4px;
    }

    .card__back {
        padding: 16px 18px;
        gap: 9px;
    }

    .card__text p {
        font-size: 11.5px;
        line-height: 1.38;
        margin-bottom: 10px;
    }

    .card__flip-hint {
        font-size: 10px;
    }
}

@supports not (overflow: clip) {
    html, .experience {
        overflow-x: hidden;
    }
}


/* v4: refined back side and simplified control strip */
.card__back {
    isolation: isolate;
}

.card__text {
    z-index: 1;
}

.card__flip-hint {
    z-index: 2;
}

@media (max-width: 720px) {
    .card__number {
        top: 19px;
        right: 21px;
        font-size: 10px;
    }

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

    .dots {
        justify-self: end;
    }
}

@media (max-width: 390px) {
    .card__number {
        top: 17px;
        right: 19px;
    }

    .card__text {
        padding-right: 23px;
    }
}


/* v5: unified flip label and persistent scroll indicator */
.card__text {
    scrollbar-width: none;
    padding-right: 31px;
}

.card__text::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.card__scrollbar {
    position: absolute;
    z-index: 4;
    top: 56px;
    right: 20px;
    bottom: 58px;
    width: 4px;
    border-radius: 999px;
    background: rgba(18, 104, 243, .11);
    pointer-events: none;
    opacity: .72;
}

.card__scrollbar span {
    display: block;
    width: 100%;
    min-height: 34px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(18, 104, 243, .42), rgba(18, 104, 243, .72));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .68), 0 3px 12px rgba(18, 104, 243, .18);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.card__scrollbar:not(.is-scrollable) span {
    opacity: .38;
}

.flip-button {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .flip-button span {
        display: inline;
    }

    .flip-button {
        gap: 7px;
        padding: 10px 12px;
        font-size: 11.5px;
        justify-self: start;
    }

    .flip-button svg {
        width: 17px;
        flex: 0 0 auto;
    }

    .card__text {
        padding-right: 25px;
    }

    .card__scrollbar {
        top: 45px;
        right: 17px;
        bottom: 54px;
        width: 4px;
        opacity: .82;
    }
}

@media (max-width: 390px) {
    .controls {
        gap: 7px;
        padding-inline: 10px;
    }

    .flip-button {
        gap: 6px;
        padding: 9px 10px;
        font-size: 11px;
    }

    .flip-button svg {
        width: 16px;
    }

    .card__scrollbar {
        top: 43px;
        right: 15px;
        bottom: 51px;
    }
}

/* v6: confident mobile horizontal swipe without blocking vertical page/text scrolling */
.deck__stage,
.neuro-card,
.card__front,
.card__back {
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.card__text {
    touch-action: pan-y;
    -webkit-user-select: text;
    user-select: text;
}

.neuro-card {
    transform: translate3d(
            calc(-50% + var(--card-x, 0px)),
            calc(-50% + var(--card-y, 0px)),
            var(--card-z, 0px)
    ) rotateZ(var(--card-r, 0deg)) scale(var(--card-s, 1));
}

.deck__stage.is-horizontal-drag .card__inner {
    pointer-events: none;
}

@media (max-width: 720px) {
    .deck__stage {
        touch-action: pan-y pinch-zoom;
        overscroll-behavior-x: none;
    }

    .neuro-card.is-active {
        cursor: grab;
    }
}

/* v7: robust mouse drag + touch swipe, no external carousel library */
.deck__stage,
.neuro-card,
.card__front,
.card__back {
    touch-action: pan-y pinch-zoom;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
}

.card__front img {
    -webkit-user-drag: none;
    user-drag: none;
}

.deck__stage.is-gesture-active,
.deck__stage.is-gesture-active .neuro-card {
    cursor: grabbing;
}

.deck__stage.is-horizontal-drag,
.deck__stage.is-horizontal-drag * {
    -webkit-user-select: none !important;
    user-select: none !important;
}

.deck__stage.is-horizontal-drag .card__inner {
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .deck__stage {
        cursor: grab;
    }

    .deck__stage.is-gesture-active {
        cursor: grabbing;
    }
}

/* v8: stable swipe — the deck no longer follows the pointer before release. */
.deck__stage:focus,
.deck__stage:focus-visible {
    outline: none;
}

.deck__stage.is-horizontal-drag .neuro-card {
    cursor: grabbing;
}


/* v9: clean heading — brand, eyebrow and helper copy removed. */
.intro {
    display: block;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 0;
}

.intro__copy {
    max-width: 760px;
    margin: 0;
    text-align: left;
}

h1 {
    font-size: clamp(24px, 2.15vw, 36px);
    line-height: 1.08;
    letter-spacing: -.035em;
    white-space: normal;
}

@media (max-width: 720px) {
    .intro {
        gap: 0;
    }

    h1 {
        font-size: clamp(25px, 7.1vw, 34px);
        line-height: 1.06;
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: clamp(24px, 7.4vw, 31px);
    }
}


/* v10: iPhone-stable navigation and deterministic deck controls.
   On mobile the arrow buttons are positioned against the deck itself,
   not as grid columns. This avoids Safari viewport/grid rounding drift. */
@media (max-width: 720px) {
    .deck {
        display: block;
        position: relative;
        width: 100%;
        min-height: calc(var(--card-h) + var(--mobile-stage-pad));
    }

    .deck__stage {
        width: 100%;
    }

    .nav-button {
        position: absolute;
        top: calc(50% - 18px);
        margin: 0;
        z-index: 90;
        flex: none;
    }

    .nav-button--prev {
        left: max(0px, env(safe-area-inset-left));
    }

    .nav-button--next {
        right: max(0px, env(safe-area-inset-right));
    }
}

@media (max-width: 390px) {
    .nav-button {
        top: calc(50% - 16.5px);
    }
}
