/* =========================================
   RESORT VALL D'ÀGER — Case Study
   MÄO Agency Design System
   Premium nature resort · Editorial · Warm
   Palette: Resort Ager (marfil / bosque / verde-profundo / dorado)
   ========================================= */

:root {
    /* Structural tokens (mapped to Resort Ager palette) */
    --bg:           #F5F0E8;
    --sand:         #EAE0D0;
    --charcoal:     #1E2B1F;
    --text:         #2C3E2D;
    --text-light:   #6F6A60;
    --border:       rgba(44, 62, 45, 0.1);
    --stone:        #D4A853;

    /* Resort Ager brand tokens */
    --ra-marfil:        #F5F0E8;
    --ra-arena:         #C4B5A0;
    --ra-bosque:        #2C3E2D;
    --ra-verde-profundo:#1E2B1F;
    --ra-verde-botella: #2C3E2D;
    --ra-dorado:        #D4A853;
    --ra-gris-calido:   #8E8372;
    --ra-salvia:        #7A8F7D;

    --font-head:    'Playfair Display', serif;
    --font-body:    'Inter', sans-serif;

    --max-w:        1400px;
    --ease:         cubic-bezier(0.16, 1, 0.3, 1);

    --space-sm:     1rem;
    --space-md:     2.5rem;
    --space-lg:     5rem;
    --space-xl:     8rem;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- Cursor ---- */
.cursor {
    position: fixed; top: 0; left: 0;
    width: 18px; height: 18px;
    border: 1px solid var(--text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999;
    transition: width .3s, height .3s, background-color .3s, opacity .3s;
    mix-blend-mode: multiply;
}
.cursor.hovered {
    width: 48px; height: 48px;
    background: var(--text);
    border-color: transparent; opacity: .15;
}

/* ---- Layout ---- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 6%;
}
.section-padding { padding: var(--space-xl) 0; }
.bg-sand { background: var(--sand); }
.bg-charcoal { background: var(--charcoal); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
}
em { font-style: italic; }

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.section-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.section-eyebrow--light { color: rgba(249,248,246,.5); }

.section-heading {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: var(--space-md);
}
.section-heading--light { color: var(--bg); }

.hero-title {
    font-size: clamp(4rem, 11vw, 9rem);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.body-text {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.8;
}
.body-text--light { color: rgba(249,248,246,.7); }
.mt-sm { margin-top: 1rem; }

.section-header { margin-bottom: 4rem; }

/* ---- Fade-up animation ---- */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Tags ---- */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}
.tag {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    transition: border-color .3s, color .3s;
}
.tag:hover { border-color: var(--text); color: var(--text); }

/* ---- NAV ---- */
.nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 1.4rem 0;
    transition: background .4s, box-shadow .4s;
}
.nav.scrolled {
    background: rgba(249,248,246,.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    transition: opacity .3s;
}
.nav-logo:hover { opacity: .6; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-back {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: color .3s;
}
.nav-back:hover { color: var(--text); }
.nav-link {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: color .3s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--text);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--text); color: var(--bg); }

/* ---- HERO ---- */
.hero {
    padding-top: 120px;
}
.hero-content {
    padding-bottom: 4rem;
}
.hero-lead {
    font-family: var(--font-head);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 600px;
}
.hero-image {
    width: 100%;
    overflow: hidden;
    max-height: 70vh;
}
.hero-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center 40%;
}

/* ---- INTRO ---- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}
.intro-visual img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.intro-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.meta-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: .3rem;
}
.meta-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

/* ---- CHALLENGE ---- */
.challenge-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.challenge-quote {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
    margin: 1.5rem 0 2rem;
    quotes: none;
}

/* ---- TIMELINE ---- */
.timeline-header { margin-bottom: 5rem; }

