/* =====================================================
   ALOJA AGENCY - WHITE→BLACK ZOOM + URBAN CREATIVE
   ===================================================== */

/* =====================================================
   FONTS
   ===================================================== */

@font-face {
    font-family: 'Nutmeg';
    src: url('../fonts/Nutmeg-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nutmeg';
    src: url('../fonts/Nutmeg-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nutmeg';
    src: url('../fonts/Nutmeg-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nutmeg', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button, input, textarea, select {
    font-family: inherit;
}

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

/* =====================================================
   HERO SECTION - WHITE → BLACK ZOOM PARALLAX
   ===================================================== */

.hero-container {
    height: 300vh;
    position: relative;
}

.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Urban film grain overlay — subtle on white */
.urban-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.12;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Urban geometric lines */
.urban-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
}

.urban-lines::before,
.urban-lines::after {
    content: '';
    position: absolute;
}

.urban-lines::before {
    top: 0;
    left: 22%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 10%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.08) 60%, transparent 90%);
}

.urban-lines::after {
    top: 62%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent 5%, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.06) 70%, transparent 95%);
}

/* Hero overlay — fades white to deep black during scroll */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: #000000;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    z-index: 3;
    transform: scale(0.07);
}

.hero-logo {
    width: 4000px;
    max-width: none;
    height: auto;
    filter: brightness(0);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* =====================================================
   CLAIM SECTION
   ===================================================== */

.claim-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    background: #000000;
    overflow: hidden;
}

/* A Silhouette - starts fully hidden, fades in on scroll */
.a-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    max-width: 700px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.a-silhouette.revealed {
    opacity: 0.08;
}

.a-silhouette img {
    width: 100%;
    height: auto;
    filter: invert(1);
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Claim Content */
.claim-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.claim-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.claim-section.in-view .claim-label {
    opacity: 1;
    transform: translateY(0);
}

.claim-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #ffffff;
}

