/* ═══════════════════════════════════════════════
   VENTURE PAGE — DARK MODE SCROLLYTELLING
   ═══════════════════════════════════════════════ */

/* --- PAGE BASE --- */
.venture-page {
    background: var(--v-bg-dark);
    color: var(--v-text-secondary);
    min-height: 100vh;
    position: relative;
    /* Note: overflow-x moved to .v-main to preserve sticky positioning */
}

/* Grain texture overlay */
.v-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 0;
}

/* --- LAYOUT --- */
.v-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow: visible;
    /* Critical: sticky requires visible overflow on ancestors */
}

.v-main {
    padding: calc(72px + var(--space-10)) var(--space-8) var(--space-16);
    max-width: 900px;
    overflow-x: clip;
    /* Use clip instead of hidden to not break sticky sibling */
}

@media (max-width: 1024px) {
    .v-layout {
        grid-template-columns: 1fr;
    }

    .v-main {
        padding: calc(72px + var(--space-6)) var(--space-5) var(--space-12);
    }
}

/* --- MOBILE NAV --- */
.v-mobile-nav {
    display: none;
    position: sticky;
    top: 72px;
    z-index: 100;
    background: var(--v-bg-surface);
    border-bottom: 1px solid var(--v-border);
    padding: var(--space-3) var(--space-5);
}

@media (max-width: 1024px) {
    .v-mobile-nav {
        display: block;
    }
}

.v-chapters-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--v-bg-card);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-4);
    color: var(--v-text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.v-chapters-toggle:hover {
    border-color: var(--v-border-hover);
    background: var(--v-bg-elevated);
}

.v-chapters-toggle svg {
    transition: transform 0.2s ease;
}

.v-chapters-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.v-chapters-dropdown {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) 0;
}

.v-chapters-dropdown.open {
    display: flex;
}

.v-chapters-link {
    padding: var(--space-2) var(--space-4);
    color: var(--v-text-secondary);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    /* Button reset */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.v-chapters-link:hover {
    color: var(--v-text-primary);
    background: var(--v-bg-elevated);
}

/* --- TIMELINE RAIL (Desktop) --- */
.v-timeline-rail {
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
    padding: var(--space-8) var(--space-6);
    border-right: 1px solid var(--v-border);
    z-index: 10;
}

@media (max-width: 1024px) {
    .v-timeline-rail {
        display: none;
    }
}

.v-timeline-line {
    position: absolute;
    left: 28px;
    top: var(--space-10);
    bottom: var(--space-10);
    width: 2px;
    background: var(--v-border);
}

.v-timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
}

.v-timeline-item {
    position: relative;
}

.v-timeline-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    text-decoration: none;
    transition: all 0.15s ease;
    /* Button reset */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.v-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--v-bg-card);
    border: 2px solid var(--v-border);
    flex-shrink: 0;
    transition: all 0.2s ease;
    z-index: 1;
}

.v-timeline-label {
    font-size: 13px;
    color: var(--v-text-muted);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.v-timeline-link:hover .v-timeline-label {
    color: var(--v-text-secondary);
}

.v-timeline-link.active .v-timeline-dot {
    background: var(--v-accent);
    border-color: var(--v-accent);
    box-shadow: 0 0 12px rgba(255, 106, 61, 0.4);
}

.v-timeline-link.active .v-timeline-label {
    color: var(--v-text-primary);
    font-weight: 500;
}

/* --- HERO --- */
.v-hero {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--space-10);
    align-items: start;
    margin-bottom: var(--space-16);
}

@media (max-width: 768px) {
    .v-hero {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .v-impact-panel {
        order: -1;
    }
}

.v-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--v-text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-5);
}

.v-hero-lead {
    font-size: var(--text-lg);
    color: var(--v-text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-6);
    max-width: 520px;
}

.v-hero-ctas {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}

/* Buttons */
.v-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.v-btn-primary {
    background: var(--v-text-primary);
    color: var(--v-bg-dark);
    border: 1px solid var(--v-text-primary);
}

.v-btn-primary:hover {
    background: var(--v-accent);
    border-color: var(--v-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 106, 61, 0.25);
}

.v-btn-primary svg {
    transition: transform 0.2s ease;
}

.v-btn-primary:hover svg {
    transform: translateX(2px);
}

.v-btn-outline {
    background: transparent;
    color: var(--v-text-primary);
    border: 1px solid var(--v-border);
}

.v-btn-outline:hover {
    border-color: var(--v-text-secondary);
    background: var(--v-bg-elevated);
    transform: translateY(-2px);
}

