/* ========================================
   NATURA KAIAK — GAB NOVIS TREATMENT
   Sensorial, cinematic, experimental
   ======================================== */

:root {
    /* Colors - NATURA KAIAK — Dark + Neon Green */
    --color-bg: #0A0A0A;              /* Near-black base */
    --color-bg-cool: #0D0D0D;         /* Slightly lighter dark */
    --color-bg-dark: #050505;         /* Deepest black for contrast */
    --color-text: #E8E8E8;            /* Off-white body text */
    --color-text-muted: #8A8A8A;      /* Mid-gray on dark */
    --color-text-light: #666666;      /* Labels on dark */
    --color-text-inverse: #E8E8E8;    /* Same as text on this dark theme */
    --color-lacoste: #9BF019;         /* Neon green accent */
    --color-lacoste-light: rgba(155, 240, 25, 0.08);
    --color-accent-warm: #9BF019;     /* Neon green for warmth accents too */
    --color-accent-editorial: #9BF019; /* Neon green editorial accent */

    /* Typography - DYNAMIC MODERN (Syne + DM Sans) */
    --font-serif: 'Syne', -apple-system, sans-serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-xxl: 12rem;

    /* Layout */
    --max-width: 1400px;
    --content-width: 720px;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.3s;
    --duration-medium: 0.6s;
    --duration-slow: 1s;
}

/* Page Progress Bar */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-lacoste);
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: normal;
    isolation: isolate;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

p {
    margin-bottom: 1.5em;
    widows: 3;
    orphans: 3;
}

p:last-child {
    margin-bottom: 0;
}

em {
    font-style: italic;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav.visible {
    opacity: 1;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-logo-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-inverse);
    opacity: 0.6;
}

.nav-logo-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-inverse);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.lacoste-mark {
    width: 24px;
    height: 24px;
    background-color: var(--color-text-inverse);
    opacity: 0.8;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-inverse);
}

.hero-topbar span {
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 60px));
    z-index: 2;
    text-align: center;
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
}

.hero-logo {
    max-width: clamp(120px, 20vw, 250px);
    height: auto;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
}

.hero-campaign {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: -47px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.5s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-inverse), transparent);
    animation: scrollPulse 2s var(--ease-in-out) infinite;
}

/* Sections */
.section {
    padding: var(--space-xl) var(--space-lg);
}

.section-intro {
    padding-top: var(--space-xl);
    padding-bottom: 0;
}

.section-setdesign {
    padding-top: 0;
}

.section-tone {
    padding: 0;
    min-height: auto;
    margin-top: 0;
}

/* Remove gaps between title pages and their content */
section[id] + section {
    margin-top: 0;
}

.tone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 50vh;
    align-items: center;
}

.tone-panel {
    position: relative;
    overflow: hidden;
}

.tone-panel-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    background-color: var(--color-bg);
}

.tone-panel-text .section-label {
    text-align: center;
}

.tone-panel-text .section-headline {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.tone-body {
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
    max-width: 480px;
}

.tone-body p {
    margin-bottom: 1.5em;
}

.tone-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .tone-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tone-panel-text {
        padding: var(--space-lg);
    }

    .tone-panel-media {
        aspect-ratio: 16 / 9;
    }
}

/* Quote + Cinematography grouped block */

.fade-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-md);
    color: var(--color-text);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-quote.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cinematography Section — Horizontal Scroll */
.section-cinema {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

/* Centered group: quote + label + two-column text */
.cinema-quote-group {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cinema-quote-group .section-label {
    text-align: center;
    align-self: center;
}

.cinema-quote-group .cinema-text-inner {
    width: 100%;
}

.cinema-text-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-xl);
    align-items: start;
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.cinema-col p {
    margin-bottom: 1.5em;
    color: var(--color-text-muted);
}

.cinema-col p:last-child {
    margin-bottom: 0;
}

/* Full-width horizontal scroll */
.cinema-hscroll {
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0 var(--space-md) 0;
}

.cinema-hscroll::-webkit-scrollbar {
    display: none;
}

.cinema-hscroll-track {
    display: flex;
    gap: var(--space-md);
    padding-left: var(--space-lg);
    padding-right: var(--space-xl);
    width: max-content;
}

/* Square items — images fill completely */
.hscroll-item {
    flex-shrink: 0;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-bg-cool);
    transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
}

.hscroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    /* Scale up slightly to ensure no source edges/black bars show */
    transform: scale(1.05);
}

