/* ==================================================================
   SPACE.EX
   Cool night-sky base, one warm accent: sunlight.
   ================================================================== */

:root {
    --space: #070b1a;
    --space-2: #0c1229;
    --panel: #111938;
    --line: rgba(232, 236, 248, 0.12);
    --line-strong: rgba(232, 236, 248, 0.24);
    --text: #e8ecf8;
    --muted: #a3acd0;
    --sun: #f5b84b;
    --sun-deep: #e2803a;
    --error: #ff8a7a;

    --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.25rem;
    --step-2: 1.6rem;
    --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
    --step-4: clamp(3rem, 1.6rem + 7vw, 7.5rem);

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header-h: 4.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--space);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--sun);
    text-underline-offset: 0.2em;
}

a:hover {
    color: #ffd38a;
}

:focus-visible {
    outline: 2px solid var(--sun);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(100% - 2 * var(--gutter), 72rem);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--sun);
    color: var(--space);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Background stars (drawn by stars.js) */
.starfield {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button-primary {
    background: var(--sun);
    color: #1a1204;
}

.button-primary:hover {
    background: #ffcb6b;
    color: #1a1204;
}

.button-ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(7, 11, 26, 0.35);
}

.button-ghost:hover {
    border-color: var(--text);
    color: var(--text);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
}

.icon-button:hover {
    border-color: var(--line-strong);
}

.icon-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.text-button {
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-weight: 500;
}

.text-button:not(:disabled):hover {
    color: var(--sun);
}

.text-button:disabled {
    cursor: default;
    opacity: 0.55;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background-color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.header.scrolled,
.header:has(.nav-links.open),
.header:has(.search-panel:not([hidden])) {
    background: rgba(7, 11, 26, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: var(--header-h);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--sun);
}

.logo:hover {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a[aria-current] {
    color: var(--text);
    background: rgba(232, 236, 248, 0.08);
}

.nav-tools {
    display: flex;
    gap: 0.25rem;
}

.hamburger {
    display: none;
    gap: 5px;
    align-content: center;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search */
.search-panel {
    padding: 0 0 1.25rem;
}

.search-panel input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--space-2);
    font-size: var(--step-1);
}

.search-panel input::placeholder {
    color: #7880a6;
}

.search-panel input:focus-visible {
    outline-offset: 0;
}

.search-results {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0;
    list-style: none;
}

.search-results button {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
}

.search-results button:hover,
.search-results button:focus-visible {
    background: var(--panel);
}

.search-results small {
    color: var(--muted);
}

.search-empty {
    padding: 0.7rem 1rem;
    color: var(--muted);
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 10vh, 7rem);
    overflow: hidden;
    isolation: isolate;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 11, 26, 0.85) 0%, rgba(7, 11, 26, 0.35) 55%, rgba(7, 11, 26, 0.1) 100%),
        linear-gradient(0deg, var(--space) 0%, rgba(7, 11, 26, 0) 35%);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.035em;
    max-width: 12ch;
}

.hero-subtitle {
    max-width: 38ch;
    margin-top: 1.75rem;
    font-size: var(--step-1);
    line-height: 1.5;
    color: #cfd5ee;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

/* The page's one choreographed entrance */
@media (prefers-reduced-motion: no-preference) {
    .hero-title,
    .hero-subtitle,
    .hero-cta {
        animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .hero-subtitle { animation-delay: 0.15s; }
    .hero-cta { animation-delay: 0.3s; }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
}

.video-toggle {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(4rem, 10vh, 7rem);
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(7, 11, 26, 0.5);
}

.video-toggle svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.section {
    padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section-header {
    max-width: 40rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin-top: 1rem;
    color: var(--muted);
    font-size: var(--step-1);
    line-height: 1.5;
    max-width: 52ch;
}

/* ------------------------------------------------------------------
   Planets: the strip
   ------------------------------------------------------------------ */

.orbit-strip {
    --max: clamp(72px, 10vw, 132px);
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
    padding: 1rem 1rem 1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    min-height: calc(var(--max) + 6rem);
}

/* Orbit line running through all the planets */
.orbit-strip::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(1rem + var(--max) / 2);
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 184, 75, 0.6), var(--line) 30%, var(--line));
    min-width: 100%;
}

.sun {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-start;
    width: clamp(48px, 6vw, 84px);
    height: var(--max);
    margin-top: 0;
}

.sun::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: calc(var(--max) + 1.5rem);
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 70% 50%, #fff3cf 0%, var(--sun) 35%, var(--sun-deep) 68%, rgba(226, 128, 58, 0) 72%);
    filter: drop-shadow(0 0 24px rgba(245, 184, 75, 0.45));
}

