/* --- 1. CORE VARIABLES (Royal Odisha Palette) --- */
:root {
    /* PALETTE DEFINITION */
    --color-cream: #f4f1ea;
    --color-maroon: #5e0b15;
    --color-gold: #bf9b30;
    --color-turmeric: #d4a817;
    --color-black: #0a0a0a;

    /* SEMANTIC VARIABLES */
    --bg-deep: var(--color-cream);
    --bg-card: var(--color-maroon);
    --bg-glass: rgba(94, 11, 21, 0.05);
    --border-light: rgba(94, 11, 21, 0.1);

    --text-primary: var(--color-black);
    --text-inverse: var(--color-cream);
    --text-secondary: rgba(10, 10, 10, 0.6);

    --accent-gold: var(--color-gold);
    --accent-pop: var(--color-turmeric);

    --font-ui: 'Manrope', -apple-system, sans-serif;
    --font-display: 'Syncopate', sans-serif;

    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
    --radius-lg: 32px;
}

/* SELECTION HIGHLIGHT */
::selection {
    background: var(--color-maroon);
    color: var(--color-gold);
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* Custom cursor everywhere */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Fade In */
    animation: fadeContent 1s var(--ease-apple) forwards;
    opacity: 0;
}

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

/* --- 2. CUSTOM CURSOR (OPTIMIZED) --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    /* Use transform for movement to save CPU */
    transform: translate(-100px, -100px);
    /* Hide offscreen initially */
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-maroon);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-gold);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    /* NO transform transition here, handled in JS loop */
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 168, 23, 0.1);
    backdrop-filter: blur(2px);
    border-color: var(--accent-pop);
}

/* NOISE TEXTURE (Performance: Hide on mobile) */
.noise-surface {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: multiply;
    will-change: opacity;
}

@media (max-width: 768px) {
    .noise-surface {
        display: none;
    }
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-maroon);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s var(--ease-apple), visibility 0.6s;
}

.preloader.complete {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.brand-loader {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 2rem;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.loading-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

/* --- 3. INVISIBLE HEADER --- */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 2000;
    padding: 40px 5%;
    pointer-events: none;
}

.floating-brand {
    position: absolute;
    top: 40px;
    left: 5%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-gold);
    text-decoration: none;
    pointer-events: auto;
    text-transform: uppercase;
    letter-spacing: -1px;
}

header.menu-active .floating-brand {
    color: var(--color-cream);
}

.menu-corner {
    position: absolute;
    top: 40px;
    right: 5%;
    pointer-events: auto;
}

.minimal-trigger {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--color-maroon);
}

.minimal-trigger.active {
    color: var(--color-cream);
}

.trigger-text {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.trigger-lines {
    width: 32px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trigger-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    transition: transform 0.3s var(--ease-apple), width 0.3s ease;
}

.minimal-trigger:hover .trigger-lines span:nth-child(1) {
    width: 60%;
    margin-left: auto;
}

.minimal-trigger.active .trigger-text {
    opacity: 0;
}

.minimal-trigger.active .trigger-lines span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    width: 100%;
}

.minimal-trigger.active .trigger-lines span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

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

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.media-layer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transform: scale(1.1);
    /* Initial state */
    will-change: transform;
    /* Performance Hint */
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(94, 11, 21, 0.2) 0%, rgba(94, 11, 21, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-typography {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-cream);
}

.label-caps {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
    font-weight: 600;
}

.headline-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 9rem);
    line-height: 0.85;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 30px rgba(94, 11, 21, 0.4);
    margin-bottom: 40px;
    color: var(--color-cream);
}

/* --- 5. BUTTONS --- */
.apple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.1s linear;
    position: relative;
    overflow: hidden;
}

.apple-button.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.apple-button.dark {
    background: var(--color-maroon);
    color: var(--color-gold);
    border: 1px solid transparent;
}

.apple-button.dark:hover {
    box-shadow: 0 10px 25px rgba(94, 11, 21, 0.3);
    background: var(--color-black);
}

/* --- 6. STACK ENGINE --- */
.stack-engine {
    background: var(--bg-deep);
    padding-bottom: 10vh;
}

.stack-header {
    padding: 120px 5% 60px;
    text-align: center;
}

.section-label {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--color-maroon);
}

