@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&display=swap');

.home-page {
    --home-paper: oklch(0.95 0.025 80);
    --home-paper-strong: oklch(0.9 0.04 80);
    --home-ink: oklch(0.24 0.03 35);
    --home-muted: oklch(0.35 0.03 38);
    --home-clay: oklch(0.63 0.18 36);
    --home-gold: oklch(0.8 0.14 84);
    --home-forest: oklch(0.44 0.08 154);
    --home-shadow: 0 30px 70px rgba(72, 38, 20, 0.12);
    background:
        radial-gradient(circle at top left, rgba(209, 134, 71, 0.16), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(214, 78, 51, 0.12), transparent 22%),
        linear-gradient(180deg, oklch(0.97 0.02 82) 0%, oklch(0.94 0.025 76) 52%, oklch(0.92 0.03 74) 100%);
    color: var(--home-ink);
    font-family: var(--font-body);
}

/* Removed legacy navbar overrides to ensure consistency with navbar.js component */


.home-page h1,
.home-page h2,
.home-page h3 {
    color: var(--home-ink);
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    text-transform: none;
}

.home-page p {
    color: var(--home-muted);
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
    line-height: 1.65;
}

.home-page section {
    padding-block: clamp(5rem, 10vw, 8rem);
}

.home-page .loader {
    background: var(--home-ink) url('../assets/background/background.svg') no-repeat center center;
    background-size: cover;
}


.loader-title {
    color: var(--home-paper);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: 0.14em;
}

.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative; /* For overlays */
    background-image:
        radial-gradient(circle at 10% 30%, rgba(217, 56, 30, 0.06), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(242, 201, 76, 0.08), transparent 30%),
        linear-gradient(to right, oklch(0.97 0.02 82 / 0.98) 25%, oklch(0.97 0.02 82 / 0.85) 50%, transparent 100%),
        url('../assets/images/hero_bg.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Texture Overlays for Hero */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}


.hero-shell {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.section-tag,
.pathway-label,
.spotlight-panel-header p {
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--home-ink);
    opacity: 0.85;
}

.hero-kicker {
    margin-bottom: 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
}

.hero-copy {
    max-width: 52rem;
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--home-clay);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Handled by global .hero-heading class */

.hero-lede {
    max-width: 40rem;
    margin-bottom: 0;
}

.hero-actions,
.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: center;
    margin-top: 2rem;
}

.home-page .btn {
    background: var(--home-clay);
    color: var(--home-paper);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(173, 75, 34, 0.22);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-page .btn:hover {
    background: var(--home-ink);
    color: var(--home-paper);
    transform: translateY(-2px);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--home-ink);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-link::after {
    content: "→";
    transition: transform 0.25s ease;
}

.hero-link:hover::after {
    transform: translateX(4px);
}

.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.signal-card,
.heritage-card,
.spotlight-panel,
.cta-shell {
    position: relative;
    overflow: hidden;
    box-shadow: var(--home-shadow);
}

.signal-card {
    padding: 2.5rem;
    border-radius: 2rem;
    background: var(--home-ink);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.signal-card .signal-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--home-clay);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: block;
}

.signal-card .signal-value {
    color: white;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.signal-card .signal-copy {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 400;
}

.heritage-card {
    padding: 2.5rem;
    border-radius: 2rem;
    background: #ffffff;
    border: 1px solid rgba(85, 49, 26, 0.1);
    box-shadow: 0 40px 80px rgba(60, 42, 30, 0.05);
}

.heritage-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--home-ink);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heritage-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.heritage-list li {
    position: relative;
    padding-left: 1.75rem;
    color: #4a4a4a;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.4;
}

.heritage-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--home-clay);
}

.hero-band {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hero-band span {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 248, 240, 0.86);
    border: 1px solid rgba(85, 49, 26, 0.1);
    color: var(--home-ink);
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(74, 41, 18, 0.06);
}

/* Orbs removed to prioritize background image clarity */

.mission-section {
    background: var(--home-paper);
    position: relative;
    padding-block: clamp(6rem, 12vw, 10rem);
}

.mission-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
}

.mission-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.mission-visual {
    position: relative;
    display: flex;
    justify-content: center;
    border-radius: 2.4rem;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 40px 100px rgba(72, 38, 20, 0.1);
}

.mission-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mission-visual:hover img {
    transform: scale(1.05);
}

.mission-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: var(--home-clay);
    color: white;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 30px rgba(173, 75, 34, 0.25);
}

.mission-content {
    display: grid;
    gap: 3rem;
}

.mission-intro h2,
.section-heading h2,
.spotlight-copy h2,
.cta-shell h2 {
    max-width: 12ch;
}

.mission-story p:last-child,
.cta-shell p:last-of-type {
    margin-bottom: 0;
}

.mission-quote {
    padding: 2.5rem 0 0;
    border-top: 1px solid rgba(85, 49, 26, 0.12);
}

.mission-quote p {
    font-family: var(--font-heading);
    color: var(--home-ink);
    font-size: clamp(1.6rem, 2.5vw, 2.8rem);
    line-height: 1.25;
    max-width: 24ch;
}

.pathways-section {
    background: linear-gradient(180deg, rgba(243, 226, 201, 0.34), rgba(250, 244, 236, 0.86));
}