/* Hover: lift the hovered image, dim the rest */
.cinema-hscroll-track:hover .hscroll-item {
    opacity: 0.5;
    transform: scale(0.97);
}

.cinema-hscroll-track:hover .hscroll-item:hover {
    opacity: 1;
    transform: scale(1.01);
}

/* Progress bar — aligned with text */
.cinema-hscroll-progress {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: var(--space-sm) 0 0 var(--space-lg);
    border-radius: 1px;
    overflow: hidden;
}

.cinema-hscroll-progress-bar {
    height: 100%;
    width: 30%;
    background: var(--color-text-light);
    border-radius: 1px;
    transition: transform 0.1s linear;
}

/* Responsive */
@media (max-width: 1024px) {
    .cinema-quote-group {
        padding: var(--space-lg) var(--space-lg) var(--space-lg);
    }

    .cinema-text-inner {
        grid-template-columns: 1fr;
    }

    .hscroll-item {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .hscroll-item {
        width: 260px;
        height: 260px;
    }

    .cinema-hscroll-track {
        padding-left: var(--space-md);
        gap: var(--space-sm);
    }

    .cinema-hscroll-progress {
        margin-left: var(--space-md);
    }
}

/* Summary Section */
.section-summary {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    padding: var(--space-md) var(--space-lg);
    padding-bottom: 0;
    margin-bottom: 0;
}

.summary-content {
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.summary-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: var(--space-md);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
}

/* Dynamic grid states - expand hovered row/column */
.summary-grid[data-hover-row="0"] { grid-template-rows: 6fr 3fr 3fr; }
.summary-grid[data-hover-row="1"] { grid-template-rows: 3fr 6fr 3fr; }
.summary-grid[data-hover-row="2"] { grid-template-rows: 3fr 3fr 6fr; }

.summary-grid[data-hover-col="0"] { grid-template-columns: 6fr 3fr 3fr; }
.summary-grid[data-hover-col="1"] { grid-template-columns: 3fr 6fr 3fr; }
.summary-grid[data-hover-col="2"] { grid-template-columns: 3fr 3fr 6fr; }

.summary-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transform origins based on position */
.summary-card[data-row="0"][data-col="0"] { transform-origin: top left; }
.summary-card[data-row="0"][data-col="1"] { transform-origin: top center; }
.summary-card[data-row="0"][data-col="2"] { transform-origin: top right; }
.summary-card[data-row="1"][data-col="0"] { transform-origin: center left; }
.summary-card[data-row="1"][data-col="1"] { transform-origin: center center; }
.summary-card[data-row="1"][data-col="2"] { transform-origin: center right; }
.summary-card[data-row="2"][data-col="0"] { transform-origin: bottom left; }
.summary-card[data-row="2"][data-col="1"] { transform-origin: bottom center; }
.summary-card[data-row="2"][data-col="2"] { transform-origin: bottom right; }

.summary-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    opacity: 1 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Default overlay - subtle */
.summary-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

/* When grid is being hovered, dim non-hovered cards */
.summary-grid[data-hover-row] .summary-card::after,
.summary-grid[data-hover-col] .summary-card::after {
    background: rgba(0, 0, 0, 0.6);
}

/* Hovered card - lighten overlay and zoom image */
.summary-card:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.summary-card:hover img {
    transform: scale(1.05);
}

/* Bring hovered card to front */
.summary-card:hover {
    z-index: 5;
}

.summary-card-title {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: white;
    text-align: center;
    padding: var(--space-md);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Subtle title enhancement on hover */
.summary-card:hover .summary-card-title {
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: 4fr 4fr 4fr !important;
        grid-template-rows: 4fr 4fr 4fr !important;
        height: calc(100vh - 100px);
    }

    /* Reduce dramatic effect on tablet */
    .summary-grid[data-hover-row="0"] { grid-template-rows: 12fr 2fr 2fr !important; }
    .summary-grid[data-hover-row="1"] { grid-template-rows: 2fr 12fr 2fr !important; }
    .summary-grid[data-hover-row="2"] { grid-template-rows: 2fr 2fr 12fr !important; }

    .summary-grid[data-hover-col="0"] { grid-template-columns: 12fr 2fr 2fr !important; }
    .summary-grid[data-hover-col="1"] { grid-template-columns: 2fr 12fr 2fr !important; }
    .summary-grid[data-hover-col="2"] { grid-template-columns: 2fr 2fr 12fr !important; }
}

@media (max-width: 768px) {
    .section-summary {
        padding: var(--space-md) 0 0 0;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto auto auto !important;
        height: auto;
        gap: 4px;
    }

    .summary-card {
        aspect-ratio: 4 / 3;
    }

    .summary-card-title {
        font-size: 1rem !important;
    }

    .summary-card:hover .summary-card-title {
        font-size: 1.2rem !important;
    }

    /* Disable dynamic hover on mobile */
    .summary-grid[data-hover-row] { grid-template-rows: auto auto auto auto auto !important; }
    .summary-grid[data-hover-col] { grid-template-columns: 1fr 1fr !important; }

    .summary-grid[data-hover-row] .summary-card::after,
    .summary-grid[data-hover-col] .summary-card::after {
        background: rgba(0, 0, 0, 0.4);
    }
}

.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.section-label-light {
    color: var(--color-lacoste) !important;
}

.section-header {
    max-width: var(--content-width);
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section-headline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-headline-small {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.section-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-content-narrow {
    max-width: var(--content-width);
    padding: var(--space-md) 0;
}

/* Intro Section */
.section-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text-inverse);
    padding: var(--space-md) var(--space-lg);
    margin-top: 0;
    overflow: hidden;
}

.intro-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-xl);
    max-width: var(--max-width);
    width: 100%;
    align-items: center;
}