.v-timeline {
    position: relative;
    padding-left: 3rem;
}
.v-timeline-track {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.v-timeline-track-fill {
    position: absolute;
    top: 0; left: 0;
    width: 1px;
    height: 0%;
    background: var(--text);
    transition: height .1s linear;
}
.v-timeline-item {
    position: relative;
    margin-bottom: 5rem;
}
.v-timeline-item:last-child { margin-bottom: 0; }
.v-timeline-dot {
    position: absolute;
    left: -3.35rem;
    top: 0.5rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    transition: border-color .4s, background .4s;
}
.v-timeline-item.visible .v-timeline-dot {
    border-color: var(--text);
    background: var(--text);
}
.v-timeline-content { max-width: 700px; }
.v-timeline-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.v-timeline-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}
.v-timeline-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 580px;
}
/* Three phases cards */
.three-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 680px;
}
.phase-card {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.phase-card:last-child {
    border-right: none;
}
.phase-n {
    font-family: var(--font-head);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--stone);
    opacity: 0.7;
}
.phase-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}
.phase-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: none;
}

/* Desktop: hide wrap chrome */
.phases-fade,
.phases-toggle { display: none; }

@media (max-width: 680px) {
    .three-phases { grid-template-columns: 1fr; }
    .phase-card { border-right: none; border-bottom: 1px solid var(--border); }
    .phase-card:last-child { border-bottom: none; }

    /* Mobile collapse */
    .three-phases-wrap { position: relative; }

    .three-phases-wrap:not(.expanded) .three-phases {
        max-height: 130px;
        overflow: hidden;
    }

    .phases-fade {
        display: block;
        position: absolute;
        bottom: 36px;
        left: 0; right: 0;
        height: 72px;
        background: linear-gradient(to bottom, transparent, var(--sand));
        pointer-events: none;
        transition: opacity .3s;
    }
    .three-phases-wrap.expanded .phases-fade {
        opacity: 0;
    }

    .phases-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px; height: 32px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--bg);
        cursor: pointer;
        margin: 0.5rem auto 0;
        transition: transform .3s var(--ease), background .2s;
    }
    .phases-toggle:hover { background: var(--sand); }
    .phases-toggle-icon {
        font-size: 1.1rem;
        color: var(--text);
        line-height: 1;
        transition: transform .3s var(--ease);
        font-family: var(--font-body);
    }
    .three-phases-wrap.expanded .phases-toggle-icon {
        transform: rotate(45deg);
    }
}

.v-timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
}
.v-tag {
    display: inline-block;
    padding: .35rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ---- BRAND SHOWCASE ---- */
.brand-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 4rem;
}
.brand-logo-card {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    aspect-ratio: 4/3;
}
.brand-logo-card img {
    max-width: 75%;
    max-height: 120px;
    object-fit: contain;
}
.brand-logo-card--light  { background: #f0ece5; }
.brand-logo-card--dark   { background: var(--charcoal); }
.brand-logo-card--amber  { background: var(--tribu-amber); }

.brand-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.brand-pillar {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border);
    transition: background .3s;
}
.brand-pillar:last-child { border-right: none; }
.brand-pillar:hover { background: rgba(43,42,40,.03); }
.pillar-number {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--text);
    opacity: .18;
    margin-bottom: 1rem;
}
.brand-pillar h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .6rem;
    letter-spacing: 0;
}
.brand-pillar p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---- BROWSER MOCKUP ---- */
.browser-mockup {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(43,42,40,.12);
    border: 1px solid var(--border);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}
.browser-dots {
    display: flex;
    gap: 6px;
}
.browser-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
    flex: 1;
    background: rgba(43,42,40,.06);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}
.browser-screen img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center top;
}

/* ---- SPLIT SECTIONS ---- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.split-section--reverse {
    direction: rtl;
}
.split-section--reverse > * { direction: ltr; }

.split-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.split-visual img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
}

/* ---- AI RENDERS GRID ---- */
.renders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.renders-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .6s var(--ease);
}
.renders-grid img:hover { transform: scale(1.02); }

