:root {
    --black: #050505;
    --dark: #0a0a0a;
    --gray-dark: #1a1a1a;
    --gray: #333;
    --gray-light: #666;
    --white: #f0f0ec;
    --accent: #c6002b;
    --accent-2: #4d9fff;
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-display);
    background: var(--black);
    color: var(--white);
}

/* ========================================
   SKIP LINK (Accessibility)
======================================== */
.skip-link {
    position: fixed;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   CUSTOM CURSOR
======================================== */
.cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cursor.hover {
    width: 80px;
    height: 80px;
    mix-blend-mode: normal;
    background: rgba(198, 0, 43, 0.9);
}

.cursor.hover-flip {
    width: 80px;
    height: 80px;
    mix-blend-mode: normal;
    background: rgba(198, 0, 43, 0.9);
}

.cursor.hover-flip::after {
    content: 'VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--white);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* ========================================
   NOISE OVERLAY
======================================== */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   GLOBAL PROGRESS BAR
======================================== */
.progress-line {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30vh;
    background: rgba(255, 255, 255, 0.08);
    z-index: 100;
    border-radius: 2px;
}

.progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.1s linear;
}

/* ========================================
   NAVIGATION
======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: mnone;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-time {
    font-family: var(--font-body);
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, rgba(198, 0, 43, 0.06) 0%, transparent 60%);
    background-image: url('discoball4x-3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.hero-content {
    text-align: left;
    z-index: 2;
    padding-left: 5vw;
    width: 100%;
    max-width: 1400px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    opacity: 0.5;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

.hero-title-svg {
    width: 100%;
    max-width: clamp(280px, 55vw, 850px);
    opacity: 0;
    transform: translateY(40px);
}

.hero-svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
    opacity: 0;
    max-width: 900px;
    line-height: 1.2;
    font-weight: 400;
}

.text-accent {
    color: #EAFF67;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
}

.hero-scroll-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.5;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 1;
    }
}

/* ========================================
   TAGLINE SECTION
======================================== */
.tagline-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.tagline-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #111;
}

.tagline-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.1));
}

.tagline-content {
    position: relative;
    z-index: 2;
    padding: 6vw;
    max-width: 80%;
}

.tagline-headline {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 8.5vw, 9rem);
    line-height: 0.85;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin: 0;
}

/* ========================================
   HORIZONTAL SCROLL SECTION
======================================== */
.horizontal-section {
    overflow: hidden;
}

.horizontal-container {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content;
}

/* ========================================
   3D CARD SYSTEM
======================================== */
.card {
    flex-shrink: 0;
    width: 80vw;
    max-width: 1000px;
    height: 100vh;
    padding: 5vh 4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
}

/* Show custom cursor when over cards */
.cursor.on-card {
    opacity: 1;
}

.cursor-follower.on-card {
    opacity: 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 80%;
    border-radius: 0;
    overflow: hidden;
    background: var(--gray-dark);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s var(--ease-out-expo);
}

.card:hover .card-inner {
    transform: scale(1.02);
}

.card-inner.flipped {
    transform: scale(1.02);
}

/* --- Card Front --- */
.card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.card-inner.flipped .card-front {
    opacity: 0;
    pointer-events: none;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* opacity: 0.75 */
    /* filter: brightness(0.7) */
    transition: opacity 0.8s ease, transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
    z-index: 1;
}

.card:hover .card-image {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(0.9);
}

/* ---- Unique solid colors per card (used on back number) ---- */
.card:nth-child(1) .card-front {
    background: #0a0a0a;
}

.card:nth-child(2) .card-front {
    background: #0a0a0a;
}

.card:nth-child(3) .card-front {
    background: #0a0a0a;
}

.card:nth-child(4) .card-front {
    background: #0a0a0a;
}

.card:nth-child(5) .card-front {
    background: #0a0a0a;
}

.card:nth-child(6) .card-front {
    background: #0a0a0a;
}

