/* ═══════════════════════════════════════════
   RESET & FOUNDATION
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f0ebe0;
    --black: #0a0a0a;
    --accent: #e85533;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f3;
    --text-muted: #888;
    --text-muted-light: #666;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.25, 0, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

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

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   FLOATING LOGO
   ═══════════════════════════════════════════ */
.floating-logo {
    position: fixed;
    top: 30px;
    left: 32px;
    z-index: 900;
    display: flex;
    align-items: center;
    cursor: pointer;
    mix-blend-mode: difference;
}

.floating-logo img {
    height: 48px;
    width: auto;
    animation: logoFloat 4s ease-in-out infinite;
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

.floating-logo:hover img {
    animation-play-state: paused;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(232, 85, 51, 0.4));
    transform: scale(1.08);
}

@keyframes logoFloat {

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

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

/* ═══════════════════════════════════════════
   DROPDOWN MENU — Top-right Navigation
   ═══════════════════════════════════════════ */
.menu-wrapper {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 1000;
    opacity: 0;
    animation: menuFadeIn 0.6s ease 3.5s forwards;
}

@keyframes menuFadeIn {
    to {
        opacity: 1;
    }
}

/* ─── Trigger — Pill with Chevron ─── */
.menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.menu-trigger.open {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-trigger-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.menu-trigger:hover .menu-trigger-text {
    color: #fff;
}

/* ─── Chevron Icon ─── */
.menu-chevron {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s var(--ease), color 0.3s ease;
    flex-shrink: 0;
}

.menu-trigger:hover .menu-chevron {
    color: rgba(255, 255, 255, 0.8);
}

.menu-trigger.open .menu-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

/* ─── Dropdown Panel — Glass to match trigger ─── */
.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: rgba(30, 30, 40, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 8px;
    backdrop-filter: blur(48px) saturate(1.6);
    -webkit-backdrop-filter: blur(48px) saturate(1.6);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ─── Menu Items — Icon + Label rows ─── */
.menu-item,
.menu-divider,
.menu-cta {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.19, 1, 0.22, 1), background 0.2s ease;
}

/* Staggered entrance */
.menu-dropdown.open .menu-item,
.menu-dropdown.open .menu-divider,
.menu-dropdown.open .menu-cta {
    opacity: 1;
    transform: translateY(0);
}

.menu-dropdown.open> :nth-child(1) {
    transition-delay: 0.04s;
}

.menu-dropdown.open> :nth-child(2) {
    transition-delay: 0.08s;
}

.menu-dropdown.open> :nth-child(3) {
    transition-delay: 0.12s;
}

.menu-dropdown.open> :nth-child(4) {
    transition-delay: 0.16s;
}

.menu-dropdown.open> :nth-child(5) {
    transition-delay: 0.20s;
}

.menu-dropdown.open> :nth-child(6) {
    transition-delay: 0.24s;
}

.menu-dropdown.open> :nth-child(7) {
    transition-delay: 0.28s;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}

.menu-item:hover .menu-icon {
    color: rgba(255, 255, 255, 0.7);
}

.menu-item-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.menu-item:hover .menu-item-label {
    color: #fff;
}

/* ─── Divider ─── */
.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 14px;
}

/* ─── CTA Row ─── */
.menu-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-cta .menu-icon {
    color: var(--accent);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.menu-cta:hover {
    background: rgba(232, 85, 51, 0.08);
}

.menu-cta:hover .menu-icon {
    opacity: 1;
}


/* ═══════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════ */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

#splash video {
    width: 140px;
    height: auto;
}

@keyframes splashReveal {
    0% {
        opacity: 0;
        transform: scale(0.7);
        filter: brightness(0.3);
    }

    40% {
        opacity: 1;
        transform: scale(1.02);
        filter: brightness(1.2);
    }

    60% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}



/* ═══════════════════════════════════════════
   HERO — Video background, massive type
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 48px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.55) 0%,
            rgba(10, 10, 10, 0.35) 40%,
            rgba(10, 10, 10, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero>div:not(.hero-scroll-indicator),
.hero-bottom {
    position: relative;
    z-index: 2;
    mix-blend-mode: screen;
}

.hero-name {
    position: relative;
    display: inline-block;
}

.hero-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 8vw, 100px);
    line-height: 0.88;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg,
            #ff3c78, #e85533, #ff8a50, #f5af19,
            #4ecdc4, #12c2e9, #667eea, #c471ed,
            #ff3c78);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroColorFlow 50s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(200, 100, 255, 0.2));
}

/* Shimmer sweep across text */
.hero-wordmark::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            transparent 20%,
            rgba(255, 255, 255, 0.8) 48%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.8) 52%,
            transparent 80%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroLightSweep 10s ease-in-out infinite;
}