/* ---- LAUNCH SECTION ---- */
.launch-section {
    position: relative;
    overflow: hidden;
}
.launch-image {
    position: relative;
    height: 75vh;
}
.launch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.launch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30,29,27,.2) 0%, rgba(30,29,27,.75) 100%);
}
.launch-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem 6%;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ---- PHONE SLIDER ---- */
.phone-slider {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
}
.phone-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: phone-scroll 50s linear infinite;
}
.phone-track:hover { animation-play-state: paused; }
@keyframes phone-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.phone-frame {
    width: 200px;
    aspect-ratio: 9/19.5;
    background: var(--charcoal);
    border-radius: 30px;
    border: 5px solid #2e2d2b;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 16px 48px rgba(43,42,40,.15);
}
.phone-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px; height: 14px;
    background: var(--charcoal);
    border-radius: 14px;
    z-index: 10;
}
.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.phone-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
    z-index: 5;
    pointer-events: none;
}
.phone-user {
    display: flex;
    align-items: center;
    gap: 7px;
}
.phone-avatar {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 1.5px solid #fff;
    flex-shrink: 0;
}
.phone-user span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    font-family: -apple-system, sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
/* Subtle screen reflection */
.phone-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255,255,255,.04), transparent 55%);
    z-index: 6;
    pointer-events: none;
}

/* ---- STATS ---- */
.results-header { margin-bottom: 3rem; }
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}
.stat-block {
    padding: 3rem 2rem;
    border-right: 1px solid var(--border);
    transition: background .3s;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: rgba(43,42,40,.03); }
.stat-number {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1;
    margin-bottom: .75rem;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ---- EDITORIAL STATS ---- */
.stats-editorial {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}
.stat-row-ed {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 5rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background .3s;
}
.stat-row-ed:hover { background: rgba(43,42,40,.02); }
.stat-num-ed {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1;
}
.stat-desc-ed {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 560px;
}

/* ---- SOCIAL SHOWCASE ---- */
.social-showcase {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}
.col-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

/* Reel phone */
.reel-phone-link {
    display: block;
    text-decoration: none;
}
.reel-phone {
    width: 100%;
    aspect-ratio: 9/19.5;
    background: var(--charcoal);
    border-radius: 30px;
    border: 5px solid #2e2d2b;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(43,42,40,.18);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.reel-phone-link:hover .reel-phone {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(43,42,40,.22);
}
.reel-phone .phone-screen {
    width: 100%; height: 100%;
}
.reel-phone .phone-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.reel-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 8;
    transition: background .3s;
}
.reel-phone-link:hover .reel-play {
    background: rgba(43,42,40,.75);
}
.reel-cta-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color .3s;
}
.reel-phone-link:hover .reel-cta-link {
    color: var(--text);
}

/* ---- CTA (light version) ---- */
.cta-section { text-align: center; }
.cta-heading {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.cta-body {
    margin: 0 auto 2.5rem;
}
.btn-cta-light {
    display: inline-block;
    padding: 1rem 2.8rem;
    border: 1px solid var(--text);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background .35s, color .35s;
}
.btn-cta-light:hover {
    background: var(--text);
    color: var(--bg);
}

/* ---- Split visual single image ---- */
.split-visual--single {
    grid-template-columns: 1fr;
}
.split-visual--single img {
    aspect-ratio: 4/3;
}

/* ---- FOOTER NAV ---- */
.footer-nav {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}
.footer-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    transition: color .3s;
}
.footer-nav a:hover { color: var(--text); }
.footer-home {
    font-weight: 600;
    letter-spacing: 3px;
}

/* ---- BRAND MARQUEE ---- */
.brand-marquee {
    overflow: hidden;
    margin: 0 0 4rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}
.brand-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: brand-scroll 38s linear infinite;
}
.brand-marquee-track:hover { animation-play-state: paused; }
@keyframes brand-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-card {
    width: 220px;
    aspect-ratio: 3/4;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- VIDEO BROWSER ---- */
.browser-screen video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center top;
}

/* ---- REELS GRID ---- */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}
.reel-frame {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    position: relative;
    background: var(--charcoal);
}
.reel-frame video,
.reel-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 50%);
    pointer-events: none;
}
.reel-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---- IG MOCKUP ---- */
.ig-mockup {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(43,42,40,.08);
    margin-top: 3rem;
}
.ig-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.ig-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    flex-shrink: 0;
}
.ig-handle {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.ig-handle span {
    font-weight: 400;
    color: #999;
    margin-left: .5rem;
}
.ig-screen img {
    width: 100%;
    display: block;
}
.ig-placeholder {
    background: #fafafa;
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,.06);
}
.ig-placeholder p {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
    font-family: var(--font-body);
}

