/* ==========================================================================
   Home page (redesign) — ported from approved design, scoped to .home-page
   ========================================================================== */

.home-page { overflow-x: hidden; }
.home-page a { color: inherit; }
.home-page ul { list-style: none; }

/* ---------- reveal-on-scroll ---------- */
.home-page .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.home-page .reveal.in-view { opacity: 1; transform: translateY(0); }
.home-page .reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.home-page .reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.home-page .reveal-stagger.in-view > *:nth-child(1) { transition-delay: .02s; }
.home-page .reveal-stagger.in-view > *:nth-child(2) { transition-delay: .12s; }
.home-page .reveal-stagger.in-view > *:nth-child(3) { transition-delay: .22s; }
.home-page .reveal-stagger.in-view > *:nth-child(4) { transition-delay: .32s; }
.home-page .reveal-stagger.in-view > *:nth-child(5) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
    .home-page .reveal, .home-page .reveal-stagger > * { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- SECTION SHARED ---------- */
.home-page section { padding: 6.5rem 5%; border-bottom: 1px solid var(--rule); position: relative; }
.home-page .section-inner { max-width: 1280px; margin: 0 auto; }
.home-page .section-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem;
}
.home-page .section-label::before { content: ''; width: 22px; height: 1px; background: var(--red); }
.home-page .section-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 26ch; }
.home-page .section-sub { font-size: 1rem; color: var(--ink-mid); max-width: 56ch; margin-bottom: 3rem; }
.home-page .section-title.center, .home-page .section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.home-page .section-label.center { justify-content: center; }
.home-page .section-label.center::before { display: none; }
.home-page .section-label-dash { display: inline-block; width: 22px; height: 1px; background: var(--red); }

/* ---------- BUTTONS ---------- */
.home-page .btn-primary {
    background: #AE0318; color: var(--white); padding: .9rem 1.8rem; border-radius: 7px;
    font-weight: 700; font-size: .95rem; text-decoration: none; display: inline-block;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 6px 18px rgba(174,3,24,0.18);
}
.home-page .btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(174,3,24,0.24); }
.home-page .btn-ghost {
    color: var(--ink-mid); font-size: .92rem; font-weight: 700; text-decoration: none;
    border-bottom: 2px solid var(--rule); padding-bottom: 3px; transition: border-color .2s, color .2s;
}
.home-page .btn-ghost:hover { border-color: var(--red); color: var(--ink); }
.home-page .btn-outline {
    border: 1.5px solid var(--white); color: var(--white); padding: .85rem 1.7rem; border-radius: 7px;
    font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .2s, color .2s; display: inline-block;
}
.home-page .btn-outline:hover { background: var(--white); color: var(--red); }
.home-page .btn-white {
    background: #ffffff;
    color: #AE0318;
    border: none;
    padding: .9rem 1.8rem; border-radius: 7px;
    font-weight: 700; font-size: .95rem; text-decoration: none; display: inline-block; transition: transform .2s;
}
.home-page .btn-white:hover { transform: translateY(-2px); color: var(--red); }

/* ---------- HERO ---------- */
.home-page .hero {
    padding: 3rem 5% 5rem;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.home-page .hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
    max-width: 1280px; margin: 0 auto; width: 100%;
}
.home-page .hero-eyebrow {
    font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .5rem;
}
.home-page .hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--red); }
.home-page .hero h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1.1;
    letter-spacing: -0.03em; margin-bottom: 1.6rem; max-width: 16ch;
}
.home-page .hero h1 em { font-style: normal; color: var(--red); }
.home-page .hero-sub { font-size: 1.1rem; color: var(--ink-mid); max-width: 46ch; margin-bottom: 2.2rem; }
.home-page .hero-links {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
    font-size: .9rem;
    color: var(--ink-mid);
}
.home-page .hero-links-divider { color: var(--rule); }
.home-page .hero-links .btn-ghost {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--rule);
    padding-bottom: 2px;
}
.home-page .hero-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.home-page .proof-strip { display: flex; gap: .6rem; flex-wrap: wrap; }
.home-page .proof-pill {
    font-size: .75rem; font-weight: 700; color: var(--ink-muted); background: var(--white);
    border: 1px solid var(--rule); border-radius: 20px; padding: .3rem .9rem;
    display: inline-flex; align-items: center; gap: .4rem;
}
.home-page .proof-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.home-page .hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; }

/* ---------- INTERACTIVE COMPASS DIAL ---------- */
.home-page .compass-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1/1; margin: 0 auto; }
.home-page .compass-dial {
    position: relative; width: 100%; height: 100%; border-radius: 50%;
    background: var(--paper-raised); border: 1px solid var(--rule);
    box-shadow: inset 0 0 0 8px #fff;
    cursor: crosshair;
}
.home-page .compass-dial svg { width: 100%; height: 100%; }
.home-page .compass-tag {
    position: absolute; transform: translate(-50%,-50%);
    font-size: .66rem; font-weight: 700; letter-spacing: .01em; text-align: center;
    background: var(--white); border: 1px solid var(--rule); border-radius: 20px;
    padding: .38rem .65rem; cursor: pointer; user-select: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    white-space: nowrap;
}
.home-page .compass-tag:hover, .home-page .compass-tag.active {
    background: var(--red); color: var(--white); border-color: var(--red); transform: translate(-50%,-50%) scale(1.06);
}

