:root {
    --motion-primary: #f5c400;
    --motion-ink: #030712;
    --motion-line: rgba(255, 255, 255, 0.12);
    --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
    background: var(--motion-ink);
}

body {
    overflow-x: clip;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1200;
    pointer-events: none;
    background: rgba(255,255,255,.05);
}

.scroll-progress__bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #f5c400, #fff1a8, #f5c400);
    box-shadow: 0 0 18px rgba(245,196,0,.65);
    will-change: transform;
}

.cinematic-hero {
    min-height: calc(100svh - 72px) !important;
    isolation: isolate;
}

.cinematic-hero .hero-media {
    transform: translate3d(0, var(--hero-y, 0px), 0) scale(var(--hero-scale, 1.045));
    filter: saturate(.82) contrast(1.08);
    will-change: transform;
}

.cinematic-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 82%);
    mask-image: linear-gradient(90deg, transparent 25%, #000 82%);
}

.hero-scanline {
    position: absolute;
    inset: -30% -20%;
    z-index: 3;
    pointer-events: none;
    opacity: .32;
    background: linear-gradient(110deg, transparent 42%, rgba(245,196,0,.18) 49.6%, rgba(255,255,255,.22) 50%, transparent 50.5%);
    transform: translate3d(var(--hero-x, 0px), var(--hero-y-soft, 0px), 0);
    will-change: transform;
}

.hero-copy {
    max-width: 780px;
}

.hero-copy h1 {
    text-wrap: balance;
}

