/* Galileo project site — Copyright (C) 2025-2026 Gord Tulloch. GPL-3.0-or-later. */

:root {
  --bg: #060912;
  --bg-2: #0a1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e8edf7;
  --muted: #97a3ba;
  --teal: #2ec4b6;
  --teal-deep: #178f83;
  --gold: #e8b653;
  --coral: #f28b6a;
  --violet: #8b7cf6;
  --star: 232, 237, 247;
  --glow-1: rgba(46, 196, 182, 0.16);
  --glow-2: rgba(139, 124, 246, 0.16);
  --glow-3: rgba(232, 182, 83, 0.10);
  --img-filter: none;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

/* Red "night vision" theme — preserves dark adaptation, like an observatory red light. */
:root[data-theme="night"] {
  --bg: #0b0304;
  --bg-2: #120507;
  --surface: rgba(255, 60, 40, 0.05);
  --surface-2: rgba(255, 60, 40, 0.09);
  --border: rgba(255, 90, 70, 0.16);
  --border-strong: rgba(255, 90, 70, 0.3);
  --text: #ff9d8f;
  --muted: #c2695e;
  --teal: #ff5a48;
  --teal-deep: #c4301f;
  --gold: #ff8a6b;
  --coral: #ff6f5a;
  --violet: #d4483a;
  --star: 255, 120, 100;
  --glow-1: rgba(255, 60, 40, 0.14);
  --glow-2: rgba(200, 40, 30, 0.14);
  --glow-3: rgba(255, 90, 60, 0.08);
  --img-filter: grayscale(1) sepia(1) hue-rotate(-52deg) saturate(3.2) brightness(0.82);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}
img { max-width: 100%; height: auto; display: block; filter: var(--img-filter); transition: filter 0.4s; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--mono); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #04110f; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn[aria-pressed="true"] { color: var(--teal); border-color: var(--teal); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
  cursor: pointer; transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); background: var(--surface-2); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-color: transparent; color: #031412;
  box-shadow: 0 10px 30px -10px var(--teal);
}
:root[data-theme="night"] .btn-primary { color: #1a0403; }
.btn-primary:hover { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); box-shadow: 0 14px 36px -10px var(--teal); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 18% 12%, var(--glow-1), transparent 70%),
    radial-gradient(50% 45% at 85% 22%, var(--glow-2), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, var(--glow-3), transparent 70%);
}
.hero-logo { width: min(440px, 78%); margin: 0 auto 8px; filter: var(--img-filter) drop-shadow(0 12px 50px rgba(80, 90, 255, 0.35)); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 750; margin: 22px auto 0; max-width: 22ch; text-wrap: balance; }
.grad {
  background: linear-gradient(100deg, var(--gold) 0%, var(--coral) 50%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 26px; color: var(--muted); font-size: 0.9rem; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; }
.platforms span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

.window {
  position: relative; margin-top: clamp(40px, 6vw, 64px);
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong);
  background: #0e161b; box-shadow: var(--shadow), 0 0 120px -30px var(--teal);
  text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ffffff26; }
.window-bar b { margin-left: 10px; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.window img { width: 100%; }
.hero-window { max-width: 1040px; margin-inline: auto; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.eyebrow { color: var(--teal); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 720; margin-top: 12px; text-wrap: balance; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.1rem; text-wrap: pretty; }
.band { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 85%, transparent) 12%, color-mix(in srgb, var(--bg-2) 85%, transparent) 88%, transparent); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }

/* Why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why .card .num {
  font-size: 0.85rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em;
  display: inline-block; margin-bottom: 14px;
}
.why h3 { font-size: 1.4rem; margin-bottom: 12px; }
.why p { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature:hover { transform: translateY(-4px); }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.98rem; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; border: 1px solid;
}
.tag.ok { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, transparent); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.tag.wip { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.tag.plan { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, transparent); background: color-mix(in srgb, var(--violet) 10%, transparent); }

/* Spotlight rows */
.spot { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.spot + .spot { margin-top: clamp(56px, 8vw, 96px); }
.spot.flip { grid-template-columns: 1.15fr 0.85fr; }
.spot.flip .spot-text { order: 2; }
.spot-text h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 720; margin: 12px 0 16px; text-wrap: balance; }
.spot-text p { color: var(--muted); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: 0.98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 18%, transparent) center / 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%232ec4b6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
}
.zoomable { cursor: zoom-in; }
.zoomable img { transition: transform 0.5s; }
.zoomable:hover img { transform: scale(1.02); }

/* Gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.tab {
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #031412; background: var(--teal); border-color: var(--teal); }
:root[data-theme="night"] .tab[aria-selected="true"] { color: #1a0403; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  cursor: zoom-in; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; color: inherit; display: block;
}
.shot:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); text-decoration: none; }
a.window { display: block; color: inherit; }
.spot .window { margin-top: 0; }
a.window:hover { text-decoration: none; }
.shot[hidden] { display: none; }
.shot .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #0e161b; }
.shot .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.5s; }
.shot:hover .thumb img { transform: scale(1.04); }
.shot .cap { padding: 14px 18px 16px; border-top: 1px solid var(--border); }
.shot .cap strong { display: block; font-size: 1rem; }
.shot .cap span { color: var(--muted); font-size: 0.88rem; }

/* Lightbox */
dialog.lightbox {
  width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--border-strong);
  border-radius: 14px; background: var(--bg-2); color: var(--text); overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(2, 4, 10, 0.86); backdrop-filter: blur(6px); }
.lb-body { display: flex; flex-direction: column; max-height: 94vh; }
.lb-img { overflow: auto; background: #0e161b; }
.lb-img img { width: 100%; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--border); }
.lb-bar p { color: var(--muted); font-size: 0.95rem; }
.lb-bar strong { color: var(--text); margin-right: 8px; }
.lb-btns { display: flex; gap: 8px; flex: none; }

/* Architecture */
.arch { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.arch-text h3 { font-size: 1.15rem; margin: 26px 0 6px; }
.arch-text h3:first-of-type { margin-top: 22px; }
.arch-text p { color: var(--muted); font-size: 0.98rem; }
.stack { display: grid; gap: 10px; }
.layer { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.layer > small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.85rem; padding: 5px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.layer.core { border-color: color-mix(in srgb, var(--teal) 45%, transparent); background: color-mix(in srgb, var(--teal) 7%, transparent); box-shadow: 0 0 60px -25px var(--teal); }
.layer.core > small { color: var(--teal); }
.bus {
  text-align: center; font-family: var(--mono); font-size: 0.82rem; color: var(--gold);
  border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 10px; padding: 9px; background: color-mix(in srgb, var(--gold) 6%, transparent);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arrow { text-align: center; color: var(--muted); font-size: 0.8rem; line-height: 1; margin: -2px 0; }

/* Observatory model */
.obs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.obs .card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.obs .card p { color: var(--muted); font-size: 0.96rem; }
.obs .card .lvl { font-family: var(--mono); font-size: 0.78rem; color: var(--gold); display: block; margin-bottom: 10px; }

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road .card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 16px; }
.road ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.road li { color: var(--muted); font-size: 0.97rem; padding-left: 18px; position: relative; }
.road li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.road li b { color: var(--text); font-weight: 600; }
.road .now h3 { color: var(--teal); }
.road .next h3 { color: var(--gold); }
.road .later h3 { color: var(--violet); }
.note { margin-top: 26px; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* Get started */
.start { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
}
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 0.97rem; }
.term { border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; background: #050810; box-shadow: var(--shadow); }
:root[data-theme="night"] .term { background: #080203; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--border); }
.term-tabs { display: flex; gap: 4px; }
.term-tabs button {
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 8px;
}
.term-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); }
.copy { font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: color 0.2s; }
.copy:hover { color: var(--text); }
.term pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 0.9rem; line-height: 1.8; color: #cfd8ea; }
:root[data-theme="night"] .term pre { color: #ff9d8f; }
.term pre[hidden] { display: none; }
.term .c { color: #6b7893; }
.term .p { color: var(--teal); user-select: none; }
.reqs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Family */
.family { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.family .card { padding: 22px; display: flex; flex-direction: column; gap: 8px; color: inherit; }
.family .card:hover { text-decoration: none; transform: translateY(-4px); }
.family h3 { font-size: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.family h3 svg { width: 16px; height: 16px; color: var(--muted); }
.family p { color: var(--muted); font-size: 0.93rem; }
.family .how { margin-top: auto; padding-top: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

.stackline { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 44px; }

/* Test bed */
.testbed { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 20px; border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, transparent), color-mix(in srgb, var(--violet) 8%, transparent)); }
.testbed h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 720; margin: 10px 0 14px; }
.testbed p { color: var(--muted); }
.testbed ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.testbed li { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 0.95rem; }
.testbed li span { display: block; color: var(--muted); font-size: 0.85rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; color: var(--muted); font-size: 0.93rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot .brand { margin-bottom: 12px; }
.foot p { max-width: 380px; }
.foot h4 { color: var(--text); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--muted); }
.foot ul a:hover { color: var(--text); }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.85rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features, .obs, .road { grid-template-columns: repeat(2, 1fr); }
  .family { grid-template-columns: repeat(2, 1fr); }
  .spot, .spot.flip, .arch, .start, .testbed { grid-template-columns: 1fr; }
  .spot.flip .spot-text { order: 0; }
  .obs .card:last-child, .road .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 18px;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; font-size: 1.05rem; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 640px) {
  .container { width: min(1160px, 100% - 32px); }
  .why, .features, .gallery, .obs, .road, .family { grid-template-columns: 1fr; }
  .obs .card:last-child, .road .card:last-child { grid-column: auto; }
  .split { grid-template-columns: 1fr; }
  .lb-bar { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
