* {
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --panel: #111111;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --border: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 35%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.2), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
    animation: pageFade 0.8s ease both;
}

/* Soft animated background glow */
body::before {
    content: "";
    position: fixed;
    inset: -30%;
    z-index: -20;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.2), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.14), transparent 28%),
        radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.13), transparent 32%);
    filter: blur(45px);
    animation: backgroundMove 16s ease-in-out infinite alternate;
}

@keyframes pageFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes backgroundMove {
    from {
        transform: translate(-2%, -2%) scale(1);
    }

    to {
        transform: translate(2%, 3%) scale(1.08);
    }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 9999;
    background: linear-gradient(90deg, #ffffff, #7c3aed, #f59e0b, #38bdf8);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.portfolio-section {
    min-height: 100vh;
    padding: 80px 0 120px;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section-header {
    max-width: 760px;
    margin-bottom: 80px;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
}

.section-header h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.section-header p {
    max-width: 640px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

/* Header entrance */
.section-kicker,
.section-header h1,
.section-header p {
    opacity: 0;
    transform: translateY(24px);
    animation: headerReveal 0.8s ease forwards;
}

.section-kicker {
    animation-delay: 0.1s;
}

.section-header h1 {
    animation-delay: 0.22s;
}

.section-header p {
    animation-delay: 0.34s;
}

@keyframes headerReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky card stack */
#cards {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 120vh;
}

.card {
    position: sticky;
    top: calc(28px + var(--i) * 22px);
    margin-bottom: 80px;
}

.card:nth-of-type(1) {
    z-index: 1;
}

.card:nth-of-type(2) {
    z-index: 2;
}

.card:nth-of-type(4) {
    z-index: 3;
}

.card:nth-of-type(5) {
    z-index: 4;
}

.card:nth-of-type(6) {
    z-index: 5;
}

.card:nth-of-type(7) {
    z-index: 6;
}

.card-body {
    position: relative;
    min-height: 100vh;
    padding: clamp(26px, 5vw, 56px);
    border: 1px solid var(--border);
    border-radius: 42px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 48px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        #101010;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    isolation: isolate;
    opacity: 1;
    transform: translateY(40px) scale(0.97);
    transition:
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.card.is-visible .card-body {
    transform: translateY(0) scale(1);
}

.card-body::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -2;
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.09), transparent 34%),
        linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.card-body::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    opacity: 0.28;
}

.card-body:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 50px 150px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Mouse spotlight */
.spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
            rgba(255, 255, 255, 0.16),
            transparent 34%);
    transition: opacity 0.3s ease;
}

.card-body:hover .spotlight {
    opacity: 1;
}

.project-copy,
.project-visual {
    position: relative;
    z-index: 1;
}

