/* ============================================================
   VFX HUNTERS — Brutalist Editorial Design System
   Matches Reference: "The Ambitious Lens by uvRaj"

   This file is everything the homepage, legal.html and for-agencies.php need: it
   does not depend on Bootstrap, Font Awesome or any template CSS.

    0. Fonts (self-hosted)
    1. Tokens, reset & base        9. Short form (vertical)
    2. Layout helpers              10. Graphics / design grid
    3. Buttons & tags              11. Clients marquee
    4. Header & mobile drawer      12. Services
    5. Hero & video marquee        13. About & stats
    6. Chapter header & counters   14. Contact
    7. Filter tabs                 15. Footer
    8. Featured box & media cards  16. Lightbox
                                   17. Parallax reveal, loading & responsive
                                   18. Inner pages (legal.html)
                                   19. For Agencies (for-agencies.php)
   ============================================================ */

/* ============================================================
   0. FONTS
   Served from this site (no third-party connection). Each file
   is a variable / single-weight latin subset; other scripts
   fall back to the system font.
   ============================================================ */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/space-grotesk/space-grotesk-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/space-mono/space-mono-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-mono/space-mono-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   1. TOKENS, RESET & BASE
   ============================================================ */
:root {
    --vfx-font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --vfx-font-mono: 'Space Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --vfx-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --vfx-bg: #070707;
    --vfx-surface: #0f0f0f;
    --vfx-surface-2: #161616;
    --vfx-border: rgba(255, 255, 255, 0.08);
    --vfx-border-hover: rgba(255, 255, 255, 0.25);

    --vfx-text: #eaeaea;
    --vfx-text-muted: #9a9a9a;
    --vfx-text-dim: #8a8a8a;
    --vfx-accent: #ffffff;

    --vfx-header-h: 72px;
    --vfx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Anchor jumps land below the fixed header */
    scroll-padding-top: calc(var(--vfx-header-h) + 8px);
}

body {
    margin: 0;
    background-color: var(--vfx-bg);
    color: var(--vfx-text);
    font-family: var(--vfx-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    counter-reset: chapter;
}

body.is-locked {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--vfx-font-sans);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

/* width/height attributes only reserve space; CSS decides the rendered size */
img {
    height: auto;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

::selection {
    background: #ffffff;
    color: #000000;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 2000;
    background: #ffffff;
    color: #000000;
    font-family: var(--vfx-font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 18px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

/* ============================================================
   2. LAYOUT HELPERS
   ============================================================ */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.chapter {
    position: relative;
    padding: 104px 0;
    border-top: 1px solid var(--vfx-border);
    counter-increment: chapter;
    overflow: hidden;
    overflow: clip;
}

/* Oversized outlined chapter number that drifts slower than the content.
   --chapter-shift is updated on scroll by vfx-home.js. */
.chapter::after {
    content: counter(chapter, decimal-leading-zero);
    position: absolute;
    top: 30px;
    right: 3vw;
    z-index: 0;
    font-family: var(--vfx-font-sans);
    font-size: clamp(130px, 24vw, 340px);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    translate: 0 calc(var(--chapter-shift, 0) * 1px);
}

.chapter > * {
    position: relative;
    z-index: 1;
}

.chapter--alt {
    background: #0a0a0a;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

/* ============================================================
   3. BUTTONS & TAGS
   ============================================================ */
.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 0;
    transition: background 0.25s var(--vfx-ease), color 0.25s var(--vfx-ease), border-color 0.25s var(--vfx-ease);
    cursor: pointer;
    white-space: nowrap;
}

.b-btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.b-btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

.b-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.b-btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.b-btn-lg {
    padding: 16px 38px;
    font-size: 12px;
}

.b-btn-block {
    width: 100%;
}

.b-btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* Non-interactive label (service capabilities) */
.b-tag {
    display: inline-block;
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #d6d6d6;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ============================================================
   4. HEADER & MOBILE DRAWER
   ============================================================ */
.ambitious-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--vfx-header-h);
    background: rgba(7, 7, 7, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--vfx-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.ambitious-header__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ambitious-brand {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0;
}

.ambitious-brand__title {
    font-family: var(--vfx-font-sans);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.ambitious-brand__sub {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    color: var(--vfx-text-dim);
    letter-spacing: 1px;
    white-space: nowrap;
}

.ambitious-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.ambitious-nav a {
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--vfx-text-muted);
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.ambitious-nav a:hover,
.ambitious-nav a.active {
    color: #ffffff;
}

.ambitious-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--vfx-ease);
}

.ambitious-nav a.active::after {
    transform: scaleX(1);
}

.ambitious-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ambitious-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ambitious-mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
}

.ambitious-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(330px, 88vw);
    background: #0d0d0d;
    border-right: 1px solid var(--vfx-border);
    z-index: 1100;
    padding: 26px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s var(--vfx-ease), visibility 0.35s;
}

.drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.drawer.is-open + .drawer-backdrop,
.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.drawer__close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.drawer__close:hover {
    background: #ffffff;
    color: #000000;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    counter-reset: drawer -1;
}

.drawer__nav li {
    counter-increment: drawer;
    border-bottom: 1px solid var(--vfx-border);
}

.drawer__nav a {
    display: block;
    padding: 15px 0;
    font-family: var(--vfx-font-mono);
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #dcdcdc;
    transition: color 0.2s ease, padding-left 0.25s var(--vfx-ease);
}

.drawer__nav a::before {
    content: counter(drawer, decimal-leading-zero) " // ";
    color: var(--vfx-text-dim);
}

.drawer__nav a:hover,
.drawer__nav a.active {
    color: #ffffff;
    padding-left: 6px;
}

.drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* ============================================================
   5. HERO & VIDEO MARQUEE
   ============================================================ */
.brutalist-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 130px 0 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Animated net behind the hero content. Stays invisible until the effect
   is really running, then fades in; it thins out towards the next chapter. */
.hero-net {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.8s ease;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

.hero-net.is-ready {
    opacity: 0.6;
}

.brutalist-hero > .hero-layer {
    position: relative;
    z-index: 1;
}

/* --hero-p runs from 0 (top of page) to 1 (hero scrolled away) */
.hero-layer {
    translate: 0 calc(var(--hero-p, 0) * var(--hero-drift, 0px));
    opacity: calc(1 - var(--hero-p, 0) * var(--hero-fade, 0));
}

.hero-layer--copy {
    --hero-drift: 130px;
    --hero-fade: 1.7;
}

.hero-layer--reel {
    --hero-drift: 60px;
    --hero-fade: 0.9;
}

.hero-layer--actions {
    --hero-drift: 20px;
    --hero-fade: 1.2;
}

.hero-main-title {
    font-size: clamp(40px, 8.5vw, 115px);
    font-weight: 400;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 12px;
}

.hero-subtitle-block {
    margin-bottom: 34px;
}

.brand-sub-title {
    font-family: var(--vfx-font-sans);
    font-size: 17px;
    letter-spacing: 2px;
    color: #b0b0b0;
    margin-bottom: 3px;
}

.brand-author {
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--vfx-text-dim);
}

.hero-discipline-tag {
    font-family: var(--vfx-font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #dedede;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-discipline-desc {
    font-size: 14px;
    color: var(--vfx-text-muted);
    margin-bottom: 40px;
}

/* Infinite carousel. Without JS (or with reduced motion) it is a plain
   horizontally scrollable strip; the script adds .is-running once it has
   cloned the cards for a seamless loop. */
.hero-video-marquee-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 10px 0 35px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.hero-video-marquee-wrap::-webkit-scrollbar {
    display: none;
}

.hero-video-marquee {
    --hero-gap: 22px;
    display: flex;
    width: max-content;
}

/* One full set of cards. The trailing padding equals the gap, so two sets
   side by side are exactly twice as wide as one: -50% is a perfect loop. */
.hero-marquee-set {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--hero-gap);
    padding-right: var(--hero-gap);
}

.hero-video-marquee.is-running {
    animation: heroMarqueeScroll var(--hero-marquee-duration, 48s) linear infinite;
    will-change: transform;
}

.hero-video-marquee-wrap:hover .hero-video-marquee,
.hero-video-marquee-wrap:focus-within .hero-video-marquee {
    animation-play-state: paused;
}

@keyframes heroMarqueeScroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.hero-video-card {
    flex: 0 0 380px;
    width: 380px;
    aspect-ratio: 16/9;
    background: #111111;
    border: 1px solid var(--vfx-border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    display: block;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Films swapped in from the admin's Highlights fade in over the placeholders */
.hero-video-card.is-fresh {
    animation: heroCardIn 0.6s ease both;
}

@keyframes heroCardIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-video-card:hover,
.hero-video-card:focus-visible {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--vfx-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
    z-index: 2;
}

.hero-video-card video,
.hero-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.65) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hero-video-card:hover .card-video-overlay,
.hero-video-card:focus-visible .card-video-overlay {
    opacity: 1;
}

/* Round play button shared by every card type */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s var(--vfx-ease), background 0.25s ease;
    pointer-events: none;
}

.play-icon::before {
    content: '';
    margin-left: 4px;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #ffffff;
}

.play-icon--sm {
    width: 44px;
    height: 44px;
}

a:hover > .play-icon,
a:hover .play-icon,
a:focus-visible .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.22);
}