/* ---------- COMPASS EXPLAINER ---------- */
.home-page .home-compass-about { background: var(--white); }
.home-page .compass-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 4rem; align-items: center; }
.home-page .compass-map-frame {
    position: relative; width: 100%; max-width: 440px; aspect-ratio: 1/1; margin: 0 auto;
    background: var(--paper-raised); border: 1.5px solid var(--rule); border-radius: 28px;
    box-shadow: 0 24px 50px -32px rgba(28,24,21,.28);
}
.home-page .compass-map-spokes { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-page .compass-map-spokes line { stroke: var(--rule); stroke-width: .5; }
.home-page .compass-map-tag {
    position: absolute; transform: translate(-50%,-50%);
    font-size: .72rem; font-weight: 700; color: var(--ink-mid); text-align: center;
    background: var(--paper); border: 1px solid var(--rule); border-radius: 20px;
    padding: .4rem .8rem; white-space: nowrap;
}
.home-page .compass-copy-cta { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- APPROACH TIMELINE ---------- */
.home-page .approach-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
.home-page .approach-timeline { position: relative; padding-left: 2.6rem; }
.home-page .approach-rail { position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--rule); }
.home-page .approach-rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--red); transition: height .1s linear; }
.home-page .approach-step { position: relative; padding-bottom: 3.2rem; }
.home-page .approach-step:last-child { padding-bottom: 0; }
.home-page .approach-dot {
    position: absolute; left: -2.6rem; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--rule); display: flex; align-items: center; justify-content: center;
    transition: border-color .3s, background .3s; z-index: 2;
}
.home-page .approach-step.passed .approach-dot { border-color: var(--red); background: var(--red); }
.home-page .approach-num { font-size: .68rem; font-weight: 700; color: var(--ink-muted); }
.home-page .approach-step.passed .approach-num { color: var(--white); }
.home-page .approach-step h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -0.01em; }
.home-page .approach-step p { color: var(--ink-mid); max-width: 46ch; }

/* ---------- UNIVERSITIES (marquee) ---------- */
.home-page .home-universities { background: var(--paper); }
.home-page .uni-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.home-page .marquee-track { display: flex; gap: .8rem; width: max-content; animation: home-marquee 34s linear infinite; }
.home-page .uni-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes home-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.home-page .uni-chip {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .85rem; font-weight: 700; color: var(--ink-mid); background: var(--white);
    border: 1px solid var(--rule); border-radius: 8px; padding: .8rem 1.4rem; white-space: nowrap; flex-shrink: 0;
}
.home-page .uni-chip img { height: 28px; width: auto; max-width: 80px; object-fit: contain; flex-shrink: 0; filter: none; opacity: 1; }

/* ---------- NEWS ---------- */
.home-page .home-news { background: var(--white); }
.home-page .home-news-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
    max-width: 900px; margin: 2.5rem auto 0;
}
.home-page .home-news-card {
    background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.home-page .home-news-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(28,24,21,.28); }
.home-page .home-news-thumb { height: 190px; overflow: hidden; }
.home-page .home-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-page .home-news-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 1.2rem 1.4rem .6rem; letter-spacing: -0.01em; }
.home-page .home-news-link { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--red); text-decoration: none; margin: 0 1.4rem 1.4rem; }
.home-page .home-news-link:hover { color: var(--red-dark); }

@media (max-width: 700px) {
    .home-page .home-news-grid { grid-template-columns: 1fr; }
}

