/* ============================================================
   Kuttichathans — Premium Landing ("The Constellation of Us")
   Scope: body.landing only. All other views are untouched.
   NOTE: ENTRY SCENE and IN-SCENERY are deliberately separate,
   self-contained rule sets. They share nothing but the design
   tokens on body.landing below.
   ============================================================ */

/* ---------- Tokens ---------- */
body.landing {
    --ln-bg: #ffffff;
    --ln-ink: #1a1554;
    --ln-ink-soft: #4b4699;
    --ln-brand: #322fb3;
    --ln-brand-deep: #2a2580;
    --ln-cyan: #4cc8f0;
    --ln-night: #0b0930;
    --ln-night-2: #120e3f;
    --ln-night-card: #171247;
    --ln-night-line: rgba(140, 150, 255, 0.16);
    --ln-night-ink: #eef0ff;
    --ln-night-ink-soft: #a9aee0;
    --ln-grad: linear-gradient(120deg, #2a2580 0%, #322fb3 45%, #4cc8f0 100%);
    --ln-radius: 18px;
    --ln-ease: cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Cinematic Portal Colors (shared design tokens only) */
    --void: #05060a;
    --void-2: #0a0d16;
    --nebula-violet: #5b4ff0;
    --nebula-teal: #2bd6c9;
    --nebula-rose: #d65b9e;
    --star: #eef1ff;
    --portal-core: #cfe9ff;
    --portal-rim: #6fd8ff;
    --protected-radius: 190px;
    --protected-radius-mobile: 130px;

    --ln-void: var(--void);
    --ln-void-2: var(--void-2);
    --ln-nebula-violet: var(--nebula-violet);
    --ln-nebula-teal: var(--nebula-teal);
    --ln-nebula-rose: var(--nebula-rose);
    --ln-star: var(--star);
    --ln-portal-core: var(--portal-core);
    --ln-portal-rim: var(--portal-rim);
    --ln-protected-radius: var(--protected-radius);
    --ln-protected-radius-mobile: var(--protected-radius-mobile);
}

/* ---------- Base ---------- */
body.landing {
    margin: 0;
    background: var(--ln-bg);
    color: var(--ln-ink);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
/* Self-contained border-box (do not rely on Bootstrap) */
body.landing,
body.landing *,
body.landing *::before,
body.landing *::after { box-sizing: border-box; }

body.landing .ln-main { position: relative; z-index: 0; }
body.landing .ln-center { text-align: center; }

/* Focus visibility */
body.landing a:focus-visible,
body.landing button:focus-visible {
    outline: 2px solid var(--ln-cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Container ---------- */
body.landing .ln-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    min-width: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
body.landing .ln-nav {
    position: fixed;
    top: calc(0.9rem + env(safe-area-inset-top, 0px));
    left: 50%;
    translate: -50% 0;
    width: min(1180px, 96vw);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(42, 37, 128, 0.08);
    box-shadow: 0 10px 34px -14px rgba(42, 37, 128, 0.28);
    transition: background 0.45s var(--ln-ease), border-color 0.45s var(--ln-ease),
                box-shadow 0.45s var(--ln-ease), color 0.45s var(--ln-ease);
}
body.landing .ln-nav--scrolled {
    background: rgba(11, 9, 48, 0.62);
    border-color: rgba(140, 150, 255, 0.18);
    box-shadow: 0 14px 44px -14px rgba(0, 0, 0, 0.55);
}
body.landing .ln-nav-progress {
    position: absolute;
    left: 18px; right: 18px; bottom: -1px;
    height: 2px; border-radius: 2px;
    background: var(--ln-grad);
    transform-origin: 0 50%;
    transform: scaleX(0);
    opacity: 0;
}
body.landing .ln-nav--scrolled .ln-nav-progress { opacity: 1; }
body.landing .ln-brand {
    display: inline-flex; align-items: center; gap: 0.65rem;
    text-decoration: none; color: inherit; font-weight: 800; font-size: 1.06rem;
}
body.landing .ln-brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--ln-grad); color: #fff;
    font-size: 1.05rem; font-weight: 800;
    box-shadow: 0 8px 22px -8px rgba(50, 47, 179, 0.55);
}
body.landing .ln-nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); }
body.landing .ln-nav-links a {
    position: relative;
    color: inherit; text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    padding: 0.35rem 0.15rem;
}
body.landing .ln-nav-links a::after {
    content: "";
    position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; border-radius: 2px; background: var(--ln-grad);
    transition: right 0.3s var(--ln-ease);
}
body.landing .ln-nav-links a:hover::after,
body.landing .ln-nav-links a:focus-visible::after { right: 0; }
body.landing .ln-nav-login {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1.15rem; border-radius: 999px;
    background: var(--ln-grad); color: #fff;
    font-weight: 700; font-size: 0.92rem; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(50, 47, 179, 0.6);
    transition: transform 0.25s var(--ln-ease), box-shadow 0.25s var(--ln-ease);
}
body.landing .ln-nav-login:hover { transform: translateY(-2px); }
body.landing .ln-nav--scrolled .ln-brand,
body.landing .ln-nav--scrolled .ln-nav-links a { color: var(--ln-night-ink); }
body.landing .ln-burger {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid rgba(42, 37, 128, 0.15);
    border-radius: 12px;
    background: transparent; color: inherit;
    cursor: pointer;
    place-items: center;
}
body.landing .ln-burger span {
    display: block; width: 20px; height: 2px; border-radius: 2px;
    background: currentColor; margin: 2.5px auto;
    transition: transform 0.3s var(--ln-ease), opacity 0.2s;
}
body.landing .ln-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.landing .ln-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
body.landing .ln-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
body.landing .ln-menu {
    position: fixed; inset: 0; z-index: 1100;
    display: grid; place-items: center;
    background: rgba(11, 9, 48, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ln-ease), visibility 0.35s;
}
body.landing .ln-menu.is-open { opacity: 1; visibility: visible; }
body.landing .ln-menu nav ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: clamp(0.9rem, 3vh, 1.6rem); text-align: center;
}
body.landing .ln-menu a {
    color: var(--ln-night-ink); text-decoration: none;
    font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 800;
}
body.landing .ln-menu-close {
    position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(140, 150, 255, 0.3);
    background: transparent; color: var(--ln-night-ink);
    font-size: 1.4rem; cursor: pointer;
}
@media (max-width: 900px) {
    body.landing .ln-nav-links,
    body.landing .ln-nav-login { display: none; }
    body.landing .ln-burger { display: grid; }
}