.planet-tab {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-start;
    gap: 0.1rem;
    min-width: 4.5rem;
    padding: 0;
    border: 0;
    background: none;
}

.planet-slot {
    display: grid;
    place-items: center;
    height: var(--max);
    margin-bottom: 0.5rem;
}

.planet-disc {
    position: relative;
    display: block;
    width: calc(var(--d) * var(--max));
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset -0.35em -0.25em 0.8em rgba(0, 0, 0, 0.55);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.planet-disc.ringed::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 175%;
    height: 42%;
    border: 3px solid rgba(232, 214, 168, 0.75);
    border-left-color: rgba(232, 214, 168, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
}

.planet-tab::after {
    /* Selection ring */
    content: '';
    position: absolute;
    left: 50%;
    top: calc(var(--max) / 2);
    width: calc(var(--d) * var(--max) + 14px);
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: border-color 0.2s;
}

.planet-tab:hover .planet-disc {
    transform: scale(1.08);
}

.planet-tab[aria-selected="true"]::after {
    border-color: var(--sun);
}

.planet-label {
    font-weight: 600;
    color: var(--muted);
}

.planet-au {
    font-size: var(--step--1);
    color: #7880a6;
    font-variant-numeric: tabular-nums;
}

.planet-tab[aria-selected="true"] .planet-label,
.planet-tab:hover .planet-label {
    color: var(--text);
}

.planet-tab:focus-visible {
    outline: none;
}

.planet-tab:focus-visible .planet-label {
    outline: 2px solid var(--sun);
    outline-offset: 4px;
    border-radius: 4px;
}

.scale-note {
    margin-top: 0.75rem;
    font-size: var(--step--1);
    color: #7880a6;
    max-width: 70ch;
}

/* ------------------------------------------------------------------
   Planets: the detail panel
   ------------------------------------------------------------------ */

.planet-panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(17, 25, 56, 0.9), rgba(12, 18, 41, 0.9));
}

.planet-panel.is-changing > * {
    animation: swap 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes swap {
    from {
        opacity: 0;
        transform: translateX(0.75rem);
    }
}

.planet-figure {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #03050d;
}

.planet-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.planet-order {
    color: var(--sun);
    font-weight: 500;
    font-size: var(--step--1);
}

.planet-name {
    margin-top: 0.25rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.planet-description {
    margin-top: 0.75rem;
    color: #cfd5ee;
    font-size: 1.075rem;
    max-width: 52ch;
}

.planet-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.planet-stats dt {
    font-size: var(--step--1);
    color: var(--muted);
}

.planet-stats dd {
    margin-top: 0.15rem;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.planet-stats small {
    display: block;
    font-weight: 400;
    font-size: var(--step--1);
    color: var(--sun);
}

.planet-details {
    margin-top: 1.5rem;
    color: var(--muted);
    max-width: 60ch;
}

.planet-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------
   Galaxies
   ------------------------------------------------------------------ */

.galaxy-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: repeat(3, minmax(12rem, auto));
    gap: 1rem;
}

.galaxy-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 12rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--space-2);
    text-align: left;
    isolation: isolate;
}

.galaxy-card.featured {
    grid-row: 1 / -1;
    min-height: 32rem;
}

.galaxy-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.galaxy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(7, 11, 26, 0.95) 0%, rgba(7, 11, 26, 0.7) 45%, rgba(7, 11, 26, 0.1) 90%);
}

.galaxy-card:hover img {
    transform: scale(1.04);
}

.galaxy-card:hover {
    border-color: var(--line-strong);
}

.galaxy-card:focus-visible {
    outline-offset: 2px;
    border-radius: 18px;
}

.galaxy-card-body {
    display: grid;
    gap: 0.3rem;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
}

.galaxy-card-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-1);
    letter-spacing: -0.01em;
}

.featured .galaxy-card-title {
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
}

.galaxy-card-meta {
    color: var(--muted);
    font-size: var(--step--1);
}

.galaxy-card-text {
    margin-top: 0.5rem;
    max-width: 44ch;
    color: #cfd5ee;
}

.galaxy-card-action {
    margin-top: 0.5rem;
    color: var(--sun);
    font-weight: 600;
    font-size: var(--step--1);
}

/* Galaxy dialog */
.galaxy-dialog {
    width: min(100% - 2rem, 62rem);
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: var(--space-2);
    color: var(--text);
    overflow: auto;
    overscroll-behavior: contain;
}