/* ---------- STATS ---------- */
.home-page .stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    padding: 4.5rem 5%; border-bottom: 1px solid var(--rule); background: var(--forest);
}
.home-page .stat-item { text-align: center; color: var(--white); padding: 1rem; border-radius: 14px; transition: background .3s var(--ease), transform .3s var(--ease); }
.home-page .stat-item:hover { background: rgba(255,255,255,.06); transform: translateY(-3px); }
.home-page .stat-num-lg { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: .35rem; }
.home-page .stat-label-lg { font-size: .8rem; color: #cfdcd4; font-weight: 600; }

/* ---------- TESTIMONIALS ---------- */
.home-page .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.home-page .testimonial {
    background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 2rem;
    display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.home-page .testimonial:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(28,24,21,.28); }
.home-page .testimonial blockquote { font-size: .96rem; color: var(--ink-mid); margin-bottom: 1.6rem; }
.home-page .testimonial-meta { display: flex; align-items: center; gap: .8rem; }
.home-page .testimonial-avatar { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; overflow: hidden; }
.home-page .testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-page .testimonial-name { font-weight: 700; font-size: .9rem; }
.home-page .testimonial-role { font-size: .8rem; color: var(--ink-muted); }
.home-page .testi-uni-logo { height: 20px; width: auto; max-width: 60px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

/* ---------- FAQ ---------- */
.home-page .faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.home-page .faq-list { border-top: 1px solid var(--rule); }
.home-page .faq-item { border-bottom: 1px solid var(--rule); }
.home-page .faq-q {
    list-style: none; cursor: pointer; padding: 1.4rem 0; font-weight: 700; font-size: 1.02rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px;
}
.home-page .faq-q::-webkit-details-marker { display: none; }
.home-page .faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-muted); transition: transform .3s var(--ease); }
.home-page details[open] .faq-chevron { transform: rotate(180deg); color: var(--red); }
.home-page .faq-a { color: var(--ink-mid); padding-bottom: 1.6rem; max-width: 62ch; }

/* ---------- BLOG ---------- */
.home-page .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.home-page .blog-card {
    text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--rule);
    border-radius: 12px; overflow: hidden; display: block; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.home-page .blog-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(28,24,21,.28); }
.home-page .blog-thumb { height: 150px; overflow: hidden; }
.home-page .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-page .blog-card-body { padding: 1.6rem; }
.home-page .blog-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.home-page .blog-card h3 { font-size: 1.06rem; font-weight: 700; margin: .6rem 0 .6rem; line-height: 1.35; letter-spacing: -0.01em; }
.home-page .blog-card p { font-size: .9rem; color: var(--ink-mid); }

/* ---------- CTA BANNER ---------- */
.home-page .cta-banner {
    background: #AE0318; color: var(--white); border-bottom: none;
    display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
    padding: 3rem 5%;
}
.home-page .cta-banner > * { min-width: 0; }
.home-page .cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; max-width: 20ch; letter-spacing: -0.02em; margin-bottom: 1rem; }
.home-page .cta-banner p { max-width: 46ch; color: rgba(255,255,255,.88); }
.home-page .cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .home-page .hero-grid, .home-page .compass-layout, .home-page .approach-layout, .home-page .faq-layout {
        grid-template-columns: 1fr;
    }
    .home-page .hero-left { padding: 2.5rem 5%; }
    .home-page .hero-visual { padding: 1.5rem 5%; order: -1; }
    .home-page .compass-stage { width: 100%; }
    .home-page .compass-dial { width: min(340px, 90vw); height: min(340px, 90vw); }
    .home-page .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .home-page .testimonials-grid, .home-page .blog-grid { grid-template-columns: 1fr; }

    /* Section padding */
    .home-page section { padding: 3rem 5%; }
    .home-page .section-inner { padding: 0 5%; }

    /* Typography scale down */
    .home-page .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .home-page .hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

    /* Stats bar font size */
    .home-page .stat-num-lg { font-size: 2rem; }

    /* Approach timeline */
    .home-page .approach-layout { gap: 2rem; }
    .home-page .approach-timeline { padding-left: 2rem; }
    .home-page .approach-dot { left: -1.8rem; }
    .home-page .approach-layout > div:first-child { padding: 0; }

    /* University marquee — smaller chips on mobile */
    .home-page .uni-chip { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
    .home-page .uni-chip img { height: 20px; max-width: 60px; }
    .home-page .uni-marquee { overflow: hidden; }

    /* Compass map — labels cropping fix */
    .home-page .compass-map-frame { overflow: visible; padding: 0 2rem; }
    .home-page .compass-map-frame svg { width: 100%; height: auto; overflow: visible; }
    .home-page .compass-map-tag { font-size: 0.7rem; }
    .home-page .home-compass-about { padding: 2rem 0; }

    /* Testimonials — card padding */
    .home-page .testimonial { padding: 1.5rem; }
    .home-page .testimonial blockquote { font-size: 0.95rem; }

    /* Blog grid — image height */
    .home-page .blog-card { margin-bottom: 0; }
    .home-page .blog-thumb { height: 180px; }
    .home-page .blog-thumb img { height: 160px; }

    /* News grid */
    .home-page .home-news-grid { grid-template-columns: 1fr; gap: 1rem; }
    .home-page .home-news-thumb { height: 180px; }

    /* CTA banner */
    .home-page .cta-banner { flex-direction: column; padding: 2.5rem 5% !important; gap: 1.5rem; }
    .home-page .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
    .home-page .cta-banner > div:first-child { width: 100%; }
    .home-page .cta-banner-actions { width: 100%; }
    .home-page .cta-banner-actions a, .home-page .cta-banner-actions .btn-white {
        width: 100% !important;
        text-align: center;
        display: block;
        box-sizing: border-box;
        margin: 0;
    }
}