/* ============================================================
   ENTRY SCENE — CINEMATIC PORTAL (GUESTS ONLY — PRE-LOGIN)
   (.out-entry-scene) — fully independent rules & keyframes.
   ============================================================ */
.out-entry-scene {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    perspective: 1400px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 42%, #10132049 0%, transparent 60%),
        radial-gradient(ellipse at 20% 20%, #241a4a55 0%, transparent 55%),
        radial-gradient(ellipse at 80% 75%, #1a3a3d55 0%, transparent 55%),
        var(--void);
}

/* Starfield / nebula canvas (deep background, slowest parallax) */
.out-entry-scene #stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

/* Soft nebula gradient blobs, slow independent breathing */
.out-entry-scene .nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: 2;
}
.out-entry-scene .nebula.n1 {
    width: 46vw;
    height: 46vw;
    left: -8vw;
    top: 8vh;
    background: radial-gradient(circle, var(--nebula-violet), transparent 70%);
    animation: out-breathe1 26s ease-in-out infinite;
}
.out-entry-scene .nebula.n2 {
    width: 38vw;
    height: 38vw;
    right: -6vw;
    bottom: 2vh;
    background: radial-gradient(circle, var(--nebula-teal), transparent 70%);
    animation: out-breathe2 32s ease-in-out infinite;
}
.out-entry-scene .nebula.n3 {
    width: 30vw;
    height: 30vw;
    right: 22vw;
    top: -8vh;
    background: radial-gradient(circle, var(--nebula-rose), transparent 70%);
    animation: out-breathe3 38s ease-in-out infinite;
}

@keyframes out-breathe1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.30; }
    50% { transform: translate3d(2vw, 3vh, 0) scale(1.12); opacity: 0.42; }
}
@keyframes out-breathe2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.26; }
    50% { transform: translate3d(-3vw, -2vh, 0) scale(0.96); opacity: 0.36; }
}
@keyframes out-breathe3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.20; }
    50% { transform: translate3d(-2vw, 3vh, 0) scale(1.1); opacity: 0.30; }
}

/* Protected center zone (invisible, for dev reference only) */
.out-entry-scene .protected-zone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--protected-radius) * 2);
    height: calc(var(--protected-radius) * 2);
    margin-left: calc(var(--protected-radius) * -1);
    margin-top: calc(var(--protected-radius) * -1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

/* Portal / ENTER button */
.out-entry-scene .portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    z-index: 50;
}

.out-entry-scene .portal-ring {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.out-entry-scene .portal-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(190, 225, 255, 0.16), rgba(90, 140, 220, 0.02) 60%, transparent 72%);
    filter: blur(2px);
    animation: out-portal-breathe 6s ease-in-out infinite;
}

.out-entry-scene .portal-ring::after {
    content: "";
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    border: 1px solid rgba(120, 200, 255, 0.14);
    animation: out-ring-spin 40s linear infinite;
}

@keyframes out-portal-breathe {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.035); }
}
@keyframes out-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.out-entry-scene .enter-btn {
    position: relative;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    border: 1px solid rgba(210, 235, 255, 0.4);
    background:
        radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.9), rgba(160, 205, 255, 0.25) 45%, rgba(20, 30, 55, 0.9) 78%);
    color: #071018;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 28px 6px rgba(111, 216, 255, 0.35),
        0 0 70px 18px rgba(91, 79, 240, 0.18),
        inset 0 2px 10px rgba(255, 255, 255, 0.6),
        inset 0 -14px 24px rgba(10, 15, 30, 0.5);
    transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.45s ease;
    animation: out-enter-pulse 5.5s ease-in-out infinite;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 52;
}

@keyframes out-enter-pulse {
    0%, 100% {
        box-shadow:
            0 0 28px 6px rgba(111, 216, 255, 0.32),
            0 0 70px 18px rgba(91, 79, 240, 0.16),
            inset 0 2px 10px rgba(255, 255, 255, 0.6),
            inset 0 -14px 24px rgba(10, 15, 30, 0.5);
    }
    50% {
        box-shadow:
            0 0 40px 10px rgba(111, 216, 255, 0.5),
            0 0 90px 26px rgba(91, 79, 240, 0.26),
            inset 0 2px 10px rgba(255, 255, 255, 0.7),
            inset 0 -14px 24px rgba(10, 15, 30, 0.5);
    }
}

.out-entry-scene .enter-btn:hover {
    transform: translateZ(12px) scale(1.045);
}
.out-entry-scene .enter-btn:active {
    transform: translateZ(4px) scale(0.98);
}

.out-entry-scene .portal-caption {
    color: rgba(210, 222, 245, 0.55);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 220px;
}

/* Subtle depth-of-field vignette to sell the 3D space */
.out-entry-scene .vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(2, 3, 8, 0.55) 100%);
    z-index: 40;
}

.out-entry-scene .grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
    z-index: 45;
}