/* "+" used on image galleries instead of the play triangle */
.zoom-icon::before,
.zoom-icon::after {
    content: '';
    position: absolute;
    margin: 0;
    border: 0;
    background: #ffffff;
}

.zoom-icon::before {
    width: 14px;
    height: 2px;
}

.zoom-icon::after {
    width: 2px;
    height: 14px;
}

/* Desktop: the hero strip stays clean until a card is hovered */
@media (hover: hover) {
    .hero-video-card .play-icon {
        opacity: 0;
        transition: opacity 0.25s ease, transform 0.25s var(--vfx-ease), background 0.25s ease;
    }

    .hero-video-card:hover .play-icon,
    .hero-video-card:focus-visible .play-icon {
        opacity: 1;
    }
}

.card-video-title {
    font-family: var(--vfx-font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.card-video-category {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #b4b4b4;
    text-transform: uppercase;
}

.hero-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.scroll-indicator-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-indicator-text {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--vfx-text-dim);
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.scroll-indicator-wrap:hover .scroll-indicator-text {
    color: #ffffff;
}

.scroll-dot-circle {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-dot-circle::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ============================================================
   6. CHAPTER HEADER & COUNTERS
   ============================================================ */
.chapter-header {
    margin-bottom: 45px;
}

.chapter-marker {
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--vfx-text-dim);
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Numbers follow the visible sections, so hiding an empty one never leaves a gap */
.chapter .chapter-header > .chapter-marker::before,
.chapter .chapter-marker--numbered::before {
    content: counter(chapter, decimal-leading-zero) " // ";
}

.chapter-title {
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.chapter-title span {
    color: #b9b9b9;
}

.chapter-subtitle {
    font-size: 15px;
    color: var(--vfx-text-muted);
    max-width: 600px;
}

/* ============================================================
   7. FILTER TABS
   ============================================================ */
.chapter-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--vfx-border);
}

.chapter-filter-btn {
    background: transparent;
    border: none;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--vfx-text-dim);
    padding: 12px 0 14px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.chapter-filter-btn:hover,
.chapter-filter-btn.active {
    color: #ffffff;
}

.chapter-filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--vfx-ease);
}

.chapter-filter-btn.active::after {
    transform: scaleX(1);
}

.chapter-filter-btn sup {
    font-size: 9px;
    margin-left: 5px;
    color: var(--vfx-text-dim);
}

/* ============================================================
   8. FEATURED BOX & MEDIA CARDS
   ============================================================ */
