/* ==========================================
   REEL NINJA — STYLES-D (Founder-Grade Editorial)
   Based on styles.css — targeted overrides + new components
   ========================================== */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent-red: #e81c2e;
    --accent-red-dark: #b8151f;
    --accent-gold: #d4a843;
    --accent-gold-light: #ffd700;
    --accent-gold-dark: #b8860b;
    --font-headline: 'Anton', sans-serif;
    --font-subhead: 'Bebas Neue', sans-serif;
    --font-grunge: 'Permanent Marker', cursive;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Lenis handles scroll */
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
}

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

.svg-noise {
    position: absolute;
    width: 0;
    height: 0;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: background 0.4s var(--ease-smooth), backdrop-filter 0.4s;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo .logo-text {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-red);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.65rem 1.4rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-cta:hover {
    background: white;
    color: #0a0a0a;
    border-color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent-red);
}

.mobile-cta {
    margin-top: 1rem;
}

/* --- Hero Section — Video, Bottom-Left Anchored --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero--video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero--video .hero-bg {
    position: absolute;
    top: -12%;
    left: 0;
    right: 0;
    height: 124%;
    z-index: 0;
    will-change: transform;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    filter: brightness(0.55) contrast(1.08) saturate(0.75);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* darken the center-bottom where the clip's burnt-in captions sit */
        radial-gradient(95% 70% at 56% 60%, transparent 0%, rgba(0,0,0,0.42) 45%, rgba(0,0,0,0.72) 100%),
        linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.58) 45%, rgba(0,0,0,0.2) 100%),
        linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.6) 30%, transparent 60%);
    pointer-events: none;
}

/* Grunge film-grain overlay — adds raw-studio texture + masks captions */
.hero-grunge {
    position: absolute;
    inset: -6%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    animation: grain-shift 0.6s steps(3) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-3%, 2%); }
    66%  { transform: translate(2%, -3%); }
    100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-grunge { animation: none; }
}

/* TV / CRT overlay — scanlines, a slow rolling scan band, and a gentle flicker */
.hero-crt {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.52;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.42) 2px,
        rgba(0, 0, 0, 0.42) 4px
    );
    animation: crt-flicker 2.4s steps(30) infinite;
}

/* soft bright band sweeping down the screen */
.hero-crt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 22%;
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    mix-blend-mode: screen;
    animation: crt-scan 7s linear infinite;
}

@keyframes crt-flicker {
    0%, 100% { opacity: 0.5; }
    48%      { opacity: 0.44; }
    50%      { opacity: 0.56; }
    52%      { opacity: 0.46; }
}

