/* ============================================================
   LIONS CAMP — SENIOR DESIGNER POLISH LAYER v2
   Priorities: legibility first, warmth, editorial rhythm,
   cinematic coherence. Overrides base style.css selectively.
   ============================================================ */

/* ─── 1. WARMER, RICHER PALETTE ──────────────────────────── */
:root {
    --tx:         #F5EFE3;   /* warmer paper white (was #ede8de) */
    --tx-hi:      #FFFFFF;   /* pure white reserved for hero/zone titles */
    --tx2:        #CFC6B2;   /* was #bfb8a8 */
    --tx3:        #8F8573;
    --gold:       #CDA862;   /* slightly brighter, more saturated */
    --gold-l:     #E8C579;
    --gold-d:     #9C7E38;
    --rose-gold:  #E0A97F;   /* NEW: warm terracotta accent (Marrakech) */
    --gold-glow:  rgba(205,168,98,.38);
    --lc-deep:    #030302;
    /* Deep warm charcoal backdrop (not pure black) */
    --bg-grad: radial-gradient(ellipse at 50% 0%, #141210 0%, #0a0907 55%, #060504 100%);
}
body {
    color: var(--tx);
    background: var(--bg-grad) fixed;
    letter-spacing: .003em;
    -webkit-font-smoothing: antialiased;
}

/* ─── 2. KILL THE MURKY GRADIENT-CLIP SHIMMER ─────────────── */
.section-title, .zone-heading, .hero-word {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--tx-hi);
    animation: none !important;
}
.hero-word {
    color: var(--tx-hi);
    text-shadow:
        0 2px 40px rgba(0,0,0,.45),
        0 1px 2px rgba(0,0,0,.5);
    letter-spacing: -.015em;
}
.hero-word--gold {
    color: var(--gold-l) !important;
    text-shadow:
        0 2px 40px rgba(205,168,98,.25),
        0 1px 2px rgba(0,0,0,.4);
}

/* ─── 3. TITLES OVER IMAGES — crisp shadow system ─────────── */
.zone-heading,
.zone-heading--sm,
.zone-caption,
.zone-content h2,
.zone-content h3,
.zone-content p,
.zone-content li,
.zone-list li {
    text-shadow:
        0 2px 24px rgba(0,0,0,.55),
        0 1px 3px rgba(0,0,0,.65);
}
.zone-heading { color: var(--tx-hi); letter-spacing: -.01em; }
.zone-heading em { font-style: italic; color: var(--gold-l) !important; }

.section-title {
    color: var(--tx-hi);
    letter-spacing: -.018em;
    font-weight: 700;
}
.section-title em { color: var(--gold-l) !important; font-style: italic; }

.eyebrow {
    color: var(--gold-l);
    letter-spacing: .38em;
    font-size: clamp(.82rem, 1vw, .95rem);
    font-weight: 500;
}
.section-sub {
    color: rgba(207,198,178,.92);
    line-height: 1.75;
    font-weight: 300;
}

