:root {
    --v-dark: #0a0a0b;
    --v-panel: #101012;
    --v-light: #f2f1ee;
    --v-muted: #8a8a85;
    --v-accent: #c2a151;
    --v-rule: rgba(242, 241, 238, 0.12);

    --pad-x: 1.5rem;
    --section-y: 7rem;
}

@media (min-width: 768px) {
    :root {
        --pad-x: 3rem;
        --section-y: 11rem;
    }
}

@media (min-width: 1280px) {
    :root { --pad-x: 6rem; }
}

body {
    background-color: var(--v-dark);
    color: var(--v-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::selection {
    background: var(--v-accent);
    color: var(--v-dark);
}

/* ---------- Layout primitives ---------- */

.shell {
    max-width: 96rem;
    margin: 0 auto;
    padding-inline: var(--pad-x);
}

.section {
    padding-block: var(--section-y);
}

.section-studio { background-color: var(--v-dark); }
.section-work   { background-color: var(--v-panel); }
.section-bts    { background-color: var(--v-dark); }

.section-head {
    margin-bottom: 5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--v-rule);
}

.section-intro {
    margin-top: 1.5rem;
    max-width: 34rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--v-muted);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v-muted);
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: var(--v-accent);
    flex-shrink: 0;
}

/* ---------- Accessibility ---------- */

.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--v-light);
    color: var(--v-dark);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

:focus-visible {
    outline: 2px solid var(--v-accent);
    outline-offset: 4px;
}

/* Keyboard users need a real pointer back; see main.js */
body.using-keyboard,
body.using-keyboard * {
    cursor: auto !important;
}

body.using-keyboard .cursor-dot,
body.using-keyboard .cursor-outline {
    opacity: 0;
}

/* ---------- Custom cursor (mouse / trackpad only) ---------- */

@media (pointer: fine) {
    body { cursor: none; }

    .cursor-dot,
    .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
    }

    .cursor-dot {
        width: 6px;
        height: 6px;
        background-color: var(--v-light);
        mix-blend-mode: difference;
    }

    .cursor-outline {
        width: 32px;
        height: 32px;
        border: 1px solid rgba(242, 241, 238, 0.45);
        transition: width 0.15s ease-out, height 0.15s ease-out, background-color 0.15s ease-out;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Inter', sans-serif;
        font-size: 9px;
        font-weight: 500;
        color: transparent;
        text-transform: uppercase;
        letter-spacing: 1px;
        mix-blend-mode: difference;
    }

    .cursor-outline.hover-video {
        width: 80px;
        height: 80px;
        background-color: var(--v-light);
        color: var(--v-dark);
        mix-blend-mode: normal;
        border-color: transparent;
    }

    .cursor-outline.hover-img {
        width: 60px;
        height: 60px;
        background-color: rgba(242, 241, 238, 0.85);
        border-color: transparent;
        color: var(--v-dark);
        mix-blend-mode: normal;
    }
}

/* ---------- Navigation ---------- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--pad-x);
    color: var(--v-light);
    transition: background-color 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
    background-color: rgba(10, 10, 11, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--v-rule);
    padding-block: 1rem;
}

.nav-link {
    position: relative;
    padding-block: 2px;
    color: var(--v-light);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--v-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover { color: var(--v-accent); }

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--v-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 49;
    background-color: var(--v-dark);
    display: flex;
    align-items: center;
    padding-inline: var(--pad-x);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.mobile-menu-inner a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(2rem, 9vw, 3.25rem);
    line-height: 1;
    color: var(--v-light);
}

.mobile-menu-inner .mm-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--v-accent);
}

/* ---------- Sub-page masthead ---------- */

.page-head {
    padding-top: clamp(9rem, 22vh, 15rem);
    padding-bottom: clamp(3rem, 8vh, 6rem);
    background-color: var(--v-dark);
}

.page-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(2.75rem, 9vw, 8rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--v-light);
}

.page-title .italic {
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    color: var(--v-muted);
}

.page-intro {
    margin-top: 2rem;
    max-width: 36rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(242, 241, 238, 0.7);
}

.nav-link.is-current { color: var(--v-accent); }

.nav-link.is-current::after {
    transform: scaleX(1);
    transform-origin: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 5rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--v-muted);
    transition: color 0.3s ease;
}

.back-link:hover { color: var(--v-light); }