.card:nth-child(7) .card-front {
    background: #0a0a0a;
}

.card:nth-child(8) .card-front {
    background: #0a0a0a;
}

/* ---- Card back number colors matching solid ---- */
.card:nth-child(1) .card-back-number {
    color: #C6002B;
}

.card:nth-child(2) .card-back-number {
    color: #1B3A6B;
}

.card:nth-child(3) .card-back-number {
    color: #E85D26;
}

.card:nth-child(4) .card-back-number {
    color: #2A9D8F;
}

.card:nth-child(5) .card-back-number {
    color: #6C3FA0;
}

.card:nth-child(6) .card-back-number {
    color: #D4A017;
}

.card:nth-child(7) .card-back-number {
    color: #1D7A50;
}

.card:nth-child(8) .card-back-number {
    color: #2C3E7A;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(5, 5, 5, 0.7) 70%, rgba(5, 5, 5, 0.5) 100%);
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 2;
}

.card-number {
    font-family: var(--font-body);
    font-size: 0.875rem;

    /* opacity: 0.5 */
    margin-bottom: 1rem;
}

.card-title {
    font-size: clamp(1.51rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.card-title .weight-heavy {
    font-weight: 800;
}

.card-title .weight-light {
    font-weight: 400;
}

.card-title .text-outline {
    font-family: var(--font-body);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
}

/* Card front title colors */
.card-front .card-title .weight-heavy {
    color: #EAFF67;
    font-weight: 800;
}

.card-front .card-title .text-outline {
    color: transparent;
    -webkit-text-stroke: 1px #EAFF67;
}

.card-description {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.7;
    max-width: 400px;
    line-height: 1;

    /* margin-bottom: 1.5rem */
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-tag:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Card flip hint */
.card-flip-hint {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    font-family: var(--font-body);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover .card-flip-hint {
    opacity: 1;
}

.card-flip-hint svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* --- Card Back --- */
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.card-inner.flipped .card-back {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
}

.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 80%, rgba(198, 0, 43, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(77, 159, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.card-back-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 4;
}

.card-back-close:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: rotate(90deg);
}

.card-back-number {
    font-family: var(--font-body);
    font-size: 0.75rem;
    opacity: 0.8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: .3rem;
    position: relative;
    color: #111;
}

.card-back-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    color: #111;
}

.card-back-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;

    /* opacity: 0.5 */
    margin-bottom: 0.5rem;
    position: relative;
    color: #111;
}

.card-back-services {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.card-back-services li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
    color: #222;
}

.card-back-services li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-back-services li:hover {
    opacity: 1;
    padding-left: 1.5rem;
}

.card-back-services li:hover::before {
    opacity: 1;
}

/* ---- Card back text overrides for white bg ---- */
.card-back .card-title {
    color: #111;
}

.card-back .card-title .text-outline {
    color: transparent;
    -webkit-text-stroke: 1px #111;
}

.card-back .card-title .weight-light {
    color: #111;
}

/* ========================================
   CARD BACK V2 — Cinematic Layout
======================================== */
.card-back-v2 {
    background: #1B3A6B !important;

    /* padding-left: 3rem !important */
    overflow: hidden;
}

/* Per-card background colors */
.card-back-v2--audio {
    background: #C6002B !important;
}

.card-back-v2--brand {
    background: #1B3A6B !important;
}

.card-back-v2--design {
    background: #E85D26 !important;
}

.card-back-v2--experiential {
    background: #2A9D8F !important;
}

.card-back-v2--photography {
    background: #6C3FA0 !important;
}

.card-back-v2--markets {
    background: #D4A017 !important;
}

.card-back-v2--strategy {
    background: #1D7A50 !important;
}

.card-back-v2--video {
    background: #2C3E7A !important;
}

/* Rotated vertical text on the left */
.card-back-v2::before {
    content: attr(data-vertical);
    position: absolute;
    left: -72px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-lr;
    font-family: var(--font-display);
    font-size: clamp(6rem, 8vw, 19rem);
    font-weight: 800;
    text-transform: uppercase;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.12);
    paint-order: stroke fill;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
    background: none;
    width: auto;
    height: auto;
}

/* Fill vertical text with matching bg color to hide inner stroke */
.card-back-v2--audio::before {
    color: #C6002B;
}

.card-back-v2--brand::before {
    color: #1B3A6B;
}

.card-back-v2--design::before {
    color: #E85D26;
}

.card-back-v2--experiential::before {
    color: #2A9D8F;
}

.card-back-v2--photography::before {
    color: #6C3FA0;
}

.card-back-v2--markets::before {
    color: #D4A017;
}

.card-back-v2--strategy::before {
    color: #1D7A50;
}

.card-back-v2--video::before {
    color: #2C3E7A;
}

/* Override white-bg text colors back to white */
.card-back-v2 .card-title {
    color: #fff;
}

.card-back-v2 .card-title .weight-heavy {
    font-weight: 800;
    color: #fff;
    -webkit-text-stroke: 0;
}

.card-back-v2 .card-title .text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
}

