/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #faf8f2;
    --color-bg-alt: #f0e8d4;
    --color-white: #1c1610;
    --color-light: #5a4a30;
    --color-muted: #8a7450;
    --color-dim: #c0a878;
    --color-gold: #9a7830;
    --color-gold-light: #C9A96E;
    --color-gold-dim: rgba(154, 120, 48, 0.2);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
strong { color: var(--color-white); font-weight: 500; }
em { color: var(--color-light); }

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.8rem 4rem;
    transition: all 0.5s var(--ease);
}

.main-nav.scrolled {
    background: rgba(250, 248, 242, 0.93);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 1.2rem 4rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.4s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ===== PANELS (Full-viewport sections) ===== */
.panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.panel-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10rem 5rem 6rem;
}

.panel-inner-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== VIDEO BACKGROUNDS ===== */
.video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.video-overlay-heavy {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.6);
}

.display-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: inherit;
}

.body-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.body-text-large {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-light);
}

.pull-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-style: italic;
    color: var(--color-gold-light);
    margin-top: 2.5rem;
    padding-left: 2rem;
    border-left: 1px solid var(--color-gold-dim);
    line-height: 1.5;
}

/* ===== HERO SECTION ===== */
.panel-hero {
    height: 100vh;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    padding: 0 2rem;
}

.hero-logo {
    width: clamp(80px, 12vw, 160px);
    height: auto;
    opacity: 0;
    animation: revealUp 1.2s var(--ease-out) 0.2s forwards;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: revealUp 1.2s var(--ease-out) 0.5s forwards;
}

.hero-sub {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
    opacity: 0;
    animation: revealUp 1.2s var(--ease-out) 0.8s forwards;
}

/* ===== INSPIRATION SECTION ===== */
.panel-inspiration {
    min-height: 100vh;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.split-left .display-heading {
    margin-top: 0.5rem;
}

.split-right {
    padding-top: 0.5rem;
}

/* ===== CREATIVE FLOW SECTION ===== */
.panel-process {
    background: linear-gradient(135deg, #faf8f2 0%, #f0e8d4 100%);
}

.panel-process .split-layout {
    position: relative;
    z-index: 1;
}

/* ===== PROJECTS SECTION ===== */
.panel-projects {
    background: linear-gradient(160deg, #faf8f2 0%, #f0e8d4 100%);
}

.projects-header {
    margin-bottom: 4rem;
}

/* Carousel */
.projects-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 70%;
    scroll-snap-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s var(--ease);
}

.carousel-card:hover {
    transform: scale(0.98);
}

.card-media {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg);
    border-radius: 12px;
    position: relative;
}

.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.carousel-card:hover .card-media video {
    transform: scale(1.04);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.card-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--color-gold-light);
    line-height: 1;
}

.card-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

/* Sound Toggle */
.sound-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.4);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: var(--color-gold-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 5;
}

.carousel-card:hover .sound-toggle {
    opacity: 1;
}

.sound-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.sound-toggle .icon-unmuted {
    display: none;
}

.sound-toggle.unmuted .icon-muted {
    display: none;
}

.sound-toggle.unmuted .icon-unmuted {
    display: block;
}

.sound-toggle-section {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    top: auto;
    opacity: 1;
    z-index: 10;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-gold-dim);
    background: transparent;
    color: var(--color-gold-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.carousel-btn:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    border-color: var(--color-gold);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-gold);
    width: 24px;
    border-radius: 4px;
}

.card-description {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0;
}

/* ===== ABOUT HERO ===== */
.panel-about-hero {
    min-height: 100vh;
    height: auto;
}

.about-body-hero {
    max-width: 700px;
    margin-top: 2rem;
    text-align: left;
}

.about-block {
    margin-bottom: 0.3rem;
}

.about-highlight {
    padding: 1.2rem 2rem;
    border-left: 2px solid var(--color-gold-dim);
    margin: 1.2rem 0;
}

.about-highlight p {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-gold-light);
    margin: 0;
}

/* ===== BIOGRAPHY SECTION ===== */
.panel-bio {
    min-height: 100vh;
}

.bio-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
}

.bio-left .eyebrow {
    position: sticky;
    top: 10rem;
}