@keyframes heroColorFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}

@keyframes heroLightSweep {

    0%,
    15% {
        background-position: 200% 0;
    }

    85%,
    100% {
        background-position: -100% 0;
    }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 3.5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 12px;
}

.hero-bottom {
    position: absolute;
    bottom: 48px;
    left: 48px;
    right: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    max-width: 560px;
    line-height: 1.6;
    margin-top: 6px;
    letter-spacing: 1.5px;
    display: inline-block;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.45) 35%,
            rgba(255, 255, 255, 0.95) 50%,
            rgba(255, 255, 255, 0.45) 65%,
            rgba(255, 255, 255, 0.45) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: taglineShimmer 5s linear infinite;
}

@keyframes taglineShimmer {
    0% {
        background-position: 100% 0;
    }

    45% {
        background-position: 0% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

.hero-tagline em {
    font-style: italic;
    color: white;
}

.hero-cycle-word {
    display: inline;
    border-right: 2px solid var(--accent);
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        border-color: var(--accent);
    }

    50% {
        border-color: transparent;
    }
}

/* ─── Hero Scroll Indicator ─── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0;
    animation: scrollFadeIn 1.5s ease 3s forwards;
    transition: opacity 0.5s ease;
}

.hero-scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.hero-scroll-text {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(232, 85, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(232, 85, 51, 0.6) 20%,
            var(--accent) 50%,
            rgba(255, 140, 100, 1) 55%,
            var(--accent) 60%,
            rgba(232, 85, 51, 0.6) 80%,
            transparent 100%);
    animation: lineLight 3s ease-in-out infinite;
}

@keyframes scrollFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Reel banner removed — video now in hero */

/* ═══════════════════════════════════════════
   CLIENTS — Infinite scrolling logo marquee
   ═══════════════════════════════════════════ */
.clients {
    background: var(--cream);
    padding: 48px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* Subtle fade at edges */
.clients::before,
.clients::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.clients::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}

.clients::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 50s linear infinite;
    animation-play-state: paused;
}

/* Start scrolling only when revealed */
.clients.visible .marquee-track {
    animation-play-state: running;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-set {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
    flex-shrink: 0;
}

.marquee-set img {
    height: 34px;
    width: auto;
    opacity: 0;
    filter: brightness(0) saturate(100%);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transform: translateY(8px);
    flex-shrink: 0;
}

/* Staggered entrance — logos fade in one by one */
.clients.visible .marquee-set img {
    opacity: 0.6;
    transform: translateY(0);
}

.clients.visible .marquee-set img:nth-child(1) {
    transition-delay: 0s;
}

.clients.visible .marquee-set img:nth-child(2) {
    transition-delay: 0.1s;
}

.clients.visible .marquee-set img:nth-child(3) {
    transition-delay: 0.2s;
}

.clients.visible .marquee-set img:nth-child(4) {
    transition-delay: 0.3s;
}

.clients.visible .marquee-set img:nth-child(5) {
    transition-delay: 0.4s;
}

.clients.visible .marquee-set img:nth-child(6) {
    transition-delay: 0.5s;
}

.clients.visible .marquee-set img:nth-child(7) {
    transition-delay: 0.6s;
}

.marquee-set img:hover {
    opacity: 0.85 !important;
}

/* Per-logo size adjustments */
.marquee-set img[src*="Raytheon"] {
    height: 70px;
}

.marquee-set img[src*="Boeing"] {
    height: 64px;
}

.marquee-set img[src*="new-balance"],
.marquee-set img[src*="new_balance"] {
    height: 42px;
}

/* Century 21 — height override */
.marquee-set img[src*="Century-21"] {
    height: 50px;
}

/* Universal Pictures — height override */
.marquee-set img[src*="Universal"] {
    height: 64px;
}



/* ═══════════════════════════════════════════
   SELECTED WORK — Dark bg, numbered entries
   ═══════════════════════════════════════════ */
.work {
    background: var(--black);
    color: var(--text-light);
    padding: 120px 48px 80px;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 80px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-header h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.work-header .work-count {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Individual project entry */
.project {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 32px;
    align-items: start;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
}

.project:last-child {
    border-bottom: none;
}

.project-number {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 8px;
}

.project-media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    background: #111;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease);
}

.project-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: transparent;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    z-index: 1;
}

.always-loop video {
    opacity: 1;
}

.project:hover .project-media img {
    transform: none;
}

.project:hover .project-media video {
    opacity: 1;
}

.project-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.project:hover .project-play {
    opacity: 1;
}

.project-play svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-left: 3px;
}