/* Cinematic Warp & Climax Transition Effects */
.out-entry-scene.is-entering {
    cursor: wait;
}
.out-entry-scene.is-entering .enter-btn {
    pointer-events: none;
    animation: out-enter-ignite 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes out-enter-ignite {
    0% {
        transform: translateZ(0) scale(1);
        filter: brightness(1);
    }
    20% {
        transform: translateZ(20px) scale(0.92);
        filter: brightness(1.6);
    }
    60% {
        transform: translateZ(120px) scale(1.7);
        filter: brightness(2.8);
        box-shadow:
            0 0 60px 20px rgba(111, 216, 255, 0.8),
            0 0 120px 40px rgba(91, 79, 240, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.9);
    }
    100% {
        transform: translateZ(350px) scale(3.2);
        filter: brightness(4);
        opacity: 0.95;
        box-shadow:
            0 0 140px 60px rgba(111, 216, 255, 0.95),
            0 0 240px 100px rgba(160, 205, 255, 0.8),
            inset 0 0 50px #ffffff;
    }
}
.out-entry-scene.is-entering .portal-ring::before {
    animation: out-portal-burst 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes out-portal-burst {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4.5); opacity: 1; filter: blur(6px); }
}
.out-entry-scene.is-entering .portal-ring::after {
    animation: out-ring-hyper-spin 0.55s linear infinite;
    border-color: rgba(180, 230, 255, 0.85);
    box-shadow: 0 0 50px rgba(111, 216, 255, 0.6);
}
@keyframes out-ring-hyper-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.out-entry-scene .portal-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, rgba(205, 238, 255, 0.96) 45%, #05060a 100%);
    opacity: 0;
    z-index: 99;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.out-entry-scene .portal-flash.flash-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .out-entry-scene *,
    .out-entry-scene *::before,
    .out-entry-scene *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}

@media (max-width: 640px) {
    .out-entry-scene {
        --protected-radius: var(--protected-radius-mobile);
    }
    .out-entry-scene .portal-ring {
        width: 156px;
        height: 156px;
    }
    .out-entry-scene .enter-btn {
        width: 116px;
        height: 116px;
        font-size: 15px;
    }
    .out-entry-scene .portal-caption {
        font-size: 11.5px;
        max-width: 180px;
    }
}

/* ============================================================
   IN-SCENERY — CINEMATIC PORTAL (LOGGED-IN)
   (.in-scenery) — fully independent rules & keyframes.
   Shares nothing with ENTRY SCENE above.
   ============================================================ */
.in-scenery {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    perspective: 1400px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 42%, #10132049 0%, transparent 60%),
        radial-gradient(ellipse at 20% 20%, #241a4a55 0%, transparent 55%),
        radial-gradient(ellipse at 80% 75%, #1a3a3d55 0%, transparent 55%),
        var(--void);
}

/* Warp-speed shader backdrop (WebGL2 canvas beneath the 2D starfield) */
.in-scenery [data-warp-canvas] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}

/* Starfield / nebula canvas (deep background, slowest parallax) */
.in-scenery [data-stars-canvas] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

/* Soft nebula gradient blobs, slow independent breathing */
.in-scenery .nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: 2;
}
.in-scenery .nebula.n1 {
    width: 46vw;
    height: 46vw;
    left: -8vw;
    top: 8vh;
    background: radial-gradient(circle, var(--nebula-violet), transparent 70%);
    animation: in-breathe1 26s ease-in-out infinite;
}
.in-scenery .nebula.n2 {
    width: 38vw;
    height: 38vw;
    right: -6vw;
    bottom: 2vh;
    background: radial-gradient(circle, var(--nebula-teal), transparent 70%);
    animation: in-breathe2 32s ease-in-out infinite;
}
.in-scenery .nebula.n3 {
    width: 30vw;
    height: 30vw;
    right: 22vw;
    top: -8vh;
    background: radial-gradient(circle, var(--nebula-rose), transparent 70%);
    animation: in-breathe3 38s ease-in-out infinite;
}

@keyframes in-breathe1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.30; }
    50% { transform: translate3d(2vw, 3vh, 0) scale(1.12); opacity: 0.42; }
}
@keyframes in-breathe2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.26; }
    50% { transform: translate3d(-3vw, -2vh, 0) scale(0.96); opacity: 0.36; }
}
@keyframes in-breathe3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.20; }
    50% { transform: translate3d(-2vw, 3vh, 0) scale(1.1); opacity: 0.30; }
}

/* Logo orbit layer */
.in-scenery [data-orbit-layer] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 10;
    -webkit-mask-image: radial-gradient(
        circle at 50% 50%,
        transparent 0,
        transparent var(--portal-clear, 200px),
        #000 calc(var(--portal-clear, 200px) + 40px)
    );
    mask-image: radial-gradient(
        circle at 50% 50%,
        transparent 0,
        transparent var(--portal-clear, 200px),
        #000 calc(var(--portal-clear, 200px) + 40px)
    );
}

.in-scenery .logo-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size, 190px);
    height: var(--size, 190px);
    margin-left: calc(var(--size, 190px) / -2);
    margin-top: calc(var(--size, 190px) / -2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    pointer-events: none;
    opacity: 0;
}
.in-scenery .logo-node .glyph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    pointer-events: none;
}
.in-scenery .logo-node .glyph img,
.in-scenery .logo-node img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    user-select: none;
    -webkit-user-drag: none;
}
.in-scenery .logo-node::after {
    display: none !important;
    content: none !important;
}

/* Protected center zone (invisible, for dev reference only) */
.in-scenery .protected-zone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--protected-radius) * 2);
    height: calc(var(--protected-radius) * 2);
    margin-left: calc(var(--protected-radius) * -1);
    margin-top: calc(var(--protected-radius) * -1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

/* Portal / ENTER button */
.in-scenery .portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 180px);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    z-index: 50;
    isolation: isolate;
}