.intro-text-col {
    padding-right: var(--space-lg);
}

.intro-text {
    max-width: 500px;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 300;
    color: var(--color-text-inverse);
}

.section-intro .section-label {
    color: rgba(250, 250, 248, 0.5);
}

.section-intro .intro-text p {
    color: rgba(250, 250, 248, 0.8);
}

.intro-greeting {
    margin-bottom: var(--space-md);
}

.intro-cta {
    margin-top: var(--space-lg);
    font-weight: 400;
    color: var(--color-lacoste) !important;
}

/* Flowing Cards - 3 Column Layout */
.intro-cards-col {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.cards-flow {
    display: grid;
    grid-template-columns: 1fr 1.1fr 0.9fr;
    gap: var(--space-md);
    height: 100%;
}

.flow-column {
    position: relative;
    overflow: hidden;
}

.flow-track {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.flow-card {
    flex-shrink: 0;
    overflow: hidden;
}

.flow-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
}

/* Dynamic card proportions - each unique */
/* Column 1 */
.flow-column:nth-child(1) .flow-card:nth-child(1) { height: 320px; }
.flow-column:nth-child(1) .flow-card:nth-child(2) { height: 240px; }
.flow-column:nth-child(1) .flow-card:nth-child(3) { height: 180px; }
.flow-column:nth-child(1) .flow-card:nth-child(4) { height: 320px; }
.flow-column:nth-child(1) .flow-card:nth-child(5) { height: 240px; }
.flow-column:nth-child(1) .flow-card:nth-child(6) { height: 180px; }

/* Column 2 */
.flow-column:nth-child(2) .flow-card:nth-child(1) { height: 200px; }
.flow-column:nth-child(2) .flow-card:nth-child(2) { height: 380px; }
.flow-column:nth-child(2) .flow-card:nth-child(3) { height: 260px; }
.flow-column:nth-child(2) .flow-card:nth-child(4) { height: 200px; }
.flow-column:nth-child(2) .flow-card:nth-child(5) { height: 380px; }
.flow-column:nth-child(2) .flow-card:nth-child(6) { height: 260px; }

/* Column 3 */
.flow-column:nth-child(3) .flow-card:nth-child(1) { height: 280px; }
.flow-column:nth-child(3) .flow-card:nth-child(2) { height: 160px; }
.flow-column:nth-child(3) .flow-card:nth-child(3) { height: 340px; }
.flow-column:nth-child(3) .flow-card:nth-child(4) { height: 280px; }
.flow-column:nth-child(3) .flow-card:nth-child(5) { height: 160px; }
.flow-column:nth-child(3) .flow-card:nth-child(6) { height: 340px; }

/* Flow animations */
.flow-up .flow-track {
    animation: flowUp 25s linear infinite;
}

.flow-down .flow-track {
    animation: flowDown 25s linear infinite;
}

@keyframes flowUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes flowDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Pause animation on hover */
.cards-flow:hover .flow-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 1024px) {
    .intro-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .intro-text-col {
        padding-right: 0;
    }

    .intro-cards-col {
        height: 500px;
    }

    .flow-column:nth-child(1) .flow-card:nth-child(1),
    .flow-column:nth-child(1) .flow-card:nth-child(4) { height: 220px; }
    .flow-column:nth-child(1) .flow-card:nth-child(2),
    .flow-column:nth-child(1) .flow-card:nth-child(5) { height: 160px; }
    .flow-column:nth-child(1) .flow-card:nth-child(3),
    .flow-column:nth-child(1) .flow-card:nth-child(6) { height: 120px; }

    .flow-column:nth-child(2) .flow-card:nth-child(1),
    .flow-column:nth-child(2) .flow-card:nth-child(4) { height: 140px; }
    .flow-column:nth-child(2) .flow-card:nth-child(2),
    .flow-column:nth-child(2) .flow-card:nth-child(5) { height: 260px; }
    .flow-column:nth-child(2) .flow-card:nth-child(3),
    .flow-column:nth-child(2) .flow-card:nth-child(6) { height: 180px; }

    .flow-column:nth-child(3) .flow-card:nth-child(1),
    .flow-column:nth-child(3) .flow-card:nth-child(4) { height: 180px; }
    .flow-column:nth-child(3) .flow-card:nth-child(2),
    .flow-column:nth-child(3) .flow-card:nth-child(5) { height: 110px; }
    .flow-column:nth-child(3) .flow-card:nth-child(3),
    .flow-column:nth-child(3) .flow-card:nth-child(6) { height: 240px; }
}