/* ---- STRATEGY STACKED ROWS ---- */
.strategy-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}
.strategy-row--reverse {
    grid-template-columns: 1.2fr 1fr;
}
.strategy-row--reverse .strategy-row-text {
    order: 2;
}
.strategy-row--reverse .strategy-row-visual {
    order: 1;
}

.strategy-row-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.strategy-row-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 0.5rem;
}
.strategy-row-num {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 0.75rem;
    display: block;
    font-style: italic;
}
.strategy-row-text h3 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}
.strategy-row-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 460px;
}

.strategy-row-visual {
    background: var(--sand);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(43,42,40,.08);
    aspect-ratio: 4/3;
}
.strategy-row-visual img,
.strategy-row-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Browser variant for row */
.strategy-row-visual--browser {
    aspect-ratio: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}
.strategy-row-visual--browser .panel-browser {
    width: 100%;
    max-width: 480px;
}

/* Multi-phone variant */
.strategy-row-visual.strategy-panel-visual--phones,
.strategy-panel-visual--phones {
    aspect-ratio: auto;
    min-height: 520px;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2.5rem;
    overflow: hidden;
    border-radius: 12px;
}
.strategy-panel-visual--phones .reel-phone-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    flex-shrink: 0;
}
.strategy-panel-visual--phones .reel-phone-link:nth-child(1) {
    transform: translateY(-20px);
}
.strategy-panel-visual--phones .reel-phone-link:nth-child(2) {
    transform: translateY(0px);
    z-index: 2;
}
.strategy-panel-visual--phones .reel-phone-link:nth-child(3) {
    transform: translateY(20px);
    opacity: 0.85;
}
.strategy-panel-visual--phones .reel-phone {
    width: 100%;
    box-shadow: 0 20px 50px rgba(43,42,40,.2);
}

/* ---- Generic mobile collapsible ---- */
.cm-fade, .cm-toggle { display: none; }

@media (max-width: 680px) {
    .collapsible-mobile {
        position: relative;
        /* NO overflow here — toggle must remain visible */
    }
    .cm-body {
        position: relative;
        overflow: hidden;
        transition: max-height .45s var(--ease);
    }
    /* Show ~1.5 lines (first line + start of second) */
    .collapsible-mobile:not(.expanded) .cm-body {
        max-height: 52px;
    }
    .collapsible-mobile.expanded .cm-body {
        max-height: 600px;
    }
    .cm-fade {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0; right: 0;
        /* Strong fade from 0% transparent → fully opaque at bottom */
        height: 44px;
        background: linear-gradient(to bottom, transparent 0%, var(--sand) 100%);
        pointer-events: none;
        transition: opacity .3s;
    }
    /* White background sections */
    .section-padding:not(.bg-sand) .cm-fade {
        background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
    }
    .collapsible-mobile.expanded .cm-fade {
        opacity: 0;
        pointer-events: none;
    }
    /* Toggle row — right-aligned */
    .cm-row {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0.4rem 0 0;
    }
    .cm-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px; height: 30px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--bg);
        cursor: pointer;
        flex-shrink: 0;
        transition: background .2s;
    }
    .cm-toggle:hover { background: var(--sand); }
    .cm-icon {
        font-size: 1.1rem;
        color: var(--text);
        line-height: 1;
        font-family: var(--font-body);
        transition: transform .3s var(--ease);
        display: block;
    }
    .collapsible-mobile.expanded .cm-icon {
        transform: rotate(45deg);
    }
}