.featured-showcase-box {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f0f0f;
    border: 1px solid var(--vfx-border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
    transition: border-color 0.3s ease;
}

.featured-showcase-box:hover {
    border-color: var(--vfx-border-hover);
}

.featured-showcase-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--vfx-ease);
}

/* Parallax frame: the picture is slightly larger than its window and slides
   inside it as the page scrolls (--py is set by vfx-home.js). */
.parallax-media {
    overflow: hidden;
}

.js-parallax .parallax-media > img {
    scale: 1.16;
    translate: 0 calc(var(--py, 0) * 1px);
}

.featured-showcase-box:hover img {
    transform: scale(1.025);
}

.featured-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.3s var(--vfx-ease), background 0.3s ease, color 0.3s ease;
}

.featured-showcase-box:hover .featured-play-badge,
.featured-showcase-box:focus-visible .featured-play-badge {
    transform: translate(-50%, -50%) scale(1.08);
    background: #ffffff;
    color: #000000;
}

.featured-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 28px 24px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.featured-caption__title {
    font-family: var(--vfx-font-sans);
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
}

.featured-caption__meta {
    font-size: 13px;
    color: #b4b4b4;
}

/* Grid of 16:9 cards (Selected Work + Motion) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
}

.media-card {
    display: block;
    min-width: 0;
}

.media-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #111111;
    border: 1px solid var(--vfx-border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s var(--vfx-ease), border-color 0.3s ease;
}

.media-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--vfx-ease);
}

.media-card:hover .media-card__thumb,
.media-card:focus-visible .media-card__thumb {
    transform: translateY(-4px);
    border-color: var(--vfx-border-hover);
}

.media-card:hover .media-card__thumb img {
    transform: scale(1.04);
}

.media-card__count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    padding: 3px 7px;
}

.media-card__body {
    display: block;
    margin-top: 16px;
}

.media-card__title {
    display: block;
    font-family: var(--vfx-font-sans);
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    margin-top: 5px;
}

.media-card__meta {
    display: block;
    font-size: 13px;
    color: var(--vfx-text-dim);
    margin-top: 4px;
}

.section-empty {
    grid-column: 1 / -1;
    padding: 48px 0;
    text-align: center;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vfx-text-dim);
}

/* ============================================================
   9. SHORT FORM (VERTICAL)
   ============================================================ */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 24px;
}

.shortform-card {
    display: block;
    min-width: 0;
}

.shortform-card__video-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 9/16;
    background: #111111;
    border: 1px solid var(--vfx-border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    transition: transform 0.3s var(--vfx-ease), border-color 0.3s ease;
}

.shortform-card:hover .shortform-card__video-wrap,
.shortform-card:focus-visible .shortform-card__video-wrap {
    transform: translateY(-4px);
    border-color: var(--vfx-border-hover);
}

.shortform-card__video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--vfx-ease);
}

.shortform-card:hover .shortform-card__video-wrap img {
    transform: scale(1.04);
}

.shortform-duration-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 2px;
}

.shortform-meta-tag {
    display: block;
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--vfx-text-dim);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.shortform-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-family: var(--vfx-font-sans);
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
}

.swipe-hint {
    display: none;
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vfx-text-dim);
    margin-top: 6px;
}

/* ============================================================
   10. GRAPHICS / DESIGN GRID
   ============================================================ */
.design-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
}

.design-grid .media-card__thumb {
    aspect-ratio: 4/5;
}

/* ============================================================
   11. CLIENTS MARQUEE
   (markup is produced by assets/js/vfx-clients-marquee.js)
   ============================================================ */
.clients-marquee {
    overflow: hidden;
}

.clients-marquee .chapter-header {
    margin-bottom: 40px;
}

.vfx-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--vfx-border);
    border-bottom: 1px solid var(--vfx-border);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.vfx-marquee__track {
    display: flex;
    width: max-content;
    padding: 34px 0 30px;
    animation: vfx-marquee-scroll var(--marquee-duration, 40s) linear infinite;
    will-change: transform;
}

.vfx-marquee[data-direction="right"] .vfx-marquee__track {
    animation-direction: reverse;
}

.vfx-marquee__group {
    display: flex;
    align-items: flex-start;
    flex: 0 0 auto;
}

@keyframes vfx-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.vfx-marquee[data-pause-on-hover="1"]:hover .vfx-marquee__track,
.vfx-marquee:focus-within .vfx-marquee__track {
    animation-play-state: paused;
}

.client-chip {
    display: block;
    width: 176px;
    flex: 0 0 auto;
    text-align: center;
    padding: 0 14px;
}

/* Light tiles: client logos are drawn for light backgrounds, and the white
   blocks echo the primary buttons. */
.client-chip__logo {
    width: 112px;
    height: 112px;
    margin: 0 auto 16px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.35s var(--vfx-ease), background 0.3s ease;
}

.client-chip:hover .client-chip__logo {
    transform: translateY(-5px);
    background: #ffffff;
}

/* Logos keep their own brand colours */
.client-chip__logo img {
    max-width: 78%;
    max-height: 72%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s var(--vfx-ease);
}

.client-chip:hover .client-chip__logo img {
    transform: scale(1.06);
}

.client-chip__initials {
    font-family: var(--vfx-font-sans);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0a0a0a;
}

.client-chip__name {
    display: block;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.4;
}

.client-chip__meta {
    display: block;
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--vfx-text-dim);
    margin-top: 5px;
}

.client-chip.is-linked:hover .client-chip__name {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ============================================================
   12. SERVICES
   ============================================================ */
.service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--vfx-border);
}

.service-row:first-of-type {
    padding-top: 12px;
}

.service-row:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.service-row:nth-of-type(even) .service-row__media {
    order: -1;
}

.service-row__title {
    font-size: clamp(24px, 2.6vw, 32px);
    margin: 10px 0 16px;
}

.service-row__text {
    color: var(--vfx-text-muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 520px;
}

.service-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.service-row__media {
    aspect-ratio: 16/9;
    border: 1px solid var(--vfx-border);
    background: #111111;
}

.service-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   13. ABOUT & STATS
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
}