.card-back-v2 .card-back-number {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.card-back-v2 .card-back-subtitle {
    color: #ffffff;

    /* font-size: .95rem */
    /* line-height: 1.7 */
    max-width: 650px;
}

/* Tagline */
.card-back-tagline {
    font-family: var(--font-display);

    /* font-size: clamp(1rem, 2vw, 1rem) */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    line-height: 38px;
}

/* Single column services with open circle bullets */
.card-back-v2 .card-back-services {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1rem;
}

.card-back-v2 .card-back-services li {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0 0.75rem 2rem;
    border-bottom: none;
    opacity: 1;
}

.card-back-v2 .card-back-services li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 18%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;

    /* border: 1.5px solid rgba(255, 255, 255, 0.5) */
    background: transparent;
    opacity: 1;
}

.card-back-v2 .card-back-services li:hover::before {
    /* border-color: #fff */
}

.card-back-v2 .card-back-services li:hover {
    /* padding-left: 2.5rem */
}

/* Close button override for dark bg */
.card-back-v2 .card-back-close {
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
}

.card-back-v2 .card-back-close:hover {
    background: #fff;
    color: var(--black);
    border-color: #fff;
}

/* Remove radial gradient on v2 */
.card-back-v2::after {
    display: none;
}

/* ========================================
   SECTION INDICATOR
======================================== */
.section-indicator {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    cursor: pointer;
}

.indicator-dot.active {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(198, 0, 43, 0.5);
    transform: scale(1.3);
}

.indicator-label {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.indicator-dot:hover .indicator-label {
    opacity: 0.6;
}

/* ========================================
   VIDEO SIZZLE SECTION
======================================== */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--black);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.sizzle-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.video-text {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 10;
}

.video-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    opacity: 0.7;
}

/* Centered play button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.video-play-btn svg {
    margin-left: 4px;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-play-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* Video Modal */
#video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

#video-modal-player {
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    outline: none;
    border-radius: 4px;
}

.video-modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 10000;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* ========================================
   OUTRO / CTA SECTION
======================================== */
.outro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
    position: relative;
}

.outro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 100%, rgba(77, 159, 255, 0.08) 0%, transparent 50%);
}

.outro-content {
    position: relative;
    z-index: 2;
}

.outro-eyebrow {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.5;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
}

.outro-title {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;

    /* text-transform: uppercase */
    margin-bottom: 3rem;
}

.outro-title .line {
    display: block;
    overflow: hidden;
}

.outro-title .line-inner {
    display: block;
}

.outro-cta-email {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--white);
    text-decoration: none;
    margin-bottom: 3rem;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: all 0.4s ease;
    letter-spacing: 0.05em;
}

.outro-cta-email:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

.outro-cta-email:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.outro-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.outro-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 0.5rem;
    transition: opacity 0.3s ease;
}

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