.section-heading {
    position: relative;
    max-width: 100%;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent the decorative line from causing horizontal scroll */
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: 2rem;
    right: 0;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, var(--home-gold), transparent);
    opacity: 0.3;
}

/* Handled by global .section-heading-block class */

/* Handled by global .heading-decoration class */

.text-memory {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--home-muted);
}

.text-momentum {
    color: var(--home-clay);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-block;
    position: relative;
}

.text-momentum::after {
    content: "";
    position: absolute;
    bottom: 0.2rem;
    left: 0;
    width: 100%;
    height: 0.3rem;
    background: var(--home-gold);
    z-index: -1;
    opacity: 0.4;
}

.pathways-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 1.25rem;
    align-items: stretch;
}

.pathway-feature,
.pathway-side {
    padding: 1.5rem;
    border-radius: 2rem;
    background: rgba(255, 249, 242, 0.92);
    border: 1px solid rgba(85, 49, 26, 0.12);
    box-shadow: var(--home-shadow);
}

.pathway-feature h3,
.pathway-side h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.pathway-feature p:last-of-type,
.pathway-side p:last-of-type {
    margin-bottom: 0;
}

.pathway-art {
    height: 16rem;
    margin-bottom: 1.25rem;
    border-radius: 1.3rem;
    position: relative;
    overflow: hidden;
}

.pathway-art::before,
.pathway-art::after {
    content: "";
    position: absolute;
    inset: 0;
}

.pathway-film {
    background-image: url('../assets/images/pathway_film.png');
    background-size: cover;
    background-position: center;
}

.pathway-film::before {
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

.pathway-fashion {
    background-image: url('../assets/images/pathway_fashion.png');
    background-size: cover;
    background-position: center;
}

.pathway-fashion::before {
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

.pathway-community {
    background-image: url('../assets/images/pathway_community.png');
    background-size: cover;
    background-position: center;
}

.pathway-community::before {
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

.pathway-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    color: var(--home-clay);
    font-weight: 700;
}

.pathway-link::after {
    content: "→";
    margin-left: 0.5rem;
}

.spotlight-section {
    background: linear-gradient(180deg, var(--home-paper), oklch(0.92 0.03 74));
}

.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.spotlight-panel {
    padding: 3rem;
    border-radius: 2.4rem;
    background: var(--home-ink);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotlight-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spotlight-panel-header p,
.spotlight-panel-header span,
.spotlight-lines p,
.spotlight-lines span {
    color: white;
}

.spotlight-panel-header span {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spotlight-lines {
    display: grid;
    gap: 1rem;
}

.spotlight-lines div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 245, 231, 0.12);
}

.spotlight-lines span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.cta-section {
    padding-block: clamp(6rem, 12vw, 10rem);
    background: var(--home-ink);
    position: relative;
    overflow: hidden;
}

.cta-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.cta-visual {
    position: relative;
    border-radius: 2.8rem;
    overflow: hidden;
    aspect-ratio: 1;
    transform: rotate(-1.5deg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-visual:hover img {
    transform: scale(1.08) rotate(1.5deg);
}

.cta-content {
    display: grid;
    gap: 1.5rem;
}

.cta-lede {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.6;
    color: #ffffff !important;
    opacity: 0.9 !important;
    max-width: 45ch;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}


/* CTA Editorial Layout Implementation Complete */

/* Removed legacy footer overrides to ensure consistency with footer.js component */

@media (max-width: 1080px) {

    .hero-grid,
    .pathways-grid,
    .spotlight-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-quote {
        grid-column: auto;
    }

    .home-page #hero h1,
    .mission-intro h2,
    .section-heading h2,
    .spotlight-copy h2,
    .cta-shell h2 {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .heading-num {
        font-size: 8rem;
        top: -1.5rem;
        left: 0;
    }

    /* Navbar override removed */

    /* Nav-links override removed */

    .home-hero {
        padding-top: 7rem;
    }

    .hero-band span {
        width: 100%;
    }

    .pathway-art {
        height: 12rem;
    }

    .signal-value {
        font-size: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-link::after,
    .home-page .btn,
    .fade-in-up {
        transition: none;
    }
}

/* Theme Consistency & Contrast Fixes */
.home-page #hero {
    background-color: transparent !important;
    display: block;
    /* Reset layout.css flex-center which breaks the home grid */
    padding-top: 8rem;
}

.home-page #hero h1 {
    text-shadow: none !important;
    color: var(--home-ink) !important;
}

.home-page .hero-lede {
    text-shadow: none !important;
    color: var(--home-ink) !important;
    opacity: 0.9;
}

/* Ensure cards are legible against background image */
#hero #impact-counter {
    color: white !important;
}

.signal-card .signal-plus {
    color: var(--home-gold);
}

/* Trust Marquee Styles */
.trust-marquee {
    background: var(--home-ink);
    color: white;
    padding-block: 3rem;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding-right: 5rem;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--home-gold);
}

.marquee-separator {
    color: white !important;
    opacity: 0.2;
    font-size: 3rem;
    font-weight: 300;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover for readability if user wants to look closer */
.trust-marquee:hover .marquee-track {
    animation-play-state: paused;
}


@media (max-width: 768px) {
    .trust-shell {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .trust-divider {
        width: 60px;
        flex-grow: 0;
        margin-inline: auto;
    }
}