@keyframes crt-scan {
    0%   { transform: translateY(-120%); }
    100% { transform: translateY(560%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-crt { animation: none; }
    .hero-crt::after { display: none; }
}

.hero-content--bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: left;
    padding: 0 10% 2.2rem 5rem;
}

/* "Trusted by" label living at the bottom of the hero (section 1) */
.hero-trusted-label {
    display: block;
    margin-top: 2.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

/* Trusted-by brand strip — top of the work (second) section */
.brand-strip {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0.4rem 0 2.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.brand-strip__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.brand-strip__viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.brand-strip__track {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    width: max-content;
    animation: brand-strip-scroll 30s linear infinite;
}

.brand-logo {
    flex: 0 0 auto;
    font-family: var(--font-subhead); /* Bebas — wordmark feel */
    text-transform: uppercase;
    font-size: 1.95rem;
    letter-spacing: 2px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

@keyframes brand-strip-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-strip__track { animation: none; }
}

.hero-accent-line {
    width: 50px;
    height: 2px;
    background: var(--accent-red);
    margin-bottom: 1.8rem;
}

/* Scroll hint — vertical line + label at right bottom */
.hero-scroll-hint {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    animation: scroll-drop 1.6s ease-in-out infinite;
}

@keyframes scroll-drop {
    0% { top: -100%; }
    100% { top: 100%; }
}

.scroll-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    writing-mode: vertical-rl;
}


/* Hero Title — Bebas Neue, not Permanent Marker */
.hero-title {
    font-family: var(--font-subhead);
    line-height: 0.95;
    margin-bottom: 1.2rem;
}

/* Giant ghosted "We make videos that" — embossed backdrop, headline overlaps it
   (inspired by the 10,000 treatment in variation E) */
.hero-title .title-intro {
    display: block;
    font-family: var(--font-headline);
    font-size: clamp(2.6rem, 8vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -2px;
    color: #fff;
    opacity: 0.12;
    text-transform: uppercase;
    line-height: 0.88;
    margin-bottom: 0;
    pointer-events: none;
    user-select: none;
}

.hero-title .title-line {
    display: block;
    font-size: clamp(3.4rem, 6.7vw, 6.1rem);
    letter-spacing: -0.5px;
    line-height: 0.95;
    color: var(--text-primary);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1;
}

.hero-title .title-red {
    color: var(--accent-red);
    text-shadow: 0 4px 30px rgba(232, 28, 46, 0.3), 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   HERO MERGE — marker scrawl kicker + giant ghost watermark
   + targeted caption-blur + headline variation switcher
   ============================================================ */

/* "We make videos that" — Permanent Marker scrawl lead-in (opt3) */
.hero-kicker {
    display: inline-block;
    font-family: var(--font-grunge); /* Permanent Marker */
    color: var(--accent-red);
    font-size: clamp(1.1rem, 1.9vw, 1.55rem);
    letter-spacing: 0.02em;
    transform: rotate(-1.5deg);
    transform-origin: left center;
    margin-bottom: 0.9rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 2;
}

/* Targeted blur band — dissolves the burnt-in captions (center-bottom) while
   keeping the upper footage crisp/visible (moderate treatment) */
.hero-caption-blur {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 66%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 66%, #000 100%);
}

/* Suppress glitch pseudo-elements on this version */
.hero-title .title-line::before,
.hero-title .title-line::after {
    content: none;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2.7rem;
    letter-spacing: 0.2px;
    line-height: 1.8;
    font-family: var(--font-body);
    max-width: 340px;
    text-wrap: balance;
}

.hero-clients {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.hero-clients span {
    position: relative;
}

/* thin separator between names instead of middle-dot spam */
.hero-clients span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero CTA button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 1.05rem 2.45rem;
    background: transparent;
    color: white;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    z-index: 5;
    box-shadow: none;
}

.hero-cta:hover {
    background: white;
    color: #0a0a0a;
    border-color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.18);
}

.hero-cta i {
    font-size: 1.1rem;
}

/* --- Section Shared Styles --- */
.section-header {
    padding: 0 3rem;
    margin-bottom: 3rem;
}

/* --- Section 2: "The Content we F*CK With" — overlaid on the carousel so the
   whole phrase always reads together in one view --- */
.split-line {
    display: block;
    font-family: var(--font-headline);
    font-size: clamp(2.2rem, 4.6vw, 4.2rem);
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}

.split-line--top {
    margin-top: 0.4rem;
}

.split-line--bottom {
    text-align: right;
}

.work-section-footer {
    position: relative;
    z-index: 1;
    padding: 1.4rem 3rem 0;
}

/* F*CK overlay — sits above carousel, glitches in, fades out, replays on scroll re-entry */
.fword-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.fword-text {
    position: relative;
    font-family: var(--font-headline);
    font-size: clamp(9rem, 27vw, 26rem);
    color: transparent;                /* hollow inside */
    -webkit-text-stroke: 13px var(--accent-red);  /* thick red outline */
    text-stroke: 13px var(--accent-red);
    letter-spacing: -4px;
    line-height: 1;
    opacity: 0;
    user-select: none;
    filter: drop-shadow(0 6px 40px rgba(0, 0, 0, 0.55));
}

/* Chromatic-aberration ghosts for the glitch — thin cyan + white outlines */
.fword-text::before,
.fword-text::after {
    content: 'F*CK';
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    -webkit-text-stroke: 7px;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.fword-text::before { -webkit-text-stroke-color: rgba(64, 224, 255, 0.9); }   /* cyan ghost */
.fword-text::after  { -webkit-text-stroke-color: rgba(255, 255, 255, 0.95); } /* white ghost */

.fword-text.glitch-active {
    animation: fword-in 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fword-text.glitch-active::before {
    animation: fword-ghost-r 2.8s steps(2, end) forwards;
}

.fword-text.glitch-active::after {
    animation: fword-ghost-c 2.8s steps(2, end) forwards;
}

/* main text: flicker in, hold solid, one mid glitch, then clean fade out */
@keyframes fword-in {
    0%   { opacity: 0; transform: translate(-10px, 0) skewX(-6deg); }
    5%   { opacity: 1; transform: translate(7px, 0) skewX(4deg); }
    8%   { opacity: 0.25; transform: translate(-4px, 0); }
    11%  { opacity: 1; transform: translate(0, 0) skewX(0); }
    55%  { opacity: 1; transform: translate(0, 0); }
    57%  { opacity: 0.5; transform: translate(-5px, 0) skewX(-2deg); } /* mid-hold glitch blip */
    59%  { opacity: 1; transform: translate(3px, 0) skewX(1deg); }
    61%  { opacity: 1; transform: translate(0, 0) skewX(0); }
    85%  { opacity: 1; transform: translate(0, 0); }
    100% { opacity: 0; transform: translate(0, 0); }
}

/* red chromatic ghost — strong on entry, blip at mid */
@keyframes fword-ghost-r {
    0%   { opacity: 0.9; transform: translate(-12px, 5px); }
    6%   { opacity: 0.6; transform: translate(9px, -4px); }
    11%  { opacity: 0; transform: translate(0, 0); }
    56%  { opacity: 0; }
    58%  { opacity: 0.7; transform: translate(-8px, 2px); }
    61%  { opacity: 0; transform: translate(0, 0); }
    100% { opacity: 0; }
}

/* cyan chromatic ghost — opposite offset */
@keyframes fword-ghost-c {
    0%   { opacity: 0.8; transform: translate(12px, -5px); }
    6%   { opacity: 0.5; transform: translate(-9px, 4px); }
    11%  { opacity: 0; transform: translate(0, 0); }
    56%  { opacity: 0; }
    58%  { opacity: 0.6; transform: translate(8px, -2px); }
    61%  { opacity: 0; transform: translate(0, 0); }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .fword-text,
    .fword-text.glitch-active {
        opacity: 1;
        animation: none;
    }
    .fword-text::before,
    .fword-text::after { display: none; }
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-red);
    display: block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: 1px;
    line-height: 1;
}

.section-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.8rem;
    letter-spacing: 0.2px;
    line-height: 1.7;
}

/* --- Work Section --- */
.work-section {
    position: relative;
    overflow: hidden;
    padding: 0 0 4rem;
}

/* Black gradient that carries section 1's dark bottom down into section 2,
   fading out almost linearly over the upper portion of the section */
.work-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 62%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.5) 22%,
        rgba(10, 10, 10, 0.22) 50%,
        rgba(10, 10, 10, 0) 90%
    );
}

