    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

body {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.dome {
    width: 77vw;
    aspect-ratio: 2000 / 480;
    display: block;
    position: relative;
    z-index: 3;
    overflow: visible;
}

.dome-top {
    margin-top: 0;
    transform: translateY(0);
    transition:
        transform 1s cubic-bezier(0.55, 0, 0.2, 1),
        opacity   0.9s cubic-bezier(0.55, 0, 0.2, 1);
}

.dome-bottom {
    transform: translateY(0) scaleY(-1);
    transition:
        transform 1s cubic-bezier(0.55, 0, 0.2, 1),
        opacity   0.9s cubic-bezier(0.55, 0, 0.2, 1);
}

body.exiting .dome-top {
    /* exits upward, off the top of the viewport */
    transform: translateY(-130vh);
    opacity: 0;
}
body.exiting .dome-bottom {
    /* exits downward, off the bottom of the viewport */
    transform: translateY(130vh) scaleY(-1);
    opacity: 0;
}
body.exiting .mission {
    /* plain fade — no translate, just opacity */
    opacity: 0;
}
body.exiting .streams {
    opacity: 0;
}

.mission {
    transition:
        opacity   0.7s cubic-bezier(0.55, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.55, 0, 0.2, 1);
}

.streams {
    transition: opacity 0.9s cubic-bezier(0.55, 0, 0.2, 1);
}

.dome path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.78);
    stroke-width: 0.7;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.streams {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    filter: blur(18px);
}

.mission {
    text-align: center;
    margin: auto 0;
}

.mission p {
    margin: 0;
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(3rem, 9.5vw, 9rem);
    letter-spacing: 0.005em;
    line-height: 1;
    color: #ffffff;
}

.explore-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.9em;
    margin-top: 1.8rem;
    padding: 0.85em 1.6em;
    background: transparent;
    color: #ffffff;
    border: none;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: clamp(0.72rem, 0.85vw, 0.9rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.25s ease;
    opacity: 0.85;
}

.explore-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    --c: #ffffff;
    --len: 12px;
    --thk: 1.2px;
    background:
        linear-gradient(var(--c), var(--c)) top left / var(--len) var(--thk) no-repeat,
        linear-gradient(var(--c), var(--c)) top left / var(--thk) var(--len) no-repeat,
        linear-gradient(var(--c), var(--c)) top right / var(--len) var(--thk) no-repeat,
        linear-gradient(var(--c), var(--c)) top right / var(--thk) var(--len) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / var(--len) var(--thk) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / var(--thk) var(--len) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / var(--len) var(--thk) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / var(--thk) var(--len) no-repeat;
}

.explore-btn:hover {
    opacity: 1;
}

.explore-btn:hover::before {
    opacity: 1;
}

.explore-btn .arrow {
    width: 1.1em;
    height: 1.1em;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.explore-btn:hover .arrow {
    transform: translateX(5px);
}

.dome-window {
    fill: rgba(255, 255, 255, 0.04);
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 0.7;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    /* No transition in the base state — leaving hover snaps back instantly
       so no white afterglow lingers. */
}
.dome-window:hover {
    fill: rgba(255, 255, 255, 0.18);
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 1.1;
    /* Transition only fires on hover-in (smooth fade-up). */
    transition:
        fill         0.40s cubic-bezier(0.2, 0.8, 0.2, 1),
        stroke       0.40s cubic-bezier(0.2, 0.8, 0.2, 1),
        stroke-width 0.40s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    max-width: min(320px, calc(100vw - 32px));
    padding: 1rem 1.25rem;
    background: rgba(10, 12, 22, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition:
        opacity   0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 30;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.faq-tooltip.visible { opacity: 1; }

.yes-btn {
    position: fixed;
    left: 50%;
    /* below the rasterized "CAN YOU?" which sits at viewport center */
    top: 68%;
    margin-top: 0;            /* override .explore-btn's default */
    transform: translate(-50%, 0);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yes-btn.visible {
    opacity: 0.85;
    pointer-events: auto;
}
.yes-btn:hover { opacity: 1; }
.faq-tooltip .faq-q {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.faq-tooltip .faq-a {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

/* Phones / tablets: widen the domes so they read with the same presence
   they have on desktop. Edges spill past the viewport — body already
   clips overflow, so no horizontal scroll. */
@media (max-width: 640px) {
    .dome { width: 135vw; }
}
@media (max-width: 900px) and (min-width: 641px) {
    .dome { width: 105vw; }
}