.back-link-arrow {
    position: relative;
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.back-link-arrow::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-bottom: 1px solid currentColor;
    border-left: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.back-link:hover .back-link-arrow { transform: translateX(-4px); }

/* Roomier two-up on the dedicated page — the stills get to breathe */
@media (min-width: 900px) {
    .bts-grid--page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem;
    }
}

/* ---------- Showreel ---------- */

.showreel-head {
    padding-top: clamp(8rem, 20vh, 13rem);
    padding-bottom: clamp(2rem, 5vh, 3.5rem);
    background-color: var(--v-dark);
}

.showreel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(3rem, 13vw, 12rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--v-light);
}

.showreel-title .italic {
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    color: var(--v-accent);
}

.showreel-section {
    padding-bottom: var(--section-y);
    background-color: var(--v-dark);
}

/* The stage starts inset and opens out to full width as it enters view. */
.showreel-stage {
    position: relative;
    width: 100%;
    padding-inline: var(--pad-x);
    transform-origin: center top;
    will-change: transform;
}

.yt-facade {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}

.yt-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.yt-facade:hover .yt-poster { transform: scale(1.03); }

.yt-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.62) 70%, rgba(10,10,11,0.82) 100%);
    transition: opacity 0.5s ease;
}

/* Play control */
.yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: clamp(6.5rem, 13vw, 10rem);
    height: clamp(6.5rem, 13vw, 10rem);
    background: none;
    border: none;
    padding: 0;
    color: var(--v-light);
}

.yt-play-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(242, 241, 238, 0.35);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.5s ease;
}

.yt-play-ring::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(194, 161, 81, 0.55);
    animation: ring-spin 18s linear infinite;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.yt-play-tri {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid var(--v-light);
    transition: border-left-color 0.4s ease, transform 0.4s ease;
}

.yt-play-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(242, 241, 238, 0.8);
    transition: color 0.4s ease;
}

.yt-facade:hover .yt-play-ring {
    transform: scale(1.08);
    border-color: var(--v-accent);
}

.yt-facade:hover .yt-play-tri { border-left-color: var(--v-accent); transform: scale(1.1); }
.yt-facade:hover .yt-play-label { color: var(--v-light); }

/* Corner ticks — a framing gate around the picture */
.stage-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(242, 241, 238, 0.35);
    transition: opacity 0.5s ease;
}

.stage-corner--tl { top: 18px; left: 18px;  border-top: 1px solid; border-left: 1px solid; }
.stage-corner--tr { top: 18px; right: 18px; border-top: 1px solid; border-right: 1px solid; }
.stage-corner--bl { bottom: 18px; left: 18px;  border-bottom: 1px solid; border-left: 1px solid; }
.stage-corner--br { bottom: 18px; right: 18px; border-bottom: 1px solid; border-right: 1px solid; }

/* Playing state */
.yt-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-facade.is-playing .yt-poster,
.yt-facade.is-playing .yt-scrim,
.yt-facade.is-playing .yt-play,
.yt-facade.is-playing .stage-corner {
    opacity: 0;
    pointer-events: none;
}

/* Cinema mode — the rest of the site steps back while the reel runs */
body.is-cinema { background-color: #000; }
body.is-cinema .site-nav { opacity: 0.25; }
body.is-cinema .grain-overlay { opacity: 0.018; }
body.is-cinema .marquee { opacity: 0.15; }
body.is-cinema .showreel-head { opacity: 0.3; }

body.is-cinema .site-nav,
body.is-cinema .grain-overlay,
body.is-cinema .marquee,
body.is-cinema .showreel-head {
    transition: opacity 0.8s ease;
}

/* Volume marquee */
.marquee {
    margin-top: clamp(2.5rem, 6vh, 4.5rem);
    overflow: hidden;
    border-block: 1px solid var(--v-rule);
    padding-block: 1.1rem;
    transition: opacity 0.8s ease;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: marquee-slide 42s linear infinite;
}

.marquee-track span {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.9rem);
    font-style: italic;
    color: rgba(242, 241, 238, 0.45);
    white-space: nowrap;
}

.marquee-track i {
    color: var(--v-accent);
    font-size: 0.7rem;
    font-style: normal;
}

@keyframes marquee-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.showreel-meta {
    margin-top: clamp(3rem, 8vh, 5.5rem);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.showreel-intro {
    max-width: 34rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(242, 241, 238, 0.7);
}

.showreel-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
}

