/* =====================================================================
   File: public/assets/css/landing.css
   Project: Young Muslim 360°
   Description: The registration landing page — light theme: ivory,
   emerald, gold, orange and a complementary navy (docs/PHASES.md 2.2).

   HOW THE STATES WORK
     html.js          JavaScript is running
     html.ld-motion   animations allowed — elements may start hidden
     html.ld-still    reduced motion / "Skip animations": everything shown
     html.ld-pinning  desktop scroll scenes (pinned) are active; set by
                      landing.js only while the screen is wide enough
     html.ld-ready    landing.js finished setting up
   Nothing is hidden unless .ld-motion is present, so the page is fully
   readable with JavaScript off.
   Mobile first: the base rules are for a 360px screen.
   ===================================================================== */

:root {
    --ivory: #FBF7EE;
    --paper: #FFFFFF;
    --navy: #14213D;
    --navy-2: #1E2F55;
    --ink-soft: #3D4A63;
    --muted: #5B667C;
    --emerald: #0F8F6B;
    --emerald-deep: #065F46;
    --gold: #C99A2E;
    --gold-soft: #F3E6C4;
    --amber: #F08A24;
    --amber-deep: #C96A10;
    --sky: #38A3D4;
    --rose: #D64560;
    --mist: #EDE7D8;
    --line: rgba(20, 33, 61, 0.10);
    --line-strong: rgba(20, 33, 61, 0.18);

    --f-text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-brand: 'Cinzel Decorative', 'Times New Roman', serif;
    --f-num: 'Space Grotesk', ui-monospace, 'Segoe UI', sans-serif;
    --f-arabic: 'Amiri', Georgia, serif;

    --bar-h: 64px;
    --gutter: 16px;
    --radius: 18px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 18px 40px -28px rgba(20, 33, 61, 0.45);
}

/* ---------------------------------------------------------------------
   BASE
   --------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.ld-still { scroll-behavior: auto; }
body.ld { min-height: 100vh; }
/* :where() keeps these resets at the lowest specificity, so any class wins. */
:where(.ld) :where(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin: 0; }
:where(.ld) :where(ul, ol) { padding: 0; list-style: none; }
:where(.ld) a { color: inherit; }
:where(.ld) strong { font-weight: 700; color: var(--navy); }
:where(.ld) :where(img, svg) { max-width: 100%; }
.ld :focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.ld-sr, .ym-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ld-skiplink {
    position: fixed; left: 12px; top: -60px; z-index: 200; padding: 0.7rem 1rem; border-radius: 10px;
    background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.ld-skiplink:focus { top: 12px; }

.ld-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
@media (min-width: 48rem) { :root { --gutter: 32px; } }

/* The faint geometric pattern behind some sections (8-point stars, ~5%). */
.ld-geo { position: relative; isolation: isolate; }
.ld-geo::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%2314213D' stroke-width='1'%3E%3Cpath d='M48 8l11 29 29 11-29 11-11 29-11-29L8 48l29-11z'/%3E%3Cpath d='M20 20l28 8 28-8-8 28 8 28-28-8-28 8 8-28z'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 96px 96px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

/* ---------------------------------------------------------------------
   TYPE
   --------------------------------------------------------------------- */
.ld-label {
    font-family: var(--f-num); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--emerald-deep); display: inline-flex; align-items: center; gap: 0.6rem;
}
.ld-label::before { content: ''; width: 26px; height: 1.5px; background: var(--gold); }
.ld-h2 {
    font-family: var(--f-text); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--navy);
    font-size: clamp(1.85rem, 6.4vw, 3.2rem); margin-top: 0.9rem !important;
}
.ld-h2--xl { font-size: clamp(2.1rem, 7.6vw, 4.4rem); }
.ld-h2 > span { display: block; }
.ld-h2 em, .ld-accent {
    font-family: var(--f-arabic); font-style: italic; font-weight: 700; color: var(--emerald-deep); letter-spacing: 0;
}
.ld-h2 .ld-accent { font-size: 1.08em; line-height: 1; }
.ld-text { color: var(--ink-soft); font-size: 1.02rem; margin-top: 1rem !important; max-width: 40rem; }
.ld-lead { font-size: clamp(1.25rem, 3.8vw, 1.7rem); font-weight: 700; color: var(--navy); line-height: 1.3; }
.ld-sub { margin-top: 1rem !important; color: var(--muted); font-size: 1.05rem; font-weight: 600; max-width: 42rem; }
.ld-tagline { margin-top: 0.6rem !important; font-family: var(--f-arabic); font-size: clamp(1.2rem, 3.6vw, 1.55rem); font-style: italic; color: var(--emerald-deep); }
.ld-head { margin-bottom: clamp(2rem, 6vw, 3.5rem); }

.ld-watermark {
    position: absolute; top: 0.5rem; right: -0.05em; z-index: -1; pointer-events: none; user-select: none;
    font-family: var(--f-brand); font-size: clamp(4.5rem, 19vw, 15rem); line-height: 1; color: var(--navy); opacity: 0.045; white-space: nowrap;
}

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.ld-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 48px; padding: 0.8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 700 0.98rem/1.1 var(--f-text); text-decoration: none; cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ld-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.ld-btn:hover svg { transform: translateX(3px); }
.ld-btn--amber { background: var(--amber); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(240, 138, 36, 0.8); }
.ld-btn--amber:hover { background: #F59A3C; box-shadow: 0 14px 30px -12px rgba(240, 138, 36, 0.9); }
.ld-btn--navy { background: var(--navy); color: #fff; }
.ld-btn--navy:hover { background: var(--navy-2); }
.ld-btn--ghost { border-color: var(--line-strong); color: var(--navy); background: rgba(255, 255, 255, 0.6); }
.ld-btn--ghost:hover { border-color: var(--navy); background: #fff; }
.ld-btn--text { padding-inline: 0.4rem; color: var(--emerald-deep); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.ld-btn--block { width: 100%; }
.ld-btn:disabled { opacity: 0.6; cursor: wait; }
.ld-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* ---------------------------------------------------------------------
   TOP BAR (base sizes also inline in layouts/landing.php)
   --------------------------------------------------------------------- */
.ld-brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--navy); flex: none; }
.ld-brand-mark { width: 34px; height: 34px; color: var(--emerald); }
.ld-brand-text { display: grid; line-height: 1; font-family: var(--f-brand); }
.ld-brand-text span { font-size: 0.66rem; letter-spacing: 0.14em; }
.ld-brand-text b { font-size: 1.05rem; color: var(--emerald-deep); }
.ld-nav { display: none; }
.ld-still-btn {
    margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; min-width: 44px; justify-content: center;
    padding: 0.4rem 0.6rem; border: 0; background: none; color: var(--muted); font: 600 0.78rem var(--f-text); cursor: pointer; border-radius: 10px;
}
.ld-still-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ld-still-btn span { display: none; }
.ld-still-btn:hover { color: var(--navy); background: rgba(20, 33, 61, 0.05); }
.ld-still-btn .is-play { display: none; }
.ld-still .ld-still-btn .is-play { display: inline; }
.ld-still .ld-still-btn .is-pause { display: none; }
.ld-cta {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.55rem 1.05rem; border-radius: 999px;
    background: var(--amber); color: var(--navy); font: 800 0.92rem var(--f-text); text-decoration: none; flex: none;
    box-shadow: 0 8px 20px -10px rgba(240, 138, 36, 0.9); transition: transform 0.3s var(--ease), background 0.2s;
}
.ld-cta:hover { background: #F59A3C; }
.ld-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ld-cta--quiet { background: var(--navy); color: #fff; box-shadow: none; }
.ld-cta--quiet:hover { background: var(--navy-2); }
.ld-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.ld-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--emerald), var(--gold), var(--amber)); }
@media (min-width: 40rem) { .ld-still-btn span { display: inline; } }
@media (max-width: 39.99rem) { .ld-still-btn span { display: none !important; } }
@media (min-width: 64rem) {
    .ld-nav { display: flex; gap: 1.6rem; margin-left: 2.2rem; }
    .ld-nav a { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: 0.4rem 0; border-bottom: 1.5px solid transparent; }
    .ld-nav a:hover, .ld-nav a.is-on { color: var(--navy); border-color: var(--gold); }
}

/* ---------------------------------------------------------------------
   HUD, DUST, CURSOR
   --------------------------------------------------------------------- */
.ld-hud { display: none; }
.ld-dust { position: fixed; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; display: none; }
.ld-motion .ld-dust { display: block; }
.ld-cursor { display: none; }
@media (min-width: 56rem) {
    .ld-hud {
        position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 0.6rem;
        padding: 0.45rem 0.85rem 0.45rem 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.82);
        border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    }
    .ld-hud svg { width: 46px; height: 46px; }
    .ld-hud-ring { fill: none; stroke: var(--mist); stroke-width: 3; }
    .ld-hud-arc { fill: none; stroke: var(--emerald); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 182.2; stroke-dashoffset: 182.2; transform: rotate(-90deg); transform-origin: 32px 32px; }
    .ld-hud-needle { transform-origin: 32px 32px; transition: transform 0.15s linear; }
    .ld-hud-needle path { fill: var(--amber); }
    .ld-hud-needle .ld-hud-tail { fill: var(--navy); opacity: 0.35; }
    .ld-hud-hub { fill: var(--navy); }
    .ld-hud-text { display: grid; line-height: 1.15; }
    .ld-hud-text b { font: 700 1rem var(--f-num); color: var(--navy); font-variant-numeric: tabular-nums; }
    .ld-hud-text span { font: 600 0.66rem var(--f-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 56rem) {
    .ld-motion.ld-ready .ld-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; }
    .ld-cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--amber); }
    .ld-cursor-ring {
        position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1.5px solid rgba(20, 33, 61, 0.35);
        transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, background 0.25s;
    }
    .ld-cursor-deg { position: absolute; left: 22px; top: 14px; font: 700 0.62rem var(--f-num); color: var(--emerald-deep); letter-spacing: 0.06em; white-space: nowrap; }
    .ld-cursor.is-hover .ld-cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--amber); background: rgba(240, 138, 36, 0.08); }
}