/* Isotipo 2×2 Behance showcase */
.isotipo-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 0 0 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(43,42,40,.08);
    border-bottom: 1px solid var(--border);
}
.isotipo-cell {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.isotipo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.isotipo-cell:hover img {
    transform: scale(1.04);
}

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

/* AI renders grid */
.strategy-row-visual--ai-grid {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    overflow: hidden;
    background: var(--sand);
}
.strategy-row-visual--ai-grid .ai-main {
    grid-column: 1 / -1;
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.strategy-row-visual--ai-grid .ai-secondary {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.reel-phone-link--static {
    cursor: default;
    text-decoration: none;
}

/* Browser variant */
.strategy-panel-visual--browser {
    aspect-ratio: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.panel-browser {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(43,42,40,.12);
    border: 1px solid var(--border);
}
.panel-browser-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 18px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}
.panel-browser-screen img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center top;
}
.panel-browser-screen--video {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
}
.panel-browser-screen--video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Panel logo row */
.panel-logo-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.panel-logo-pill {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 70px;
}
.panel-logo-pill img {
    max-height: 36px;
    max-width: 100%;
    object-fit: contain;
}
.panel-logo-pill--light { background: #f0ece5; }
.panel-logo-pill--dark  { background: var(--charcoal); }
.panel-logo-pill--amber { background: var(--tribu-amber); }

/* Social feed preview (inside panel text) */
.social-feed-preview {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 360px;
}
.social-feed-preview .ig-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}
.ig-handle-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.ig-handle-block .ig-handle {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}
.ig-sub {
    font-size: 0.68rem;
    color: var(--text-light);
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.social-feed-preview img {
    width: 100%;
    display: block;
    filter: saturate(0.85) contrast(1.05);
}

/* Panel eyebrow */
.panel-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 0.6rem;
}

/* Panel tags */
.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
    .strategy-row,
    .strategy-row--reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .strategy-row--reverse .strategy-row-text { order: 1; }
    .strategy-row--reverse .strategy-row-visual { order: 2; }
    .strategy-row-visual { aspect-ratio: 16/9; }
    .strategy-panel-visual--phones { min-height: 300px; }
    .strategy-panel-visual--phones .reel-phone-link { width: 100px; }
    .strategy-panel-visual--phones .reel-phone-link:nth-child(1) { transform: translateY(-12px); }
    .strategy-panel-visual--phones .reel-phone-link:nth-child(3) { transform: translateY(12px); }
    /* AI grid: never clip to 16/9 — all 3 images must show */
    .strategy-row-visual--ai-grid {
        aspect-ratio: auto;
        height: auto;
    }
    .strategy-row-visual--ai-grid .ai-main { height: 200px; }
    .strategy-row-visual--ai-grid .ai-secondary { height: 130px; }
}

@media (max-width: 960px) {
    .intro-grid       { grid-template-columns: 1fr; gap: 3rem; }
    .brand-pillars    { grid-template-columns: 1fr 1fr; }
    .brand-logo-grid  { grid-template-columns: 1fr 1fr 1fr; }
    .stats-row        { grid-template-columns: 1fr 1fr; }
    .stat-block:nth-child(2) { border-right: none; }
    .stat-block:nth-child(3) { border-top: 1px solid var(--border); }
    .split-section, .split-section--reverse { grid-template-columns: 1fr; direction: ltr; gap: 3rem; }
    .renders-grid     { grid-template-columns: 1fr 1fr; }
    .reels-grid       { grid-template-columns: 1fr 1fr 1fr; gap: .75rem; }
    .social-showcase  { grid-template-columns: 1fr; gap: 2.5rem; }
    .reel-phone       { max-width: 280px; }
    .launch-content   { position: relative; background: var(--charcoal); padding: 3rem 6%; }
    .launch-image     { height: 55vw; min-height: 300px; }
    .launch-overlay   { background: linear-gradient(to bottom, rgba(30,29,27,.1), rgba(30,29,27,.5)); }
}

@media (max-width: 640px) {
    .stat-row-ed { grid-template-columns: 1fr; gap: 0.5rem; padding: 2rem 0; }
    .stat-num-ed { font-size: clamp(2rem, 8vw, 2.8rem); }
    .section-padding   { padding: 5rem 0; }
    .hero-title        { font-size: clamp(3.5rem, 18vw, 6rem); }
    .brand-pillars     { grid-template-columns: 1fr; }
    .brand-logo-grid   { grid-template-columns: 1fr; }
    .stats-row         { grid-template-columns: 1fr; }
    .stat-block        { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-block:last-child { border-bottom: none; }
    .renders-grid      { grid-template-columns: 1fr; }
    .reels-grid        { grid-template-columns: 1fr 1fr; }
    .split-visual      { grid-template-columns: 1fr; }
    .intro-meta        { grid-template-columns: 1fr; }
    .nav-links         { display: none; }
    .phone-frame       { width: 170px; }
    .footer-nav a      { font-size: 0.65rem; }
}

/* =========================================
   RESORT AGER · Section overrides
   Hero · Marquee · Strategy alternation · CTA
   ========================================= */

/* Cursor — dorado for visibility on dark sections */
.cursor {
    border-color: var(--ra-dorado);
    mix-blend-mode: normal;
}
.cursor.hovered {
    background: var(--ra-dorado);
    opacity: .25;
}

/* ---- Section utilities (Resort Ager) ---- */
.bg-marfil           { background: var(--ra-marfil); color: var(--ra-bosque); }
.bg-verde-profundo   { background: var(--ra-verde-profundo); color: var(--ra-marfil); }
.bg-bosque           { background: var(--ra-bosque); color: var(--ra-marfil); }

.bg-verde-profundo h1, .bg-verde-profundo h2, .bg-verde-profundo h3,
.bg-bosque h1, .bg-bosque h2, .bg-bosque h3 {
    color: var(--ra-marfil);
}
.bg-verde-profundo .section-eyebrow,
.bg-verde-profundo .eyebrow,
.bg-bosque .section-eyebrow,
.bg-bosque .eyebrow {
    color: var(--ra-dorado);
}
.bg-verde-profundo .body-text,
.bg-bosque .body-text {
    color: rgba(245, 240, 232, .72);
}

/* ---- HERO override (verde-profundo background) ---- */
.hero {
    background: var(--ra-verde-profundo);
    color: var(--ra-marfil);
    position: relative;
    overflow: hidden;
}
.hero::after {
    /* Off-screen golden orb (top-right) */
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: var(--ra-dorado);
    opacity: 0.10;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.hero .hero-content,
.hero .hero-image { position: relative; z-index: 1; }
.hero .eyebrow      { color: var(--ra-dorado); }
.hero .hero-title   { color: var(--ra-marfil); }
.hero .hero-lead    { color: rgba(245, 240, 232, .78); }
.hero .tag {
    color: rgba(245, 240, 232, .72);
    border-color: rgba(245, 240, 232, .22);
    background: transparent;
}
.hero .tag:hover {
    color: var(--ra-dorado);
    border-color: var(--ra-dorado);
}

/* Nav over dark hero */
.nav .nav-logo,
.nav .nav-link,
.nav .nav-back,
.nav .nav-cta { color: var(--ra-marfil); }
.nav .nav-cta { border-color: rgba(245, 240, 232, .35); }
.nav .nav-cta:hover { background: var(--ra-marfil); color: var(--ra-bosque); border-color: var(--ra-marfil); }
.nav.scrolled {
    background: rgba(245, 240, 232, 0.96);
    box-shadow: 0 1px 0 var(--border);
}
.nav.scrolled .nav-logo,
.nav.scrolled .nav-link,
.nav.scrolled .nav-back,
.nav.scrolled .nav-cta { color: var(--ra-bosque); }
.nav.scrolled .nav-cta { border-color: var(--ra-bosque); }
.nav.scrolled .nav-cta:hover { background: var(--ra-bosque); color: var(--ra-marfil); }

/* ---- TIMELINE override (marfil background) ---- */
.timeline-section.bg-sand {
    background: var(--ra-marfil);
}
.v-timeline-track       { background: rgba(196, 181, 160, .55); }     /* Arena tint */
.v-timeline-track-fill  { background: var(--ra-dorado); }
.v-timeline-item.visible .v-timeline-dot {
    border-color: var(--ra-dorado);
    background: var(--ra-dorado);
}

/* ---- STRATEGY section ---- */
#strategy { background: var(--ra-marfil); }

/* Alternation: dark rows on even index */
.strategy-row.row--dark {
    background: var(--ra-verde-profundo);
    color: var(--ra-marfil);
    border-top-color: rgba(245, 240, 232, .08);
    margin: 0 -6%;
    padding: 5rem 6%;
}
.strategy-row.row--dark h3            { color: var(--ra-marfil); }
.strategy-row.row--dark p             { color: rgba(245, 240, 232, .72); }
.strategy-row.row--dark .strategy-row-num     { color: var(--ra-dorado); opacity: 0.85; }
.strategy-row.row--dark .strategy-row-eyebrow { color: var(--ra-dorado); }
.strategy-row.row--dark .strategy-row-visual {
    background: rgba(245, 240, 232, .06);
}
.strategy-row.row--dark .panel-tags .v-tag {
    color: rgba(245, 240, 232, .72);
    border-color: rgba(245, 240, 232, .22);
}

/* Numerals always italic Playfair, dorado opacity high */
.strategy-row-num {
    color: var(--ra-dorado);
    opacity: 0.6;
    font-size: 1rem;
}

/* Hero tag focus ring (a11y) */
.hero .tag:focus-visible {
    outline: 1px solid var(--ra-dorado);
    outline-offset: 2px;
}

/* ---- BRAND MARQUEE override (bosque background) ---- */
.brand-marquee {
    background: var(--ra-bosque);
    border-top-color: rgba(245, 240, 232, .08);
    border-bottom-color: rgba(245, 240, 232, .08);
}
.brand-marquee-track {
    /* Brief §5.4: slower than Tribu — calm is the brand */
    animation-duration: 60s;
}
.brand-card {
    border-color: rgba(245, 240, 232, .12);
}

/* ---- RESULTS / IMPACT ---- */
.results-section {
    background: var(--ra-verde-profundo);
    color: var(--ra-marfil);
}
.results-section .section-eyebrow { color: var(--ra-dorado); }
.results-section .section-heading { color: var(--ra-marfil); }
.results-section .stats-row {
    border-color: rgba(245, 240, 232, .12);
}
.results-section .stat-block {
    border-right-color: rgba(245, 240, 232, .12);
}
.results-section .stat-number { color: var(--ra-marfil); }
.results-section .stat-label  { color: rgba(245, 240, 232, .55); }

/* Placeholder stats — hidden until real numbers land (Open Q §10.1) */
.stat-block--tbd { display: none; }

/* PR row */
.pr-row {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 240, 232, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(245, 240, 232, .6);
}

/* ---- CTA override (marfil background) ---- */
.cta-section.bg-sand {
    background: var(--ra-marfil);
}
.cta-heading      { color: var(--ra-bosque); }
.btn-cta-light    {
    border-color: var(--ra-bosque);
    color: var(--ra-bosque);
}
.btn-cta-light:hover {
    background: var(--ra-bosque);
    color: var(--ra-marfil);
}

/* ---- Footer nav ---- */
.footer-nav { background: var(--ra-marfil); }

/* ---- Section eyebrow accent (Playfair italic accent words) ---- */
em { font-style: italic; }
h2 em, h3 em, .hero-title em, .cta-heading em {
    color: inherit;
    font-style: italic;
}

/* ---- CRM diagram visual frame ---- */
.crm-diagram-frame {
    background: var(--ra-marfil);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(44,62,45,.08);
    /* aspect-ratio matches the SVG viewBox (1000x460) so it fills without whitespace */
    aspect-ratio: 1000 / 460;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.crm-diagram-frame svg,
.crm-diagram-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* CRM row needs more visual breathing room — the diagram is the hero of this row */
#tab-crm.strategy-row {
    grid-template-columns: 0.85fr 1.6fr;
}
#tab-crm .strategy-row-visual {
    background: transparent;
    box-shadow: none;
    aspect-ratio: auto;
    padding: 0;
}

@media (max-width: 860px) {
    #tab-crm.strategy-row {
        grid-template-columns: 1fr;
    }
}

/* ---- Two-phone variant for automations row ---- */
.strategy-panel-visual--phones-two {
    aspect-ratio: auto;
    min-height: 520px;
    background: var(--ra-marfil);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
    overflow: hidden;
    border-radius: 12px;
}
.strategy-panel-visual--phones-two .reel-phone-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    flex-shrink: 0;
}
.strategy-panel-visual--phones-two .reel-phone-link:nth-child(1) { transform: translateY(-12px); }
.strategy-panel-visual--phones-two .reel-phone-link:nth-child(2) { transform: translateY(12px); }
.strategy-panel-visual--phones-two .reel-phone {
    width: 100%;
    box-shadow: 0 20px 50px rgba(44,62,45,.18);
}