.about-portrait-frame {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    border: 1px solid var(--vfx-border);
}

.about-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15);
}

.about-quote {
    border-left: 2px solid #ffffff;
    padding-left: 24px;
    font-size: clamp(16px, 1.5vw, 19px);
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text {
    color: var(--vfx-text-muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 760px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--vfx-border);
}

.stat-value {
    font-family: var(--vfx-font-sans);
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    margin: 0;
}

/* Achievements & Events: managed in admin → About Studio */
.about-block {
    margin-top: 88px;
}

.about-block__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 34px;
}

.about-block__head .chapter-marker {
    margin: 0;
}

.about-block__title {
    font-size: clamp(24px, 2.8vw, 36px);
    letter-spacing: -0.015em;
}

/* Achievements: an editorial ledger, one line per milestone */
.achievement-list {
    border-top: 1px solid var(--vfx-border);
    counter-reset: achievement;
}

.achievement-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--vfx-border);
    counter-increment: achievement;
    position: relative;
    transition: background 0.3s ease, padding 0.4s var(--vfx-ease);
}

.achievement-row:hover {
    background: rgba(255, 255, 255, 0.025);
    padding-left: 14px;
    padding-right: 14px;
}

.achievement-row__index {
    font-family: var(--vfx-font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--vfx-text-dim);
}

.achievement-row__index::before {
    content: counter(achievement, decimal-leading-zero);
}

.achievement-row__title {
    font-size: clamp(18px, 1.9vw, 24px);
    font-weight: 500;
}

.achievement-row__title a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s ease;
}

.achievement-row__title a:hover {
    border-color: #ffffff;
}

.achievement-row__text {
    color: var(--vfx-text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 6px;
    max-width: 640px;
}

.achievement-row__side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.achievement-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.achievement-row__year {
    font-family: var(--vfx-font-sans);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.achievement-row__thumb {
    display: block;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    border: 1px solid var(--vfx-border);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.achievement-row__thumb:hover {
    border-color: var(--vfx-border-hover);
}

.achievement-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Events: dated cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
}

.event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--vfx-border);
    background: var(--vfx-surface);
    /* "translate" (not transform) so the hover lift and the reveal animation never fight */
    transition: border-color 0.3s ease, translate 0.4s var(--vfx-ease);
}

.event-card:hover {
    border-color: var(--vfx-border-hover);
    translate: 0 -4px;
}

.event-card__media {
    display: block;
    aspect-ratio: 16/10;
    background: #111111;
    border-bottom: 1px solid var(--vfx-border);
    position: relative;
}

.event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No photo: the date becomes the visual */
.event-card__media--date {
    display: flex;
    align-items: flex-end;
    padding: 18px 20px;
    font-family: var(--vfx-font-sans);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
        #101010;
}

.event-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    flex: 1;
}

.event-card__title {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}