.outro-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

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

/* ========================================
   FOCUS STYLES (Global Accessibility)
======================================== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .horizontal-section {
        overflow: visible;
    }

    .horizontal-container {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .card {
        width: 100% !important;
        height: auto !important;

        /* min-height: 75vh */
        /* padding: 3vh 4vw */
        transform: none !important;
    }

    .card-inner {
        /* height: 100% */
        /* min-height: 60vh */
    }

    .card-content {
        padding: 1rem;
    }

    .card-back {
        padding: 2.5rem 2rem;
    }

    .card-back-services {
        grid-template-columns: 1fr;
    }

    .card-back-title {
        font-size: 1.75rem;
    }

    .card-flip-hint {
        display: none;
    }

    /* Mobile tap indicator */
    .card-front::after {
        content: 'Tap to view services';
        position: absolute;
        top: 10.8rem;
        right: 1.5rem;
        z-index: 3;
        font-family: var(--font-body);
        font-size: 0.55rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding: 0.4rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 100px;
        backdrop-filter: blur(8px);
        background: rgba(0, 0, 0, 0.3);
        opacity: 0.6;
    }

    .nav {
        padding: 1.5rem;
    }

    .section-indicator {
        right: 1rem;
    }

    .progress-line {
        left: 1rem;
        height: 20vh;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    .video-controls {
        bottom: 2rem;
        right: 2rem;
    }

    .video-text {
        bottom: 2rem;
        left: 2rem;
    }

    .outro-cta-email {
        font-size: 0.9rem;
        padding: 0.875rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .card {
        width: 95vw;
    }

    .card-back {
        padding: 2rem 1.5rem;
    }

    .outro-links {
        gap: 1.5rem;
    }

    .card-back-v2::before {
        content: attr(data-vertical);
        position: absolute;
        left: -72px;
        top: 50%;
        transform: translateY(-50%) rotate(180deg);
        writing-mode: vertical-lr;
        font-family: var(--font-display);
        font-size: clamp(6rem, 8vw, 19rem);
        font-weight: 800;
        text-transform: uppercase;
        -webkit-text-stroke: 3px rgba(255, 255, 255, 0.12);
        paint-order: stroke fill;
        letter-spacing: 0.05em;
        white-space: nowrap;
        pointer-events: none;
        z-index: -1;
        background: none;
        width: auto;
        height: auto;
        display: none;
    }

    .card-back-v2 .card-back-subtitle {
        color: #ffffff;
        font-size: 0.75rem;

        /* line-height: 1.7 */
        max-width: 550px;
    }

    .card-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: top;

        /* object-position: -470px 0px */
        /* opacity: 0.75 */
        /* filter: brightness(0.7) */
        transition: opacity 0.8s ease, transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
        z-index: 1;
    }

    /* Tagline */
    .card-back-tagline {
        font-family: var(--font-display);
        font-size: clamp(1rem, 2vw, 1rem);
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 1rem;
        position: relative;
        line-height: 24px;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at 50% 50%, rgba(198, 0, 43, 0.06) 0%, transparent 60%);
        background-image: url('mobile-bg.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center top;
    }

    .tagline-section {
        position: relative;
        width: 100%;
        height: 90vh;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .tagline-content {
        position: relative;
        z-index: 2;
        padding: 6vw;
        max-width: 90%;
    }
}

/* ========================================
   CARD FULLSCREEN MODAL
======================================== */
#card-fs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow-y: auto;
    display: none;
    transition: opacity 0.35s ease;
}

#card-fs.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content inside the modal */
#card-fs .card-back-subtitle {
    max-width: 780px;
}

#card-fs .card-back-tagline {
    max-width: 880px;
    font-size: clamp(1.2rem, 2.8vw, 3.25rem) !important;
}

#card-fs .card-back-services {
    max-width: 680px;
}

#card-fs .card-title {
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
}

#card-fs .card-back-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
}