.project-info {
    padding-top: 8px;
}

.project-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 255, 255, 0.85) 30%,
            #e85533 45%,
            #ff9a76 50%,
            #e85533 55%,
            rgba(255, 255, 255, 0.85) 70%,
            rgba(255, 255, 255, 0.85) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project.in-view .project-title {
    animation: projectShimmer 3s ease infinite;
}

.project:hover .project-title {
    -webkit-text-fill-color: var(--accent);
    animation: none;
}

.project-meta {
    font-family: var(--font-body);
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.4) 30%,
            rgba(232, 85, 51, 0.8) 45%,
            rgba(255, 154, 118, 0.9) 50%,
            rgba(232, 85, 51, 0.8) 55%,
            rgba(255, 255, 255, 0.4) 70%,
            rgba(255, 255, 255, 0.4) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project.in-view .project-meta {
    animation: projectShimmer 3s ease 0.2s infinite;
}

.project-role {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    display: inline-block;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.35) 30%,
            rgba(232, 85, 51, 0.6) 45%,
            rgba(255, 154, 118, 0.7) 50%,
            rgba(232, 85, 51, 0.6) 55%,
            rgba(255, 255, 255, 0.35) 70%,
            rgba(255, 255, 255, 0.35) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project.in-view .project-role {
    animation: projectShimmer 3s ease 0.4s infinite;
}

@keyframes projectShimmer {
    0% {
        background-position: 100% 0;
    }

    60% {
        background-position: -50% 0;
    }

    100% {
        background-position: -50% 0;
    }
}

/* Alternate layout — even projects flip image/info */
.project:nth-child(even) {
    grid-template-columns: 80px 1fr 1fr;
}

.project:nth-child(even) .project-media {
    order: 2;
}

.project:nth-child(even) .project-info {
    order: 1;
    text-align: right;
}

/* ═══════════════════════════════════════════
   ABOUT — Back to cream
   ═══════════════════════════════════════════ */
.about {
    background: var(--cream);
    color: var(--text-dark);
    padding: 120px 48px;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 80px;
    align-items: center;
}

.about-text-col {
    flex: 1;
    min-width: 0;
}

.about-photo {
    flex: 0 0 420px;
    position: relative;
    margin-top: 0;
    overflow: hidden;
    border-radius: 6px;
}

.about-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 60%, var(--cream) 100%),
        linear-gradient(to right, var(--cream) 0%, transparent 15%),
        radial-gradient(ellipse at center, transparent 50%, var(--cream) 100%);
    pointer-events: none;
    z-index: 1;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.5) contrast(0.65) brightness(1.4) saturate(0.5);
    opacity: 0.55;
    transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.about-photo:hover img {
    filter: sepia(0) contrast(1) brightness(1);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-photo {
        flex: none;
        width: 100%;
        max-width: 360px;
        margin-top: 0;
    }
}

.about-label {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted-light);
    margin-bottom: 40px;
}

.about-statement {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 48px;
}

.about-statement span {
    color: var(--accent);
}

.about-text {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted-light);
    max-width: 600px;
    margin-bottom: 32px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ─── Premium word-reveal ─── */
.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.word-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 500;
}

.about-stats {
    display: flex;
    gap: 64px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1;
    color: var(--text-dark);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted-light);
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   CONTACT — Dark
   ═══════════════════════════════════════════ */
.contact {
    background: var(--black);
    padding: 120px 48px 100px;
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
}

.contact-direct {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 48px;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 1px;
}

.contact-direct a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-direct a:hover {
    color: var(--accent);
}

.contact-direct-divider {
    color: rgba(255, 255, 255, 0.25);
}

.contact-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.35) 35%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 255, 255, 0.35) 65%,
            rgba(255, 255, 255, 0.35) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: contactShimmer 5s linear infinite;
}