.stack-card {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.card-body {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(191, 155, 48, 0.2);
    overflow: hidden;
    position: relative;
    box-shadow: 0 -20px 60px rgba(94, 11, 21, 0.15);
    display: flex;
    flex-direction: column;
    transform-origin: center top;
    will-change: transform, filter, opacity;
}

.card-visual {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.card-visual img {
    width: 100%;
    height: 120%;
    position: absolute;
    top: -10%;
    left: 0;
    object-fit: cover;
    will-change: transform;
    transition: none;
    /* Handled by JS */
}

.card-content {
    padding: 40px;
    background: linear-gradient(to top, var(--color-maroon), transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    margin: 10px 0;
    color: var(--text-inverse);
}

/* --- 7. FULL SCREEN MENU --- */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: var(--color-maroon);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-apple);
}

.fullscreen-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-menu .minimal-trigger {
    color: var(--color-cream);
}

.menu-content {
    width: 90%;
    max-width: 1200px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.menu-main-links {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--color-cream);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(244, 241, 234, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s, padding-left 0.3s;
}

.menu-link:hover {
    color: var(--accent-gold);
    padding-left: 20px;
}

.menu-link .index {
    font-size: 1rem;
    font-family: var(--font-ui);
    color: rgba(244, 241, 234, 0.5);
}

.menu-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding-left: 40px;
    border-left: 1px solid rgba(244, 241, 234, 0.1);
}

.menu-col h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.menu-col a {
    display: block;
    color: var(--color-cream);
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* --- 8. FOOTER --- */
.footer-view {
    background: var(--color-black);
    padding: 80px 5% 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    color: var(--color-cream);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-statement h3 {
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 1.5rem;
    color: rgba(244, 241, 234, 0.7);
    line-height: 1.4;
    max-width: 500px;
}

.footer-email-box {
    text-align: right;
}

.footer-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.big-email-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-cream);
    text-decoration: none;
    line-height: 1;
    transition: color 0.3s ease;
}

.big-email-link:hover {
    color: var(--accent-gold);
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-col h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-cream);
    margin-bottom: 20px;
}

.footer-brand-col p {
    color: rgba(244, 241, 234, 0.5);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-nav-col h4 {
    font-size: 0.85rem;
    color: var(--color-cream);
    margin-bottom: 24px;
    font-weight: 500;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-col a {
    text-decoration: none;
    color: rgba(244, 241, 234, 0.5);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-col a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-base {
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(244, 241, 234, 0.3);
}

.live-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* --- SERVICES & REEL ENGINE --- */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.feature-tag {
    padding: 8px 16px;
    border: 1px solid rgba(94, 11, 21, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--color-maroon);
    background: rgba(94, 11, 21, 0.05);
}

.price-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(94, 11, 21, 0.1);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.gold {
    color: var(--color-maroon);
    font-weight: 600;
}

/* Horizontal Reel */
.horizontal-scroll-view {
    height: 400vh;
    position: relative;
    background: var(--bg-deep);
}

.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.horizontal-track {
    display: flex;
    gap: 6vw;
    padding-left: 10vw;
    padding-right: 10vw;
    width: max-content;
    will-change: transform;
}

.reel-card {
    height: 70vh;
    flex-shrink: 0;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-cream);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.reel-card.intro {
    width: 30vw;
    min-width: 300px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reel-card.intro .section-label {
    color: var(--color-maroon);
}

.reel-card.service {
    width: 60vw;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.reel-visual {
    height: 60%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.reel-visual img {
    width: 100%;
    height: 120%;
    position: absolute;
    top: -10%;
    left: 0;
    object-fit: cover;
    will-change: transform;
    transition: none;
}

.reel-content {
    height: 40%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: white;
}

.reel-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(94, 11, 21, 0.1);
}

.reel-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--color-maroon);
}

.reel-content p {
    color: var(--text-secondary);
    max-width: 80%;
    margin-bottom: 24px;
}

.reel-card.cta {
    width: 30vw;
    min-width: 300px;
    background: var(--color-maroon);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.reel-card.cta h3 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-email-box {
        text-align: left;
    }

    .footer-bottom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .horizontal-scroll-view {
        height: auto !important;
        padding-bottom: 80px;
    }

    .sticky-viewport {
        position: static;
        height: auto;
        display: block;
        overflow: visible;
    }

    .horizontal-track {
        width: 100%;
        flex-direction: column;
        padding: 60px 5%;
        gap: 60px;
        transform: none !important;
    }

    .reel-card.intro,
    .reel-card.service,
    .reel-card.cta {
        width: 100%;
        height: auto;
        min-height: 0;
        margin-bottom: 0;
    }

    .reel-visual {
        height: 300px;
    }

    .hero-typography .headline-display {
        font-size: 8vw;
        line-height: 1.1;
        margin-bottom: 30px;
        word-wrap: break-word;
    }
}

@media (max-width: 768px) {
    .floating-header {
        padding: 24px 20px;
    }

    .floating-brand {
        top: 24px;
        left: 20px;
        font-size: 1.2rem;
    }

    .menu-corner {
        top: 24px;
        right: 20px;
    }

    .trigger-text {
        display: none;
    }

    /* Hide Custom Cursor on Mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    *,
    *::before,
    *::after {
        cursor: auto;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 100px;
    }

    .menu-info {
        border-left: none;
        border-top: 1px solid rgba(244, 241, 234, 0.1);
        padding-left: 0;
        padding-top: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .menu-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (max-width: 600px) {
    .footer-bottom-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-base {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* --- CONTACT MODAL ENGINE --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(94, 11, 21, 0.8);
    backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-apple);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    width: 100%;
    max-width: 500px;
    background: var(--color-cream);
    border: 1px solid var(--accent-gold);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s var(--ease-apple);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(94, 11, 21, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close-btn:hover {
    background: rgba(94, 11, 21, 0.2);
}

.modal-close-btn span {
    position: absolute;
    width: 16px;
    height: 1px;
    background: var(--color-maroon);
}

.modal-close-btn .line-1 {
    transform: rotate(45deg);
}

.modal-close-btn .line-2 {
    transform: rotate(-45deg);
}

.modal-header .label-caps {
    color: var(--accent-gold);
}

.modal-header .headline-display {
    color: var(--color-maroon);
}

/* Form Styling */
.input-group {
    position: relative;
    margin-bottom: 24px;
    margin-top: 10px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(94, 11, 21, 0.2);
    padding: 12px 0;
    color: var(--color-maroon);
    font-family: var(--font-ui);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-gold);
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: rgba(94, 11, 21, 0.5);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--accent-gold);
}

/* --- WORK PAGE: MASONRY GRID --- */
.work-hero {
    height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 0 5% 80px;
}

.work-hero .headline-display {
    color: var(--color-maroon);
}

.gallery-view {
    padding: 0 5% 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.work-item {
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.work-item.offset-down {
    margin-top: 120px;
}

.work-visual {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.work-visual img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-item:hover .work-visual img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(94, 11, 21, 0.2);
    transition: background 0.3s;
}

.work-item:hover .work-overlay {
    background: rgba(0, 0, 0, 0);
}

.work-meta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

.work-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-maroon);
}

.work-year {
    font-family: var(--font-ui);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.work-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- VIDEO MODAL --- */
.video-container {
    width: 90vw;
    height: 80vh;
    background: black;
    position: relative;
}

.video-wrapper {
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--color-maroon);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* --- LEGAL & TEXT PAGES --- */
.legal-hero {
    padding: 180px 5% 80px;
    text-align: center;
}

.legal-hero .headline-display {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--color-maroon);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto 150px;
    padding: 0 5%;
}

.legal-text {
    font-family: var(--font-ui);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

.legal-text h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-maroon);
    margin-top: 60px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.legal-text p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.legal-text ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.legal-text li {
    margin-bottom: 10px;
}

/* --- CREDITS PAGE (Cast List Style) --- */
.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 60px;
    max-width: 800px;
    margin: 0 auto 150px;
    padding: 0 5%;
}

.credit-role {
    text-align: right;
    font-family: var(--font-ui);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.credit-name {
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-maroon);
    font-size: 1.2rem;
}

.credit-divider {
    grid-column: span 2;
    height: 1px;
    background: var(--border-light);
    margin: 40px 0;
}

/* Mobile tweak for credits */
@media (max-width: 600px) {
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
    }

    .credit-role {
        text-align: center;
        justify-content: center;
        margin-top: 20px;
        color: var(--accent-gold);
    }

    .credit-name {
        text-align: center;
    }

    .credit-divider {
        margin: 20px 0;
    }
}