/* Image Layouts */
.image-full {
    max-width: var(--max-width);
    margin: 0 auto;
}

.image-full img {
    width: 100%;
}

/* Image with Text Overlay */
.image-with-text {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.image-with-text img {
    width: 100%;
    display: block;
}

.image-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: var(--space-lg);
    color: white;
    text-align: left;
    max-width: 500px;
}

.image-text-overlay p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 1.2em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.image-text-overlay p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .image-text-overlay {
        padding: var(--space-md);
        max-width: 100%;
    }

    .image-text-overlay p {
        font-size: 1rem;
    }
}

.image-full-bleed {
    max-width: none;
    margin: 0;
}

.image-full-bleed img {
    width: 100vw;
    max-height: 85vh;
    object-fit: cover;
}

.image-grid {
    display: grid;
    gap: var(--space-sm);
    max-width: var(--max-width);
    margin: var(--space-xl) auto;
}

.image-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Block */
.detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: var(--max-width);
    margin: var(--space-xl) auto;
    align-items: center;
}

.detail-text {
    padding-right: var(--space-lg);
}

.detail-emphasis {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-lacoste);
    margin: var(--space-md) 0;
}

.detail-image img {
    width: 100%;
}

/* Manifesto Section — Sticky Reveal */
.section-manifesto-sticky {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 0;
}

.manifesto-sticky-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left: sticky text */
.manifesto-sticky-text {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    z-index: 2;
}

/* Ensure manifesto lines are visible (override line-by-line animation) */
.section-manifesto-sticky .manifesto-line {
    opacity: 0.9 !important;
    transform: none !important;
}

.manifesto-lines {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    line-height: 1.6;
    font-weight: 300;
}

.manifesto-line {
    opacity: 0.9;
    margin-bottom: 0.3em;
}

.manifesto-line-indent {
    padding-left: var(--space-lg);
    font-style: italic;
    opacity: 0.7;
}

.manifesto-line-space-after {
    margin-bottom: var(--space-md);
}

.manifesto-line-break {
    margin-top: var(--space-md);
}

.manifesto-line-brand {
    color: var(--color-lacoste);
    opacity: 1;
    margin-top: var(--space-md);
}

.manifesto-line-tagline {
    font-style: italic;
}

/* Right: scrolling images */
.manifesto-sticky-images {
    display: flex;
    flex-direction: column;
}

.manifesto-reveal-panel {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.manifesto-reveal-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Script Section */
.script-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: stretch;
    min-height: 500px;
    max-width: var(--max-width);
    margin: 0 auto var(--space-xl);
    align-items: center;
}

.script-text {
    padding-right: var(--space-lg);
}

.script-slideshow {
    position: relative;
    overflow: hidden;
    align-self: stretch;
}

.script-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.script-slideshow .slide.active {
    opacity: 1;
}

.script-image img {
    width: 100%;
}