.bio-portrait {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.bio-portrait img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: grayscale(15%);
    transition: filter 0.6s;
}

.bio-portrait:hover img {
    filter: grayscale(0%);
}

.bio-education {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gold-dim);
}

.bio-education .eyebrow {
    margin-bottom: 0.8rem;
}

/* ===== CONTACT SECTION ===== */
.panel-contact {
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1200 100%);
    color: #ffffff;
}

.panel-contact .display-heading { color: #ffffff; }
.panel-contact .body-text { color: rgba(255,255,255,0.6); }
.panel-contact .body-text-large { color: rgba(255,255,255,0.8); }
.panel-contact .detail-value { color: rgba(255,255,255,0.85); }
.panel-contact .footer-tagline { color: var(--color-gold-light); }

.panel-contact .panel-inner-center {
    text-align: center;
}

.panel-contact .display-heading {
    margin-bottom: 1.5rem;
}

.contact-details-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.contact-details-row .contact-detail {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.4rem;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--color-light);
    transition: color 0.3s;
}

.detail-value:hover {
    color: var(--color-gold-light);
}

/* Social Links */
.contact-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: all 0.3s var(--ease);
}

.social-link:hover {
    color: var(--color-gold-light);
    border-color: var(--color-gold);
    background: var(--color-gold-dim);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    margin-top: 1rem;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-gold-light);
}

.btn-primary svg {
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-whatsapp {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 1.2rem 2.8rem;
    gap: 1rem;
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 5rem 5rem 3rem;
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1200 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-gold-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.25);
}

/* ===== SCROLLED NAV OVERRIDES (light theme) ===== */
.main-nav.scrolled .nav-link {
    color: var(--color-muted);
}
.main-nav.scrolled .nav-link:hover,
.main-nav.scrolled .nav-link.active {
    color: var(--color-gold);
}
.main-nav.scrolled .nav-toggle span {
    background: var(--color-white);
}

/* ===== VIDEO SECTION TEXT OVERRIDES (light theme) ===== */
.panel-hero,
.panel-content-agency,
.panel-inspiration,
.panel-about-hero {
    color: #ffffff;
}
.panel-hero strong,
.panel-content-agency strong,
.panel-inspiration strong,
.panel-about-hero strong { color: #ffffff; }
.panel-hero em,
.panel-content-agency em,
.panel-inspiration em,
.panel-about-hero em { color: rgba(255,255,255,0.8); }
.panel-hero .hero-sub,
.panel-content-agency .hero-sub { color: rgba(255,255,255,0.65); }
.panel-hero .body-text,
.panel-content-agency .body-text,
.panel-inspiration .body-text,
.panel-about-hero .body-text { color: rgba(255,255,255,0.72); }
.panel-hero .body-text-large,
.panel-content-agency .body-text-large,
.panel-inspiration .body-text-large,
.panel-about-hero .body-text-large { color: rgba(255,255,255,0.85); }

/* Mobile nav link color on cream overlay */
.nav-links.open .nav-link {
    color: var(--color-muted);
}
.nav-links.open .nav-link:hover,
.nav-links.open .nav-link.active {
    color: var(--color-gold);
}

/* ===== ANIMATIONS ===== */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }
[data-reveal]:nth-child(5) { transition-delay: 0.4s; }
[data-reveal]:nth-child(6) { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .panel-inner {
        padding: 8rem 3rem 5rem;
    }

    .split-layout,
    .bio-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-portrait {
        position: relative;
        top: auto;
        max-width: 400px;
    }

    .bio-left .eyebrow {
        position: relative;
        top: auto;
    }

    .carousel-card {
        flex: 0 0 85%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1.2rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        padding: 5rem 2rem 3rem;
        z-index: 99;
        background: rgba(250, 248, 242, 0.98);
        backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.8rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }

    .panel-inner {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .display-heading {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .carousel-card {
        flex: 0 0 92%;
    }

    .split-layout,
    .bio-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-details-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-portrait {
        max-width: 300px;
    }

    .site-footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 140px;
    }

    .panel-inner {
        padding: 6rem 1.2rem 3rem;
    }

    .carousel-card {
        flex: 0 0 95%;
    }

    .pull-quote {
        font-size: 1.2rem;
    }
}