/* --- BEFORE & AFTER SLIDER --- */
.retouch-showcase {
    padding: 100px 5%;
    background: var(--bg-deep);
    text-align: center;
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    /* Create a cinematic aspect ratio (21:9 or 16:9) */
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 20px 50px rgba(94, 11, 21, 0.15);
}

.comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Let clicks pass through to the input */
}

/* The "Before" image sits on top */
.comp-img.before {
    z-index: 2;
    /* Initially clipped to 50% */
    clip-path: inset(0 50% 0 0);
    /* For demo purposes, let's make the "Before" image black & white using CSS filter */
    filter: grayscale(100%) contrast(0.8);
}

/* The Slider Handle Decoration */
.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    /* Matches initial value */
    width: 2px;
    background: var(--accent-gold);
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* The Invisible Input (The Logic) */
.comparison-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    opacity: 0;
    cursor: e-resize;
    margin: 0;
}

/* --- AUDIO TRIGGER --- */
.audio-trigger {
    background: none;
    border: none;
    display: flex;
    align-items: flex-end;
    /* Align bars to bottom */
    gap: 3px;
    height: 24px;
    cursor: pointer;
    margin-right: 20px;
    /* Space between sound and menu */
    padding-bottom: 5px;
}

.audio-trigger .bar {
    width: 2px;
    background-color: var(--color-maroon);
    transition: height 0.2s ease, background-color 0.3s;
    height: 4px;
    /* Default stopped height */
}

/* Active State (Playing) */
.audio-trigger.playing .bar {
    background-color: var(--color-gold);
    /* Gold when playing */
    animation: equalizer 1s infinite ease-in-out;
}

/* Stagger animation for each bar */
.audio-trigger.playing .bar:nth-child(1) {
    animation-delay: 0.0s;
    height: 12px;
}

.audio-trigger.playing .bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 18px;
}

.audio-trigger.playing .bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 10px;
}

.audio-trigger.playing .bar:nth-child(4) {
    animation-delay: 0.1s;
    height: 14px;
}

/* In Dark Mode/Menu Active */
header.menu-active .audio-trigger .bar {
    background-color: var(--color-cream);
}

@keyframes equalizer {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}