/* ============================================================
   HARRY SANDERS V2 PROPOSAL - loaded after ../css/styles.css
   New: particle hero, story timeline, graph background,
   halftone portrait, charity counter
   ============================================================ */

:root {
    --font-pixel: 'Press Start 2P', monospace;
}

/* Base stylesheet hides .hero-image under 992px; keep the portrait
   on mobile, smaller and centered under the hero copy */
@media (max-width: 991px) {
    .hero-v2 .hero-image {
        display: block;
        max-width: 300px;
        margin: 40px auto 0;
    }
}

/* ===== STORY TIMELINE ===== */
.timeline-section { overflow: hidden; }

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0 40px;
}

/* The journey line: a serpentine path drawn by scroll.
   Ghost path shows the route ahead; the cyan path is the progress. */
.journey-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

#journeyGhost {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 2;
    stroke-linecap: round;
}

#journeyPath {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}

/* Chapter icons sketch themselves in when their milestone activates */
.milestone-icon {
    width: 34px;
    height: 34px;
    color: var(--cyan);
    margin-bottom: 10px;
}

.milestone-icon path,
.milestone-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    transition: stroke-dashoffset 1.1s ease 0.25s;
}

.milestone.active .milestone-icon path,
.milestone.active .milestone-icon circle {
    stroke-dashoffset: 0;
}

.milestone {
    position: relative;
    width: 50%;
    padding: 0 48px 56px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.milestone.active { opacity: 1; transform: translateY(0); }

.milestone[data-side="left"]  { left: 0;   text-align: right; }
.milestone[data-side="right"] { left: 50%; text-align: left; }

.milestone-marker {
    position: absolute;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.4s, box-shadow 0.4s;
}

.milestone[data-side="left"]  .milestone-marker { right: -8px; }
.milestone[data-side="right"] .milestone-marker { left: -8px; }

.milestone.active .milestone-marker {
    border-color: var(--cyan);
    box-shadow: 0 0 16px var(--cyan-glow), 0 0 4px var(--cyan);
}

.milestone-tag {
    font-family: var(--font-pixel);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.milestone-card h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.milestone-card p {
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .milestone,
    .milestone[data-side="left"],
    .milestone[data-side="right"] {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 44px 44px;
    }
    .milestone[data-side="left"] .milestone-marker,
    .milestone[data-side="right"] .milestone-marker { left: 4px; right: auto; }
}

/* ===== TESTIMONIAL SPOTLIGHT ===== */
.testimonial-spotlight {
    max-width: 880px;
    margin: 0 auto 52px;
    text-align: center;
}

.spotlight-quote {
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.4;
    color: var(--white);
    font-weight: 300;
    font-style: italic;
}

.spotlight-author {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
}

.testimonial-minis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1020px;
    margin: 0 auto;
}

.mini-quote p {
    font-size: 14px;
    font-style: italic;
    line-height: 1.65;
    color: var(--gray-400);
}

.mini-author {
    margin-top: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

@media (max-width: 800px) {
    .testimonial-minis { grid-template-columns: 1fr; }
}

/* ===== CHARITY COUNTER =====
   Sits on the light lavender/cyan charity banner, so it lives in its
   own dark chip - gradient text straight on the banner was unreadable. */
.charity-counter {
    display: inline-block;
    background: rgba(0, 0, 0, 0.88);
    border-radius: 16px;
    padding: 22px 32px;
    margin: 20px 0 26px;
    position: relative;
}

.charity-counter-number {
    font-family: var(--font-pixel);
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.2;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.charity-counter-label {
    margin-top: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c7cdd6;
}

/* ===== LATEST INSIGHTS ===== */
.insight-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card.insight-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-400);
}

.insight-card h3 {
    font-size: 22px;
    line-height: 1.2;
    transition: color 0.2s;
}

.insight-card:hover h3 { color: var(--cyan); }

.insight-card p { font-size: 14.5px; line-height: 1.65; }

.insight-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lavender);
}

.insight-read {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
}

.insights-more { text-align: center; margin-top: 36px; }

@media (max-width: 900px) {
    .insight-cards { grid-template-columns: 1fr; }
}

/* ===== CTA BUTTON ROW ===== */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    #journeyPath { stroke-dashoffset: 0 !important; }
    .milestone { opacity: 1; transform: none; transition: none; }
    .milestone-icon path,
    .milestone-icon circle { stroke-dashoffset: 0; transition: none; }
}
