/* ==========================================================================
   The Learning Curve - main site home page.
   Loaded from templates/home/index.html.twig via {% block stylesheets %}.

   Plain CSS on purpose - NOT a Tailwind entrypoint. Tailwind v4 emits its
   utilities inside `@layer utilities`, and unlayered rules always beat layered
   ones, so this file's cascade is independent of load order.

   Structure: tokens, then layout primitives (wrap / section / grid), then the
   page's own blocks in document order. Rewritten with the October 2026 content
   pass; the old 19-section stylesheet is gone. Palette is unchanged.
   ========================================================================== */
:root {
    --home-navy: #0c1829;
    --home-graphite: #111111;
    --home-ink: #000;
    --home-rule: rgba(0, 0, 0, 0.1);
    --home-mute: rgba(0, 0, 0, 0.55);
    --home-amber: rgba(250, 204, 21, 0.22);
}
body { font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; }

.home-wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.home-sec { padding-block: 5rem; border-bottom: 1px solid var(--home-rule); }
.home-sec--tight { padding-block: 3.5rem; }
.home-dark { background: var(--home-navy); color: #fff; border-bottom: 1px solid #000; }
.home-graphite { background: var(--home-graphite); color: #fff; border-bottom: 1px solid #000; }
.home-dark .home-eyebrow, .home-graphite .home-eyebrow { color: rgba(255, 255, 255, 0.55); }
.home-dark .home-lede, .home-graphite .home-lede { color: rgba(255, 255, 255, 0.6); }

.home-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--home-mute);
    margin: 0 0 1.25rem;
}
.home-h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.5rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 1.5rem;
    max-width: 20ch;
}
.home-h2 {
    font-size: clamp(1.875rem, 3.2vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 1rem;
    max-width: 26ch;
}
.home-h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.home-lede { font-size: 1.0625rem; line-height: 1.6; color: rgba(0, 0, 0, 0.62); max-width: 60ch; margin: 0 0 1rem; }
.home-body { font-size: 0.875rem; line-height: 1.65; color: rgba(0, 0, 0, 0.55); margin: 0; }
.home-dark .home-body, .home-graphite .home-body { color: rgba(255, 255, 255, 0.55); }
.home-small { font-size: 0.75rem; line-height: 1.6; color: rgba(0, 0, 0, 0.5); }
.home-dark .home-small, .home-graphite .home-small { color: rgba(255, 255, 255, 0.5); }

.home-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.home-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: background-color 180ms ease;
}
.home-btn:hover { background: rgba(0, 0, 0, 0.78); }
.home-btn--light { background: #fff; color: #000; }
.home-btn--light:hover { background: rgba(255, 255, 255, 0.86); }
.home-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.home-btn--ghost:hover { background: #fff; color: #000; }
.home-link {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.home-link--light { color: rgba(255, 255, 255, 0.6); }
.home-link:hover { color: #000; }
.home-link--light:hover { color: #fff; }

/* Reads as copy under review, not as copy. */
.home-todo {
    background: var(--home-amber);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.55);
    font-family: 'Space Mono', monospace;
    font-size: 0.8125em;
    padding: 0 0.25em;
    white-space: nowrap;
}

.home-grid { display: grid; gap: 1px; background: var(--home-rule); }
.home-grid > * { background: #fff; padding: 1.75rem; }
.home-dark .home-grid { background: rgba(255, 255, 255, 0.1); }
.home-dark .home-grid > * { background: var(--home-navy); }
.home-graphite .home-grid { background: rgba(255, 255, 255, 0.08); }
.home-graphite .home-grid > * { background: var(--home-graphite); }

.home-hero { position: relative; overflow: hidden; }
.home-hero img.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.2));
}
.home-hero > .home-wrap { position: relative; z-index: 1; padding-block: 8rem 4rem; }
.home-hero .home-eyebrow { color: rgba(255, 255, 255, 0.65); }
.home-hero .home-h1 { color: #fff; text-wrap: balance; }
.home-hero .home-lede { color: rgba(255, 255, 255, 0.75); max-width: 52ch; }

.home-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 3rem; }
.home-logos img { height: 32.5px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.45; transition: opacity 180ms ease, filter 180ms ease; }
.home-logos img:hover { opacity: 0.85; filter: grayscale(0); }

/* The Learning Collection band — the storefront's door on the home page.
   The printer is a transparent PNG, so it floats on the band's own light
   instead of sitting inside a white card. */
.home-collection {
    background:
        radial-gradient(58% 78% at 76% 46%, rgba(96, 165, 250, 0.24), rgba(167, 139, 250, 0.12) 46%, rgba(12, 24, 41, 0) 72%),
        linear-gradient(155deg, #0e1a2d 0%, #0b1526 52%, #080f1c 100%);
    color: #fff;
    border-bottom: 1px solid #000;
    overflow: hidden;
}
.home-collection .home-eyebrow { color: rgba(255, 255, 255, 0.55); }
.home-collection .home-lede { color: rgba(255, 255, 255, 0.62); }
.home-collection__inner { display: grid; gap: 2.5rem; align-items: center; }
.home-collection__chips { gap: 0.5rem; margin-top: 1.75rem; }
.home-collection__art { margin: 0; }
.home-collection__art img {
    display: block;
    width: 100%;
    max-width: 34rem;
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.6));
}
.home-collection__art figcaption {
    font-family: 'Space Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 0;
}
@media (min-width: 900px) {
    .home-collection__inner { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
}

.home-stat { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: 0 0 0.5rem; }

.home-steps { counter-reset: pv; }
.home-step { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.home-step:first-child { border-top: 0; }
.home-step .home-num { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: rgba(255, 255, 255, 0.35); padding-top: 0.2rem; }

.home-cols-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.home-cols-3 { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--home-rule); }
.home-cols-3 > * { background: #fff; padding: 1.75rem; }

.home-chip {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.home-term {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 1.25rem 0 0;
    white-space: pre-wrap;
}
.home-term .home-prompt { color: rgba(96, 165, 250, 0.9); }
.home-term .home-out { color: rgba(45, 212, 191, 0.9); }

.home-quote { font-size: 1.0625rem; line-height: 1.55; color: rgba(0, 0, 0, 0.75); margin: 0 0 1.5rem; }.home-mono-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #000;
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.home-districts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--home-rule); }
.home-district {
    position: relative;
    margin: 0;
    background: #fff;
    padding: 1.25rem;
    outline-offset: -2px;
    cursor: pointer;
}
.home-district img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: opacity 180ms ease; }
.home-district__name { margin: 0.75rem 0 0; font-weight: 700; }
.home-district__meta { margin: 0; font-size: 0.75rem; color: rgba(0, 0, 0, 0.5); }
.home-district__list { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--home-rule); }
.home-district__list p { margin: 0 0 0.375rem; font-family: 'Space Mono', monospace; font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0, 0, 0, 0.4); }
.home-district__list ul { margin: 0; padding: 0; list-style: none; font-size: 0.75rem; line-height: 1.65; color: rgba(0, 0, 0, 0.6); }
.home-district__list p + ul + p { margin-top: 0.625rem; }