.in-scenery .portal-ring {
    position: relative;
    width: 176px;
    height: 176px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.in-scenery .portal-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(190, 225, 255, 0.16), rgba(90, 140, 220, 0.02) 60%, transparent 72%);
    filter: blur(2px);
    animation: in-portal-breathe 6s ease-in-out infinite;
}

.in-scenery .portal-ring::after {
    content: "";
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    border: 1px solid rgba(120, 200, 255, 0.14);
    animation: in-ring-spin 40s linear infinite;
}

@keyframes in-portal-breathe {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.035); }
}
@keyframes in-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Longer CTA label wraps comfortably inside the circle */
.in-scenery .enter-btn {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(210, 235, 255, 0.4);
    background:
        radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.9), rgba(160, 205, 255, 0.25) 45%, rgba(20, 30, 55, 0.9) 78%);
    color: #071018;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: 0.06em;
    padding: 0 18px;
    text-wrap: balance;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 28px 6px rgba(111, 216, 255, 0.35),
        0 0 70px 18px rgba(91, 79, 240, 0.18),
        inset 0 2px 10px rgba(255, 255, 255, 0.6),
        inset 0 -14px 24px rgba(10, 15, 30, 0.5);
    transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.45s ease;
    animation: in-enter-pulse 5.5s ease-in-out infinite;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 52;
}

@keyframes in-enter-pulse {
    0%, 100% {
        box-shadow:
            0 0 28px 6px rgba(111, 216, 255, 0.32),
            0 0 70px 18px rgba(91, 79, 240, 0.16),
            inset 0 2px 10px rgba(255, 255, 255, 0.6),
            inset 0 -14px 24px rgba(10, 15, 30, 0.5);
    }
    50% {
        box-shadow:
            0 0 40px 10px rgba(111, 216, 255, 0.5),
            0 0 90px 26px rgba(91, 79, 240, 0.26),
            inset 0 2px 10px rgba(255, 255, 255, 0.7),
            inset 0 -14px 24px rgba(10, 15, 30, 0.5);
    }
}

.in-scenery .enter-btn:hover {
    transform: translateZ(12px) scale(1.045);
}
.in-scenery .enter-btn:active {
    transform: translateZ(4px) scale(0.98);
}

.in-scenery .portal-caption {
    color: rgba(210, 222, 245, 0.55);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 220px;
}

/* Subtle depth-of-field vignette to sell the 3D space */
.in-scenery .vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(2, 3, 8, 0.55) 100%);
    z-index: 40;
}

.in-scenery .grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
    z-index: 45;
}

/* Cinematic Warp & Climax Transition Effects */
.in-scenery.is-entering {
    cursor: wait;
}
.in-scenery.is-entering .enter-btn {
    pointer-events: none;
    animation: in-enter-ignite 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes in-enter-ignite {
    0% {
        transform: translateZ(0) scale(1);
        filter: brightness(1);
    }
    20% {
        transform: translateZ(20px) scale(0.92);
        filter: brightness(1.6);
    }
    60% {
        transform: translateZ(120px) scale(1.7);
        filter: brightness(2.8);
        box-shadow:
            0 0 60px 20px rgba(111, 216, 255, 0.8),
            0 0 120px 40px rgba(91, 79, 240, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.9);
    }
    100% {
        transform: translateZ(350px) scale(3.2);
        filter: brightness(4);
        opacity: 0.95;
        box-shadow:
            0 0 140px 60px rgba(111, 216, 255, 0.95),
            0 0 240px 100px rgba(160, 205, 255, 0.8),
            inset 0 0 50px #ffffff;
    }
}
.in-scenery.is-entering .portal-ring::before {
    animation: in-portal-burst 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes in-portal-burst {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4.5); opacity: 1; filter: blur(6px); }
}
.in-scenery.is-entering .portal-ring::after {
    animation: in-ring-hyper-spin 0.55s linear infinite;
    border-color: rgba(180, 230, 255, 0.85);
    box-shadow: 0 0 50px rgba(111, 216, 255, 0.6);
}
@keyframes in-ring-hyper-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.in-scenery .portal-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, rgba(205, 238, 255, 0.96) 45%, #05060a 100%);
    opacity: 0;
    z-index: 99;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.in-scenery .portal-flash.flash-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .in-scenery *,
    .in-scenery *::before,
    .in-scenery *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}

@media (max-width: 640px) {
    .in-scenery {
        --protected-radius: var(--protected-radius-mobile);
    }
    .in-scenery .portal-ring {
        width: 150px;
        height: 150px;
    }
    .in-scenery .enter-btn {
        width: 130px;
        height: 130px;
        font-size: 12px;
        line-height: 1.25;
        padding: 0 12px;
        letter-spacing: 0.04em;
    }
    .in-scenery .portal-caption {
        font-size: 11.5px;
        max-width: 180px;
    }
    .in-scenery .logo-node {
        --size: clamp(64px, 14vw, 82px);
    }
}

/* ============================================================
   HERO 2: ORIGINAL HERO — white, WebGL constellation
   ============================================================ */
body.landing .ln-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: clamp(3rem, 8vh, 5rem);
    padding-inline: 0;
    overflow: hidden;
    background: var(--ln-bg);
    isolation: isolate;
}
@supports (min-height: 100dvh) {
    body.landing .ln-hero { min-height: 100dvh; }
}
body.landing .ln-hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px;
    margin-inline: auto;
    text-align: center;
}
body.landing .ln-hero-canvas-wrap {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
}
body.landing .ln-hero-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.2s var(--ln-ease);
}
body.landing .ln-hero-canvas.is-live { opacity: 1; }
body.landing .ln-hero-fallback {
    position: absolute; inset: 0;
    display: none;
}