.hero-hud {
    position: absolute;
    right: clamp(1rem, 5vw, 6rem);
    bottom: clamp(5.5rem, 12vh, 9rem);
    z-index: 21;
    width: min(310px, 29vw);
    padding: 1.1rem;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 18px;
    background: rgba(3,7,18,.64);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-hud__top,
.hero-hud__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-hud__top {
    color: #d1d5db;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-hud__status {
    color: #86efac;
}

.hero-hud__status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 99px;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.hero-hud__graph {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 72px;
    margin: 1rem 0;
    padding: 0 .25rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.hero-hud__graph span {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #ffe56b, #f5c400 78%, rgba(245,196,0,.25));
    transform-origin: bottom;
    animation: hudPulse 2.8s var(--motion-ease) infinite alternate;
    animation-delay: var(--d);
}

.hero-hud__row {
    color: #9ca3af;
    font-size: .72rem;
    letter-spacing: .09em;
}

.hero-hud__row strong {
    color: #fff;
    font-weight: 700;
}

.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    z-index: 22;
    display: grid;
    place-items: center;
    gap: .55rem;
    color: rgba(255,255,255,.64);
    font-size: .66rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero-scroll-cue::after {
    content: "";
    width: 1px;
    height: 40px;
    background: linear-gradient(#f5c400, transparent);
    animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes hudPulse {
    from { transform: scaleY(.72); opacity: .7; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes scrollCue {
    0%, 100% { transform: scaleY(.45); transform-origin: top; opacity: .45; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.proof-grid [data-count] {
    font-variant-numeric: tabular-nums;
}

.nav-link.is-current {
    color: #fff;
}

.nav-link.is-current::after {
    width: 100%;
}

.scrolly-story {
    position: relative;
    z-index: 1;
    color: #fff;
    background:
        radial-gradient(circle at 70% 24%, rgba(245,196,0,.08), transparent 30%),
        #030712;
}

.story-intro {
    padding: clamp(5rem, 10vw, 9rem) 1rem clamp(3rem, 6vw, 5rem);
    text-align: center;
}

.story-intro__title {
    max-width: 980px;
    margin: 0 auto;
    font-size: clamp(2.5rem, 6vw, 6.25rem);
    font-weight: 760;
    letter-spacing: -.05em;
    line-height: .96;
    text-wrap: balance;
}

.story-intro__title em {
    color: var(--motion-primary);
    font-style: normal;
}

.story-intro__text {
    max-width: 680px;
    margin: 1.75rem auto 0;
    color: #9ca3af;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.7;
}

.story-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(3rem, 7vw, 8rem);
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: 8rem;
}

.story-stage-wrap {
    min-width: 0;
}

.story-stage {
    position: sticky;
    top: 92px;
    height: calc(100svh - 116px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 40px 100px rgba(0,0,0,.42);
}

.story-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3,7,18,.05), rgba(3,7,18,.72)),
        linear-gradient(90deg, rgba(3,7,18,.25), transparent 50%);
}

.story-stage__media,
.story-stage__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.story-stage__media {
    opacity: 0;
    transform: scale(1.07);
    transition: opacity .8s var(--motion-ease), transform 1.25s var(--motion-ease);
}

.story-stage__media img {
    object-fit: cover;
}

.story-stage__media.is-active {
    opacity: 1;
    transform: scale(1);
}

.story-stage__chrome {
    position: absolute;
    inset: 1rem 1rem auto;
    z-index: 7;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255,255,255,.72);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.story-stage__badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .75rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(3,7,18,.56);
    backdrop-filter: blur(12px);
}

.story-stage__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--motion-primary);
    box-shadow: 0 0 12px var(--motion-primary);
}

.story-stage__caption {
    position: absolute;
    left: clamp(1.25rem, 4vw, 3rem);
    right: clamp(1.25rem, 4vw, 3rem);
    bottom: clamp(1.5rem, 5vw, 3.5rem);
    z-index: 7;
}

.story-stage__caption strong {
    display: block;
    max-width: 610px;
    font-size: clamp(1.6rem, 3.1vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.story-stage__caption span {
    display: block;
    width: min(460px, 85%);
    height: 3px;
    margin-top: 1.35rem;
    overflow: hidden;
    background: rgba(255,255,255,.16);
}

.story-stage__caption span::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(var(--story-progress, 0));
    transform-origin: left;
    background: var(--motion-primary);
}

.story-steps {
    padding-top: 8vh;
}

.story-step {
    display: flex;
    min-height: 76vh;
    align-items: center;
    opacity: 1;
    transform: none;
}

.motion-capable .story-step {
    opacity: .38;
    transform: translateY(32px);
    transition: opacity .55s var(--motion-ease), transform .7s var(--motion-ease);
}

.motion-capable .story-step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.story-step__inner {
    width: 100%;
    padding: 1.75rem 0;
    border-top: 1px solid var(--motion-line);
}

.story-step__number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--motion-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.story-step__number::after {
    content: "";
    width: 44px;
    height: 1px;
    background: currentColor;
}

.story-step h3 {
    margin-top: 1.35rem;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 740;
    letter-spacing: -.045em;
    line-height: 1;
}

.story-step p {
    max-width: 560px;
    margin-top: 1.25rem;
    color: #9ca3af;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.72;
}

.story-step__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.35rem;
}

.story-step__meta span {
    padding: .5rem .7rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: #d1d5db;
    font-size: .72rem;
    letter-spacing: .08em;
    background: rgba(255,255,255,.035);
}

.story-outro {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 clamp(6rem, 12vw, 11rem);
    text-align: center;
}

.story-outro__line {
    width: 1px;
    height: 100px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(transparent, var(--motion-primary));
}

.story-outro h3 {
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.story-outro p {
    max-width: 650px;
    margin: 1.5rem auto 2rem;
    color: #9ca3af;
    font-size: 1.1rem;
}

.motion-capable [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .8s var(--motion-ease) var(--reveal-delay, 0ms),
        transform .9s var(--motion-ease) var(--reveal-delay, 0ms);
}

.motion-capable [data-reveal="left"] {
    transform: translate3d(-40px, 0, 0);
}

.motion-capable [data-reveal="right"] {
    transform: translate3d(40px, 0, 0);
}

.motion-capable [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.motion-capable .project-card img,
.motion-capable #gallery-grid img {
    transition: transform 1.1s var(--motion-ease), filter .8s ease;
}

.motion-capable .project-card:not(.is-visible) img {
    transform: scale(1.09);
    filter: saturate(.65);
}

.motion-capable .project-card.is-visible img {
    transform: scale(1);
    filter: saturate(1);
}

.gallery-showcase {
    position: relative;
    overflow: hidden;
    padding: clamp(5.5rem, 10vw, 9rem) 0;
    color: #fff;
    background: #050914;
    isolation: isolate;
}

.gallery-showcase__glow {
    position: absolute;
    top: 5%;
    right: -15%;
    width: min(720px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(245,196,0,.12);
    filter: blur(150px);
    opacity: .42;
    pointer-events: none;
}

.gallery-showcase__header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    align-items: end;
    gap: clamp(2rem, 8vw, 8rem);
    max-width: 1240px;
    margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
}

.gallery-showcase__header h2 {
    max-width: 780px;
    font-size: clamp(2.5rem, 5vw, 5.6rem);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: .96;
    text-wrap: balance;
}

.gallery-showcase__intro > p {
    max-width: 520px;
    color: #9ca3af;
    font-size: clamp(1rem, 1.5vw, 1.17rem);
    line-height: 1.7;
}

.gallery-showcase__proof {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.gallery-showcase__proof strong {
    color: var(--motion-primary);
    font-size: 2.35rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.gallery-showcase__proof span {
    color: #d1d5db;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gallery-editorial {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(260px, 1fr)) minmax(250px, .85fr);
    gap: clamp(.65rem, 1.3vw, 1rem);
    max-width: 1380px;
    min-height: 950px;
    margin: 0 auto;
}

.gallery-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: clamp(14px, 1.5vw, 22px);
    color: #fff;
    text-align: left;
    background: #111827;
    isolation: isolate;
}

.gallery-tile--hero {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
}

.gallery-tile--wide {
    grid-column: 8 / -1;
}

.gallery-tile--portrait {
    grid-column: span 4;
    grid-row: 3;
}

.gallery-tile > img,
.gallery-tile__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-tile > img {
    object-fit: cover;
    transform: scale(1.01);
    filter: saturate(.86) contrast(1.05);
    transition: transform .9s var(--motion-ease), filter .7s ease;
}

.gallery-tile--hero > img { object-position: 56% center; }
.gallery-tile--portrait > img { object-position: center 43%; }

.gallery-tile__shade {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(3,7,18,.02) 30%, rgba(3,7,18,.9) 100%),
        linear-gradient(90deg, rgba(3,7,18,.36), transparent 58%);
    transition: background .5s ease;
}

.gallery-tile__content {
    position: absolute;
    left: clamp(1rem, 2.6vw, 2rem);
    right: clamp(1rem, 2.6vw, 2rem);
    bottom: clamp(1rem, 2.6vw, 2rem);
    z-index: 2;
    display: grid;
    justify-items: start;
    gap: .55rem;
}

.gallery-tile__tag {
    color: var(--motion-primary);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.gallery-tile__content strong {
    max-width: 540px;
    font-size: clamp(1.15rem, 2.1vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.gallery-tile--hero .gallery-tile__content strong {
    font-size: clamp(1.8rem, 3.6vw, 4rem);
}

.gallery-tile__content small {
    color: rgba(255,255,255,.57);
    font-size: .62rem;
    letter-spacing: .12em;
}

.gallery-tile__open {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(3,7,18,.45);
    backdrop-filter: blur(10px);
    transition: color .25s ease, background .25s ease, transform .45s var(--motion-ease);
}

.gallery-tile:hover > img,
.gallery-tile:focus-visible > img {
    transform: scale(1.06);
    filter: saturate(1) contrast(1.04);
}

.gallery-tile:hover .gallery-tile__open,
.gallery-tile:focus-visible .gallery-tile__open {
    color: #050914;
    background: var(--motion-primary);
    transform: rotate(45deg);
}

.gallery-tile:focus-visible {
    outline: 2px solid var(--motion-primary);
    outline-offset: 4px;
}

.gallery-showcase__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1240px;
    margin: clamp(2rem, 4vw, 3.5rem) auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.gallery-showcase__footer p {
    max-width: 660px;
    color: #9ca3af;
    line-height: 1.65;
}

.gallery-showcase__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1.25rem;
    border-radius: 999px;
    color: #050914;
    font-weight: 800;
    background: var(--motion-primary);
    transition: background .2s ease, transform .3s var(--motion-ease);
}

.gallery-showcase__button:hover,
.gallery-showcase__button:focus-visible {
    background: #ffe36a;
    transform: translateY(-2px);
}

.gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: clamp(58px, 7vw, 98px) minmax(0, 1fr) clamp(58px, 7vw, 98px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    color: #fff;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,.075), transparent 38%),
        rgba(1, 3, 9, .985);
    opacity: 0;
    transition: opacity .28s ease;
}

.gallery-viewer.hidden {
    display: none;
}

.gallery-viewer.is-open {
    opacity: 1;
}

.gallery-viewer__topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
    padding: 1rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid rgba(255,255,255,.11);
    background: rgba(3,7,18,.66);
    backdrop-filter: blur(18px);
}

.gallery-viewer__eyebrow {
    display: block;
    color: var(--motion-primary);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.gallery-viewer__topbar strong {
    display: block;
    margin-top: .25rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.gallery-viewer__actions,
.gallery-viewer__close {
    display: flex;
    align-items: center;
}

.gallery-viewer__actions {
    gap: clamp(.75rem, 2vw, 1.5rem);
}

.gallery-viewer__counter {
    color: #d1d5db;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .1em;
}

.gallery-viewer__close {
    gap: .7rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: border-color .2s ease, background .2s ease;
}

.gallery-viewer__close span:last-child {
    font-size: 1.45rem;
    font-weight: 300;
    line-height: .7;
}

.gallery-viewer__close:hover,
.gallery-viewer__close:focus-visible {
    border-color: var(--motion-primary);
    background: rgba(245,196,0,.08);
}

.gallery-viewer__figure {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    display: grid;
    min-width: 0;
    min-height: 0;
    place-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.gallery-viewer__figure img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 175px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
    opacity: 1;
    transform: scale(1);
    transition: opacity .2s ease, transform .35s var(--motion-ease);
}

.gallery-viewer__figure.is-switching img {
    opacity: 0;
    transform: scale(.985);
}

.gallery-viewer__figure figcaption {
    position: absolute;
    left: 50%;
    bottom: .25rem;
    color: rgba(255,255,255,.58);
    font-size: .69rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
}

.gallery-viewer__nav {
    grid-row: 2;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.72);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 200;
    transition: color .2s ease, background .2s ease;
}

.gallery-viewer__nav--prev { grid-column: 1; }
.gallery-viewer__nav--next { grid-column: 3; }

.gallery-viewer__nav:hover,
.gallery-viewer__nav:focus-visible {
    color: var(--motion-primary);
    background: rgba(255,255,255,.035);
}

.gallery-viewer__progress {
    grid-column: 1 / -1;
    grid-row: 3;
    height: 3px;
    background: rgba(255,255,255,.08);
}

.gallery-viewer__progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--motion-primary);
    transition: transform .35s var(--motion-ease);
}

@media (max-width: 640px) {
    .gallery-viewer {
        grid-template-columns: 54px minmax(0, 1fr) 54px;
    }
    .gallery-viewer__topbar { min-height: 70px; }
    .gallery-viewer__eyebrow,
    .gallery-viewer__close span:first-child { display: none; }
    .gallery-viewer__close {
        width: 42px;
        height: 42px;
        justify-content: center;
        padding: 0;
    }
    .gallery-viewer__figure { padding: .75rem .2rem 2rem; }
    .gallery-viewer__figure img { max-height: calc(100svh - 128px); }
    .gallery-viewer__figure figcaption { bottom: .35rem; font-size: .58rem; }
}

@media (max-width: 1100px) {
    .hero-hud { display: none; }
    .story-shell {
        grid-template-columns: minmax(0, 1fr) minmax(310px, .82fr);
        gap: 2.5rem;
    }
}

@media (max-width: 780px) {
    .cinematic-hero {
        min-height: calc(100svh - 68px) !important;
    }
    .cinematic-hero::before { background-size: 42px 42px; }
    .hero-copy { padding-bottom: 2.5rem; }
    .hero-scroll-cue { display: none; }
    .story-intro { text-align: left; }
    .story-shell {
        display: block;
        width: min(100% - 1.25rem, 680px);
        padding-bottom: 4rem;
    }
    .story-stage {
        top: 76px;
        z-index: 2;
        height: 45svh;
        min-height: 300px;
        border-radius: 20px;
    }
    .story-stage__caption strong { font-size: clamp(1.45rem, 7vw, 2.25rem); }
    .story-steps {
        position: relative;
        z-index: 3;
        padding: 15vh .85rem 0;
    }
    .story-step {
        min-height: 66vh;
        align-items: end;
    }
    .story-step__inner {
        padding: 1.5rem;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 18px;
        background: rgba(3,7,18,.9);
        box-shadow: 0 24px 65px rgba(0,0,0,.46);
        backdrop-filter: blur(14px);
    }
    .story-step h3 { font-size: clamp(1.9rem, 9vw, 3rem); }
    .story-outro { text-align: left; }
    .story-outro__line { margin-left: 0; }
}

@media (max-width: 900px) {
    .gallery-showcase__header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.75rem;
    }
    .gallery-editorial {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 320px;
        min-height: 0;
    }
    .gallery-tile--hero {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 520px;
    }
    .gallery-tile--wide,
    .gallery-tile--portrait {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .gallery-showcase { padding: 5rem 0; }
    .gallery-editorial {
        grid-template-columns: 1fr;
        grid-auto-rows: 310px;
        gap: .75rem;
    }
    .gallery-tile--hero {
        grid-column: auto;
        min-height: 430px;
    }
    .gallery-tile__content strong,
    .gallery-tile--hero .gallery-tile__content strong {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }
    .gallery-showcase__footer {
        align-items: stretch;
        flex-direction: column;
    }
    .gallery-showcase__button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    .hero-scroll-cue,
    .hero-scanline { display: none; }
    .cinematic-hero .hero-media,
    .story-stage__media,
    .story-step,
    .motion-capable [data-reveal],
    .motion-capable .project-card img {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        filter: none !important;
    }
}