.work-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.work-section-bg .section-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.38) contrast(1.15) saturate(0.75);
}

.work-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.work-section-header {
    position: relative;
    z-index: 1;
    padding: 0 3rem;
    margin-bottom: 1.2rem;
}

/* --- Mixed Reel Carousel --- */
.reel-carousel-wrap {
    position: relative;
    z-index: 1;
    padding: 0;
    width: 100%;
}

.reel-swiper {
    overflow: visible;
    padding: 1.5rem 3rem;
    width: 100%;
}

.reel-slide {
    width: auto;
    height: 40vh;
    flex-shrink: 0;
}

.reel-slide--portrait {
    /* portrait: derive width from height × (9/16) */
    width: calc(40vh * 9 / 16);
}

.reel-slide--landscape {
    /* landscape: derive width from height × (16/9) */
    width: calc(40vh * 16 / 9);
}

.reel-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reel-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px);
}

.reel-card video,
.reel-card iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    pointer-events: none;
}


.reel-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.2rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.reel-card:hover .reel-card-label {
    opacity: 1;
}

.reel-card-label span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Testimonial Section --- */
.testimonial-section {
    padding: 10rem 5rem;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
}

.testimonial-inner {
    max-width: 820px;
}

.quote-mark {
    font-family: var(--font-subhead);
    font-size: 10rem;
    line-height: 0.7;
    color: var(--accent-red);
    display: block;
    margin-bottom: -1rem;
    opacity: 0.35;
}