body.landing .ln-hero-eyebrow {
    margin: 0 0 1.1rem;
    font-size: clamp(0.82rem, 1.4vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ln-brand);
}
body.landing .ln-hero-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 6.4vw, 4.9rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ln-ink);
    overflow-wrap: break-word;
}
body.landing .ln-hero-title em {
    font-style: normal;
    background: var(--ln-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
body.landing .ln-hero-sub {
    margin: 0 auto 2.1rem;
    max-width: 56ch;
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
    line-height: 1.65;
    color: var(--ln-ink-soft);
}
body.landing .ln-hero-actions {
    display: flex; flex-wrap: wrap; gap: 0.9rem;
    justify-content: center;
}
body.landing .ln-hero-scrollhint {
    position: absolute;
    left: 50%; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    translate: -50% 0;
    z-index: 2;
    display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--ln-ink-soft);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
}
body.landing .ln-hero-scrollhint::after {
    content: "";
    width: 1px; height: 42px;
    background: linear-gradient(to bottom, var(--ln-brand), transparent);
    animation: ln-drop 2.2s var(--ln-ease) infinite;
}
@keyframes ln-drop {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    35% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.landing .ln-hero-scrollhint::after { animation: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
body.landing .ln-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-weight: 700; font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    will-change: transform;
    transition: transform 0.3s var(--ln-ease), box-shadow 0.3s var(--ln-ease),
                background-color 0.3s var(--ln-ease), color 0.3s var(--ln-ease);
}
body.landing .ln-btn-lg { padding: 1.05rem 2.2rem; font-size: 1.04rem; }
body.landing .ln-btn-primary {
    background: var(--ln-grad); color: #fff;
    box-shadow: 0 14px 34px -14px rgba(50, 47, 179, 0.65);
}
body.landing .ln-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -16px rgba(50, 47, 179, 0.75);
}
body.landing .ln-btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ln-ink);
    border-color: rgba(42, 37, 128, 0.16);
}
body.landing .ln-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(42, 37, 128, 0.32);
    box-shadow: 0 16px 36px -18px rgba(42, 37, 128, 0.4);
}
/* Inline SVG icons (ws_icon output has no intrinsic size) */
body.landing .ln-btn svg,
body.landing .ln-link-wa svg {
    width: 1.15em; height: 1.15em;
    flex: 0 0 auto;
}
body.landing .ln-btn-outline {
    background: transparent;
    color: var(--ln-night-ink);
    border-color: rgba(140, 150, 255, 0.35);
}
body.landing .ln-btn-outline:hover {
    background: rgba(140, 150, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================================
   MARQUEE — seam between light hero and dark band
   ============================================================ */
body.landing .ln-marquee-section {
    position: relative; z-index: 3;
    padding: clamp(1.4rem, 3vw, 2.2rem) 0;
    background: linear-gradient(to bottom, var(--ln-bg), var(--ln-night));
}
body.landing .ln-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
body.landing .ln-marquee-track { display: flex; width: max-content; will-change: transform; }
body.landing .ln-marquee-group {
    display: flex; align-items: center;
    gap: clamp(2.2rem, 4.5vw, 3.6rem);
    padding-inline-end: clamp(2.2rem, 4.5vw, 3.6rem);
}
body.landing .ln-marquee-group img {
    height: clamp(30px, 4.2vw, 46px);
    width: auto;
    opacity: 0.85;
    filter: saturate(0.4) brightness(1.04);
    transition: opacity 0.3s, filter 0.3s;
}
body.landing .ln-marquee-group img:hover { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
    body.landing .ln-marquee-track { animation: none !important; transform: none !important; }
}

/* ============================================================
   SEAM TRANSITION TO DARK BAND
   ============================================================ */
body.landing .ln-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--ln-night));
    pointer-events: none;
}

/* ============================================================
   DARK BAND
   ============================================================ */
body.landing .ln-dark-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 88% 4%, rgba(76, 200, 240, 0.07), transparent 60%),
        radial-gradient(900px 700px at 4% 38%, rgba(50, 47, 179, 0.14), transparent 62%),
        linear-gradient(180deg, var(--ln-night) 0%, var(--ln-night-2) 55%, var(--ln-night) 100%);
    color: var(--ln-night-ink);
}

/* Neon threadfield background — decorative canvas BEHIND all sections.
   z-index 0 + pointer-events: none means it can never cover or block
   section text, links, or buttons. */
body.landing .ln-dark-band > #ln-threadfield {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s var(--ln-ease);
}
body.landing .ln-dark-band > #ln-threadfield.is-live { opacity: 1; }

body.landing .ln-section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; z-index: 1; }

/* Section head */
body.landing .ln-section-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
body.landing .ln-section-head.ln-center { margin-inline: auto; }
body.landing .ln-kicker {
    margin: 0 0 0.9rem;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ln-cyan);
    text-align: center;
}
body.landing .ln-h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.12; font-weight: 800; letter-spacing: -0.015em;
    overflow-wrap: break-word;
    text-align: center;
}
body.landing #ln-about-title { color: var(--ln-night-ink); font-weight: 600; letter-spacing: 1px; }
body.landing #ln-family-title { color: var(--ln-night-ink); font-weight: 600; letter-spacing: 1px; }
body.landing .ln-lead {
    margin: 0 0 1.6rem;
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    line-height: 1.7;
    color: var(--ln-night-ink-soft);
    max-width: 62ch;
}
body.landing .ln-center .ln-lead { margin-inline: auto; }