/* Hover exists only on a pointer. On a phone the list is simply part of the
   card, because hidden-behind-a-tap is where people miss content. */
@media (hover: hover) and (min-width: 900px) {
    .home-district { cursor: pointer; }
    .home-district__list {
        position: absolute;
        inset: 0;
        margin: 0;
        padding: 1.125rem;
        border-top: 0;
        background: rgba(10, 10, 10, 0.94);
        opacity: 0;
        visibility: hidden;
        overflow: auto;
        transition: opacity 160ms ease, visibility 160ms ease;
    }
    .home-district:hover .home-district__list,
    .home-district:focus .home-district__list,
    .home-district:focus-within .home-district__list { opacity: 1; visibility: visible; }
    .home-district__list p { color: rgba(255, 255, 255, 0.55); letter-spacing: 0.16em; }
    .home-district__list ul { color: rgba(255, 255, 255, 0.85); }
}

.home-evlogo { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 0.75rem; }
.home-evlogo--lg { height: 40px; margin-bottom: 1.25rem; }

/* Product marks: Spark has a real logo file; LearningCode has no mark, so it is set as a
   terminal wordmark instead of inventing one. */
.home-ailogo { display: block; height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.home-lc-wordmark { font-family: 'Space Mono', monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.home-lc-caret { display: inline-block; width: 0.42em; height: 0.95em; margin-left: 0.18em; background: currentColor; opacity: 0.45; vertical-align: -0.1em; }


@media (min-width: 640px) {
    .home-cols-2 { grid-template-columns: 1fr 1fr; }
    .home-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.home-cols-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--home-rule); }
.home-cols-4 > * { background: #fff; padding: 1.5rem; }
@media (min-width: 900px) {
    .home-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .home-districts { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