.project-number {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-copy h2 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(38px, 5.5vw, 55px);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.project-copy p {
    max-width: 500px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tags span {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #e5e5e5;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.tags span:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #050505;
}

.btn.primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(110deg,
            transparent,
            rgba(255, 255, 255, 0.75),
            transparent);
    transform: skewX(-18deg);
    transition: left 0.7s ease;
}

.btn.primary:hover::after {
    left: 130%;
}

.btn.secondary {
    border: 1px solid var(--border);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* Visual area */
.project-visual {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-frame,
.glass-panel {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(-2deg);
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.browser-top {
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid var(--border);
}

.browser-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.browser-frame img,
.glass-panel img,
.phone-frame img,
.collage-visual img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-frame img {
    aspect-ratio: 16 / 10;
}

.card-body:hover .browser-frame,
.card-body:hover .glass-panel {
    transform: translateY(-10px) rotate(0deg);
}

.card-body:hover .browser-frame img,
.card-body:hover .glass-panel img,
.card-body:hover .phone-frame img,
.card-body:hover .collage-visual img {
    transform: scale(1.04);
}

.floating-stat {
    position: absolute;
    left: -18px;
    bottom: 36px;
    max-width: 230px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: softPulse 4.5s ease-in-out infinite;
}

.floating-stat strong,
.floating-stat span {
    display: block;
}

.floating-stat strong {
    font-size: 16px;
}

.floating-stat span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

@keyframes softPulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Phone app visual */
.phone-visual {
    gap: 20px;
}

.phone-frame {
    width: min(260px, 44%);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 36px;
    background: #050505;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.phone-frame img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 26px;
}

.phone-one {
    transform: rotate(-7deg) translateY(24px);
}

.phone-two {
    transform: rotate(7deg) translateY(-24px);
}

.card-body:hover .phone-one {
    transform: rotate(-4deg) translateY(8px);
}

.card-body:hover .phone-two {
    transform: rotate(4deg) translateY(-34px);
}

/* Finance app visual */
.app-card-visual .glass-panel {
    width: min(420px, 80%);
    padding: 12px;
    border-radius: 34px;
    transform: rotate(3deg);
}

.app-card-visual .glass-panel img {
    aspect-ratio: 9 / 14;
    border-radius: 24px;
}

.mini-card {
    position: absolute;
    min-width: 150px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: softPulse 4.5s ease-in-out infinite;
}

.mini-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.mini-card strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.top-card {
    top: 30px;
    right: 20px;
}

.bottom-card {
    bottom: 42px;
    left: 0;
}

/* Photography collage */
.collage-visual {
    display: block;
}

.collage-main {
    width: 78%;
    height: 430px;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.collage-small {
    position: absolute;
    width: 34%;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.collage-small.one {
    right: 0;
    top: 22px;
    transform: rotate(5deg);
}

.collage-small.two {
    right: 8%;
    bottom: 12px;
    transform: rotate(-4deg);
}

.card-body:hover .collage-main {
    transform: translateY(-10px);
}

.card-body:hover .collage-small.one {
    transform: translateY(-16px) rotate(3deg);
}

.card-body:hover .collage-small.two {
    transform: translateY(10px) rotate(-3deg);
}

/* Skill stack board */
.stack-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.stack-summary div {
    min-width: 126px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.stack-summary strong,
.stack-summary span {
    display: block;
}

.stack-summary strong {
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
}

.stack-summary span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.tech-visual {
    align-items: stretch;
}

.skill-stack-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(520px, 100%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(10, 10, 10, 0.84);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.skill-stack-board::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.stack-column {
    position: relative;
    z-index: 1;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.stack-column+.stack-column {
    margin-top: 0;
}

.stack-label {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.stack-column.compact .stack-grid {
    grid-template-columns: 1fr;
}

.tool-chip {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    min-height: 52px;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.tool-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
}

.tool-chip span:last-child {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
}

.tool-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-size: 11px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tool-icon.wordpress {
    background: #9bd8ff;
}

.tool-icon.php {
    background: #b9b7ff;
}

.tool-icon.db {
    background: #f7c66a;
}

.tool-icon.laravel {
    background: #ff8a80;
}

.tool-icon.html {
    background: #ffb15c;
}

.tool-icon.css {
    background: #76c7ff;
}

.tool-icon.js {
    background: #ffe16a;
}

.tool-icon.flutter {
    background: #78e3ff;
}

.tool-icon.woo {
    background: #d8b4fe;
}

.tool-icon.shopify {
    background: #b7f47a;
}

.tool-icon.ga {
    background: #ffc857;
}

.tool-icon.gsc {
    background: #8ee3a7;
}

.tool-icon.cloudflare {
    background: #ffbf6b;
}

.tool-icon.figma {
    background: #ff9cc8;
}

.stack-focus {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 55%);
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent), transparent 88%);
}

.stack-focus span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stack-focus strong {
    color: #ffffff;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .portfolio-section {
        padding-top: 48px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .card {
        top: 20px;
        margin-bottom: 48px;
    }

    .card-body {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 30px;
    }

    .project-visual {
        min-height: 360px;
    }

    .floating-stat {
        left: 18px;
        bottom: 18px;
    }

    .phone-frame {
        width: min(220px, 46%);
    }

    .collage-main {
        width: 86%;
        height: 330px;
    }

    .skill-stack-board {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .card {
        position: relative;
        top: auto;
    }

    .card-body {
        padding: 24px;
    }

    .project-copy h2 {
        font-size: 42px;
    }

    .project-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .project-visual {
        min-height: 300px;
    }

    .phone-frame {
        width: 48%;
        padding: 7px;
        border-radius: 28px;
    }

    .phone-frame img {
        border-radius: 21px;
    }

    .mini-card {
        display: none;
    }

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

    .stack-summary div {
        min-width: 0;
    }

    .skill-stack-board {
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 24px;
    }

    .stack-column {
        padding: 12px;
    }

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

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .card-body {
        transform: none !important;
    }
}

/* ================================
   Definitive Sticky Stack Fix
================================ */

#cards {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    isolation: isolate;
}

.card {
    position: sticky;
    top: calc(28px + var(--i) * 22px);
    margin-bottom: 80px;
    z-index: calc(10 + var(--i));
    transform: translateZ(0);
    will-change: transform;
}

.stack-spacer {
    display: block;
    height: 180vh;
    pointer-events: none;
}

/* Stop the main sticky card from visually shifting */
.card-body {
    transform: none !important;
}

.card.is-visible .card-body {
    transform: none !important;
}

/* Stop continuous movement that makes card 3 look like it is moving */
.card.is-visible .browser-frame,
.card.is-visible .phone-one,
.card.is-visible .phone-two,
.card.is-visible .glass-panel,
.card.is-visible .collage-main,
.card.is-visible .collage-small.one,
.card.is-visible .collage-small.two {
    animation: none !important;
}

.floating-stat,
.mini-card {
    animation: none !important;
}

@media (max-width: 560px) {
    .stack-spacer {
        display: none;
    }

    .card {
        position: relative;
        top: auto;
        z-index: auto;
    }
}

/* ================================
   Scroll-Reveal Screenshot Gallery
================================ */

.has-scroll-gallery {
    margin-bottom: 80px;
}

.gallery-scroll-spacer {
    display: block;
    height: 320vh;
    margin: -80px 0 80px;
    pointer-events: none;
}

.skill-links {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.skill-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.skill-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(6px);
}

.link-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-size: 10px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.link-icon.wordpress {
    background: #9bd8ff;
}

.link-icon.shopify {
    background: #b7f47a;
}

.scroll-gallery {
    position: relative;
    min-height: 500px;
}

.gallery-stage {
    position: relative;
    width: 100%;
    height: min(520px, 58vh);
}

.gallery-shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(60px) scale(0.94) rotate(-2deg);
    pointer-events: none;
    transition:
        opacity 0.55s ease,
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-shot.is-active {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    pointer-events: auto;
    z-index: 2;
}

.gallery-shot .browser-frame {
    width: 100%;
    transform: none;
}

.gallery-shot .browser-frame img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.shot-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    max-width: 320px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.shot-caption strong,
.shot-caption span {
    display: block;
}

.shot-caption strong {
    color: #ffffff;
    font-size: 15px;
}

.shot-caption span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.gallery-progress {
    position: absolute;
    right: -24px;
    top: 50%;
    z-index: 5;
    display: grid;
    gap: 10px;
    transform: translateY(-50%);
}

.gallery-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    transition:
        height 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-dot.is-active {
    height: 34px;
    background: var(--accent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent), transparent 45%);
}

@media (max-width: 900px) {
    .gallery-scroll-spacer {
        display: none;
    }

    .gallery-stage {
        height: auto;
        display: grid;
        gap: 18px;
    }

    .gallery-shot {
        position: relative;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .gallery-progress {
        display: none;
    }
}

@media (max-width: 560px) {
    .shot-caption {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 12px;
    }
}