/* ---------- About ---------- */
body.landing .ln-about {
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
body.landing .ln-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
body.landing .ln-about-features {
    display: grid; gap: 1rem;
    margin: 1.8rem 0 2rem;
}
body.landing .ln-mini {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.05rem 1.2rem;
    border: 1px solid var(--ln-night-line);
    border-radius: var(--ln-radius);
    background: rgba(255, 255, 255, 0.025);
}
body.landing .ln-mini-text { min-width: 0; }
body.landing .ln-mini-title { margin: 0 0 0.25rem; font-size: 1.02rem; font-weight: 700; color: white; }
body.landing .ln-mini-desc { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ln-night-ink-soft); }
body.landing .ln-about-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; }
body.landing .ln-link-wa {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #4bd07f; font-weight: 700; font-size: 0.96rem;
    text-decoration: none;
}
body.landing .ln-link-wa:hover { text-decoration: underline; }

/* Safety net: every bare SVG in landing scope is constrained */
body.landing .ln-main svg {
    max-width: 100%;
}

/* ---------- Feature cards ---------- */
body.landing .ln-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.4rem);
}
body.landing .ln-grid > * {
    min-width: 0;
}

body.landing .ln-card {
    position: relative;
    display: block;
    padding: clamp(1.5rem, 2.6vw, 2.1rem);
    border-radius: var(--ln-radius);
    border: 1px solid var(--ln-night-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    color: inherit; text-decoration: none;
    overflow: hidden;
    transition: transform 0.35s var(--ln-ease), border-color 0.35s var(--ln-ease), box-shadow 0.35s var(--ln-ease);
}
body.landing .ln-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(260px circle at var(--ln-mx, 50%) var(--ln-my, 50%), rgba(76, 200, 240, 0.14), transparent 65%);
    opacity: 0; transition: opacity 0.35s;
    pointer-events: none;
}
body.landing .ln-card:hover::before { opacity: 1; }
body.landing .ln-card:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 200, 240, 0.4);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
body.landing .ln-card-title { margin: 1.1rem 0 0.5rem; font-size: 1.18rem; font-weight: 700; }
body.landing .ln-card-text { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ln-night-ink-soft); }