.showreel-ext {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--v-light);
    transition: color 0.3s ease;
}

.showreel-ext:hover { color: var(--v-accent); }

.showreel-links .back-link { margin-top: 0; }

/* Secondary feature player — smaller than the main stage, same language */
.feature-video {
    margin-top: clamp(4rem, 10vh, 7rem);
    padding-top: clamp(3rem, 7vh, 5rem);
    border-top: 1px solid var(--v-rule);
}

.feature-video-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-video-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1;
    color: var(--v-light);
}

.feature-video-kicker {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v-muted);
}

.feature-video .yt-facade { box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.9); }

.feature-video .yt-play {
    width: clamp(5rem, 9vw, 7rem);
    height: clamp(5rem, 9vw, 7rem);
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track,
    .yt-play-ring::before { animation: none; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    height: 100svh;
    min-height: 34rem;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.35) 42%, rgba(10,10,11,0.15) 70%, rgba(10,10,11,0.55) 100%);
}

.hero-content {
    position: absolute;
    left: var(--pad-x);
    right: var(--pad-x);
    bottom: clamp(4.5rem, 12vh, 8rem);
    max-width: 60rem;
}

.hero-eyebrow { margin-bottom: 1.5rem; }

.hero-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--v-light);
}

.hero-title .italic {
    font-style: italic;
    font-weight: 500;
}

.hero-sub {
    margin-top: 1.75rem;
    max-width: 32rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(242, 241, 238, 0.75);
}

.scroll-cue {
    position: absolute;
    right: var(--pad-x);
    bottom: clamp(4.5rem, 12vh, 8rem);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--v-muted);
}

@media (min-width: 768px) {
    .scroll-cue { display: flex; }
}

.scroll-line {
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, var(--v-accent), transparent);
    animation: cue-slide 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cue-slide {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

/* ---------- Cinéma reel ---------- */

.reel-section {
    height: 100svh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--v-dark);
}

.reel-track {
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    padding-inline: var(--pad-x);
    gap: clamp(2rem, 6vw, 7rem);
}

.reel-item {
    flex-shrink: 0;
    width: 86vw;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .reel-item { width: 64vw; }
}

.reel-media {
    width: 100%;
    height: 58vh;
    overflow: hidden;
    background-color: #000;
}

@media (min-width: 768px) {
    .reel-media { height: 66vh; }
}

.reel-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.reel-vol {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v-accent);
    margin-bottom: 0.4rem;
}

.reel-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1;
    color: var(--v-light);
}

/* ---------- Behind the Scenes button ---------- */

.bts-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--v-rule);
    border-radius: 999px;
    background: transparent;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--v-light);
    transition: border-color 0.35s ease, color 0.35s ease;
    isolation: isolate;
}

/* gold wipe that fills from the left on hover */
.bts-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--v-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.bts-btn:hover {
    border-color: var(--v-accent);
    color: var(--v-dark);
}

.bts-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.bts-btn-label { position: relative; }

.bts-btn-arrow {
    position: relative;
    width: 1.15rem;
    height: 1px;
    background: currentColor;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.bts-btn-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.bts-btn:hover .bts-btn-arrow {
    transform: translateX(4px);
}

/* ---------- Work gallery ---------- */

/* Asymmetric editorial grid. Placement lives in named roles rather than
   per-item margins, so items can be added or reordered without re-tuning
   the whole composition. Landscape work takes the 6–7 column roles,
   portrait work the 4–5 column roles. */
.work-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 5rem);
    row-gap: clamp(4rem, 9vh, 7rem);
}

.work-grid > * { min-width: 0; }

.g-feature { grid-column: 1 / span 7; }
.g-inset   { grid-column: 9 / span 4;  margin-top: 10rem; }
.g-mid     { grid-column: 4 / span 6;  margin-top: -4rem; }
.g-left    { grid-column: 1 / span 4; }
.g-right   { grid-column: 6 / span 4;  margin-top: 8rem; }
.g-wide    { grid-column: 5 / span 7;  margin-top: -3rem; }
.g-tall    { grid-column: 1 / span 5;  margin-top: 2rem; }
.g-drift   { grid-column: 7 / span 5;  margin-top: 13rem; }
.g-step    { grid-column: 2 / span 4;  margin-top: -2rem; }
.g-echo    { grid-column: 8 / span 4;  margin-top: 6rem; }
.g-close   { grid-column: 3 / span 5;  margin-top: -1rem; }