/* ─── 4. GOLD HAIRLINE UNDER TITLES (draws in on enter) ──── */
.section-title, .zone-heading {
    position: relative;
    padding-bottom: 1.25rem;
}
.section-title::after,
.zone-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--gold), transparent);
    transition: width 1.1s cubic-bezier(.16,1,.3,1) .15s;
    box-shadow: 0 0 12px rgba(205,168,98,.4);
}
.zone-inner--center .section-title::after,
.zone-inner--center .zone-heading::after {
    left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.zone-inner--right .zone-heading::after {
    left: auto; right: 0;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title.is-lit::after,
.zone-heading.is-lit::after { width: 90px; }
.zone-inner--center .zone-heading.is-lit::after { width: 140px; }

/* ─── 5. GIANT CHAPTER NUMERALS behind zone headings ──────── */
.zone-inner { position: relative; }
.zone-inner[data-chapter]::before {
    content: attr(data-chapter);
    position: absolute;
    font-family: var(--ff-d);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(8rem, 18vw, 17rem);
    line-height: .8;
    color: rgba(255,255,255,.025);
    letter-spacing: -.05em;
    pointer-events: none;
    z-index: 0;
    top: 0;
    left: -.12em;
    user-select: none;
    text-shadow: 0 0 80px rgba(205,168,98,.04);
}
.zone-inner--right[data-chapter]::before {
    left: auto; right: -.1em;
}
.zone-inner--center[data-chapter]::before {
    left: 50%; transform: translateX(-50%);
    top: -2%;
}
/* Ensure text sits above ghost numerals */
.zone-inner > :not(.zone-inner-bg) { position: relative; z-index: 1; }

@media (max-width: 640px) {
    .zone-inner[data-chapter]::before {
        font-size: 7rem;
        top: -.6rem;
        color: rgba(255,255,255,.035);
    }
}

/* ─── 6. CINEMATIC FILM GRADE on zone images ─────────────── */
.zone-bg-img,
.compound-img-wrap img,
.eco-bg img,
.phases-bg img,
.hero-bg img {
    filter: brightness(1.08) contrast(1.07) saturate(1.1) sepia(.06);
}
/* Subtle warmth overlay on every zone panel */
.zone-panel::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(224,169,127,.04) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 0%, rgba(205,168,98,.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

/* ─── 7. NAV REFINEMENT ──────────────────────────────────── */
#main-nav.nav-solid {
    background: rgba(6,5,4,.82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(205,168,98,.1);
}
.nav-logo-main {
    color: var(--tx-hi);
    font-family: var(--ff-d);
    letter-spacing: .24em;
    font-weight: 600;
}
.nav-logo-sub { color: var(--gold-l); letter-spacing: .4em; }
.nav-link {
    color: rgba(245,239,227,.72);
    font-size: .82rem;
    letter-spacing: .18em;
    font-weight: 500;
}
.nav-link:hover { color: var(--gold-l); }
.nav-link::after {
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--rose-gold));
    box-shadow: 0 0 8px var(--gold-glow);
}
/* Ornamental dot between nav items */
.nav-links { gap: 2.25rem; }
.nav-links .nav-link:not(:last-child)::before {
    content: '·';
    position: absolute;
    right: -1.3rem;
    color: rgba(205,168,98,.35);
    font-size: 1.2em;
    pointer-events: none;
}

/* ─── 8. KPI REFINEMENT ──────────────────────────────────── */
.kpi-num {
    color: var(--tx-hi);
    font-family: var(--ff-d);
    font-weight: 700;
    letter-spacing: -.02em;
    background: linear-gradient(180deg, var(--tx-hi) 0%, var(--gold-l) 150%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kpi-label {
    color: rgba(207,198,178,.68);
    letter-spacing: .28em;
    font-weight: 500;
    font-size: .78rem;
    text-transform: uppercase;
}

/* ─── 9. CARDS — richer finish ───────────────────────────── */
.rev-tile, .phase-card, .fin-card, .journey-card {
    border: 1px solid rgba(205,168,98,.12);
    background:
        linear-gradient(165deg, rgba(30,26,22,.72), rgba(10,9,7,.92)),
        radial-gradient(ellipse at top left, rgba(205,168,98,.05), transparent 60%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 20px 50px rgba(0,0,0,.35);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.rev-tile:hover, .phase-card:hover, .fin-card:hover, .journey-card:hover {
    border-color: rgba(205,168,98,.3);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 30px 70px rgba(0,0,0,.5),
        0 0 60px rgba(205,168,98,.06);
}

/* ─── 10. GOLD-LINE ENHANCEMENT ──────────────────────────── */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--rose-gold) 60%, transparent 100%);
    box-shadow: 0 0 10px rgba(205,168,98,.35);
}

/* ─── 11. CURSOR (keep + refine) ─────────────────────────── */
.cur-dot, .cur-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.cur-dot {
    width: 5px; height: 5px;
    background: var(--gold-l);
    border-radius: 50%;
    mix-blend-mode: difference;
    transition: width .25s, height .25s, opacity .3s;
    box-shadow: 0 0 14px rgba(232,197,121,.7);
}
.cur-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(205,168,98,.65);
    border-radius: 50%;
    transition: width .35s var(--ease-spring), height .35s var(--ease-spring), border-color .3s, opacity .3s, background .3s;
}
.cur-ring.is-active {
    width: 62px; height: 62px;
    border-color: var(--gold-l);
    background: rgba(205,168,98,.06);
}
.cur-dot.is-active { width: 2px; height: 2px; }
.cur-dot.is-hidden, .cur-ring.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
    .cur-dot, .cur-ring { display: none !important; }
}
@media (hover: hover) and (pointer: fine) {
    html, body, a, button { cursor: none; }
    input, textarea, select { cursor: text; }
}

/* ─── 12. MARQUEE EDITORIAL BAND ─────────────────────────── */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(205,168,98,.1);
    border-bottom: 1px solid rgba(205,168,98,.1);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(205,168,98,.03) 0%, transparent 60%),
        linear-gradient(90deg, var(--lc2), var(--lc) 50%, var(--lc2));
    z-index: 15;
}
.marquee::before, .marquee::after {
    content: '';
    position: absolute; top: 0; bottom: 0;
    width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--lc2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--lc2), transparent); }
.marquee-track {
    display: flex; gap: 3.5rem;
    white-space: nowrap;
    animation: marqueeSlide 38s linear infinite;
    will-change: transform;
}
.marquee-item {
    font-family: var(--ff-d);
    font-style: italic;
    font-size: clamp(1.75rem, 3.2vw, 3rem);
    font-weight: 500;
    color: rgba(205,168,98,.38);
    letter-spacing: .04em;
    display: inline-flex; align-items: center; gap: 3.5rem;
}
.marquee-item::after {
    content: '✦';
    font-size: .55em;
    color: var(--gold);
    font-style: normal;
    opacity: .8;
}
.marquee-item:last-child::after { content: ''; }
@keyframes marqueeSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ─── 13. MAGNETIC TARGETS ───────────────────────────────── */
.magnetic {
    display: inline-flex;
    transition: transform .45s var(--ease-spring);
    will-change: transform;
}
.magnetic > * { pointer-events: none; }