/* Dark-row variant of the social-feed-preview */
.strategy-row.row--dark .social-feed-preview {
    border-color: rgba(245, 240, 232, .14);
}
.strategy-row.row--dark .social-feed-preview .ig-topbar {
    background: rgba(245, 240, 232, .06);
    border-bottom-color: rgba(245, 240, 232, .14);
}
.strategy-row.row--dark .ig-handle-block .ig-handle { color: var(--ra-marfil); }
.strategy-row.row--dark .ig-sub                     { color: rgba(245, 240, 232, .55); }
.strategy-row.row--dark .strategy-panel-visual--phones,
.strategy-row.row--dark .strategy-panel-visual--phones-two {
    background: rgba(245, 240, 232, .04);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .cursor { display: none; }
    .fade-up { opacity: 1; transform: none; transition: none; }
    .brand-marquee-track { animation: none; }
    .phone-track { animation: none; }
}

/* ---- Responsive: dark strategy rows on mobile ---- */
@media (max-width: 860px) {
    .strategy-row.row--dark {
        margin: 0 -6%;
        padding: 3rem 6%;
    }
}

/* ---- Resort Ager · social phones aligned (override Tribu's staggered layout) ---- */
.strategy-row--social .strategy-panel-visual--phones {
    /* Align phone tops, not wrapper centres — phone 1 has a "Watch on Instagram →" caption below */
    align-items: flex-start;
    padding-top: 3.5rem;
}
.strategy-row--social .strategy-panel-visual--phones .reel-phone-link:nth-child(1),
.strategy-row--social .strategy-panel-visual--phones .reel-phone-link:nth-child(2),
.strategy-row--social .strategy-panel-visual--phones .reel-phone-link:nth-child(3) {
    transform: translateY(0);
    opacity: 1;
    z-index: 1;
}