.event-card__text {
    color: var(--vfx-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.event-card__link {
    margin-top: auto;
    padding-top: 10px;
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    align-self: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s ease;
}

.event-card__link:hover {
    border-color: #ffffff;
}

/* ============================================================
   14. CONTACT
   ============================================================ */
.contact-section-editorial {
    padding: 110px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
}

.contact-title {
    font-size: clamp(34px, 5vw, 64px);
}

.contact-lead {
    max-width: 580px;
    line-height: 1.8;
    margin-top: 24px;
    /* line breaks typed in admin → Site Details are kept */
    white-space: pre-line;
}

.contact-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    margin-top: 48px;
}

.meta-label {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--vfx-text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.meta-val {
    font-family: var(--vfx-font-sans);
    font-size: 15px;
    color: #dddddd;
    overflow-wrap: anywhere;
}

.meta-val a {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s ease;
}

.meta-val a:hover {
    border-color: #ffffff;
}

/* A name without a link yet (e.g. LinkedIn) reads as plain text */
.meta-val a:not([href]) {
    border-bottom: 0;
    color: #dddddd;
}

.contact-action-card {
    background: var(--vfx-surface);
    border: 1px solid var(--vfx-border);
    border-radius: 2px;
    padding: 44px 38px;
}

.contact-action-card__title {
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-action-card__sub {
    font-size: 14px;
    color: var(--vfx-text-muted);
    margin-bottom: 24px;
}

.contact-response-time {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--vfx-text-dim);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.contact-response-time strong {
    color: #ffffff;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.contact-form {
    padding-top: 24px;
    border-top: 1px solid var(--vfx-border);
}

.contact-form .chapter-marker {
    margin-bottom: 16px;
}

.brutalist-input-field {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    color: #ffffff;
    font-family: var(--vfx-font-body);
    /* 16px keeps iOS from zooming the page when a field is focused */
    font-size: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

textarea.brutalist-input-field {
    resize: vertical;
    min-height: 120px;
}

.brutalist-input-field:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.brutalist-input-field::placeholder {
    color: #7c7c7c;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-feedback {
    min-height: 18px;
    margin-top: 14px;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.form-feedback.is-success {
    color: #00ff88;
}

.form-feedback.is-error {
    color: #ff5a5a;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.ambitious-footer {
    padding: 48px 0;
    border-top: 1px solid var(--vfx-border);
}

.ambitious-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.footer-brand-title {
    font-family: var(--vfx-font-sans);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-credits,
.footer-copyright {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    color: var(--vfx-text-dim);
    letter-spacing: 1px;
}

.footer-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.footer-links a {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--vfx-text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ============================================================
   16. LIGHTBOX
   ============================================================ */
.vfx-video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 24px;
}

.vfx-video-lightbox.active {
    display: flex;
    animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.vfx-video-lightbox__container {
    width: 100%;
    /* never taller than the screen: width is capped by the available height */
    max-width: min(1060px, calc((100vh - 170px) * 16 / 9));
    position: relative;
}

.vfx-video-lightbox__close {
    position: absolute;
    top: -46px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--vfx-font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 0 10px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.vfx-video-lightbox__close:hover {
    color: #ff5a5a;
}

.vfx-video-lightbox__frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000000;
    border: 1px solid var(--vfx-border);
    position: relative;
}

.vfx-video-lightbox__frame iframe,
.vfx-video-lightbox__frame video,
.vfx-video-lightbox__frame img {
    width: 100%;
    height: 100%;
    border: none;
}

.vfx-video-lightbox__frame video,
.vfx-video-lightbox__frame img {
    object-fit: contain;
}

/* Shorts / Reels: a phone-shaped frame */
.vfx-video-lightbox.is-vertical .vfx-video-lightbox__container {
    max-width: min(420px, calc((100vh - 170px) * 9 / 16));
}

.vfx-video-lightbox.is-vertical .vfx-video-lightbox__frame {
    aspect-ratio: 9/16;
}

/* Image galleries: let the picture decide the shape */
.vfx-video-lightbox.is-image .vfx-video-lightbox__container {
    max-width: 1100px;
}

.vfx-video-lightbox.is-image .vfx-video-lightbox__frame {
    aspect-ratio: auto;
    height: calc(100vh - 170px);
    border: none;
    background: transparent;
}

.vfx-video-lightbox__caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 14px;
    font-family: var(--vfx-font-sans);
    font-size: 15px;
    color: #ffffff;
}

.vfx-video-lightbox__caption span:last-child {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--vfx-text-muted);
    text-align: right;
    flex: 0 0 auto;
}

.vfx-video-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
}

.vfx-video-lightbox__nav:hover {
    background: #ffffff;
    color: #000000;
}

.vfx-video-lightbox__nav--prev {
    left: 8px;
}

.vfx-video-lightbox__nav--next {
    right: 8px;
}

/* ============================================================
   17. MOTION, LOADING & RESPONSIVE
   ============================================================ */

/* Placeholder shimmer while the work feed loads */
.skeleton {
    background: linear-gradient(100deg, #111111 30%, #1a1a1a 50%, #111111 70%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s linear infinite;
}

@keyframes skeletonShimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* Parallax reveal. Every .reveal block hides again once it has left the
   screen and plays back in on the way down AND on the way up: it rises from
   below when you scroll down and drops in from above when you scroll back.
   Only active once vfx-home.js has confirmed it can run (html.js-reveal). */
.js-reveal .reveal {
    opacity: 0;
    transform: translate3d(0, 56px, 0) scale(0.985);
    transition: opacity 0.75s ease, transform 0.95s var(--vfx-ease);
}

.js-reveal .reveal[data-reveal-from="top"] {
    transform: translate3d(0, -56px, 0) scale(0.985);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
    /* neighbours in a row arrive one after another */
    transition-delay: var(--reveal-delay, 0ms);
}

/* Blocks with their own hover transitions keep them next to the reveal */
.js-reveal .event-card.reveal {
    transition: opacity 0.75s ease, transform 0.95s var(--vfx-ease), translate 0.4s var(--vfx-ease), border-color 0.3s ease;
}

.js-reveal .achievement-row.reveal {
    transition: opacity 0.75s ease, transform 0.95s var(--vfx-ease), background 0.3s ease, padding 0.4s var(--vfx-ease);
}

.js-reveal .featured-showcase-box.reveal {
    transition: opacity 0.75s ease, transform 0.95s var(--vfx-ease), border-color 0.3s ease;
}

/* Chapter headings also drift a little against the scroll */
.js-parallax .chapter-header {
    translate: 0 calc(var(--chapter-shift, 0) * -0.22px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-video-marquee.is-running,
    .vfx-marquee__track {
        animation: none;
    }

    .vfx-marquee {
        overflow-x: auto;
    }

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }

    .chapter::after,
    .hero-layer {
        translate: none;
        opacity: 1;
    }
}

/* Paper never scrolls: show everything */
@media print {

    .js-reveal .reveal,
    .hero-layer {
        opacity: 1 !important;
        transform: none !important;
        translate: none !important;
    }
}

/* ---- Small laptops ---- */
@media (max-width: 1199px) {
    .ambitious-nav {
        gap: 24px;
    }

    .ambitious-header__container {
        padding: 0 24px;
    }

    .contact-grid {
        gap: 40px;
    }

    .service-row {
        gap: 40px;
    }
}

/* ---- Narrow laptops: room for every menu link, "For Agencies" included ---- */
@media (min-width: 992px) and (max-width: 1099px) {
    .ambitious-nav {
        gap: 16px;
    }

    .ambitious-nav a {
        letter-spacing: 1.2px;
    }

    .ambitious-header__actions {
        gap: 8px;
    }

    .ambitious-header__actions .b-btn {
        padding: 12px 16px;
    }
}

/* ---- Tablets ---- */
@media (max-width: 991px) {
    .ambitious-nav-wrap {
        display: none;
    }

    .ambitious-mobile-toggle {
        display: flex;
    }

    .chapter {
        padding: 84px 0;
    }

    .shorts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .about-grid {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 36px;
    }

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

    .ambitious-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-side {
        align-items: flex-start;
    }
}

/* ---- Phones ---- */
@media (max-width: 767px) {
    :root {
        --vfx-header-h: 62px;
    }

    .container {
        padding: 0 18px;
    }

    .chapter {
        padding: 64px 0;
    }

    .ambitious-header__container {
        padding: 0 16px;
    }

    .ambitious-brand__title {
        font-size: 14px;
    }

    .ambitious-brand__sub {
        font-size: 9px;
    }

    .ambitious-header__actions {
        gap: 8px;
    }

    .ambitious-header__actions .b-btn {
        padding: 9px 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* Hero */
    .brutalist-hero {
        padding: 96px 0 44px;
        min-height: auto;
    }

    .hero-main-title {
        font-size: clamp(30px, 10.5vw, 60px);
        margin-bottom: 8px;
        white-space: nowrap;
    }

    .hero-subtitle-block {
        margin-bottom: 22px;
    }

    .brand-sub-title {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .hero-discipline-tag {
        font-size: 11px;
        letter-spacing: 1.5px;
        line-height: 1.7;
    }

    .hero-discipline-desc {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .hero-video-marquee-wrap {
        padding: 6px 0 24px;
    }

    .hero-video-marquee {
        --hero-gap: 14px;
    }

    .hero-video-card {
        flex: 0 0 260px;
        width: 260px;
    }

    /* Touch screens have no hover, so the card label is always readable */
    .hero-video-card .card-video-overlay {
        opacity: 1;
        padding: 10px 12px;
        background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.8) 100%);
        justify-content: flex-end;
        gap: 2px;
    }

    .hero-video-card .card-video-title {
        font-size: 12px;
    }

    .hero-video-card .card-video-category {
        order: -1;
        font-size: 9px;
    }

    .hero-video-card .play-icon {
        width: 38px;
        height: 38px;
        top: 42%;
    }

    .hero-action-buttons {
        gap: 10px;
        margin-bottom: 30px;
    }

    .hero-action-buttons .b-btn {
        padding: 14px 18px;
        font-size: 11px;
        flex: 1;
    }

    /* Chapters */
    .chapter-header {
        margin-bottom: 28px;
    }

    .chapter-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .chapter-subtitle {
        font-size: 14px;
    }

    /* Tabs scroll sideways instead of wrapping into a tall block */
    .chapter-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0 20px;
        margin: 0 -18px 26px;
        padding: 0 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .chapter-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .chapter-filter-tabs li {
        flex: 0 0 auto;
    }

    .featured-showcase-box {
        margin-bottom: 32px;
    }

    .featured-play-badge {
        width: 64px;
        height: 64px;
        font-size: 10px;
    }

    .featured-caption {
        padding: 40px 14px 12px;
        gap: 3px;
    }

    .featured-caption__meta {
        display: none;
    }

    .media-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .media-card__title {
        font-size: 17px;
    }

    .section-action {
        margin-top: 32px;
    }

    .section-action .b-btn {
        width: 100%;
    }

    /* Shorts become a swipeable strip: vertical videos read best one-and-a-bit at a time */
    .shorts-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        margin: 0 -18px;
        padding: 0 18px 6px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .shorts-grid::-webkit-scrollbar {
        display: none;
    }

    .shorts-grid .shortform-card {
        flex: 0 0 58%;
        max-width: 250px;
        scroll-snap-align: start;
    }

    .shortform-card__video-wrap {
        margin-bottom: 12px;
    }

    .shortform-title {
        font-size: 14px;
    }

    .swipe-hint {
        display: block;
    }

    .design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 14px;
    }

    .design-grid .media-card__title {
        font-size: 14px;
    }

    .design-grid .media-card__body {
        margin-top: 10px;
    }

    /* Clients */
    .clients-marquee .chapter-header {
        margin-bottom: 28px;
    }

    .vfx-marquee__track {
        padding: 24px 0 22px;
    }

    .client-chip {
        width: 128px;
        padding: 0 10px;
    }

    .client-chip__logo {
        width: 84px;
        height: 84px;
        margin-bottom: 12px;
    }

    .client-chip__initials {
        font-size: 23px;
    }

    .client-chip__name {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .client-chip__meta {
        font-size: 9px;
    }

    /* Services: copy first, picture second, for every row */
    .service-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 40px 0;
    }

    .service-row:nth-of-type(even) .service-row__media {
        order: 0;
    }

    .service-row__tags {
        gap: 8px;
        margin-top: 18px;
    }

    /* About */
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-bottom: 44px;
    }

    .about-portrait-frame {
        max-width: 200px;
    }

    .about-block {
        margin-top: 56px;
    }

    .about-block__head {
        margin-bottom: 22px;
    }

    /* Ledger rows stack: number + year on top, text below */
    .achievement-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 22px 0;
    }

    .achievement-row:hover {
        padding-left: 0;
        padding-right: 0;
        background: none;
    }

    .achievement-row__side {
        order: -1;
        justify-content: space-between;
    }

    .achievement-row__index {
        position: absolute;
        top: 24px;
        right: 0;
    }

    .achievement-row__meta {
        align-items: flex-start;
        text-align: left;
        padding-right: 40px;
    }

    .achievement-row__thumb {
        width: 64px;
        height: 64px;
        margin-right: 40px;
    }

    .event-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    /* Shorter travel on small screens keeps scrolling calm */
    .js-reveal .reveal {
        transform: translate3d(0, 34px, 0);
    }

    .js-reveal .reveal[data-reveal-from="top"] {
        transform: translate3d(0, -34px, 0);
    }

    .chapter::after {
        top: 18px;
        right: 8px;
    }

    .hero-layer--copy {
        --hero-drift: 70px;
    }

    .hero-layer--reel {
        --hero-drift: 30px;
    }

    .about-quote {
        padding-left: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 32px;
    }

    /* Contact */
    .contact-section-editorial {
        padding: 70px 0;
    }

    .contact-meta-grid {
        gap: 24px 16px;
        margin-top: 32px;
    }

    .contact-action-card {
        padding: 28px 18px;
    }

    .contact-action-card__title {
        font-size: 20px;
    }

    .ambitious-footer {
        padding: 36px 0;
    }

    /* Lightbox */
    .vfx-video-lightbox {
        padding: 60px 12px 16px;
    }

    .vfx-video-lightbox__caption {
        flex-direction: column;
        gap: 4px;
        font-size: 14px;
    }

    .vfx-video-lightbox__caption span:last-child {
        text-align: left;
    }
}

/* ---- Small phones ---- */
@media (max-width: 575px) {

    /* "DM ME" lives in the drawer here so the bar never crowds */
    .ambitious-header__actions .b-btn-primary {
        display: none;
    }

    .contact-meta-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 380px) {
    .ambitious-header__actions .b-btn-secondary {
        display: none;
    }

    .hero-action-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 4px;
    }

    .shorts-grid .shortform-card {
        flex-basis: 66%;
    }
}

/* Landscape phones: keep the hero from being taller than the screen needs */
@media (max-height: 520px) and (orientation: landscape) {
    .brutalist-hero {
        min-height: auto;
    }
}

/* ============================================================
   18. INNER PAGES (legal.html)
   Same header, chapters, footer and drawer as the homepage;
   only the first chapter and the clause ledger are new.
   ============================================================ */

/* First chapter of a page without a hero: starts below the fixed header */
.page-intro {
    padding-top: calc(var(--vfx-header-h) + 84px);
    border-top: 0;
}

.page-intro .chapter-title {
    font-size: clamp(34px, 5vw, 64px);
}

.page-intro__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* Clauses: an editorial ledger, one row per clause */
.legal-list {
    border-top: 1px solid var(--vfx-border);
    counter-reset: clause;
}

.legal-clause {
    display: grid;
    grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr);
    gap: 16px 32px;
    align-items: start;
    padding: 34px 0;
    border-bottom: 1px solid var(--vfx-border);
    counter-increment: clause;
}

.legal-clause__index {
    font-family: var(--vfx-font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 28px;
    color: var(--vfx-text-dim);
}

.legal-clause__index::before {
    content: counter(clause, decimal-leading-zero);
}

.legal-clause__title {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.3;
}

.legal-clause__text p {
    color: var(--vfx-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.legal-clause__text p + p {
    margin-top: 14px;
}

.legal-clause__text a {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease;
}

.legal-clause__text a:hover {
    border-color: #ffffff;
}

@media (max-width: 991px) {
    .legal-clause {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .legal-clause__text {
        grid-column: 2;
    }
}

@media (max-width: 767px) {
    .page-intro {
        padding-top: calc(var(--vfx-header-h) + 52px);
    }

    .legal-clause {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 26px 0;
    }

    .legal-clause__text {
        grid-column: auto;
    }
}

/* ============================================================
   19. FOR AGENCIES (for-agencies.php)
   White-label landing page: a hero with a fan of Shorts, a
   ticker band, the staggered wall of reels and the partner form.
   Header, chapters, lightbox and footer are the shared ones.
   ============================================================ */

/* The homepage menu's link to this page reads a shade brighter than the section links */
.ambitious-nav .nav-agencies {
    color: #ffffff;
}

/* Outlined words: the headline's last word, the ticker, the reel numbers */
.agency-title__outline,
.agency-ticker__group .is-outline,
.agency-reel__index {
    color: #ffffff;
}

@supports (-webkit-text-stroke: 1px #ffffff) {
    .agency-title__outline {
        color: transparent;
        -webkit-text-stroke: 1.5px #ffffff;
    }

    .agency-ticker__group .is-outline {
        color: transparent;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.65);
    }

    .agency-reel__index {
        color: transparent;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    }
}

/* ---- Hero ---- */
.agency-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--vfx-header-h) + 64px) 0 88px;
    overflow: hidden;
    overflow: clip;
}

/* A soft pool of light behind the Shorts */
.agency-hero::before {
    content: '';
    position: absolute;
    top: 8%;
    right: -12%;
    width: 62vw;
    height: 62vw;
    max-width: 860px;
    max-height: 860px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.075), transparent 72%);
    pointer-events: none;
}

