/* =========================================
   TRIBU FITNESS LIVE — Case Study
   MÄO Agency Design System
   Light theme · Editorial · Warm
   ========================================= */

:root {
    --bg:           #F9F8F6;
    --sand:         #EAE5DE;
    --charcoal:     #1E1D1B;
    --text:         #2B2A28;
    --text-light:   #6A6763;
    --border:       rgba(43, 42, 40, 0.1);
    --stone:        #8E8372;   /* MÄO accent — matches homepage --color-accent */

    /* Tribu brand colors — used only in brand showcase context */
    --tribu-amber:  #F0A020;
    --tribu-red:    #C8230A;

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

    --max-w:        1400px;   /* matches MÄO homepage --max-width */
    --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; }
}