.script-tagline {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-lacoste);
    margin-top: var(--space-md);
}

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
}

.split-image img {
    width: 100%;
}

.split-content {
    padding-left: var(--space-lg);
}

/* Location Section */
.location-note {
    max-width: var(--content-width);
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg);
    background-color: var(--color-lacoste-light);
    border-left: 2px solid var(--color-lacoste);
}

.location-emphasis {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    margin-top: var(--space-md);
}

/* Casting Section */
.casting-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.casting-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.casting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.casting-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.casting-emphasis {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-lacoste);
    margin: var(--space-sm) 0;
}

/* Lacoste Brand Section */
.section-lacoste {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lacoste-content {
    max-width: 700px;
}

.lacoste-mark-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    background-color: var(--color-lacoste);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.lacoste-headline {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: var(--space-lg);
}

.lacoste-content p {
    opacity: 0.8;
}

.lacoste-emphasis {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    opacity: 1 !important;
    margin-top: var(--space-lg);
}

/* Thank You Section */
.section-thankyou {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
    padding: 0;
}

.thankyou-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
}

.thankyou-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
}

.thankyou-signature {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-lacoste);
    margin-top: var(--space-lg);
}

.thankyou-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    padding: var(--space-lg);
    background-color: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.6);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-medium) var(--ease-out),
                transform var(--duration-medium) var(--ease-out);
}

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

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
        --space-xxl: 6rem;
    }

    .script-layout,
    .split-section,
    .casting-layout,
    .section-thankyou {
        grid-template-columns: 1fr;
    }

    .manifesto-sticky-layout {
        grid-template-columns: 1fr 1fr;
    }

    .manifesto-sticky-text {
        padding: var(--space-lg);
    }

    .manifesto-reveal-panel {
        height: 80vh;
    }

    .detail-block {
        grid-template-columns: 1fr;
    }

    .detail-text {
        padding-right: 0;
    }

    .split-content {
        padding-left: 0;
        padding-top: var(--space-lg);
    }

    .casting-images {
        grid-template-columns: 1fr 1fr;
    }

    .thankyou-image {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .image-grid-2 {
        grid-template-columns: 1fr;
    }

    .casting-images {
        grid-template-columns: 1fr;
    }

    /* Hero mobile */
    .hero-content {
        transform: translate(-50%, -50%) !important;
        width: 90%;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        -webkit-text-stroke: 1.5px #9BF019 !important;
    }

    .hero-content > div:last-child {
        max-width: 100% !important;
        flex-direction: row !important;
        padding: 0 var(--space-sm);
    }

    .hero-content > div:last-child img:first-child {
        height: 80px !important;
    }

    .hero-content > div:last-child img:last-child {
        height: 35px !important;
    }

    .hero-topbar {
        font-size: 0.55rem;
        padding: var(--space-sm) var(--space-md);
    }

    /* Intro mobile */
    .intro-layout {
        grid-template-columns: 1fr !important;
    }

    .intro-cards-col {
        height: 350px !important;
    }

    .intro-text-col {
        padding-right: 0 !important;
    }

    /* Tone grid mobile */
    .tone-grid {
        grid-template-columns: 1fr !important;
    }

    .tone-panel-text {
        padding: var(--space-lg) !important;
    }

    .tone-panel-media {
        min-height: 300px;
    }

    /* Cinematography mobile */
    .cinema-text-inner {
        grid-template-columns: 1fr !important;
    }

    /* Manifesto mobile - unstick */
    .manifesto-sticky-layout {
        grid-template-columns: 1fr !important;
    }

    .manifesto-sticky-text {
        position: relative !important;
        height: auto !important;
        padding: var(--space-lg) !important;
    }

    .manifesto-reveal-panel {
        height: 60vh !important;
    }

    /* Script mobile */
    .script-layout {
        grid-template-columns: 1fr !important;
    }

    .script-text {
        padding-right: 0 !important;
    }

    .script-slideshow {
        min-height: 300px;
    }

    /* Split sections mobile */
    .split-section {
        grid-template-columns: 1fr !important;
    }

    .split-content {
        padding-left: 0 !important;
        padding-top: var(--space-md) !important;
    }

    /* Section labels mobile */
    .section-label {
        font-size: 0.85rem !important;
    }

    /* ========================================
       MOBILE TREATMENT OVERRIDES
       ======================================== */

    /* Title pages — smaller outlined text */
    .section-title-standalone {
        font-size: clamp(1.8rem, 10vw, 3rem) !important;
        -webkit-text-stroke: 1.5px #9BF019 !important;
    }

    /* Hero — scale logos and center everything */
    .hero-content {
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 14vw, 4rem) !important;
        -webkit-text-stroke: 1.5px #9BF019 !important;
    }

    .hero-content > div:last-child {
        max-width: 100% !important;
        margin-top: var(--space-sm) !important;
    }

    .hero-content > div:last-child img:first-child {
        height: 80px !important;
    }

    .hero-content > div:last-child img:last-child {
        height: 30px !important;
    }

    .hero-topbar {
        font-size: 0.5rem !important;
        padding: var(--space-sm) var(--space-md) !important;
    }

    .hero-topbar span:nth-child(3) {
        display: none;
    }

    /* Contents grid — 2 columns */
    .summary-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        aspect-ratio: auto !important;
        gap: 4px !important;
        max-width: 100% !important;
    }

    .summary-card {
        aspect-ratio: 4 / 3;
    }

    .summary-card-title {
        font-size: 0.85rem !important;
    }

    .summary-title {
        font-size: 1.5rem !important;
    }

    /* Intro and Produção — stack text + cards */
    .intro-layout {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    .intro-text-col {
        padding-right: 0 !important;
    }

    .intro-cards-col {
        height: 300px !important;
    }

    /* Tone grid (Tom, Paleta, Produto) — stack vertically */
    .tone-grid {
        grid-template-columns: 1fr !important;
    }

    .tone-panel-text {
        padding: var(--space-lg) var(--space-md) !important;
    }

    .tone-panel-media {
        min-height: 250px !important;
    }

    .tone-body {
        max-width: 100% !important;
    }

    /* Cinematografia two-column text — single column */
    .cinema-text-inner {
        grid-template-columns: 1fr !important;
    }

    .cinema-quote-group {
        padding: var(--space-lg) var(--space-md) !important;
    }

    /* Horizontal scroll items smaller */
    .hscroll-item {
        width: 250px !important;
        height: 250px !important;
    }

    .cinema-hscroll-track {
        padding-left: var(--space-md) !important;
        gap: var(--space-sm) !important;
    }

    /* Split sections (Estúdio, Edição) — stack */
    .split-section {
        grid-template-columns: 1fr !important;
    }

    .split-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: var(--space-md) !important;
    }

    /* Full-bleed text overlay pages — full width text */
    section[style*="flex-start"] {
        padding-left: var(--space-md) !important;
        padding-right: var(--space-md) !important;
    }

    section[style*="flex-start"] > div[style*="max-width: 430px"] {
        max-width: 100% !important;
    }

    /* Two-column over background (Estúdio pt2) */
    .section-cinema[style*="position: relative"] .cinema-text-inner {
        grid-template-columns: 1fr !important;
    }

    /* Manifesto sticky — unstick and stack */
    .manifesto-sticky-layout {
        grid-template-columns: 1fr !important;
    }

    .manifesto-sticky-text {
        position: relative !important;
        height: auto !important;
        padding: var(--space-lg) var(--space-md) !important;
    }

    .manifesto-reveal-panel {
        height: 50vh !important;
    }

    /* Rhythm scroll — smaller cards */
    .rhythm-scroll {
        height: 70vh !important;
    }

    .rhythm-beat {
        width: 220px !important;
        margin-top: 10vh !important;
    }

    .rhythm-img {
        aspect-ratio: 1 / 1 !important;
    }

    .rhythm-text {
        font-size: 0.9rem !important;
    }

    .rhythm-sub {
        font-size: 0.75rem !important;
    }

    /* Script/Produção layout — stack */
    .script-layout {
        grid-template-columns: 1fr !important;
    }

    .script-text {
        padding-right: 0 !important;
    }

    .script-slideshow {
        min-height: 250px !important;
    }

    /* Section headlines mobile */
    .section-headline {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    }

    /* Obrigado page */
    section[style*="align-items: flex-end"] {
        padding-bottom: 6vh !important;
        align-items: center !important;
    }

    section[style*="align-items: flex-end"] > div[style*="max-width"] {
        max-width: 90% !important;
    }

    /* Nav mobile */
    .nav {
        padding: var(--space-sm) var(--space-md) !important;
    }

    .nav-logo-text {
        font-size: 0.55rem !important;
    }

    /* Fade quote mobile */
    .fade-quote {
        font-size: 1rem !important;
    }

    /* All sections base padding mobile */
    .section {
        padding: var(--space-lg) var(--space-md) !important;
    }
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity var(--duration-medium) var(--ease-out);
}