@keyframes contactShimmer {
    0% {
        background-position: 100% 0;
    }

    45% {
        background-position: 0% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

.contact-accent-line {
    width: 1px;
    height: 48px;
    background: rgba(232, 85, 51, 0.3);
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

.contact-accent-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(232, 85, 51, 0.6) 20%,
            var(--accent) 50%,
            rgba(255, 140, 100, 1) 55%,
            var(--accent) 60%,
            rgba(232, 85, 51, 0.6) 80%,
            transparent 100%);
    animation: lineLight 3s ease-in-out infinite;
    animation-delay: 2.5s;
}

@keyframes lineLight {
    0% {
        top: -60%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 140%;
        opacity: 0;
    }
}

.contact-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -1px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.contact-sub {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 56px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ─── Contact Form ─── */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    outline: none;
    transition: all 0.35s var(--ease);
    resize: vertical;
    width: 100%;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: var(--text-light);
    padding: 12px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(232, 85, 51, 0.5);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(232, 85, 51, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-submit {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    padding: 18px 56px;
    cursor: pointer;
    align-self: center;
    transition: all 0.4s var(--ease);
    margin-top: 8px;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(232, 85, 51, 0.35);
    background: #d44a2a;
}

/* ─── FAQ Accordion ─── */
.faq {
    max-width: 680px;
    margin: 64px auto 0;
}

.faq-heading {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 24px;
}

.faq-list {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--text-light);
}

.faq-icon {
    font-size: 18px;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 24px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    padding-bottom: 20px;
}

/* ═══════════════════════════════════════════
   FOOTER — Premium Centered
   ═══════════════════════════════════════════ */
footer {
    position: relative;
    overflow: hidden;
    background: var(--black);
    color: var(--text-muted);
    padding: 80px 48px 48px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.5);
    object-fit: cover;
    opacity: 0.15;
    filter: saturate(0.4) brightness(0.6);
    z-index: 1;
    pointer-events: none;
}

footer>*:not(.footer-video-bg) {
    position: relative;
    z-index: 2;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-light);
    margin-bottom: 32px;
    text-align: center;
}

.footer-brand img {
    margin: 0 auto;
}

.footer-divider {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 32px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-contact a {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    transition: color 0.3s var(--ease);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-nav a {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
    color: var(--text-light);
}

.footer-social {
    margin-bottom: 40px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for projects */
.project:nth-child(1) {
    transition-delay: 0s;
}

.project:nth-child(2) {
    transition-delay: 0.1s;
}

.project:nth-child(3) {
    transition-delay: 0.15s;
}

.project:nth-child(4) {
    transition-delay: 0.2s;
}

.project:nth-child(5) {
    transition-delay: 0.25s;
}

.project:nth-child(6) {
    transition-delay: 0.3s;
}

.project:nth-child(7) {
    transition-delay: 0.35s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .signal-rail {
        width: 44px;
        padding: 40px 10px;
    }

    .hero {
        padding: 0 24px;
    }

    .hero-bottom {
        left: 24px;
        right: 24px;
        bottom: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-tagline {
        text-align: left;
    }

    .clients {
        padding: 32px 0;
    }

    .marquee-set {
        gap: 60px;
        padding: 0 30px;
    }

    .marquee-set img {
        height: 24px;
    }

    .work {
        padding: 80px 24px;
    }

    .project {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .project-number {
        font-size: 12px;
    }

    .project-media {
        order: 1 !important;
        width: 100%;
    }

    .project-info {
        order: 2 !important;
        text-align: left !important;
    }

    .project:nth-child(even) .project-media {
        order: 1 !important;
    }

    .project:nth-child(even) .project-info {
        order: 2 !important;
        text-align: left;
    }

    .about {
        padding: 80px 24px;
    }

    .about-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .contact {
        padding: 80px 24px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    footer {
        padding: 32px 24px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════
   PROJECT DETAIL OVERLAY
   ═══════════════════════════════════════════ */

/* Panel wipe transition — driven by JS via inline transform */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    z-index: 10000;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Detail overlay — hidden by default */
.project-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
    background: #0a0a0a;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    opacity: 0;
}

.project-detail-overlay.visible {
    display: block;
    opacity: 1;
}

/* Detail page inner content */
.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 140px 0 40px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s var(--ease);
}

.detail-back:hover {
    color: var(--accent);
}

.detail-back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.detail-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 56px;
}

.detail-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.detail-description {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 56px;
    max-width: 680px;
}

.detail-section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.detail-credits {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-credit-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-body);
    font-size: 14px;
}

.detail-credit-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-credit-label {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.detail-credit-value {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    text-align: right;
}

/* Make cards clickable */
.project {
    cursor: pointer;
}

/* Detail page content entrance animations */
.detail-fade-in {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
}

.detail-fade-in.animate {
    animation: detailFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes detailFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 0 20px 60px;
    }

    .detail-back {
        padding-top: 100px;
    }

    .detail-credit-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-credit-value {
        text-align: left;
    }
}

/* ═══════════════════════════════════════════
   THANK YOU MODAL
   ═══════════════════════════════════════════ */
.thank-you-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.thank-you-modal.visible {
    opacity: 1;
}

.thank-you-inner {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.thank-you-modal.visible .thank-you-inner {
    transform: scale(1) translateY(0);
}

.thank-you-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thank-you-inner h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.thank-you-inner p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 32px;
}

.thank-you-close {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    padding: 14px 48px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thank-you-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 85, 51, 0.35);
}