/* Icon chips */
body.landing .ln-ico {
    display: inline-grid; place-items: center;
    width: 52px; height: 52px; flex: 0 0 auto;
    border-radius: 14px;
    color: #fff;
}
body.landing .ln-ico svg { width: 24px; height: 24px; }
body.landing .ln-ico--purple { background: linear-gradient(135deg, #6a5cff, #322fb3); box-shadow: 0 10px 24px -10px rgba(106, 92, 255, 0.6); }
body.landing .ln-ico--cyan   { background: linear-gradient(135deg, #4cc8f0, #1e9cd7); box-shadow: 0 10px 24px -10px rgba(76, 200, 240, 0.55); }
body.landing .ln-ico--blue   { background: linear-gradient(135deg, #4172c4, #2a2580); box-shadow: 0 10px 24px -10px rgba(65, 114, 196, 0.55); }
body.landing .ln-ico--green  { background: linear-gradient(135deg, #3ddc7c, #1da851); box-shadow: 0 10px 24px -10px rgba(61, 220, 124, 0.5); }
body.landing .ln-ico--teal   { background: linear-gradient(135deg, #2dd4bf, #0e9384); box-shadow: 0 10px 24px -10px rgba(45, 212, 191, 0.5); }

/* ---------- Family members ---------- */
body.landing .ln-family {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}
body.landing .ln-grid-family { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { body.landing .ln-grid-family { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { body.landing .ln-grid-family { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }
body.landing .ln-member {
    padding: 1.9rem 1.4rem 1.5rem;
    border-radius: var(--ln-radius);
    border: 1px solid var(--ln-night-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    text-align: center;
    transition: transform 0.35s var(--ln-ease), border-color 0.35s var(--ln-ease), box-shadow 0.35s var(--ln-ease);
    will-change: transform;
}
body.landing .ln-member:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 200, 240, 0.4);
    box-shadow: 0 26px 52px -26px rgba(0, 0, 0, 0.65);
}
body.landing .ln-member-avatar {
    width: 104px; height: 104px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    padding: 3px;
    background: var(--ln-grad);
}
body.landing .ln-member-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--ln-night-card);
}
body.landing .ln-member-name { margin: 0 0 0.2rem; font-size: 1.08rem; font-weight: 700; }
body.landing .ln-member-name a { color: inherit; text-decoration: none; }
body.landing .ln-member-name a:hover { color: var(--ln-cyan); }
body.landing .ln-member-role { margin: 0 0 1.1rem; font-size: 0.9rem; color: var(--ln-night-ink-soft); }
body.landing .ln-member-actions { display: flex; justify-content: center; gap: 0.6rem; }
body.landing .ln-member-actions a {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--ln-night-line);
    color: var(--ln-night-ink);
    transition: transform 0.25s var(--ln-ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
body.landing .ln-member-actions a svg { width: 17px; height: 17px; }
body.landing .ln-member-actions a:hover {
    transform: translateY(-2px);
    background: var(--ln-brand);
    border-color: transparent;
    color: #fff;
}
body.landing .ln-member-actions a.is-wa:hover { background: #25d366; }
body.landing .ln-family-cta { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

/* ---------- Counters ---------- */
body.landing .ln-counters {
    padding-bottom: 0;
}
body.landing .ln-grid-counters { grid-template-columns: repeat(3, 1fr); justify-content: center; }
@media (max-width: 900px) { body.landing .ln-grid-counters { grid-template-columns: repeat(2, 1fr); justify-content: center; } }
body.landing .ln-counter {
    padding: 1.8rem 1.2rem;
    border-radius: var(--ln-radius);
    border: 1px solid var(--ln-night-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    text-align: center;
}
body.landing .ln-counter-ico { display: grid; place-items: center; margin-bottom: 0.9rem; color: var(--ln-cyan); }
body.landing .ln-counter-ico svg { width: 26px; height: 26px; }
body.landing .ln-counter-value {
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800; letter-spacing: -0.02em;
    line-height: 1;
}
body.landing .ln-counter-suffix { color: var(--ln-cyan); margin-inline-start: 2px; }
body.landing .ln-counter-label { margin: 0.5rem 0 0; font-size: 1.2rem; color: var(--ln-night-ink-soft); }

/* ---------- CTA ---------- */
body.landing .ln-cta {
    text-align: center;
    overflow: hidden;
}
body.landing .ln-cta::before {
    content: "";
    position: absolute; inset: auto -10% -60% -10%; height: 120%;
    background: radial-gradient(560px 320px at 50% 100%, rgba(76, 200, 240, 0.12), transparent 70%);
    pointer-events: none;
}
body.landing .ln-cta-title {
    margin: 0 auto 1.2rem;
    max-width: 21ch;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.08; font-weight: 600; letter-spacing: 1px;
    overflow-wrap: break-word;
    color: #2a95ad;
}
body.landing .ln-cta-title em {
    font-style: normal;
    color: inherit;
}
body.landing .ln-cta-actions {
    display: flex; flex-wrap: wrap; gap: 0.9rem;
    justify-content: center;
}

/* ============================================================
   FOOTER (scoped variant of shared footer markup)
   ============================================================ */
body.landing .ws-site-footer {
    background: var(--ln-night);
    border-top: 1px solid var(--ln-night-line);
    padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom, 0px));
}
body.landing .ws-site-footer .ws-site-footer-copyright p {
    margin: 0; color: var(--ln-night-ink-soft);
    font-size: 0.9rem; text-align: center;
}

/* Scroll-to-top (shared markup, landing styles) */
body.landing .scroll-top {
    position: fixed;
    right: clamp(1rem, 3vw, 1.8rem);
    bottom: calc(clamp(1rem, 3vw, 1.8rem) + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--ln-grad); color: #fff;
    box-shadow: 0 14px 30px -12px rgba(50, 47, 179, 0.7);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ln-ease), transform 0.3s var(--ln-ease), visibility 0.3s;
}
body.landing .scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
body.landing .scroll-top svg { width: 18px; height: 18px; }

/* ============================================================
   REVEAL DEFAULTS (content visible without JS; JS toggles)
   ============================================================ */
body.landing .ln-js [data-ln-reveal] { opacity: 0; transform: translateY(26px); }
body.landing .ln-js [data-ln-reveal].is-revealed { opacity: 1; transform: none; transition: opacity 0.8s var(--ln-ease), transform 0.8s var(--ln-ease); }
body.landing .ln-js [data-ln-split] .ln-split-inner {
    display: inline-block;
    opacity: 0; transform: translateY(0.6em) rotate(1.5deg);
}
body.landing .ln-js [data-ln-split] .ln-split-word { display: inline-block; }
body.landing .ln-js [data-ln-split].is-revealed .ln-split-inner {
    opacity: 1; transform: none;
    transition: opacity 0.7s var(--ln-ease), transform 0.7s var(--ln-ease);
}

/* Reduced motion: everything visible & static */
@media (prefers-reduced-motion: reduce) {
    body.landing .ln-js [data-ln-reveal],
    body.landing .ln-js [data-ln-split] .ln-split-inner {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    body.landing .ln-btn,
    body.landing .ln-card,
    body.landing .ln-member { transition: none; }
    body.landing .ln-btn:hover,
    body.landing .ln-card:hover,
    body.landing .ln-member:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 1024px) {
    body.landing .ln-section {
        padding-block: clamp(2.75rem, 6vw, 5rem);
    }
    body.landing .ln-section-head {
        margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
    }
    body.landing .ln-grid-counters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.landing .ln-container {
        padding-inline: clamp(1rem, 4vw, 1.5rem);
    }
    body.landing .ln-hero {
        min-height: auto;
        padding-top: clamp(2rem, 8vh, 4rem);
        padding-bottom: clamp(4rem, 12vh, 6rem);
    }
    body.landing .ln-hero-inner { text-align: center; }
    body.landing .ln-hero-title {
        font-size: clamp(2rem, 8.5vw, 2.85rem);
        line-height: 1.08;
    }
    body.landing .ln-hero-sub {
        font-size: clamp(0.98rem, 3.8vw, 1.1rem);
        margin-bottom: 1.6rem;
    }
    body.landing .ln-hero-actions,
    body.landing .ln-about-actions,
    body.landing .ln-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    body.landing .ln-hero-actions .ln-btn,
    body.landing .ln-about-actions .ln-btn,
    body.landing .ln-cta-actions .ln-btn {
        width: 100%;
    }
    body.landing .ln-h2 {
        font-size: clamp(1.65rem, 6vw, 2.2rem);
    }
    body.landing .ln-cta-title {
        max-width: none;
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    body.landing .ln-lead {
        font-size: clamp(0.95rem, 3.6vw, 1.05rem);
    }
    body.landing .ln-mini {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 1rem;
    }
    body.landing .ln-counter {
        padding: 1.35rem 1rem;
    }
    body.landing .ln-drift-bands {
        height: 72vh;
        min-height: 420px;
    }
    body.landing .ln-parallax-gallery {
        height: 58vh;
        min-height: 360px;
    }
    body.landing .ln-galaxy {
        height: 88vh;
        min-height: 500px;
    }
    body.landing .ln-hero-scrollhint {
        display: none;
    }
}

@media (max-width: 480px) {
    body.landing .ln-section {
        padding-block: clamp(2rem, 5vw, 3rem);
    }
    body.landing .ln-about {
        padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    }
    body.landing .ln-counters {
        padding-bottom: 0;
    }
    body.landing .ln-grid-counters {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
        justify-content: center;
    }
    body.landing .ln-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.92rem;
    }
    body.landing .ln-btn-lg {
        padding: 0.95rem 1.5rem;
        font-size: 0.98rem;
    }
    body.landing .ln-kicker {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }
    body.landing .ln-drift-bands {
        height: 56vh;
        min-height: 320px;
    }
    body.landing .ln-parallax-gallery {
        height: 48vh;
        min-height: 280px;
    }
    body.landing .ln-galaxy {
        height: 72vh;
        min-height: 400px;
    }
    body.landing .ws-site-footer {
        padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }
    body.landing .ws-site-footer .ws-site-footer-copyright p {
        font-size: 0.82rem;
        padding-inline: 1rem;
    }
}

@media (max-width: 360px) {
    .in-scenery .enter-btn {
        width: 112px;
        height: 112px;
        font-size: 11px;
        padding: 0 10px;
    }
    body.landing .ln-hero-title {
        font-size: 1.85rem;
    }
}

/* ============================================================
   FLOATING LOGOS ANIMATION
   ============================================================ */
body.landing .ln-floating-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

body.landing .ln-floating-logo {
    position: absolute;
    opacity: 0.6;
    filter: blur(0.5px);
    transition: opacity 0.3s ease;
}

body.landing .ln-floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Different sizes for variety */
body.landing .ln-floating-logo[data-float-index="0"],
body.landing .ln-floating-logo[data-float-index="5"],
body.landing .ln-floating-logo[data-float-index="10"],
body.landing .ln-floating-logo[data-float-index="15"] {
    width: 80px;
    height: 80px;
}

body.landing .ln-floating-logo[data-float-index="1"],
body.landing .ln-floating-logo[data-float-index="6"],
body.landing .ln-floating-logo[data-float-index="11"],
body.landing .ln-floating-logo[data-float-index="16"] {
    width: 60px;
    height: 60px;
}

body.landing .ln-floating-logo[data-float-index="2"],
body.landing .ln-floating-logo[data-float-index="7"],
body.landing .ln-floating-logo[data-float-index="12"],
body.landing .ln-floating-logo[data-float-index="17"] {
    width: 100px;
    height: 100px;
}

body.landing .ln-floating-logo[data-float-index="3"],
body.landing .ln-floating-logo[data-float-index="8"],
body.landing .ln-floating-logo[data-float-index="13"],
body.landing .ln-floating-logo[data-float-index="18"] {
    width: 70px;
    height: 70px;
}

body.landing .ln-floating-logo[data-float-index="4"],
body.landing .ln-floating-logo[data-float-index="9"],
body.landing .ln-floating-logo[data-float-index="14"],
body.landing .ln-floating-logo[data-float-index="19"] {
    width: 90px;
    height: 90px;
}

/* Smaller ones */
body.landing .ln-floating-logo[data-float-index="20"],
body.landing .ln-floating-logo[data-float-index="21"] {
    width: 50px;
    height: 50px;
}



/* Responsive floating logos */
@media (max-width: 768px) {
    body.landing .ln-floating-logo {
        opacity: 0.4;
    }
    
    body.landing .ln-floating-logo[data-float-index="0"],
    body.landing .ln-floating-logo[data-float-index="5"],
    body.landing .ln-floating-logo[data-float-index="10"],
    body.landing .ln-floating-logo[data-float-index="15"] {
        width: 50px;
        height: 50px;
    }
    
    body.landing .ln-floating-logo[data-float-index="2"],
    body.landing .ln-floating-logo[data-float-index="7"],
    body.landing .ln-floating-logo[data-float-index="12"],
    body.landing .ln-floating-logo[data-float-index="17"] {
        width: 60px;
        height: 60px;
    }
    
    body.landing .ln-floating-logo[data-float-index="4"],
    body.landing .ln-floating-logo[data-float-index="9"],
    body.landing .ln-floating-logo[data-float-index="14"],
    body.landing .ln-floating-logo[data-float-index="19"] {
        width: 55px;
        height: 55px;
    }
    
    body.landing .ln-floating-logo[data-float-index="20"],
    body.landing .ln-floating-logo[data-float-index="21"] {
        width: 35px;
        height: 35px;
    }
}

/* ============================================================
   INFINITE DRIFT – 8 Horizontal Bands
   ============================================================ */
body.landing .ln-drift-bands {
    position: relative;
    width: 100%;
    height: 110vh;
    min-height: 720px;
    padding-block: 0;
    padding-inline: 0;
    overflow: hidden;
    background: #0a1a2a;
    touch-action: pan-y;
}
body.landing .ln-drift-bands__canvas {
    position: absolute;
    inset: 0;
}
body.landing .ln-drift-bands__canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* ============================================================
   INFINITE PARALLAX GALLERY – 5-Layer Scrolling Image Wall
   ============================================================ */
body.landing .ln-parallax-gallery {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background: #111;
    color: #fff;
    touch-action: pan-y;
    pointer-events: none;
}
body.landing .ln-parallax-gallery__canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
body.landing .ln-parallax-gallery__canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: auto;
    backface-visibility: hidden;
}
body.landing .ln-parallax-gallery__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    color: #fff;
    font-family: system-ui, Segoe UI, Roboto, sans-serif;
    font-size: 14px;
    pointer-events: none;
}

/* ============================================================
   INTERACTIVE 3D GALAXY – Particles and glow effects
   ============================================================ */
body.landing .ln-galaxy {
    position: relative;
    width: 100%;
    height: 120vh;
    min-height: 720px;
    padding: 0;
    overflow: hidden;
    background: #000;
    cursor: grab;
    touch-action: pan-y;
    z-index: 2;
}
body.landing .ln-galaxy:active {
    cursor: grabbing;
}
body.landing .ln-galaxy__canvas {
    position: absolute;
    inset: 0;
}
body.landing .ln-galaxy__canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}