/* ---------------------------------------------------------------------
   PRELOADER
   --------------------------------------------------------------------- */
.ld-loader { position: fixed; inset: 0; z-index: 120; place-items: center; background: var(--ivory); overflow: hidden; }
.ld-loader-inner { position: relative; z-index: 2; display: grid; place-items: center; gap: 1.2rem; }
.ld-loader-ring { width: min(56vw, 220px); height: auto; transform: rotate(-90deg); }
.ld-loader-track { fill: none; stroke: var(--mist); stroke-width: 2; }
.ld-loader-arc { fill: none; stroke: var(--emerald); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 552.9; stroke-dashoffset: 552.9; }
.ld-loader-num { position: absolute; top: 0; left: 0; right: 0; height: min(56vw, 220px); display: grid; place-items: center; font: 700 2.2rem var(--f-num); color: var(--navy); font-variant-numeric: tabular-nums; }
.ld-loader-brand { display: grid; text-align: center; font-family: var(--f-brand); color: var(--navy); line-height: 1; }
.ld-loader-brand span { font-size: 0.8rem; letter-spacing: 0.32em; }
.ld-loader-brand b { font-size: 1.7rem; color: var(--emerald-deep); }
.ld-loader-curtain { position: absolute; left: 0; right: 0; height: 50%; background: var(--gold-soft); transform: scaleY(0); }
.ld-loader-curtain--top { top: 0; transform-origin: 50% 0; }
.ld-loader-curtain--bottom { bottom: 0; transform-origin: 50% 100%; }
.ld-loading body { overflow: hidden; }

/* ---------------------------------------------------------------------
   1. HERO
   --------------------------------------------------------------------- */