/* ---- Interactive KPI cards (Results section) ---- */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(245, 240, 232, .12);
    border: 1px solid rgba(245, 240, 232, .12);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
}
.kpi-card {
    padding: 3rem 2.2rem;
    background: var(--ra-verde-profundo);
    transition: background .5s var(--ease);
    position: relative;
    cursor: default;
}
.kpi-card:hover { background: rgba(212, 168, 83, .05); }

.kpi-number {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    line-height: 1;
    color: var(--ra-marfil);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    transition: color .4s var(--ease);
    font-variant-numeric: tabular-nums;
}
.kpi-card:hover .kpi-number { color: var(--ra-dorado); }

.kpi-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(245, 240, 232, .72);
    line-height: 1.5;
    max-width: 260px;
}

.kpi-detail {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(245, 240, 232, .6);
    line-height: 1.7;
    max-width: 280px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .55s var(--ease), opacity .4s var(--ease), margin-top .55s var(--ease);
    margin-top: 0;
}
.kpi-card:hover .kpi-detail {
    max-height: 240px;
    opacity: 1;
    margin-top: 1.4rem;
}

/* Subtle dorado accent line on hover (top of card) */
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--ra-dorado);
    transition: width .55s var(--ease);
}
.kpi-card:hover::before { width: 100%; }

@media (max-width: 860px) {
    .kpi-row { grid-template-columns: 1fr; }
    .kpi-card {
        padding: 2.5rem 1.8rem;
        cursor: pointer;
    }
    /* On touch, always reveal the detail (hover unreliable) */
    .kpi-detail {
        max-height: 240px;
        opacity: 1;
        margin-top: 1rem;
    }
}

/* ---- Four-phase variant (mirrors home framework: Diagnose / Ecosystem Design / Automate / Growth) ---- */
.three-phases.four-phases {
    grid-template-columns: repeat(4, 1fr);
    max-width: 920px;
}

@media (max-width: 980px) {
    .three-phases.four-phases {
        grid-template-columns: repeat(2, 1fr);
    }
    .three-phases.four-phases .phase-card {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .three-phases.four-phases .phase-card:nth-child(2n) { border-right: none; }
    .three-phases.four-phases .phase-card:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 680px) {
    .three-phases.four-phases {
        grid-template-columns: 1fr;
    }
    .three-phases.four-phases .phase-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .three-phases.four-phases .phase-card:last-child { border-bottom: none; }

    /* Mobile collapse: keep ~2.5 cards visible before expanding */
    .four-phases-wrap:not(.expanded) .three-phases {
        max-height: 240px;
    }
}