.agency-hero > .container {
    position: relative;
    z-index: 1;
}

.agency-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

.agency-hero--solo .agency-hero__grid {
    grid-template-columns: minmax(0, 1fr);
}

.agency-hero__copy > * {
    animation: agencyRise 0.9s var(--vfx-ease) backwards;
}

.agency-hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
}

.agency-hero__copy > :nth-child(3) {
    animation-delay: 0.18s;
}

.agency-hero__copy > :nth-child(4) {
    animation-delay: 0.28s;
}

.agency-hero__copy > :nth-child(5) {
    animation-delay: 0.38s;
}

@keyframes agencyRise {
    from {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
    }
}

.agency-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    margin-bottom: 30px;
    border: 1px solid var(--vfx-border-hover);
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #cfcfcf;
}

.agency-kicker__dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    animation: dotPulse 2s infinite ease-in-out;
}

.agency-title {
    font-size: clamp(44px, 7.2vw, 112px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 30px;
}

.agency-lead {
    max-width: 560px;
    margin-bottom: 38px;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.7;
    color: #b8b8b8;
    /* line breaks typed in admin → Site Details are kept */
    white-space: pre-line;
}

.agency-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}

.agency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Three Shorts fanned out like a hand of cards. Each card's place is
   --x / --r / --s; hovering the fan spreads it a little wider. */