.quote-text {
    font-family: var(--font-subhead);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    color: white;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

.quote-attribution {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-name {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--accent-red);
    text-transform: uppercase;
}

.quote-divider {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.quote-result {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* --- Clip-Path Wipe Reveal (fail-safe: visible until armed by JS) --- */
.wipe-reveal {
    clip-path: inset(0 0% 0 0); /* default visible — survives JS-less / screenshot states */
}

.wipe-reveal.armed {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.wipe-reveal.armed.revealed {
    clip-path: inset(0 0% 0 0);
}

/* --- Fade-Up Reveal (for long body / quote text — clip-path is fragile here) --- */
.reveal-fade {
    opacity: 1; /* default visible — fail-safe */
}

.reveal-fade.armed {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-fade.armed.revealed {
    opacity: 1;
    transform: translateY(0);
}

.wipe-reveal:nth-child(2) { transition-delay: 0.12s; }
.wipe-reveal:nth-child(3) { transition-delay: 0.24s; }

/* --- CTA + Footer Combined Section --- */
.cta-footer-section {
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-footer-section .cta-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-footer-section .cta-section-bg .section-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.1) saturate(0.8);
}

.cta-footer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.cta-footer-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem 1.5rem;
}

.final-cta {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.cta-label {
    color: rgba(255, 255, 255, 0.4) !important;
    display: block;
    margin-bottom: 1rem;
}

.final-cta-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.final-cta-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.final-btn {
    background: transparent;
    color: white;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    padding: 0.95rem 2.4rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.final-btn:hover {
    background: white;
    color: #0a0a0a;
    border-color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.18);
}

/* Footer inside combined section */
.cta-footer-section .footer {
    width: 100%;
    padding: 1.5rem 0 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-footer-section .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.cta-footer-section .footer-links a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s;
}

.cta-footer-section .footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.cta-footer-section .footer-logo {
    font-family: var(--font-headline);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.cta-footer-section .footer-socials {
    display: flex;
    gap: 1.2rem;
    margin: 0;
}

.cta-footer-section .footer-socials a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s;
}

.cta-footer-section .footer-socials a:hover {
    color: white;
}

.cta-footer-section .footer-copy {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    animation: fadeInUp 0.8s var(--ease-smooth) forwards;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    z-index: 10000;
    transition: transform 0.1s linear;
    transform-origin: left;
    transform: scaleX(0);
}

/* --- Splitting.js Text Animations --- */
[data-splitting] .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: calc(0.03s * var(--char-index));
}

[data-splitting].revealed .char {
    opacity: 1;
    transform: translateY(0);
}

/* --- lightGallery Overrides --- */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.lg-toolbar, .lg-actions .lg-next, .lg-actions .lg-prev {
    background-color: transparent !important;
}

/* ==========================================
   RESPONSIVE / MOBILE
   ========================================== */

@media (max-width: 1024px) {
    .reel-slide {
        height: 55vh;
    }
    .reel-slide--portrait {
        width: calc(55vh * 9 / 16);
    }
    .reel-slide--landscape {
        width: calc(55vh * 16 / 9);
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    a, button {
        cursor: pointer;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero-content--bottom-left {
        padding: 0 6% 1.8rem 1.5rem;
    }

    .hero-scroll-hint {
        display: none;
    }

    .hero-accent-line {
        width: 40px;
        margin-bottom: 1.2rem;
    }

    .hero-kicker {
        font-size: 1rem;
        margin-bottom: 0.55rem;
    }

    .hero-title .title-line {
        font-size: clamp(2.1rem, 8.6vw, 3.6rem);
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.6rem;
        max-width: 100%;
        line-height: 1.6;
    }

    .hero-cta {
        font-size: 0.85rem;
        padding: 0.85rem 1.9rem;
    }

    /* Brand strip on mobile */
    .brand-strip {
        padding: 1.6rem 0 0.5rem;
    }

    .brand-strip__track {
        gap: 2.6rem;
        animation-duration: 22s;
    }

    .brand-logo {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
    }

    /* Reel carousel */
    .reel-slide {
        height: 45vh;
    }
    .reel-slide--portrait {
        width: calc(45vh * 9 / 16);
    }
    .reel-slide--landscape {
        width: calc(45vh * 16 / 9);
    }
    .reel-swiper {
        padding: 0.75rem 1rem;
    }

    /* Work-section split titles + F*CK overlay scaled for portrait */
    .split-line {
        font-size: clamp(2rem, 9vw, 3rem);
    }
    .work-section-footer { padding: 1.2rem 1.5rem 0; }

    .fword-text {
        font-size: clamp(4.5rem, 33vw, 8rem);
        letter-spacing: -2px;
        -webkit-text-stroke-width: 6px;
    }

    /* Section header */
    .section-header {
        padding: 0 1.5rem;
    }

    .work-section-header {
        padding: 0 1.5rem;
    }

    /* Testimonial */
    .testimonial-section {
        padding: 6rem 2rem;
    }

    .quote-text {
        font-size: 1.5rem;
    }

    .quote-mark {
        font-size: 6rem;
    }

    .quote-attribution {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    /* CTA + Footer */
    .cta-footer-content {
        padding: 3rem 1.5rem 1.5rem;
    }

    .final-cta {
        padding: 1.5rem 0 1rem;
    }

    .final-cta-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .final-cta-sub {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .final-btn {
        font-size: 0.75rem;
        padding: 0.7rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title .title-line {
        font-size: clamp(1.9rem, 9.4vw, 2.9rem);
    }

    .hero-kicker {
        font-size: 0.92rem;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .testimonial-section {
        padding: 4rem 1.5rem;
    }

    .quote-mark {
        font-size: 5rem;
    }

    .quote-text {
        font-size: 1.25rem;
    }
}

/* --- Utility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .wipe-reveal {
        clip-path: inset(0 0% 0 0);
    }
}