.ld-hero { text-align: center; }
.ld-astro { position: absolute; left: 50%; top: 50%; width: min(150vw, 980px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; opacity: 0.9; }
.ld-astro-svg { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 64rem) { .ld-astro { width: min(150vw, 1200px); } }
.ld-astro-ticks line { stroke: var(--navy); stroke-width: 1; opacity: 0.18; }
.ld-astro-ticks line.is-long { stroke: var(--gold); stroke-width: 1.6; opacity: 0.7; }
.ld-astro-nums text { font: 600 12px var(--f-num); fill: var(--muted); text-anchor: middle; letter-spacing: 0.08em; }
.ld-astro-ring { fill: none; stroke: var(--navy); stroke-width: 1; opacity: 0.14; }
.ld-astro-ring--orbit { stroke: var(--gold); opacity: 0.5; stroke-dasharray: 2 6; }
.ld-astro-sweep { fill: none; stroke: var(--emerald); stroke-width: 2; opacity: 0.55; stroke-dasharray: 1288; stroke-dashoffset: 1288; transform: rotate(-90deg); transform-origin: 300px 300px; }
.ld-astro-spokes line { stroke: var(--gold); stroke-width: 1; opacity: 0.18; }
.ld-node-dot { fill: var(--c); }
.ld-node-halo { fill: var(--c); opacity: 0.14; }
.ld-astro-labels { position: absolute; inset: 0; }
@media (max-width: 47.99rem) { .ld-astro-labels, .ld-astro-nums { display: none; } }
.ld-astro-labels li {
    position: absolute; transform: translate(-50%, -50%); padding: 0.18rem 0.55rem; border-radius: 999px; white-space: nowrap;
    font: 700 0.62rem var(--f-num); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c);
    background: rgba(255, 255, 255, 0.85); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.ld-hero-copy { position: relative; z-index: 2; max-width: 52rem; display: grid; justify-items: center; }
.ld-pill {
    display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); font: 700 0.72rem var(--f-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald-deep);
}
.ld-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(15, 143, 107, 0.18); }
.ld-hero-title { margin-top: 1.4rem !important; }
.ld-hero-line { display: block; }
.ld-hero-line--accent { color: var(--emerald-deep); }
.ld-hero-line--deg { color: var(--gold); font-size: 0.82em; }
.ld-hero-lede { margin-top: 1.4rem !important; font-size: clamp(1.1rem, 3.6vw, 1.45rem); font-weight: 600; color: var(--ink-soft); line-height: 1.45; }
.ld-hero-lede span { font-family: var(--f-arabic); font-style: italic; font-weight: 700; font-size: 1.12em; color: var(--emerald-deep); }
.ld-paths { margin-top: 1.8rem !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; }
.ld-path { display: grid; text-align: left; padding: 0.7rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-path small { font: 700 0.66rem var(--f-num); letter-spacing: 0.18em; color: var(--gold); }
.ld-path strong { font-size: 0.92rem; }
.ld-path--two small { color: var(--emerald); }
.ld-path-link { width: 54px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ld-hero-status { margin-top: 1.5rem !important; display: grid; gap: 0.7rem; justify-items: center; }
.ld-open { display: block; text-align: center; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.ld-open-dot { display: inline-block; margin-right: 0.5rem; vertical-align: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(15, 143, 107, 0.5); animation: ldPulse 2.2s infinite; }
.ld-open--closed .ld-open-dot { background: var(--rose); animation: none; }
@keyframes ldPulse { 70% { box-shadow: 0 0 0 9px rgba(15, 143, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 143, 107, 0); } }
.ld-hero-cohorts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.ld-chip-btn {
    display: grid; min-height: 48px; padding: 0.5rem 1rem; border-radius: 14px; text-decoration: none; text-align: left;
    background: #fff; border: 1.5px solid var(--line-strong); transition: border-color 0.2s, transform 0.3s var(--ease);
}
.ld-chip-btn strong { font-size: 0.95rem; }
.ld-chip-btn small { font-size: 0.72rem; color: var(--muted); }
.ld-chip-btn:hover { border-color: var(--amber); transform: translateY(-2px); }
.ld-hero-cta { margin-top: 1.6rem !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.ld-scrollcue { position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%); display: none; align-items: center; gap: 0.6rem; font: 700 0.62rem var(--f-num); letter-spacing: 0.24em; color: var(--muted); }
.ld-scrollcue i { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); animation: ldCue 2s infinite; }
@keyframes ldCue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 48rem) and (min-height: 760px) { .ld-scrollcue { display: inline-flex; } }

.ld-marquee { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); padding: 0.75rem 0; }
.ld-marquee-track { display: flex; width: max-content; gap: 1.4rem; animation: ldMarquee 48s linear infinite; font: 700 0.78rem var(--f-num); letter-spacing: 0.26em; color: var(--navy); }
.ld-marquee-track b { color: var(--gold); }
@keyframes ldMarquee { to { transform: translateX(-50%); } }
.ld-marquee--big { position: relative; background: linear-gradient(90deg, #F3E6C4, #E4F3EC); border-block: 1px solid var(--line); padding: 1.4rem 0; }
.ld-marquee--big .ld-marquee-track { font: 700 clamp(1.4rem, 5vw, 2.6rem) var(--f-brand); letter-spacing: 0.04em; color: var(--navy); gap: 2rem; animation-duration: 70s; }
.ld-still .ld-marquee-track { animation: none; }

/* ---------------------------------------------------------------------
   PREMISE
   --------------------------------------------------------------------- */
.ld-premise { padding-block: clamp(4.5rem, 12vw, 8rem); }
.ld-premise-grid { display: grid; gap: 1.5rem; }
.ld-premise-title { font-size: clamp(1.7rem, 6vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; color: var(--navy); }
.ld-premise-title .ld-word { transition: color 0.4s, opacity 0.4s; }
.ld-motion .ld-premise-title .ld-word { opacity: 0.18; }
.ld-motion .ld-premise-title .ld-word.is-lit { opacity: 1; }
.ld-stats { margin-top: 2.4rem !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.ld-stat { padding: 1.1rem 1.1rem 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-stat b { display: block; font: 700 clamp(2rem, 7vw, 3rem)/1 var(--f-num); color: var(--emerald-deep); font-variant-numeric: tabular-nums; }
.ld-stat span { display: block; margin-top: 0.4rem; font: 700 0.7rem var(--f-num); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 56rem) {
    .ld-premise-grid { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; }
    .ld-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------
   2. THE CHALLENGE
   --------------------------------------------------------------------- */
.ld-challenge { position: relative; background: linear-gradient(180deg, var(--ivory), #F4EEDF 40%, var(--ivory)); }
.ld-collide { display: grid; gap: 1rem; padding: clamp(4rem, 10vw, 6rem) var(--gutter) 2rem; max-width: 1200px; margin-inline: auto; }
.ld-world { position: relative; padding: 1.4rem 1.3rem; border-radius: var(--radius); overflow: hidden; }
.ld-world--in { background: linear-gradient(140deg, #E4F3EC, #CFEADF); color: var(--emerald-deep); border: 1px solid rgba(15, 143, 107, 0.25); }
.ld-world--out { background: linear-gradient(140deg, #FCEEDD, #F8DFC2); color: #8A4A0C; border: 1px solid rgba(240, 138, 36, 0.3); }
.ld-world::after { content: ''; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 46, 0.35), transparent 70%); }
.ld-world-tag { font: 700 0.72rem var(--f-num); letter-spacing: 0.3em; color: inherit; }
.ld-world ul { margin-top: 0.8rem !important; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ld-world li { padding: 0.32rem 0.7rem; border-radius: 999px; border: 1px solid currentColor; background: rgba(255, 255, 255, 0.6); font-size: 0.86rem; font-weight: 600; }
.ld-collide-core { display: none; }
.ld-collide-copy { padding-top: 1.5rem; }
.ld-pivot { margin-top: 1.4rem !important; font-size: 1.05rem; color: var(--ink-soft); font-weight: 600; }
.ld-pivot-quote { display: block; margin-top: 0.4rem; font-family: var(--f-arabic); font-style: italic; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2; color: var(--navy); }

.ld-tunnel { position: relative; max-width: 1200px; margin-inline: auto; padding: 2rem var(--gutter) clamp(4rem, 10vw, 6rem); }
.ld-tunnel-lead { font-family: var(--f-arabic); font-style: italic; font-size: 1.6rem; color: var(--emerald-deep); }
.ld-qs { margin-top: 1rem !important; display: grid; gap: 0.6rem; counter-reset: q; }
.ld-q { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.95rem 1.1rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-q-idx { font: 700 0.8rem var(--f-num); color: var(--gold); letter-spacing: 0.1em; flex: none; }
.ld-q-txt { font-size: clamp(1.05rem, 3.4vw, 1.35rem); font-weight: 700; color: var(--navy); line-height: 1.3; }
.ld-core { display: none; }
.ld-tunnel-close { margin-top: 1.6rem !important; font-size: clamp(1.15rem, 3.6vw, 1.5rem); text-align: center; }

/* Desktop: the pinned stage */
.ld-pinning .ld-collide {
    height: 100vh; min-height: 640px; padding: calc(var(--bar-h) + 1rem) var(--gutter) 2rem; max-width: none;
    grid-template-columns: 1fr minmax(0, 34rem) 1fr; grid-template-rows: 1fr auto; align-items: center; gap: 0 2rem; overflow: hidden;
}
.ld-pinning .ld-world { grid-row: 1; align-self: center; max-width: 24rem; padding: 2rem 1.8rem; }
.ld-pinning .ld-world--in { grid-column: 1; justify-self: end; }
.ld-pinning .ld-world--out { grid-column: 3; justify-self: start; }
.ld-pinning .ld-collide-core { display: grid; grid-column: 2; grid-row: 1; place-items: center; height: 100%; }
.ld-pinning .ld-collide-core span { width: 2px; height: 55%; background: linear-gradient(transparent, var(--gold), transparent); box-shadow: 0 0 30px 6px rgba(201, 154, 46, 0.35); transform: scaleY(0); }
.ld-pinning .ld-collide-copy { grid-column: 1 / -1; grid-row: 1; justify-self: center; text-align: center; max-width: 46rem; padding: 0; opacity: 0; position: relative; z-index: 2; }
.ld-pinning .ld-collide-copy .ld-text { margin-inline: auto; }

.ld-pinning .ld-tunnel { height: 100vh; min-height: 640px; max-width: none; padding: var(--bar-h) var(--gutter) 2rem; perspective: 1100px; overflow: hidden; display: grid; place-items: center; }
.ld-pinning .ld-tunnel-lead { position: absolute; top: calc(var(--bar-h) + 2rem); left: 50%; transform: translateX(-50%); }
.ld-pinning .ld-qs { position: absolute; inset: 0; margin: 0 !important; display: block; transform-style: preserve-3d; }
.ld-pinning .ld-q {
    position: absolute; left: 50%; top: 50%; width: min(46rem, 80vw); margin: 0;
    justify-content: center; text-align: center; padding: 1.4rem 1.8rem; opacity: 0; will-change: transform, opacity;
}
.ld-pinning .ld-q-txt { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.ld-pinning .ld-core {
    display: grid; place-items: center; position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px;
    border-radius: 50%; background: radial-gradient(circle, #fff 0%, #FFF6E0 55%, rgba(255, 246, 224, 0) 72%);
    border: 2px solid var(--gold); font: 700 3.4rem var(--f-brand); color: var(--emerald-deep); transform: scale(0); opacity: 0;
    box-shadow: 0 0 0 14px rgba(201, 154, 46, 0.08), 0 0 80px 10px rgba(201, 154, 46, 0.25);
}
.ld-pinning .ld-tunnel-close { position: absolute; left: 0; right: 0; bottom: 12vh; opacity: 0; }

/* ---------------------------------------------------------------------
   3. PHASE 1
   --------------------------------------------------------------------- */
.ld-phase1 { padding-block: clamp(4.5rem, 12vw, 8rem); overflow: hidden; }
.ld-p1 { display: grid; gap: 2.5rem; }
.ld-notlecture { position: relative; }
.ld-floaters { margin-top: 1.6rem !important; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ld-floaters li {
    padding: 0.55rem 0.95rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-weight: 700; font-size: 0.9rem; color: var(--navy);
}
.ld-floaters li:nth-child(3n+1) { border-left: 3px solid var(--emerald); }
.ld-floaters li:nth-child(3n+2) { border-left: 3px solid var(--gold); }
.ld-floaters li:nth-child(3n)   { border-left: 3px solid var(--amber); }
.ld-motion .ld-floaters li { animation: ldFloat 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
@keyframes ldFloat { 50% { transform: translateY(-7px) rotate(-0.6deg); } }
.ld-links { display: grid; gap: 0.55rem; }
.ld-link { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.2fr); align-items: center; gap: 0.5rem; padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.ld-link-a { font-family: var(--f-arabic); font-weight: 700; font-size: 1.15rem; color: var(--emerald-deep); }
.ld-link-b { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ld-link-wire { width: 100%; height: 24px; overflow: visible; }
.ld-link-wire path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 140; stroke-dashoffset: 0; }
.ld-link-wire circle { fill: var(--gold); }
.ld-motion .ld-link-wire path { stroke-dashoffset: 140; transition: stroke-dashoffset 1.1s var(--ease) 0.25s; }
.ld-motion .ld-link.is-in .ld-link-wire path { stroke-dashoffset: 0; }
@media (min-width: 56rem) {
    .ld-p1 { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
    .ld-notlecture { position: sticky; top: calc(var(--bar-h) + 3rem); }
    .ld-floaters { margin-top: 2.4rem !important; gap: 0.7rem; }
    .ld-link { grid-template-columns: minmax(0, 0.9fr) 120px minmax(0, 1.2fr); padding: 1rem 1.2rem; }
}

/* ---------------------------------------------------------------------
   4. THE JOURNEY — seven stations
   --------------------------------------------------------------------- */
.ld-journey { position: relative; --bg: var(--ivory); background: var(--bg); transition: background-color 0.6s; }
.ld-journey-head { padding-top: clamp(3rem, 8vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ld-journey-dots { display: none; }
.ld-journey-track { display: grid; gap: 1rem; padding: 1.5rem var(--gutter) clamp(4rem, 10vw, 6rem); max-width: 1200px; margin-inline: auto; }
.ld-station {
    position: relative; overflow: hidden; display: grid; gap: 1.2rem; padding: 1.6rem 1.3rem; border-radius: 22px;
    background: var(--tint); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.ld-station-mark { position: absolute; right: -0.08em; bottom: -0.18em; font: 700 clamp(4rem, 18vw, 9rem)/1 var(--f-brand); color: var(--c); opacity: 0.07; pointer-events: none; }
.ld-station-meta { display: flex; align-items: center; gap: 0.8rem; }
.ld-station-num { font: 700 2.2rem/1 var(--f-num); color: var(--c); }
.ld-station-dim { font: 700 0.74rem var(--f-num); letter-spacing: 0.24em; color: var(--navy); padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.75); }
.ld-station-q { font-size: clamp(1.6rem, 5.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); }
.ld-station .ld-text { color: var(--ink-soft); }
.ld-station-list { margin-top: 1.1rem !important; display: grid; gap: 0.5rem; }
.ld-station-list li { position: relative; padding-left: 1.2rem; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
.ld-station-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ld-station-glyph { display: grid; justify-items: center; gap: 0.4rem; }
.ld-station-glyph svg { width: min(52vw, 200px); height: auto; fill: none; }
.ld-station-glyph span { font: 700 0.78rem var(--f-num); letter-spacing: 0.3em; text-transform: uppercase; color: var(--c); }
.g-ring { stroke: var(--c); stroke-width: 1.4; opacity: 0.55; }
.g-line { stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.g-dash { stroke-dasharray: 4 6; }
.g-core { fill: var(--c); }
.ld-motion .ld-station.is-in .g-ring { animation: ldSpin 30s linear infinite; transform-origin: 150px 150px; }
.ld-motion .ld-station.is-in .g-ring:nth-child(2n) { animation-direction: reverse; animation-duration: 40s; }
@keyframes ldSpin { to { transform: rotate(360deg); } }
@media (min-width: 48rem) {
    .ld-station { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: 'meta meta' 'main glyph'; padding: 2.4rem 2.2rem; }
    .ld-station-meta { grid-area: meta; }
    .ld-station-main { grid-area: main; }
    .ld-station-glyph { grid-area: glyph; align-self: center; }
}
/* Desktop: pinned, moving sideways */
.ld-pinning .ld-journey-pin { height: 100vh; min-height: 640px; display: flex; flex-direction: column; overflow: hidden; }
.ld-pinning .ld-journey-head { padding-top: calc(var(--bar-h) + 1.6rem); flex: none; }
.ld-pinning .ld-journey-dots { display: flex; gap: 0.4rem; }
.ld-journey-dots li { width: 38px; height: 4px; border-radius: 4px; background: rgba(20, 33, 61, 0.12); position: relative; }
.ld-journey-dots li span { position: absolute; top: 8px; left: 0; font: 700 0.6rem var(--f-num); color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.ld-journey-dots li.is-on { background: var(--c); }
.ld-journey-dots li.is-on span { opacity: 1; color: var(--c); }
.ld-pinning .ld-journey-track {
    flex: 1; display: flex; gap: 2.5vw; width: max-content; max-width: none; margin: 0; align-items: center;
    padding: 1.2rem 7vw 2.4rem; will-change: transform;
}
.ld-pinning .ld-station { width: min(1060px, 84vw); height: min(72vh, 600px); align-content: center; flex: none; padding: 2.6rem 3rem; }
.ld-pinning .ld-station-glyph svg { width: 240px; }
.ld-pinning .ld-station { grid-template-columns: minmax(0, 1fr) 280px; }

/* ---------------------------------------------------------------------
   5. METHOD — bento, framework, the plan, the bridge
   --------------------------------------------------------------------- */
.ld-method { padding-top: clamp(4.5rem, 12vw, 8rem); }
.ld-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.ld-bento-card {
    position: relative; padding: 1.1rem 1rem 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
    box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.ld-bento-card:hover { border-color: var(--gold); }
.ld-bento-idx { font: 700 0.78rem var(--f-num); color: var(--gold); letter-spacing: 0.1em; }
.ld-bento-card h3 { margin-top: 0.5rem !important; font-size: 1.02rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.ld-bento-card p { margin-top: 0.35rem !important; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.ld-bento-card--1, .ld-bento-card--10 { grid-column: span 2; background: linear-gradient(140deg, #E4F3EC, #D3ECE1); border-color: rgba(15, 143, 107, 0.25); }
.ld-bento-card--1 h3, .ld-bento-card--10 h3 { color: var(--emerald-deep); font-size: 1.3rem; }
.ld-bento-card--1 p, .ld-bento-card--10 p { color: var(--ink-soft); }
.ld-bento-card--1 .ld-bento-idx, .ld-bento-card--10 .ld-bento-idx { color: var(--gold); }
.ld-bento-card--10 { background: linear-gradient(140deg, #FCEEDD, #F6E2C6); border-color: rgba(240, 138, 36, 0.3); }
.ld-bento-card--10 h3 { color: #8A4A0C; }
@media (min-width: 48rem) {
    .ld-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 1rem; }
    .ld-bento-card { padding: 1.4rem 1.3rem; }
    .ld-bento-card--1 { grid-row: span 2; }
    .ld-bento-card--1 h3, .ld-bento-card--10 h3 { font-size: 1.7rem; }
    .ld-bento-card--1, .ld-bento-card--10 { display: flex; flex-direction: column; justify-content: flex-end; }
    .ld-bento-card--6 { grid-column: span 2; }
}

.ld-frame { margin-top: clamp(4rem, 10vw, 7rem); padding-block: clamp(3.5rem, 9vw, 5.5rem); background: linear-gradient(180deg, #EEF6F2, #F7F3E8); color: var(--navy); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.ld-frame .ld-label { color: var(--emerald-deep); }
.ld-frame .ld-h2 { color: var(--navy); max-width: 46rem; }
.ld-steps { position: relative; margin-top: 2.4rem !important; display: grid; gap: 1.1rem; padding-left: 2.6rem; }
.ld-steps-line { position: absolute; left: 1.05rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: rgba(20, 33, 61, 0.1); }
.ld-steps-line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--emerald), var(--gold), var(--amber)); transform-origin: 50% 0; }
.ld-motion .ld-steps-line span { transform: scaleY(0); }
.ld-step { position: relative; }
.ld-step-dot {
    position: absolute; left: -2.6rem; top: -0.1rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%;
    background: #fff; border: 2px solid var(--line-strong); font: 700 0.72rem var(--f-num); color: var(--muted); transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.ld-step h3 { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.ld-step p { margin-top: 0.25rem !important; color: var(--ink-soft); font-size: 0.95rem; }
.ld-step.is-lit .ld-step-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.ld-still .ld-step .ld-step-dot, .ld:not(.ld-motion) .ld-step .ld-step-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
@media (min-width: 56rem) {
    .ld-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 3.4rem 0 0; gap: 1.6rem; }
    .ld-steps-line { left: 0; right: 0; top: 1.05rem; bottom: auto; width: auto; height: 2px; }
    .ld-steps-line span { transform-origin: 0 50%; }
    .ld-motion .ld-steps-line span { transform: scaleX(0); }
    .ld-step-dot { left: 0; top: -3.4rem; }
}
.ld-plan { margin-top: 3rem !important; display: grid; justify-items: center; perspective: 900px; }
.ld-plan-sheet {
    position: relative; width: min(100%, 34rem); padding: 1.8rem 1.6rem 1.6rem; border-radius: 6px; background: #FFFDF6; color: var(--navy);
    box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.45); border: 1px solid var(--line); transform-origin: 50% 0;
    background-image: repeating-linear-gradient(transparent 0 31px, rgba(20, 33, 61, 0.06) 31px 32px);
}
.ld-plan-sheet p { font-size: 1.12rem; line-height: 1.6; }
.ld-plan-tag { position: absolute; top: -0.85rem; left: 1.4rem; padding: 0.25rem 0.75rem; border-radius: 6px; background: var(--amber); color: var(--navy); font: 700 0.68rem var(--f-num); letter-spacing: 0.2em; }
.ld-plan-lines { display: grid; gap: 0.75rem; margin-top: 1.1rem; }
.ld-plan-lines i { display: block; height: 2px; border-radius: 2px; background: var(--emerald); opacity: 0.35; }
.ld-plan-lines i:nth-child(2) { width: 82%; } .ld-plan-lines i:nth-child(3) { width: 58%; }
.ld-motion .ld-plan-sheet { transform: rotateX(-70deg); opacity: 0; transition: transform 1.2s var(--ease), opacity 0.8s; }
.ld-motion .ld-plan.is-in .ld-plan-sheet { transform: none; opacity: 1; }

.ld-bridge { padding-block: clamp(5rem, 14vw, 9rem); text-align: center; }
.ld-bridge-text { font-size: clamp(2rem, 7.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--navy); max-width: 16ch; margin-inline: auto !important; }
.ld-bridge-line { display: block; width: 2px; height: 90px; margin: 2rem auto 0; background: rgba(20, 33, 61, 0.1); }
.ld-bridge-line i { display: block; height: 100%; background: linear-gradient(var(--gold), var(--emerald)); }

/* words lit one by one by scroll ([data-words-scrub]) */
.ld-motion [data-words-scrub] .ld-word { opacity: 0.16; transition: opacity 0.25s; }
.ld-motion [data-words-scrub] .ld-word.is-lit { opacity: 1; }

/* ---------------------------------------------------------------------
   6. PHASE 2
   --------------------------------------------------------------------- */
.ld-phase2 { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 12vw, 8rem); background: linear-gradient(180deg, var(--ivory), #F2F7F3 30%, var(--ivory)); }
.ld-retain { display: grid; gap: 1.4rem; align-items: center; }
.ld-retain-cards { display: grid; gap: 0.8rem; }
.ld-card { padding: 1.3rem 1.25rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-soft); }
.ld-card-label { display: inline-block; margin-bottom: 0.5rem; font: 700 0.7rem var(--f-num); letter-spacing: 0.18em; text-transform: uppercase; }
.ld-card--warn { border-left: 4px solid var(--amber); }
.ld-card--warn .ld-card-label { color: var(--amber-deep); }
.ld-card--ok { border-left: 4px solid var(--emerald); }
.ld-card--ok .ld-card-label { color: var(--emerald-deep); }
.ld-curve { padding: 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.ld-curve-grid line { stroke: var(--mist); stroke-width: 1; }
.ld-curve-axis { stroke: var(--line-strong); stroke-width: 1.4; }
.ld-curve-one, .ld-curve-360 { fill: none; stroke-width: 4; stroke-linecap: round; }
.ld-curve-one { stroke: var(--amber); opacity: 0.85; }
.ld-curve-360 { stroke: var(--emerald); }
.ld-curve-end--one { fill: var(--amber); }
.ld-curve-end--360 { fill: var(--emerald); }
.ld-curve-tick { font: 600 12px var(--f-num); fill: var(--muted); }
.ld-curve figcaption { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.ld-key::before { content: ''; display: inline-block; width: 18px; height: 4px; margin-right: 0.45rem; border-radius: 2px; vertical-align: middle; }
.ld-key--one::before { background: var(--amber); }
.ld-key--360::before { background: var(--emerald); }
.ld-lede-big { margin-top: clamp(2.5rem, 7vw, 4rem) !important; font-size: clamp(1.35rem, 4.4vw, 2.2rem); font-weight: 700; line-height: 1.3; color: var(--navy); max-width: 30ch; }
.ld-lede-big strong { color: var(--emerald-deep); font-family: var(--f-arabic); font-style: italic; font-size: 1.12em; }
@media (min-width: 56rem) { .ld-retain { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem; } }

.ld-weeks { position: relative; margin-top: clamp(3rem, 8vw, 5rem); display: grid; gap: 1.2rem; padding-left: calc(var(--gutter) + 28px); }
.ld-spine { position: absolute; left: calc(var(--gutter) + 8px); top: 0; bottom: 0; width: 3px; border-radius: 3px; background: rgba(20, 33, 61, 0.08); }
.ld-spine span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(#0F8F6B 0 25%, #2E6FBA 25% 50%, #F08A24 50% 75%, #C99A2E 75%); transform-origin: 50% 0; }
.ld-motion .ld-spine span { transform: scaleY(0); }
.ld-week { position: relative; display: grid; gap: 0.9rem; padding: 1.4rem 1.25rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-week::before { content: ''; position: absolute; left: -26px; top: 1.6rem; width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px var(--ivory); }
.ld-week-badge { display: inline-flex; align-items: baseline; gap: 0.4rem; color: var(--c); }
.ld-week-badge small { font: 700 0.7rem var(--f-num); letter-spacing: 0.24em; }
.ld-week-badge b { font: 700 2.4rem/1 var(--f-num); }
.ld-week h3 { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.ld-week-sub { margin-top: 0.2rem !important; font-family: var(--f-arabic); font-style: italic; font-size: 1.15rem; color: var(--c); filter: brightness(0.85); }
.ld-week ul { margin-top: 0.9rem !important; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ld-week li { padding: 0.32rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--navy); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.ld-week-out { margin-top: 1rem !important; padding: 0.8rem 0.95rem; border-radius: 12px; background: var(--ivory); color: var(--ink-soft); font-weight: 600; }
.ld-week-out span { display: block; font: 700 0.66rem var(--f-num); letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); filter: brightness(0.85); margin-bottom: 0.2rem; }
@media (min-width: 56rem) {
    .ld-weeks { padding-left: 0; gap: 2rem; }
    .ld-spine { left: 50%; margin-left: -1.5px; }
    .ld-week { width: calc(50% - 3rem); grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; padding: 1.8rem; }
    .ld-week:nth-of-type(odd) { justify-self: start; }
    .ld-week:nth-of-type(even) { justify-self: end; }
    .ld-week::before { left: auto; right: -3.5rem; top: 2rem; }
    .ld-week:nth-of-type(even)::before { right: auto; left: -3.5rem; }
}
.ld-motion .ld-week { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.ld-motion .ld-week.is-in { opacity: 1; transform: none; }

    display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font: 700 0.85rem var(--f-num);
    background: var(--c); color: #fff; transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}

/* ---------------------------------------------------------------------
   7. TRACKER + MENTORING
   --------------------------------------------------------------------- */
.ld-tracker { padding-block: clamp(4.5rem, 12vw, 8rem); }
.ld-radar-wrap { display: grid; gap: 2rem; align-items: center; }
.ld-radar { padding: 1rem; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-radar svg { width: 100%; height: auto; display: block; overflow: visible; }
.ld-radar-grid { fill: none; stroke: var(--mist); stroke-width: 1; }
.ld-radar-axis { stroke: var(--mist); stroke-width: 1; }
.ld-radar-name { font: 600 8.6px var(--f-num); fill: var(--ink-soft); }
.ld-radar-shape { fill: rgba(15, 143, 107, 0.18); stroke: var(--emerald); stroke-width: 2; stroke-linejoin: round; transition: fill 0.4s; }
.ld-radar circle { fill: var(--emerald); stroke: #fff; stroke-width: 1.5; }
.ld-dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.5rem 1rem; }
.ld-dims li { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.ld-dims i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--emerald) var(--w), var(--mist) var(--w)); }
@media (min-width: 56rem) { .ld-radar-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; } }
.ld-yesterday { margin-top: clamp(4rem, 10vw, 6rem); text-align: center; }
.ld-yesterday-line { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.ld-yesterday-quote { margin-top: 1rem !important; font-family: var(--f-arabic); font-style: italic; font-weight: 700; font-size: clamp(2rem, 7.4vw, 4.4rem); line-height: 1.12; color: var(--emerald-deep); max-width: 20ch; margin-inline: auto !important; }

.ld-mentoring { padding-block: 0 clamp(4.5rem, 12vw, 8rem); }
.ld-mcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.ld-mcard {
    position: relative; padding: 1.3rem 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease), border-color 0.3s;
}
.ld-mcard::after { content: ''; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--emerald), var(--gold)); transform: scaleX(0.18); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.ld-mcard:hover { border-color: var(--gold); }
.ld-mcard:hover::after { transform: scaleX(1); }
.ld-mcard svg { width: 40px; height: 40px; fill: none; stroke: var(--emerald-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ld-mcard h3 { margin-top: 0.8rem !important; font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.ld-mcard p { margin-top: 0.35rem !important; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.ld-motion .ld-mcard.is-in { animation: ldFloat 7s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s + 1s); }
@media (min-width: 40rem) { .ld-mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ld-mcards { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ld-mcard:nth-child(even) { margin-top: 2rem; } }

/* ---------------------------------------------------------------------
   8. PHILOSOPHY · PROMISE · AUDIENCE · FINALE
   --------------------------------------------------------------------- */
.ld-philosophy { background: linear-gradient(180deg, #F4F0FA, #FBF7EE); color: var(--navy); }
.ld-phil-pin { padding-block: clamp(4.5rem, 12vw, 7rem); }
.ld-philosophy .ld-label { color: var(--emerald-deep); }
.ld-philosophy .ld-h2 { color: var(--navy); }
.ld-philosophy .ld-h2 .ld-accent { color: #5B4BB7; }
.ld-philosophy .ld-sub { color: var(--muted); }
.ld-phil-grid { display: grid; gap: 2rem; align-items: center; }
.ld-wheel { position: relative; }
.ld-wheel-ring { display: none; }
.ld-wheel-steps { display: grid; gap: 0.6rem; counter-reset: w; }
.ld-wheel-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.9rem; padding: 0.95rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: background 0.4s, border-color 0.4s; }
.ld-wheel-idx { grid-row: span 2; font: 700 0.85rem var(--f-num); color: var(--gold); padding-top: 0.25rem; }
.ld-wheel-step h3 { font: 700 1.25rem var(--f-brand); color: var(--navy); letter-spacing: 0.04em; }
.ld-wheel-step p { color: var(--ink-soft); font-size: 0.95rem; }
.ld-wheel-step.is-on { background: #FFF6E0; border-color: var(--gold); }
.ld-wheel-core { display: none; }
@media (min-width: 56rem) { .ld-phil-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; } }
/* The wheel layout only while the scroll scene drives it; otherwise the readable list above. */
.ld-pinning .ld-wheel { width: min(100%, 560px); aspect-ratio: 1; justify-self: center; }
.ld-pinning .ld-wheel-ring { display: block; position: absolute; inset: 10%; width: 80%; height: 80%; }
.ld-pinning .ld-wheel-ring circle { fill: none; stroke: rgba(20, 33, 61, 0.1); stroke-width: 1.5; }
.ld-pinning .ld-wheel-ring .ld-wheel-arc { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1068.1; stroke-dashoffset: 890; transform: rotate(-90deg); transform-origin: 200px 200px; transition: stroke-dashoffset 0.6s var(--ease); }
.ld-pinning .ld-wheel-steps { position: absolute; inset: 0; display: block; }
.ld-pinning .ld-wheel-step {
    position: absolute; left: var(--x); top: var(--y); width: 9.4rem; padding: 0.7rem 0.8rem; text-align: center; grid-template-columns: 1fr;
    transform: translate(-50%, -50%);
}
.ld-pinning .ld-wheel-step p { display: none; }
.ld-pinning .ld-wheel-idx { grid-row: auto; padding: 0; }
.ld-pinning .ld-wheel-step h3 { font-size: 1rem; }
.ld-pinning .ld-wheel-core { display: grid; place-items: center; align-content: center; gap: 0.5rem; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; text-align: center; padding: 1.5rem; background: radial-gradient(circle, rgba(201, 154, 46, 0.18), rgba(201, 154, 46, 0) 70%); }
.ld-pinning .ld-wheel-core b { font: 700 clamp(1.6rem, 2.6vw, 2.3rem) var(--f-brand); color: #5B4BB7; }
.ld-pinning .ld-wheel-core span { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }

.ld-promise { padding-block: clamp(4.5rem, 12vw, 8rem); position: relative; overflow: hidden; }
.ld-promise::before { content: ''; position: absolute; left: 50%; top: 40%; width: 120vmin; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 46, 0.12), transparent 60%); z-index: -1; }
.ld-promise-lede { font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.ld-promise-list { margin-top: 2.2rem !important; display: grid; gap: 0.2rem; }
.ld-promise-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.ld-promise-list li:last-child { border-bottom: 1px solid var(--line); }
.ld-promise-num { font: 700 0.9rem var(--f-num); color: var(--gold); }
.ld-promise-list p { font-size: clamp(1.4rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--navy); }
.ld-promise-list li:last-child p { color: var(--emerald-deep); }
.ld-promise-close { margin-top: 2rem !important; font-family: var(--f-arabic); font-style: italic; font-size: clamp(1.3rem, 4vw, 1.9rem); color: var(--emerald-deep); }

.ld-audience { padding-block: clamp(4.5rem, 12vw, 8rem); background: linear-gradient(180deg, var(--ivory), #F5EFE1); }
.ld-audience-grid { display: grid; gap: 2.5rem; align-items: center; }
.ld-age { margin-top: 1rem !important; font-size: clamp(1.2rem, 3.8vw, 1.6rem); font-weight: 700; color: var(--navy); }
.ld-age b { font: 700 1.6em var(--f-num); color: var(--amber-deep); }
.ld-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ld-chips li { padding: 0.6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); font-weight: 700; color: var(--navy); }
.ld-audience-side { display: grid; gap: 2rem; justify-items: center; }
.ld-orbit { position: relative; width: min(70vw, 300px); aspect-ratio: 1; }
.ld-orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(20, 33, 61, 0.2); }
.ld-orbit-ring:nth-child(1) { inset: 0; } .ld-orbit-ring:nth-child(2) { inset: 16%; border-color: rgba(201, 154, 46, 0.5); } .ld-orbit-ring:nth-child(3) { inset: 32%; }
.ld-orbit i { position: absolute; inset: 0; border-radius: 50%; }
.ld-orbit i::before { content: ''; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--emerald); }
.ld-orbit i:nth-of-type(2) { inset: 16%; } .ld-orbit i:nth-of-type(2)::before { background: var(--gold); }
.ld-orbit i:nth-of-type(3) { inset: 32%; } .ld-orbit i:nth-of-type(3)::before { background: var(--amber); }
.ld-motion .ld-orbit i { animation: ldSpin 14s linear infinite; }
.ld-motion .ld-orbit i:nth-of-type(2) { animation-duration: 10s; animation-direction: reverse; }
.ld-motion .ld-orbit i:nth-of-type(3) { animation-duration: 7s; }
.ld-orbit b { position: absolute; inset: 38%; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, var(--emerald), var(--emerald-deep)); color: #fff; font: 700 clamp(1.4rem, 5vw, 2rem) var(--f-num); }
@media (min-width: 56rem) { .ld-audience-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; } }

.ld-finale { padding-block: clamp(4.5rem, 12vw, 7rem) clamp(4rem, 10vw, 6rem); position: relative; }
.ld-eq { display: grid; gap: 0.6rem; justify-items: center; text-align: center; }
.ld-eq-block { display: grid; gap: 0.15rem; width: min(100%, 24rem); padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ld-eq-block small { font: 700 0.72rem var(--f-num); letter-spacing: 0.22em; color: var(--gold); }
.ld-eq-block strong { font-size: 1.15rem; }
.ld-eq-block--result { background: linear-gradient(140deg, #E4F3EC, #F3E6C4); border-color: var(--gold); }
.ld-eq-block--result small { color: var(--emerald-deep); }
.ld-eq-block--result strong { color: var(--emerald-deep); font-family: var(--f-arabic); font-style: italic; font-size: 1.5rem; }
.ld-eq-op { font: 700 2rem/1 var(--f-num); color: var(--amber-deep); }
.ld-eq-words { margin-top: 1.6rem !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem; font: 700 clamp(0.9rem, 2.6vw, 1.15rem) var(--f-num); letter-spacing: 0.24em; color: var(--navy); }
.ld-eq-words i { color: var(--gold); font-style: normal; }
@media (min-width: 64rem) {
    .ld-eq { grid-template-columns: 1fr auto 1fr auto 1.15fr; align-items: center; }
    .ld-eq-block { width: auto; min-height: 8rem; align-content: center; }
}

.ld-join { margin-top: clamp(3.5rem, 9vw, 5.5rem); display: grid; gap: 2.5rem; }
.ld-join-title { margin-top: 1rem !important; display: grid; gap: 0.2rem; font-size: clamp(1.6rem, 5.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--navy); }
.ld-join-title .ld-accent { font-size: 1.1em; line-height: 1.15; }
.ld-meta { margin-top: 2rem !important; display: grid; gap: 0.6rem; }
.ld-meta div { padding: 0.8rem 1rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.ld-meta dt { font: 700 0.68rem var(--f-num); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ld-meta dd { margin: 0.15rem 0 0; font-weight: 700; color: var(--navy); }
@media (min-width: 56rem) { .ld-join { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; } .ld-join-left { position: sticky; top: calc(var(--bar-h) + 2rem); } }

/* ---------------------------------------------------------------------
   THE FORM
   --------------------------------------------------------------------- */
.ld-formcard {
    position: relative; padding: 1.6rem 1.2rem 1.4rem; border-radius: 24px; background: var(--paper); border: 1px solid var(--line);
    box-shadow: 0 2px 4px rgba(20, 33, 61, 0.04), 0 40px 80px -40px rgba(20, 33, 61, 0.45); scroll-margin-top: calc(var(--bar-h) + 16px);
}
.ld-formcard::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--emerald), var(--gold), var(--amber)); }
.ld-formcard:focus { outline: none; }
.ld-formcard.is-flash { animation: ldFlash 1.4s var(--ease); }
@keyframes ldFlash { 0% { box-shadow: 0 0 0 0 rgba(240, 138, 36, 0.55); } 100% { box-shadow: 0 0 0 22px rgba(240, 138, 36, 0); } }
@media (min-width: 40rem) { .ld-formcard { padding: 2.2rem 2rem 1.8rem; } }
.ld-step-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--emerald-deep); color: #fff; font: 700 0.68rem var(--f-num); letter-spacing: 0.16em; text-transform: uppercase; }
.ld-step-badge--closed { background: var(--rose); }
.ld-form-title { margin-top: 0.8rem !important; line-height: 1.15; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.ld-form-sub { margin-top: 0.4rem !important; color: var(--muted); font-weight: 500; }
.ld-form-note { margin-top: 0.9rem !important; font-size: 0.8rem; color: var(--muted); text-align: center; }
#ym-register { margin-top: 1.4rem; }
.ym-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .ym-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ym-col-2 { grid-column: span 2; } }
.ym-field label { display: block; margin-bottom: 0.4rem; font-size: 0.86rem; font-weight: 700; color: var(--navy); }
.ym-field label em, .ym-cohorts legend em { color: var(--rose); font-style: normal; }
.ym-field input {
    width: 100%; min-height: 50px; padding: 0.75rem 0.95rem; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #FDFBF6;
    font: 500 1rem var(--f-text); color: var(--navy); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ym-field input:focus { outline: none; border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(15, 143, 107, 0.15); }
.ym-field input.is-invalid { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(214, 69, 96, 0.12); }
.ym-hint { margin-top: 0.35rem !important; font-size: 0.78rem; color: var(--muted); }
.ym-hint.is-warning { color: #B4304A; font-weight: 700; }
.ym-alert { margin-top: 1.1rem; padding: 0.85rem 1rem; border-radius: 12px; background: #FBE9EC; border: 1px solid rgba(214, 69, 96, 0.4); color: #8E1F35; font-weight: 600; font-size: 0.92rem; }
.ym-alert ul { margin: 0.4rem 0 0 1.1rem; padding: 0; list-style: disc; font-weight: 500; }
.ym-alert--ok { background: #E3F3EC; border-color: rgba(15, 143, 107, 0.4); color: var(--emerald-deep); }
#ym_submit { margin-top: 1.3rem; min-height: 54px; font-size: 1.05rem; }
.ym-cohorts { margin: 0 0 1.2rem; padding: 0; border: 0; min-width: 0; }
.ym-cohorts legend { padding: 0; margin-bottom: 0.6rem; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ym-cohorts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem; }
.ym-cohort { position: relative; display: flex; align-items: center; min-height: 64px; padding: 0.7rem 1rem; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #FDFBF6; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease); }
.ym-cohort input { position: absolute; opacity: 0; pointer-events: none; }
.ym-cohort strong { display: block; font-size: 1.08rem; }
.ym-cohort small { display: block; font-size: 0.78rem; color: var(--muted); }
.ym-cohort:hover { border-color: var(--amber); transform: translateY(-1px); }
.ym-cohort.is-chosen, .ym-cohort:has(input:checked) { border-color: var(--emerald); background: #E9F5EF; box-shadow: inset 0 0 0 1px var(--emerald); }
.ym-cohort:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.ym-cohort-one { display: block; margin-bottom: 1.2rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: #EEF6F2; color: var(--ink-soft); font-size: 0.92rem; }
.ym-cohort-one svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.35rem; fill: none; stroke: var(--emerald-deep); stroke-width: 2; }
.ld-howto { margin-top: 1.6rem !important; padding-top: 1.2rem !important; border-top: 1px dashed var(--line-strong); display: grid; gap: 0.6rem; }
.ld-howto li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); }
.ld-howto b { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold-soft); color: var(--navy); font: 700 0.75rem var(--f-num); }
.ld-upcoming { margin-top: 1.1rem !important; display: grid; gap: 0.4rem; }
.ld-upcoming li { padding: 0.65rem 0.85rem; border-radius: 12px; background: #FDF3E4; color: var(--navy); font-size: 0.92rem; }
.ld-closed-box { margin-top: 1.3rem; padding: 1.1rem; border-radius: 16px; background: var(--ivory); display: grid; gap: 0.9rem; justify-items: start; }
.ld-closed-box p { color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.ld-foot { position: relative; overflow: hidden; background: linear-gradient(180deg, #F3EEE2, #EDE5D2); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: clamp(3rem, 8vw, 4.5rem); padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.ld-foot .ld-brand-text span { color: var(--navy); }
.ld-foot .ld-brand-text b { color: var(--emerald-deep); font-size: 1.4rem; }
.ld-foot-top { display: grid; gap: 2rem; position: relative; z-index: 1; }
.ld-foot-brand p { margin-top: 0.8rem !important; font-family: var(--f-arabic); font-style: italic; font-size: 1.15rem; color: var(--emerald-deep); }
.ld-foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.ld-foot-nav h4 { font: 700 0.7rem var(--f-num); letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 0.6rem; }
.ld-foot-nav a { display: block; padding: 0.3rem 0; text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; }
.ld-foot-nav a:hover { color: var(--emerald-deep); }
.ld-foot-bottom { position: relative; z-index: 1; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-strong); display: grid; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.ld-foot-bottom a { color: var(--emerald-deep); text-decoration: none; font-weight: 700; }
.ld-foot-giant { position: absolute; right: -0.06em; bottom: -0.22em; font: 700 clamp(7rem, 30vw, 20rem)/1 var(--f-brand); color: var(--navy); opacity: 0.04; pointer-events: none; }
@media (min-width: 56rem) {
    .ld-foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
    .ld-foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ld-foot-bottom { grid-template-columns: auto 1fr auto; align-items: center; }
    .ld-foot-bottom span:nth-child(2) { text-align: center; }
}

/* ---------------------------------------------------------------------
   MOTION — the hidden starting states (only with .ld-motion)
   --------------------------------------------------------------------- */
.ld-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.ld-motion [data-reveal].is-in { opacity: 1; transform: none; }
.ld-motion .ld-chips [data-reveal] { transform: scale(0.85); }
.ld-motion .ld-chips [data-reveal].is-in { transform: none; }
.ld-char { display: inline-block; will-change: transform; }
.ld-motion .ld-hero [data-hero] { opacity: 0; transform: translateY(18px); }
.ld-motion .ld-hero .ld-char { opacity: 0; transform: translateY(0.6em) rotate(6deg); }
.ld-motion .ld-node, .ld-motion .ld-astro-labels li { opacity: 0; }
.ld-motion [data-split-line] { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.ld-motion [data-split-line] > .ld-line-in { display: block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.ld-motion [data-split-line].is-in > .ld-line-in { transform: none; }
.ld-motion .ld-eq-block, .ld-motion .ld-eq-op { opacity: 0; transform: translateY(24px) scale(0.96); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.ld-motion .ld-eq.is-in .ld-eq-block, .ld-motion .ld-eq.is-in .ld-eq-op { opacity: 1; transform: none; }

/* Reduced motion / Skip animations: no movement anywhere */
.ld-still *, .ld-still *::before, .ld-still *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Short landscape phones: keep the hero within the screen */
@media (max-height: 520px) and (orientation: landscape) { .ld-hero { min-height: auto; padding-bottom: 5rem; } .ld-astro { opacity: 0.4; } }

/* ---------------------------------------------------------------------
   THE LONGER PAGE — slots for the parts loaded on scroll
   (landing-parts.js), the Register | Sign in tabs, the sign-in form.
   The parts themselves are styled in landing-more.css.
   --------------------------------------------------------------------- */
.lp-slot { min-height: 40vh; display: grid; place-items: center; padding: 3rem var(--gutter); }
.lp-slot.is-loading::after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--mist); border-top-color: var(--emerald); animation: lpSpin 0.9s linear infinite; }
@keyframes lpSpin { to { transform: rotate(360deg); } }
.lp-fallback { font-weight: 700; color: var(--emerald-deep); }
.js .lp-slot .lp-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .lp-slot.is-failed .lp-fallback { position: static; width: auto; height: auto; clip: auto; }
.ld-nav-signin { color: var(--emerald-deep) !important; font-weight: 800 !important; }
.lp-anchor { position: absolute; top: calc(-1 * var(--bar-h) - 16px); }
.lp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.3rem; margin: 0 0 1.4rem; border-radius: 14px; background: var(--ivory); border: 1px solid var(--line); }
.lp-tabs button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: 700 0.86rem var(--f-text); cursor: pointer; transition: background 0.2s, color 0.2s; }
.lp-tabs button[aria-selected="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 2px 8px -4px rgba(20, 33, 61, 0.35); }
.ld-step-badge--signin { background: #E3F2EC; color: var(--emerald-deep); }
.lp-form { display: grid; gap: 0.9rem; }
.lp-form-row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.lp-form-row > .lp-form-note { grid-column: 1 / -1; margin: 0; }
.lp-field { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.lp-field em { color: var(--amber-deep); font-style: normal; }
.lp-field small { font-weight: 500; color: var(--muted); }
.lp-field input, .lp-field select, .lp-field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy); font: 500 1rem var(--f-text); }
.lp-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(15, 143, 107, 0.14); }
.lp-pin-input { font: 700 1.25rem var(--f-num) !important; letter-spacing: 0.18em; }
.lp-form-msg { margin: 0; padding: 0.75rem 0.9rem; border-radius: 10px; background: #FBE4E8; color: #8C1D33; font-weight: 600; font-size: 0.9rem; }
.lp-form-msg.is-ok { background: #E3F2EC; color: var(--emerald-deep); }
.lp-form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.lp-form-note a { color: var(--emerald-deep); font-weight: 700; }