.agency-stack {
    position: relative;
    height: clamp(440px, 44vw, 600px);
}

.agency-stack__card {
    --x: 0%;
    --r: 0deg;
    --s: 1;
    position: absolute;
    top: 46%;
    left: 50%;
    width: clamp(170px, 16.5vw, 240px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #111111;
    border: 1px solid var(--vfx-border-hover);
    border-radius: 14px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.75);
    transform: translate(calc(-50% + var(--x)), -50%) rotate(var(--r)) scale(var(--s));
    transition: transform 0.8s var(--vfx-ease), border-color 0.3s ease;
    animation: agencyFanIn 1.2s var(--vfx-ease) 0.2s backwards, agencyFloat 7s ease-in-out 1.4s infinite;
}

.agency-stack__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Darker top and bottom plus a speaker slot, so each card reads as a phone screen */
.agency-stack__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 22%, transparent 72%, rgba(0, 0, 0, 0.55) 100%);
}

.agency-stack__card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 34%;
    height: 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(-50%);
}

.agency-stack__card--1 {
    --x: -58%;
    --r: -9deg;
    z-index: 1;
}

.agency-stack__card--2 {
    --s: 1.08;
    z-index: 3;
    animation-delay: 0.1s, 2.4s;
}

.agency-stack__card--3 {
    --x: 58%;
    --r: 9deg;
    z-index: 2;
    animation-delay: 0.3s, 3.4s;
}