.claim-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.claim-section.in-view .claim-word {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.claim-word:nth-child(1) { transition-delay: 0.1s; }
.claim-word:nth-child(2) { transition-delay: 0.2s; }
.claim-word:nth-child(3) { transition-delay: 0.3s; }
.claim-word:nth-child(4) { transition-delay: 0.4s; }
.claim-word:nth-child(5) { transition-delay: 0.5s; }

.claim-services {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.claim-section.in-view .claim-services {
    opacity: 1;
    transform: translateY(0);
}

.service-text {
    margin-right: 8px;
}

.service-highlight {
    font-weight: 700;
    color: #ffffff;
}

.claim-emphasis {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

.claim-section.in-view .claim-emphasis {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: #ff0040;
    animation: glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    color: #00ffff;
    animation: glitch2 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    91% { opacity: 0.8; transform: translate(-3px, -1px); }
    93% { opacity: 0.8; transform: translate(3px, 1px); }
    95% { opacity: 0; transform: translate(0); }
}

@keyframes glitch2 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    92% { opacity: 0.8; transform: translate(3px, 1px); }
    94% { opacity: 0.8; transform: translate(-3px, -1px); }
    96% { opacity: 0; transform: translate(0); }
}

/* =====================================================
   PORTFOLIO SECTION
   ===================================================== */

.portfolio-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: #000000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Row 1: 2 videos — Row 2: 3 videos — full grid, no gaps */
.video-item:nth-child(1) { grid-column: 1 / 4; }
.video-item:nth-child(2) { grid-column: 4 / 7; }
.video-item:nth-child(3) { grid-column: 1 / 3; }
.video-item:nth-child(4) { grid-column: 3 / 5; }
.video-item:nth-child(5) { grid-column: 5 / 7; }

.video-item {
    position: relative;
    background: #111111;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entry directions — each video arrives from a different place, very dramatic */
.video-item:nth-child(1) { transform: translateX(-320px) translateY(60px) rotate(-8deg) scale(0.8); }
.video-item:nth-child(2) { transform: translateX(320px) translateY(-50px) rotate(8deg) scale(0.8); }
.video-item:nth-child(3) { transform: translateY(280px) translateX(-80px) scale(0.6) rotate(-4deg); }
.video-item:nth-child(4) { transform: translateY(250px) scale(0.5) rotate(6deg); }
.video-item:nth-child(5) { transform: translateY(280px) translateX(80px) scale(0.6) rotate(4deg); }

.video-item.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    z-index: 5;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Badge — transparent bg, subtle shadow for contrast */
.video-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    z-index: 10;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.video-item:hover .video-badge {
    transform: scale(1.15);
}

.video-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =====================================================
   ALLIES SECTION
   ===================================================== */

.allies-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: #000000;
    overflow: hidden;
}

.allies-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.allies-section.in-view .allies-title {
    opacity: 1;
    transform: translateY(0);
}

.allies-carousel {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.allies-track {
    display: flex;
    gap: 100px;
    animation: scrollLogos 18s linear infinite;
    width: max-content;
    align-items: center;
}

.allies-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ally-logo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.65;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ally-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.12);
}

.ally-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =====================================================
   ADN SECTION - WHITE + GLASSMORPHISM
   ===================================================== */

.adn-section {
    position: relative;
    width: 100%;
    padding: 120px 40px;
    background: #ffffff;
    overflow: hidden;
}

.adn-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ADN intro text */
.adn-intro {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.adn-section.in-view .adn-intro {
    opacity: 1;
    transform: translateY(0);
}

.adn-text {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
}

.letter-a {
    font-weight: 700;
    font-size: 1.6rem;
    color: #000000;
}

.adn-closing {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

/* Values intro heading */
.values-intro {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 60px;
    color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.adn-section.in-view .values-intro {
    opacity: 1;
    transform: translateY(0);
}

.big-a {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin: 0 10px;
}

/* Values Grid — Glassmorphism cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.value-card {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 40px 30px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    /* Hidden for reveal — dramatic entry */
    opacity: 0;
    transform: translateY(120px) scale(0.85);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.value-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.015), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.value-card:hover::before {
    opacity: 1;
}

.value-card.featured {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 20px auto 0;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.card-inner {
    position: relative;
    z-index: 1;
}

.card-letter {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    margin-bottom: -20px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.card-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.55);
}

/* =====================================================
   CTA SECTION - CENTERED
   ===================================================== */

.cta-section {
    position: relative;
    width: 100%;
    padding: 120px 40px;
    background: #000000;
    overflow: hidden;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

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

.cta-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-highlight {
    color: rgba(255, 255, 255, 0.7);
}

.cta-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-btn-primary {
    background: #ffffff;
    color: #000000;
}

.cta-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.cta-btn-primary svg {
    transition: transform 0.3s ease;
}

.cta-btn-primary:hover svg {
    transform: translateX(5px);
}

.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* CTA Visual — pulsing circles behind content */
.cta-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
}

.cta-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: ctaPulse 5s ease-in-out infinite;
}

.cta-circle-2 {
    width: 380px;
    height: 380px;
    animation-delay: 1.5s;
    opacity: 0.4;
}

@keyframes ctaPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.4;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    position: relative;
    width: 100%;
    padding: 60px 40px 40px;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin: 0 auto 20px;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.footer-address {
    font-size: 0.9rem;
    font-weight: 300;
    font-style: normal;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
}

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

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        transform: scale(0.05);
    }

    .claim-section {
        padding: 80px 25px;
    }

    .claim-headline {
        font-size: 2rem;
    }

    .claim-services {
        font-size: 1.1rem;
    }

    .glitch-text {
        font-size: 1.4rem;
    }

    /* Portfolio: single column on mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .video-item:nth-child(n) {
        grid-column: auto;
    }

    .allies-track {
        gap: 60px;
    }

    .ally-logo {
        width: 110px;
        height: 110px;
    }

    .adn-section {
        padding: 80px 25px;
    }

    .adn-text {
        font-size: 1.1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 30px 25px;
    }

    .card-letter {
        font-size: 3rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 80px 25px;
    }

    .cta-visual {
        display: none;
    }

    .site-footer {
        padding: 50px 25px 30px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        transform: scale(0.04);
    }

    .claim-headline {
        font-size: 1.7rem;
    }

    .allies-track {
        gap: 40px;
    }

    .ally-logo {
        width: 80px;
        height: 80px;
    }
}

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