.galaxy-dialog::backdrop {
    background: rgba(3, 5, 13, 0.75);
    backdrop-filter: blur(4px);
}

.galaxy-dialog[open] {
    animation: dialog-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.98);
    }
}

.dialog-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.dialog-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(7, 11, 26, 0.7);
    border-color: var(--line-strong);
}

.dialog-figure {
    min-height: 100%;
    background: #03050d;
}

.dialog-figure img {
    width: 100%;
    height: 100%;
    min-height: 18rem;
    object-fit: cover;
}

.dialog-body {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.dialog-body h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    padding-right: 2.5rem;
}

.dialog-lead {
    margin-top: 0.75rem;
    color: #cfd5ee;
}

.dialog-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
    margin: 1.5rem 0;
    padding: 1.25rem 0;
    border-block: 1px solid var(--line);
}

.dialog-facts dt {
    font-size: var(--step--1);
    color: var(--muted);
}

.dialog-facts dd {
    font-weight: 600;
}

.dialog-body h3 {
    margin-top: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sun);
}

.dialog-body h3 + p {
    margin-top: 0.25rem;
    color: #cfd5ee;
}

.dialog-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.75rem;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------ */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contact-details {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.contact-details dt {
    font-size: var(--step--1);
    color: var(--muted);
}

.contact-details dd {
    font-size: 1.1rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact-details a {
    color: var(--text);
}

.contact-details a:hover {
    color: var(--sun);
}

.contact-form {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(12, 18, 41, 0.85);
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-weight: 500;
}

.field input,
.field textarea,
.newsletter input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--space);
    transition: border-color 0.2s;
}

.field textarea {
    resize: vertical;
    min-height: 8rem;
}

.field input:hover,
.field textarea:hover {
    border-color: rgba(232, 236, 248, 0.4);
}

.field input:focus-visible,
.field textarea:focus-visible,
.newsletter input:focus-visible {
    outline: 2px solid var(--sun);
    outline-offset: 0;
    border-color: transparent;
}

[aria-invalid="true"] {
    border-color: var(--error) !important;
}

.field-error {
    min-height: 0;
    font-size: var(--step--1);
    color: var(--error);
}

.field-error:empty {
    display: none;
}

.contact-form .button {
    justify-self: start;
}

.form-status {
    color: var(--sun);
    font-size: var(--step--1);
}

.form-status:empty {
    display: none;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
    padding-top: clamp(3.5rem, 7vw, 5rem);
    border-top: 1px solid var(--line);
    background: rgba(7, 11, 26, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.4fr;
    gap: 2.5rem;
}

.footer-brand p {
    margin-top: 0.75rem;
    color: var(--muted);
    max-width: 24ch;
}

.site-footer h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-links ul {
    display: grid;
    gap: 0.4rem;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

.newsletter p {
    color: var(--muted);
}

.newsletter-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-row input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    padding-inline: 1.1rem;
}

.newsletter .form-status {
    margin-top: 0.6rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-top: 3.5rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: var(--step--1);
    color: #7880a6;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
    .planet-panel,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .planet-figure {
        aspect-ratio: 16 / 9;
    }

    .galaxy-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .galaxy-card.featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 26rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .hamburger {
        display: inline-grid;
    }

    .nav {
        gap: 1rem;
    }

    .nav-tools {
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem var(--gutter) 1.25rem;
        background: rgba(7, 11, 26, 0.96);
        border-bottom: 1px solid var(--line);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.9rem 0;
        border-radius: 0;
        font-size: var(--step-1);
        border-bottom: 1px solid var(--line);
    }

    .nav-links a[aria-current] {
        background: none;
        color: var(--sun);
    }

    .hero {
        align-items: flex-end;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, var(--space) 0%, rgba(7, 11, 26, 0.55) 55%, rgba(7, 11, 26, 0.3) 100%);
    }

    .hero-cta .button {
        flex: 1 1 100%;
    }

    .video-toggle {
        top: calc(var(--header-h) + 0.75rem);
        bottom: auto;
    }

    .orbit-strip {
        --max: 84px;
        margin-right: calc(var(--gutter) * -1);
        padding-right: var(--gutter);
    }

    .planet-tab {
        flex: 0 0 auto;
        min-width: 5.25rem;
    }

    .planet-stats,
    .dialog-facts {
        grid-template-columns: 1fr 1fr;
    }

    .galaxy-grid {
        grid-template-columns: 1fr;
    }

    .galaxy-card,
    .galaxy-card.featured {
        min-height: 18rem;
    }

    .dialog-inner {
        grid-template-columns: 1fr;
    }

    .dialog-figure img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
