.why-video__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding-bottom: 0;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.why-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Asymmetrical Layout Modifier --- */
/* Forces visual assets to dominate and enables bidirectional sticky scrolling */
.grid-asym {
    grid-template-columns: 4fr 1fr;
    align-items: start;
}

/* Allow whichever column is shorter to stick gracefully alongside the taller scrolling column */
.grid-asym > a,
.grid-asym .arch-copy {
    position: sticky;
    top: calc(var(--nav-height) + 30px);
    height: fit-content;
}

/* Internal gap adjustments for text stack */
.grid-asym .arch-copy {
    justify-content: flex-start;
    gap: 24px;
}

/* Ground the architecture diagram */
.grid-asym .diagram-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}
.grid-asym .diagram-placeholder img {
    max-height: 100%;
}

/* Kill the 16:9 CSS Hack for the Video */
.grid-asym .why-video__embed {
    padding-bottom: 0;
    height: 100%;
    min-height: 380px; /* Safety net so it doesn't collapse */
    display: flex;
}
.grid-asym .why-video__embed iframe {
    position: relative;
}

/* Mobile Fallback */
@media (max-width: 1180px) {
    .grid-asym {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .grid-asym > a,
    .grid-asym .arch-copy {
        position: relative;
        top: auto;
    }
    .grid-asym .why-video__embed {
        height: 0;
        padding-bottom: 56.25%; /* Restore the 16:9 ratio for mobile */
    }
    .grid-asym .why-video__embed iframe {
        position: absolute;
    }
}


/* Video embed ratio box */
.why-video__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding-bottom: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.why-video__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Global Presence is now handled by partials/map.css */

/* ============================================================
   MOBILE APP SHOWCASE
   ============================================================ */
.mobile-app-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 20px;
    margin-top: 22px;
}

.mobile-app-showcase,
.mobile-app-copy {
    position: relative;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 46px rgba(0,0,0,.18);
    overflow: hidden;
}

.mobile-app-showcase {
    background:
        radial-gradient(circle at 18% 22%, rgba(255,102,0,.12), transparent 26%),
        radial-gradient(circle at 80% 18%, rgba(99,169,255,.12), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(141,99,255,.12), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
}

.mobile-app-stage {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-orbit {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 40px rgba(255,102,0,.06);
}
.mobile-orbit::before,
.mobile-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 34px;
    border: 1px solid rgba(255,255,255,.05);
}
.mobile-orbit::after { inset: 74px; }

.mobile-node {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff8a33, #ff6600);
    box-shadow: 0 0 18px rgba(255,102,0,.45);
}
.mobile-node.blue   { background: linear-gradient(180deg, #8cc1ff, #63a9ff); box-shadow: 0 0 18px rgba(99,169,255,.38); }
.mobile-node.purple { background: linear-gradient(180deg, #c7b2ff, #8d63ff); box-shadow: 0 0 18px rgba(141,99,255,.38); }
.mobile-node.n1 { top: 24px;  left: 50%; transform: translateX(-50%); }
.mobile-node.n2 { right: 46px; top: 94px; }
.mobile-node.n3 { right: 24px; bottom: 120px; }
.mobile-node.n4 { left: 62px;  bottom: 54px; }
.mobile-node.n5 { left: 30px;  top: 128px; }

.mobile-phone {
    position: relative;
    width: 250px; height: 500px;
    border-radius: 38px;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(180deg, rgba(8,17,31,.96), rgba(5,9,18,.96));
    box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 34px rgba(255,102,0,.10);
    padding: 14px;
}
.mobile-phone::before {
    content: "";
    position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}

.mobile-screen {
    width: 100%; height: 100%;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 20% 18%, rgba(255,102,0,.18), transparent 26%),
        radial-gradient(circle at 86% 14%, rgba(99,169,255,.16), transparent 28%),
        linear-gradient(180deg, #0a1324 0%, #0b162a 54%, #09111e 100%);
    border: 1px solid rgba(255,255,255,.06);
}

.mobile-app-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; }

.mobile-points { display: grid; gap: 14px; }
.mobile-point {
    padding: 16px 18px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
}
.mobile-point strong { display: block; margin-bottom: 5px; }
.mobile-point p { margin: 0; color: var(--muted, rgba(232,239,255,.72)); }

.mobile-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
    min-width: 180px;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    box-shadow: 0 12px 22px rgba(0,0,0,.16);
    text-decoration: none; color: inherit;
    transition: .24s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,102,0,.18); }
.store-badge svg   { width: 28px; height: 28px; fill: #fff; flex: 0 0 auto; }
.store-badge small { display: block; color: rgba(255,255,255,.62); }
.store-badge strong{ display: block; }

@media (max-width: 1180px) {
    .mobile-app-grid { grid-template-columns: 1fr; }
    .mobile-app-stage { min-height: 360px; }
    .mobile-orbit { width: 300px; height: 300px; }
    .mobile-phone { width: 220px; height: 440px; }
    .store-badge { min-width: 100%; }
}

/* ============================================================
   HERO VIDEO PRELOADER
   ============================================================ */
.hero-scroll-wrapper {
    height: 100vh;
    height: 100dvh;
    width: 100%;
}

@media (max-width: 900px) {
    .hero-scroll-wrapper {
        height: auto;
        min-height: 100dvh;
    }
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background-color: #040812; /* Fallback for browsers that don't support object-fit */
    will-change: transform, opacity;
    transform: translateZ(0);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__content {
    padding: 110px 0 70px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    margin-bottom: 22px;
}

.hero__heading {
    margin: 22px auto 16px;
    max-width: 1000px;
    font-size: clamp(44px, 6.5vw, 78px);
    line-height: .98;
    letter-spacing: -.05em;
}

.hero__subheading {
    max-width: 680px;
    margin: 0 auto 28px;
    color: var(--muted, rgba(232,239,255,.72));
    font-size: 18px;
    line-height: 1.85;
}

.hero__actions {
    justify-content: center;
}

/* Premium Brand Spinner */
.hero-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: #ff6600; /* WISPGate Orange */
    border-right-color: #63a9ff; /* WISPGate Blue */
    animation: spin-hero 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.2);
}

.hero-spinner-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg); /* Prevents a transparent gap */
    z-index: 5;
    transition: opacity 0.4s var(--ease);
}

.hero-spinner-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}
.hero-spinner-wrapper.hidden .hero-spinner {
    animation: none !important;
}

@keyframes spin-hero {
    to { transform: rotate(360deg); }
}

    /* --- Video Facade Architecture --- */
.yt-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}
.yt-facade-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.yt-facade:hover .yt-facade-thumb {
    opacity: 1; /* Brightens on hover */
}
.yt-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    color: rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}
.yt-facade:hover .yt-facade-play {
    color: #ff0000; /* YouTube Red on hover */
}
/* When the iframe is injected, make sure it fills the space */
.yt-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Standardized fluid minimal padding for home page content tiers */
.home-section {
    padding: clamp(32px, 5vh, 56px) 0;
}