.agency-stack:hover .agency-stack__card--1 {
    --x: -76%;
    --r: -13deg;
}

.agency-stack:hover .agency-stack__card--3 {
    --x: 76%;
    --r: 13deg;
}

.agency-stack__card:hover {
    border-color: #ffffff;
}

.agency-stack__card .play-icon {
    z-index: 1;
}

@keyframes agencyFanIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) rotate(0deg) scale(0.9);
    }
}

@keyframes agencyFloat {

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

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

.agency-stack__label {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--vfx-text-dim);
    white-space: nowrap;
}

.agency-stack__label::before,
.agency-stack__label::after {
    content: '';
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

/* ---- Ticker band ---- */
.agency-ticker {
    overflow: hidden;
    padding: 22px 0;
    background: #0a0a0a;
    border-top: 1px solid var(--vfx-border);
}

.agency-ticker__track {
    display: flex;
    width: max-content;
    animation: agencyTicker 40s linear infinite;
}

/* Two identical groups; the trailing padding equals the gap, so -50% loops seamlessly */
.agency-ticker__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
}

.agency-ticker__group span {
    font-family: var(--vfx-font-sans);
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.agency-ticker__group i {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    background: #ffffff;
    transform: rotate(45deg);
}

@keyframes agencyTicker {
    to {
        transform: translateX(-50%);
    }
}

/* ---- The reels wall ---- */
.agency-reels-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.agency-reels-count {
    flex-shrink: 0;
    text-align: right;
    font-family: var(--vfx-font-mono);
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--vfx-text-dim);
}

.agency-reels-count strong {
    display: block;
    font-family: var(--vfx-font-sans);
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #ffffff;
}

/* Every other column sits lower, like frames on a contact sheet */
.agency-reels {
    --agency-offset: 84px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 24px;
    padding-bottom: var(--agency-offset);
}

.agency-reel {
    display: block;
    min-width: 0;
}

.agency-reel:nth-child(4n+2),
.agency-reel:nth-child(4n+4) {
    translate: 0 var(--agency-offset);
}

.agency-reel__frame {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    margin-bottom: 14px;
    background: #111111;
    border: 1px solid var(--vfx-border);
    border-radius: 2px;
    transition: border-color 0.3s ease, box-shadow 0.4s ease;
}

.agency-reel__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.agency-reel__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--vfx-ease);
}

.agency-reel:hover .agency-reel__frame,
.agency-reel:focus-visible .agency-reel__frame {
    border-color: var(--vfx-border-hover);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.8);
}

.agency-reel:hover .agency-reel__frame img,
.agency-reel:focus-visible .agency-reel__frame img {
    transform: scale(1.05);
}

/* With a mouse the play button appears on the reel under the pointer */
@media (hover: hover) {
    .agency-reel .play-icon {
        opacity: 0;
        transition: opacity 0.25s ease, transform 0.25s var(--vfx-ease), background 0.25s ease;
    }

    .agency-reel:hover .play-icon,
    .agency-reel:focus-visible .play-icon {
        opacity: 1;
    }
}

.agency-reel__index {
    position: absolute;
    top: 12px;
    left: 14px;
    font-family: var(--vfx-font-sans);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.agency-reel__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-family: var(--vfx-font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
}

#reels .section-empty a {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---- Partner chapter ---- */
.agency-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 40px;
    border-top: 1px solid var(--vfx-border);
}

.agency-steps li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px 0 0;
}

.agency-steps li + li {
    padding-left: 20px;
    border-left: 1px solid var(--vfx-border);
}

.agency-steps__no {
    font-family: var(--vfx-font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--vfx-text-dim);
}

.agency-steps strong {
    font-family: var(--vfx-font-sans);
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
}

.agency-steps li > span:last-child {
    font-size: 13px;
    line-height: 1.6;
    color: var(--vfx-text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .agency-ticker {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .agency-ticker__track {
        animation: none;
    }
}

/* ---- Tablets ---- */
@media (max-width: 991px) {
    .agency-hero {
        min-height: 0;
        padding-bottom: 64px;
    }

    .agency-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .agency-stack {
        height: 470px;
    }

    .agency-stack__card {
        width: 196px;
    }

    .agency-reels {
        --agency-offset: 60px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .agency-reel:nth-child(n) {
        translate: none;
    }

    .agency-reel:nth-child(3n+2) {
        translate: 0 var(--agency-offset);
    }
}

/* ---- Phones ---- */
@media (max-width: 767px) {
    .agency-hero {
        padding-top: calc(var(--vfx-header-h) + 40px);
    }

    .agency-kicker {
        font-size: 9px;
        letter-spacing: 1.8px;
        margin-bottom: 24px;
    }

    .agency-hero__actions .b-btn {
        flex: 1 1 100%;
    }

    .agency-stack {
        height: 380px;
    }

    .agency-stack__card {
        width: 150px;
        border-radius: 10px;
    }

    .agency-stack__card--1 {
        --x: -54%;
    }

    .agency-stack__card--3 {
        --x: 54%;
    }

    .agency-ticker {
        padding: 16px 0;
    }

    .agency-reels-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .agency-reels-count {
        text-align: left;
    }

    .agency-reels {
        --agency-offset: 40px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 14px;
    }

    .agency-reel:nth-child(n) {
        translate: none;
    }

    .agency-reel:nth-child(even) {
        translate: 0 var(--agency-offset);
    }

    .agency-reel__index {
        top: 10px;
        left: 10px;
        font-size: 26px;
    }

    .agency-reel__title {
        font-size: 13px;
    }

    .agency-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .agency-steps li,
    .agency-steps li + li {
        padding: 16px 0;
        border-left: 0;
        border-bottom: 1px solid var(--vfx-border);
    }
}