/* ─── 14. SCROLLBAR REFINEMENT ───────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--rose-gold));
    border-radius: 0;
}
::selection { background: rgba(205,168,98,.3); color: var(--tx-hi); }

/* ─── 15. HERO SUB — better contrast ─────────────────────── */
.hero-sub {
    color: rgba(255,255,255,.82);
    font-style: italic;
    letter-spacing: .2em;
    text-shadow: 0 2px 20px rgba(0,0,0,.45);
}
.hero-tag {
    color: rgba(245,239,227,.78);
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════════════════════════
   16. VERTICAL RHYTHM — breathe, don't overload
   ═══════════════════════════════════════════════════════════ */

/* Kill the negative margins that pulled sections together */
#compound { margin-top: 0 !important; padding-top: clamp(4rem, 8vw, 8rem) !important; }
#zones    { margin-top: 0 !important; }
.zone-panel { margin-bottom: 0 !important; }

/* Generous, consistent padding for major sections */
#ecosystem,
#phases,
#revenue,
#pitch-summary {
    padding-top:    clamp(6rem, 10vw, 10rem) !important;
    padding-bottom: clamp(6rem, 10vw, 10rem) !important;
}

/* Journey block — more air above & below */
.journey-wrap {
    padding-top:    clamp(5rem, 8vw, 8rem) !important;
    padding-bottom: clamp(5rem, 8vw, 8rem) !important;
}

/* KPI strip — space it out from the masterplan image */
.kpi-strip {
    margin-top: clamp(3rem, 5vw, 5rem);
    margin-bottom: clamp(3rem, 5vw, 5rem);
    padding: clamp(2.5rem, 4vw, 4rem) 0;
    border-top: 1px solid rgba(205,168,98,.08);
    border-bottom: 1px solid rgba(205,168,98,.08);
}

/* Zone panels: reduce height slightly so they feel lighter, less overwhelming */
.zone-panel {
    height: 88svh;
    min-height: 600px;
}
.zone-panel--break {
    height: 52svh;
    min-height: 360px;
}

/* Clear visual break BETWEEN zone panels (subtle dark gap + gold pinhole) */
.zone-panel + .zone-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .4;
    z-index: 5;
    pointer-events: none;
}

/* Compound image: give it padding so it doesn't bleed hard into KPIs */
.compound-img-wrap {
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 clamp(0rem, 2vw, 2rem);
}

/* Section headers: more breathing room */
.section-header {
    margin-bottom: clamp(4rem, 7vw, 7rem) !important;
}

/* Grids: more gap so cards breathe */
.phases-grid { gap: clamp(2rem, 3.5vw, 3.5rem) !important; }
.fin-grid    { gap: clamp(1.25rem, 2.5vw, 2rem) !important; margin-top: clamp(4rem, 6vw, 6rem) !important; }
.rev-mosaic  { gap: clamp(1.25rem, 2vw, 1.75rem) !important; }
.journey-grid{ gap: clamp(1rem, 1.8vw, 1.5rem) !important; }

/* Hero → compound: add a soft dark spacer instead of overlap */
#hero + section,
#hero { margin-bottom: 0; }
#hero::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--lc));
    pointer-events: none;
    z-index: 3;
}

/* Zone inner: more horizontal padding so text doesn't hug edges */
.zone-inner {
    padding: clamp(5rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem) !important;
}
.zone-inner--left  { padding-left:  clamp(3rem, 8vw, 9rem) !important; }
.zone-inner--right { padding-right: clamp(3rem, 8vw, 9rem) !important; }

/* Footer: separate clearly from content above */
#site-footer {
    padding-top:    clamp(5rem, 8vw, 8rem) !important;
    padding-bottom: clamp(3rem, 5vw, 5rem) !important;
    border-top: 1px solid rgba(205,168,98,.08);
    margin-top: clamp(4rem, 6vw, 6rem);
}

/* Marquee: space from adjacent sections */
.marquee {
    margin: clamp(3rem, 6vw, 6rem) 0 !important;
}

/* Mobile: tighter but still breathable rhythm */
@media (max-width: 640px) {
    #compound { padding-top: 3rem !important; }
    .zone-panel {
        height: auto !important;
        min-height: 0 !important;
    }
    .zone-inner {
        padding: 4rem 1.5rem !important;
        min-height: 70svh !important;
    }
    .zone-inner--left, .zone-inner--right {
        padding-left: 1.5rem !important; padding-right: 1.5rem !important;
    }
    #ecosystem, #phases, #revenue, #pitch-summary {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    .journey-wrap { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .section-header { margin-bottom: 2.5rem !important; }
    .kpi-strip { margin: 2.5rem 0; padding: 2rem 0; }
    .marquee { margin: 2.5rem 0 !important; padding: 1.75rem 0 !important; }
    .marquee-item { font-size: 1.25rem !important; gap: 2rem !important; }
}

/* ─── 17. REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .cur-dot, .cur-ring { display: none !important; }
    .marquee-track { animation: none !important; }
    .section-title.is-lit::after, .zone-heading.is-lit::after { width: 60px; transition: none; }
}