/* Meta pills */
.v-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.v-meta-pill {
    font-size: 12px;
    color: var(--v-text-muted);
    padding: var(--space-1) var(--space-3);
    background: var(--v-bg-card);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-full);
}

/* Impact Panel */
.v-impact-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.v-brand-tile {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.v-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.35);
}

.v-scoreboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.v-score-item {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.2s ease;
}

.v-score-item:hover {
    border-color: var(--v-border-hover);
    transform: translateY(-2px);
}

.v-score-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--v-accent);
    margin-bottom: var(--space-1);
}

.v-score-label {
    font-size: 12px;
    color: var(--v-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- CHAPTERS --- */
.v-chapters {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.v-chapter {
    scroll-margin-top: 120px;
    position: relative;
}

.v-chapter::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-8));
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--v-border) 0%, transparent 100%);
}

.v-chapter:last-child::after {
    display: none;
}

.v-chapter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

.v-chapter-alt .v-chapter-inner {
    direction: rtl;
}

.v-chapter-alt .v-chapter-narrative,
.v-chapter-alt .v-chapter-evidence {
    direction: ltr;
}

@media (max-width: 768px) {
    .v-chapter-inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .v-chapter-alt .v-chapter-inner {
        direction: ltr;
    }
}

.v-chapter-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--v-accent);
    margin-bottom: var(--space-3);
}

.v-chapter-heading {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--v-text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
}

.v-copy {
    font-size: 15px;
    color: var(--v-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
    max-width: 60ch;
}

.v-subhead {
    font-size: 15px;
    font-weight: 600;
    color: var(--v-text-primary);
    margin-bottom: var(--space-3);
    margin-top: var(--space-5);
}

.v-bullets {
    list-style: none;
    margin-bottom: var(--space-4);
}

.v-bullets li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: 14px;
    color: var(--v-text-secondary);
    line-height: 1.6;
}

.v-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--v-accent);
}

/* --- EVIDENCE CARDS --- */
.v-chapter-evidence {
    position: sticky;
    top: 140px;
}

/* Memo Callout (Origin) */
.v-memo-callout {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.v-memo-callout:hover {
    border-color: var(--v-accent);
}

.v-quote-watermark {
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: var(--v-border);
    line-height: 1;
    pointer-events: none;
    opacity: 0.3;
}

.v-quote-text {
    font-size: 15px;
    font-style: italic;
    color: var(--v-text-secondary);
    line-height: 1.75;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Chart Cards */
.v-chart-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.v-chart-card {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: border-color 0.2s ease;
}

.v-chart-card:hover {
    border-color: var(--v-border-hover);
}

.v-chart-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--v-text-primary);
    margin-bottom: var(--space-4);
}

.v-chart-wrap {
    margin-bottom: var(--space-3);
}

.v-chart-wrap svg {
    width: 100%;
    height: auto;
}

.v-chart-caption {
    font-size: 12px;
    color: var(--v-text-muted);
    font-style: italic;
}

/* Chart SVG styling */
.v-chart-wrap .funnel-bar,
.v-chart-wrap .bar-chart-bar {
    fill: var(--v-bg-elevated);
}

.v-chart-wrap .funnel-bar.accent,
.v-chart-wrap .bar-chart-bar.accent {
    fill: var(--v-accent);
}

.v-chart-wrap .funnel-label,
.v-chart-wrap .bar-chart-label {
    fill: var(--v-text-muted);
    font-size: 11px;
}

.v-chart-wrap .funnel-value,
.v-chart-wrap .bar-chart-value {
    fill: var(--v-text-primary);
    font-size: 12px;
    font-weight: 600;
}

.v-chart-wrap .line-chart-line {
    stroke: var(--v-border);
    stroke-width: 2;
    fill: none;
}

.v-chart-wrap .line-chart-line.accent {
    stroke: var(--v-accent);
}

.v-chart-wrap .line-chart-point {
    fill: var(--v-bg-dark);
    stroke: var(--v-border);
    stroke-width: 2;
}

.v-chart-wrap .line-chart-point.accent {
    stroke: var(--v-accent);
}

.v-chart-wrap .line-chart-gridline {
    stroke: var(--v-border);
    stroke-width: 1;
}

.v-chart-wrap .line-chart-label {
    fill: var(--v-text-muted);
    font-size: 10px;
}

/* Chart legend */
.v-chart-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.v-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 12px;
    color: var(--v-text-muted);
}