/* Single column on mobile, but alternate an indent so the run of images
   keeps some editorial rhythm instead of becoming a flat stack. */
@media (max-width: 767px) {
    .work-grid {
        grid-template-columns: 1fr;
        row-gap: 4.5rem;
    }

    .work-grid > * {
        grid-column: 1 !important;
        margin-top: 0 !important;
    }

    .work-grid > *:nth-child(even) { padding-left: 14%; }
}

/* Work still awaiting its final file — keeps the composition readable
   without shipping a broken image. */
.img-pending {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--v-rule);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(242, 241, 238, 0.022) 0px,
        rgba(242, 241, 238, 0.022) 1px,
        transparent 1px,
        transparent 10px
    );
}

.img-pending span {
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(138, 138, 133, 0.55);
}

.img-wrap {
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.img-wrap img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    will-change: transform;
}

.img-wrap:hover img {
    transform: scale(1.03);
}

/* GSAP scrubs this one; the hover transition would fight it */
.img-wrap.scroll-scale img {
    transition: none;
}

.work-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--v-rule);
}

.work-caption-id {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
}

.work-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--v-accent);
}

.work-caption h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v-light);
}

.work-cat {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--v-muted);
    transition: color 0.4s ease;
}

.work-caption { transition: border-color 0.4s ease; }

.gallery-item:hover .work-caption { border-top-color: var(--v-accent); }
.gallery-item:hover .work-cat     { color: var(--v-light); }

/* ---------- Behind the Scenes section ---------- */

.bts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: 2.5rem;
}

.bts-card {
    border: 1px solid var(--v-rule);
    background-color: var(--v-panel);
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.bts-card.is-targeted {
    border-color: var(--v-accent);
}

.bts-still {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--v-rule);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(242, 241, 238, 0.025) 0px,
        rgba(242, 241, 238, 0.025) 1px,
        transparent 1px,
        transparent 9px
    );
}

.bts-still span {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(138, 138, 133, 0.6);
}

.bts-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.bts-index {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v-accent);
}

.bts-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--v-light);
}

.bts-credits {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bts-credits > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(242, 241, 238, 0.06);
}

.bts-credits dt {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v-muted);
}

.bts-credits dd {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--v-light);
}

.bts-note {
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(138, 138, 133, 0.75);
    font-style: italic;
}

/* ---------- Footer ---------- */

.footer {
    background-color: var(--v-panel);
    color: var(--v-light);
    padding-top: var(--section-y);
    padding-bottom: 3rem;
}

.footer-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(3.5rem, 13vw, 11rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--v-light);
    transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease;
}

.footer-title:hover {
    color: var(--v-accent);
    -webkit-text-stroke-color: var(--v-accent);
}

.footer-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v-muted);
    margin-bottom: 1.5rem;
}

.footer-mail {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    color: var(--v-light);
    transition: color 0.3s ease;
}

.footer-mail:hover {
    color: var(--v-accent);
    font-style: italic;
}

.footer-social {
    color: var(--v-light);
    transition: color 0.3s ease;
}

.footer-social:hover { color: var(--v-accent); }

/* ---------- Loader ---------- */

#loader {
    position: fixed;
    inset: 0;
    background-color: var(--v-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Film grain ---------- */

.grain-overlay {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 0.5s steps(2) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(-2%, 1%); }
    100% { transform: translate(1%, -2%); }
}

/* ---------- Gallery quick-nav ---------- */

.gallery-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gallery-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav .gnav-dot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    background: none;
    border: none;
    padding: 0.15rem 0;
}

.gallery-nav .gnav-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v-light);
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.gallery-nav .gnav-dot:hover .gnav-label,
.gallery-nav .gnav-dot.active .gnav-label {
    opacity: 1;
    transform: translateX(0);
}

.gallery-nav .gnav-circle {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(242, 241, 238, 0.3);
    transition: background-color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.gallery-nav .gnav-dot:hover .gnav-circle,
.gallery-nav .gnav-dot.active .gnav-circle {
    background-color: var(--v-accent);
    transform: scale(1.4);
}

@media (max-width: 767px) {
    .gallery-nav { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .grain-overlay,
    .scroll-line {
        animation: none;
    }

    .img-wrap:hover img {
        transform: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