img.loaded {
    opacity: 1;
}

/* ========================================
   DESIGN REFINEMENTS - UI UX PRO MAX
   ======================================== */

/* Typography Refinements */
.section-headline {
    font-weight: 700;  /* Syne bold for impact */
    letter-spacing: -0.02em;  /* Tighter for elegance */
}

.section-label {
    letter-spacing: 0.25em;  /* From 0.2em - more editorial */
    font-weight: 500;  /* Slightly bolder */
    color: var(--color-text-light);  /* Using refined gray */
}

.intro-text {
    font-size: 1.05rem;  /* Slightly larger for editorial comfort */
    line-height: 1.8;    /* From 1.9 - tighter for sophistication */
}

/* Interaction Polish - Cursor States */
.summary-card {
    cursor: pointer;
    transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}

.summary-card:hover {
    opacity: 0.95;  /* Subtle feedback */
}

/* Focus States for Keyboard Navigation */
.summary-card:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-lacoste);
    outline-offset: 4px;
    border-radius: 2px;
}

button:focus-visible {
    outline: 2px solid var(--color-lacoste);
    outline-offset: 2px;
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .flow-track {
        animation: none !important;
    }

    .carousel-slide,
    .carousel-slide-2 {
        transition: none !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}

/* Performance Optimization - GPU Acceleration */
.flow-track,
.carousel-slide,
.carousel-slide-2,
.hero-content > * {
    will-change: transform;
}

/* Remove will-change after load to save resources */
.hero-content.loaded > * {
    will-change: auto;
}

/* Grid Refinements for Editorial Breathing */
.summary-grid {
    gap: var(--space-md);  /* From var(--space-sm) */
}

.tone-grid {
    gap: 0;
    background: var(--color-bg);
}

/* Optional: Floating Sections on Large Screens */
@media (min-width: 1440px) {
    .section:not(.hero):not(.section-manifesto):not(.section-lacoste):not(.section-tone) {
        max-width: calc(100vw - 4rem);
        margin: 2rem auto;
    }
}

/* Dark Theme Color Overrides */
body {
    color: var(--color-text);
    background-color: var(--color-bg);
}

.section-label {
    color: var(--color-lacoste) !important;
    font-size: 1rem !important;
}

.section-headline {
    color: var(--color-lacoste); /* Neon green headlines */
}

.summary-title {
    color: var(--color-lacoste); /* Neon green contents title */
}

.fade-quote {
    color: var(--color-lacoste); /* Neon green quote */
}

.tone-body p,
.cinema-col p,
.split-content p,
.script-text p,
.section-content p {
    color: rgba(232, 232, 232, 0.75); /* Off-white body text */
}

.detail-emphasis {
    color: var(--color-lacoste) !important;
}

strong {
    color: var(--color-text);
}

/* Footer divider for dark */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Refined Label Styling */
.hero-topbar span {
    color: var(--color-text-inverse);
    opacity: 0.85;  /* Slightly more visible */
}

/* Manifesto Rhythm Scroll */
.manifesto-rhythm {
    padding: 0;
    overflow: hidden;
    background: var(--color-bg);
}

.rhythm-scroll {
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
}

.rhythm-scroll::-webkit-scrollbar {
    display: none;
}

.rhythm-track {
    display: flex;
    align-items: flex-start;
    gap: clamp(3rem, 6vw, 5rem);
    padding: 0 10vw;
    height: 100%;
    width: max-content;
}

.rhythm-beat {
    flex-shrink: 0;
    width: clamp(280px, 22vw, 380px);
    transition: transform 0.6s var(--ease-out);
}

.rhythm-beat:hover {
    transform: translateY(-8px);
}

.rhythm-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.rhythm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    transition: transform 0.6s var(--ease-out);
}

.rhythm-beat:hover .rhythm-img img {
    transform: scale(1.03);
}

.rhythm-text {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 0.4em;
}

.rhythm-sub {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.rhythm-beat-final .rhythm-text {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}


@media (max-width: 768px) {
    .rhythm-scroll {
        height: 80vh;
    }

    .rhythm-beat {
        width: 260px;
    }

    .rhythm-img {
        aspect-ratio: 1 / 1;
    }
}

/* END OF REFINEMENTS */