.v-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--v-border);
}

.v-legend-dot.accent {
    background: var(--v-accent);
}

/* Feature Tiles (MVP) */
.v-feature-tiles {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.v-feature-tile {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all 0.2s ease;
}

.v-feature-tile:hover {
    border-color: var(--v-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.v-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--v-accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v-accent);
    margin-bottom: var(--space-3);
}

.v-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--v-text-primary);
    margin-bottom: var(--space-2);
}

.v-feature-copy {
    font-size: 13px;
    color: var(--v-text-muted);
    line-height: 1.6;
}

/* Growth Loops (Distribution) */
.v-growth-loops {
    list-style: none;
}

.v-growth-loops li {
    padding: var(--space-2) 0;
    font-size: 14px;
    color: var(--v-text-secondary);
    line-height: 1.6;
}

.v-arrow {
    color: var(--v-accent);
    margin-right: var(--space-2);
}

/* Stat Row */
.v-stat-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.v-stat-chip {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-full);
    font-size: 13px;
}

.v-stat-label {
    color: var(--v-text-muted);
}

.v-stat-value {
    color: var(--v-text-primary);
    font-weight: 600;
}

/* Pricing Panel (Monetization) */
.v-pricing-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

@media (max-width: 600px) {
    .v-pricing-panel {
        grid-template-columns: 1fr;
    }
}

.v-pricing-card {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    transition: all 0.2s ease;
}

.v-pricing-card:hover {
    border-color: var(--v-border-hover);
    transform: translateY(-2px);
}

.v-pricing-featured {
    border-color: var(--v-accent);
    background: var(--v-accent-subtle);
}

.v-pricing-tier {
    display: block;
    font-size: 12px;
    color: var(--v-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.v-pricing-price {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--v-text-primary);
}

.v-pricing-featured .v-pricing-price {
    color: var(--v-accent);
}

.v-pricing-note {
    font-size: 12px;
    color: var(--v-text-muted);
    font-style: italic;
    margin-top: var(--space-4);
    text-align: right;
}

/* Partner Panel (Corporate) */
.v-partner-panel {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
}

.v-partner-metric {
    font-size: 14px;
    color: var(--v-text-secondary);
    line-height: 1.6;
}

/* Retreat Grid */
.v-retreat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (max-width: 480px) {
    .v-retreat-grid {
        grid-template-columns: 1fr;
    }
}

.v-retreat-tile {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    font-size: 14px;
    color: var(--v-text-secondary);
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

.v-retreat-tile:hover {
    border-color: var(--v-border-hover);
}

.v-retreat-icon {
    color: var(--v-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Callout Strip */
.v-callout-strip {
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
}

.v-callout-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--v-accent);
}

.v-callout-text {
    font-size: 14px;
    color: var(--v-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Principles (Learnings) */
.v-principles {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.v-principle-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: border-color 0.2s ease;
}

.v-principle-card:hover {
    border-color: var(--v-border-hover);
}

.v-principle-icon {
    color: var(--v-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.v-principle-card p {
    font-size: 14px;
    color: var(--v-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* --- END CTA --- */
.v-end-cta {
    margin-top: var(--space-16);
    text-align: center;
    padding: var(--space-12) var(--space-8);
    background: var(--v-bg-surface);
    border: 1px solid var(--v-border);
    border-radius: var(--radius-xl);
}

.v-end-cta h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--v-text-primary);
    margin-bottom: var(--space-6);
}

.v-end-cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* --- ANIMATIONS --- */
.v-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Chart animations */
.chart-animated .funnel-bar,
.chart-animated .bar-chart-bar {
    transform-origin: left center;
    animation: barGrow 0.6s ease-out forwards;
    animation-delay: var(--anim-delay, 0s);
    transform: scaleX(0);
}

.chart-animated .line-chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: lineDraw 1s ease-out forwards;
    animation-delay: var(--anim-delay, 0s);
}

.chart-animated .line-chart-point {
    opacity: 0;
    animation: pointFade 0.3s ease-out forwards;
    animation-delay: var(--anim-delay, 0s);
}

@keyframes barGrow {
    to {
        transform: scaleX(1);
    }
}

@keyframes lineDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pointFade {
    to {
        opacity: 1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .v-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .chart-animated .funnel-bar,
    .chart-animated .bar-chart-bar,
    .chart-animated .line-chart-line,
    .chart-animated .line-chart-point {
        animation: none;
        transform: scaleX(1);
        stroke-dashoffset: 0;
        opacity: 1;
    }
}