/* CELESTIAIS - the site's home page (celestiais.com/, ADR-0042). Builds on the release notes stylesheet
   (/novidades/styles.css: tokens, fonts, top bar, buttons, cards). Motion is CSS (transform and opacity only)
   and stops under prefers-reduced-motion; inicio.js only adds the menu's closing, the release card, the
   video and the 3D viewer. */

.wrap.wide { width: min(1180px, 100%); }
.home section { padding: 0; }
.home .site-footer { margin-top: 0; }
img { max-width: 100%; }

.kicker {
  margin: 0 0 10px; font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
}
.band { padding: clamp(64px, 10vw, 120px) 0 0 !important; }
.band:last-of-type { padding-bottom: clamp(64px, 10vw, 120px) !important; }
.section-head.center { text-align: center; margin: 0 auto 36px; max-width: 720px; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.band h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; }
.band p { color: var(--muted); }
.band p strong { color: var(--text); }

.btn.glass { background: rgba(6, 11, 31, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.ghost { min-height: 38px; padding: 0 16px; font-size: 14px; background: transparent; }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 17px; }

/* ---- top bar and menu --------------------------------------------------------------------- */
.topbar .bar { gap: 10px; }
.wide-nav { margin-left: auto; }
.bar-signin { margin-left: 6px; }
.bar-play { min-height: 38px; padding: 0 18px; font-size: 14px; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text); font-weight: 800; font-size: 14px; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(63, 224, 255, 0.1); border-color: var(--border-strong); }
.burger { display: grid; gap: 3px; width: 16px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
.menu[open] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px));
  max-height: calc(100svh - 90px); overflow-y: auto;
  padding: 14px; border-radius: 18px; border: 1px solid var(--border-strong);
  background: rgba(8, 15, 40, 0.97); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: drop 0.18s ease-out;
}
.menu-panel ul, .site-footer ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none;
  color: var(--text); font-weight: 700; font-size: 16px; line-height: 1.3;
}
.menu-panel a:hover { background: rgba(63, 224, 255, 0.1); color: var(--text); }
.menu-panel small { display: block; font-weight: 600; font-size: 13px; color: var(--dim); }
.menu-group {
  margin: 10px 12px 4px; font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.menu-group:first-child { margin-top: 2px; }
.menu-anchors { display: flex; flex-wrap: wrap; }
.menu-anchors a { font-size: 15px; color: var(--muted); padding: 7px 12px; }
@media (min-width: 981px) { .menu-label { display: none; } .menu-anchors, .page-anchors { display: none; } }
@media (max-width: 980px) { .wide-nav { display: none; } .bar-signin { margin-left: auto; } }
@media (max-width: 520px) { .bar-signin { display: none; } .bar-play { margin-left: auto; } .menu-label { display: none; } }

/* ---- top ---------------------------------------------------------------------------------- */
.topo {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(96svh, 940px); display: flex; align-items: center;
  padding: 96px 0 130px !important;
}
.topo-art, .topo-art img, .topo-video, .topo-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3;
}
.topo-art img { object-fit: cover; object-position: 62% 50%; animation: drift 38s ease-in-out infinite alternate; transform-origin: 65% 45%; }
.topo-video video { object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.topo.has-video .topo-video video { opacity: 1; }
.topo.has-video .flyby { display: none; }
/* Darken the left side and the bottom so the text reads over the art. */
.topo::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 11, 31, 0.92) 0%, rgba(6, 11, 31, 0.68) 34%, rgba(6, 11, 31, 0.06) 64%, transparent 100%),
    linear-gradient(0deg, var(--space-950) 0%, rgba(6, 11, 31, 0) 26%);
}
.stars {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 26% 68%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 14%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 58%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 40%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
/* Ships of the three races crossing the sky, from the gallery's own pictures. */
.flyby { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.flyby .ship { position: absolute; left: 0; height: auto; opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 0 14px rgba(63, 224, 255, 0.35)); }
.flyby .s1 { top: 12%; width: clamp(80px, 8vw, 130px); animation: fly 34s linear infinite; animation-delay: -6s; }
.flyby .s2 { top: 62%; width: clamp(60px, 6vw, 96px); animation: fly 44s linear infinite; animation-delay: -26s; }
.flyby .s3 { top: 30%; width: clamp(44px, 4vw, 70px); animation: fly 52s linear infinite; animation-delay: -40s; }
@media (max-width: 700px) { .flyby .s2, .flyby .s3 { display: none; } .flyby .s1 { top: auto; bottom: 16%; } }

.topo-content { position: relative; }
.topo .logo { width: min(400px, 82%); height: auto; display: block; margin-bottom: 26px; filter: drop-shadow(0 6px 26px rgba(63, 224, 255, 0.35)); }
.topo h1 { font-size: clamp(36px, 6vw, 66px); max-width: 15ch; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.shine {
  background: linear-gradient(100deg, #8eefff 0%, #3fe0ff 30%, #b48cff 55%, #ff8ad8 75%, #8eefff 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite alternate; text-shadow: none;
}
.topo .lead { color: #c9d8f4; max-width: 48ch; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(6, 11, 31, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.facts strong { font-family: var(--display); color: var(--accent); font-size: 16px; margin-right: 2px; }
.topo-content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.topo-content > :nth-child(2) { animation-delay: 0.08s; }
.topo-content > :nth-child(3) { animation-delay: 0.16s; }
.topo-content > :nth-child(4) { animation-delay: 0.24s; }
.topo-content > :nth-child(5) { animation-delay: 0.32s; }
.topo-content > :nth-child(6) { animation-delay: 0.4s; }
.topo-content > :nth-child(7) { animation-delay: 0.48s; }

/* "Convidado por X" (ADR-0049): shown by inicio.js only for a live affiliate link. */
.convidado {
  display: inline-block; margin: 18px 0 0; padding: 8px 16px; border-radius: 18px;
  border: 1px solid rgba(63, 224, 255, 0.45); background: rgba(6, 11, 31, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 15px; color: #c9d8f4;
}
.convidado[hidden] { display: none; }
.convidado strong { color: var(--accent); }

.video-pause {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 2;
  min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(6, 11, 31, 0.6); color: var(--text); font: 700 14px var(--body); cursor: pointer;
}
.video-pause:hover { background: rgba(63, 224, 255, 0.14); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 30px; height: 48px; border-radius: 999px; border: 2px solid var(--border-strong);
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 10px; border-radius: 4px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }

/* Phones in portrait get the tall art: text sits at the top, over the darker sky. */
@media (max-width: 700px) and (orientation: portrait) {
  .topo { align-items: flex-start; min-height: 100svh; padding-top: 36px !important; }
  .topo-art img { object-position: 50% 100%; transform-origin: 50% 80%; }
  .topo .logo { width: min(250px, 70%); margin-bottom: 16px; }
  .topo .lead { margin: 14px 0 22px; }
}
@media (max-width: 700px) {
  .topo::before {
    background:
      linear-gradient(180deg, rgba(6, 11, 31, 0.94) 0%, rgba(6, 11, 31, 0.8) 52%, rgba(6, 11, 31, 0.18) 80%, transparent 100%),
      linear-gradient(0deg, var(--space-950) 0%, rgba(6, 11, 31, 0) 18%);
  }
  .scroll-cue { display: none; }
  .topo .cta .btn { flex: 1 1 auto; justify-content: center; }
  .facts li { font-size: 13px; padding: 6px 12px; }
}

/* ---- races -------------------------------------------------------------------------------- */
.races { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 900px) { .races { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.race {
  --race: var(--accent);
  position: relative; padding: 0 clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 28px);
  border-radius: 24px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14, 26, 64, 0.25), var(--panel) 46%);
  transition: border-color 0.3s, translate 0.3s, box-shadow 0.3s;
}
.race:hover { border-color: var(--race); translate: 0 -4px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px color-mix(in srgb, var(--race) 25%, transparent); }
.race.florantis { --race: #55e39a; }
.race.ferrox { --race: #ff8a3d; }
.race.astryl { --race: #b48cff; }
.race-art { margin: -8px -6px 6px; aspect-ratio: 1; display: grid; place-items: center; }
.race-art img {
  width: 100%; height: auto; border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
}
.race h3 { font-size: 26px; font-weight: 800; color: var(--race); }
.race-tag { margin: 2px 0 14px; font-family: var(--display); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim) !important; }
.race-traits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.race-traits strong { color: var(--text); }

/* ---- what you do -------------------------------------------------------------------------- */
.bento {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: 'build build explore' 'fleet trade living';
}
.t-build { grid-area: build; } .t-explore { grid-area: explore; } .t-fleet { grid-area: fleet; }
.t-trade { grid-area: trade; } .t-living { grid-area: living; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; min-height: 360px;
  display: flex; align-items: flex-end; border-radius: 22px; border: 1px solid var(--border);
  background: var(--space-900); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 11, 31, 0.97) 0%, rgba(6, 11, 31, 0.82) 38%, rgba(6, 11, 31, 0.1) 72%, transparent 100%); }
.tile:hover img { transform: scale(1.05); }
.tile-text { padding: clamp(18px, 2.6vw, 28px); }
.tile h3 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; margin-bottom: 8px; }
.tile p { margin: 0; font-size: 16px; }
.tile .kicker { font-size: 12px; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ingame {
  letter-spacing: 0.06em; text-transform: none; font-family: var(--body); font-weight: 800; font-size: 11px;
  padding: 2px 8px; border-radius: 999px; color: var(--success); border: 1px solid rgba(85, 227, 154, 0.45); background: rgba(85, 227, 154, 0.1);
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'build build' 'explore fleet' 'trade trade' 'living living'; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: 'build' 'explore' 'fleet' 'trade' 'living'; }
  .tile { min-height: 340px; }
}

/* ---- gallery ------------------------------------------------------------------------------ */
.shelf-title { font-size: 20px; font-weight: 800; margin: 40px 0 16px; display: flex; align-items: center; gap: 14px; }
.shelf-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.section-head + .shelf-title { margin-top: 8px; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); }
@media (max-width: 520px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.model {
  --tint: var(--accent);
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 10px 12px 14px; border-radius: 20px; border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--tint) 26%, transparent) 0%, transparent 62%),
    var(--panel);
  transition: border-color 0.3s, translate 0.3s;
}
.model:hover { border-color: color-mix(in srgb, var(--tint) 70%, transparent); translate: 0 -3px; }
.model.florantis { --tint: #55e39a; } .model.ferrox { --tint: #ff8a3d; } .model.astryl { --tint: #b48cff; }
.model.gold { --tint: #f2c14e; } .model.danger { --tint: #ff5d73; } .model.cyan { --tint: #3fe0ff; }
.model img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); }
.model h4 { margin: 4px 0 0; font-family: var(--display); font-size: 17px; font-weight: 800; line-height: 1.25; }
.model p { margin: 2px 0 12px; font-size: 14px; line-height: 1.4; color: var(--dim); }
.ver3d {
  margin-top: auto; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--tint) 60%, transparent); background: color-mix(in srgb, var(--tint) 12%, transparent);
  color: var(--text); font: 800 14px var(--body);
}
.ver3d:hover { background: color-mix(in srgb, var(--tint) 24%, transparent); }
.ver3d::before { content: '⟲ '; color: var(--tint); }

/* ---- viewer ------------------------------------------------------------------------------- */
.visor {
  width: min(900px, calc(100vw - 32px)); height: min(680px, calc(100svh - 48px)); padding: 0;
  border-radius: 24px; border: 1px solid var(--border-strong); color: var(--text);
  background: radial-gradient(circle at 50% 45%, rgba(122, 75, 255, 0.35), transparent 65%), var(--space-900);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.visor[open] { display: flex; flex-direction: column; }
.visor::backdrop { background: rgba(3, 6, 18, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.visor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 0 22px; }
.visor-head h2 { font-size: 20px; font-weight: 800; }
.visor-close {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); cursor: pointer;
  background: rgba(6, 11, 31, 0.6); color: var(--text); font-size: 26px; line-height: 1;
}
.visor-close:hover { background: rgba(63, 224, 255, 0.14); }
.visor-stage { position: relative; flex: 1; min-height: 0; touch-action: none; cursor: grab; }
.visor-stage:active { cursor: grabbing; }
.visor-stage canvas { display: block; }
.visor-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-weight: 700; padding: 20px; text-align: center; pointer-events: none; }
.visor-status[hidden] { display: none; }
.visor-hint { margin: 0; padding: 0 20px 16px; text-align: center; font-size: 14px; color: var(--dim); }
@media (max-width: 620px) { .visor { width: 100vw; height: 100svh; max-width: none; max-height: none; border-radius: 0; } }

/* ---- news --------------------------------------------------------------------------------- */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }
.news-intro h2 { margin-bottom: 14px; }
.news-intro .btn { margin-top: 8px; }
.news-card {
  padding: clamp(22px, 3.4vw, 34px); border-radius: 24px; border: 1px solid var(--border-strong);
  background: radial-gradient(30rem 16rem at 100% 0%, rgba(63, 224, 255, 0.16), transparent 70%), var(--panel-strong);
  box-shadow: 0 0 0 1px rgba(63, 224, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.news-card h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 14px; }
.news-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.news-points li { display: flex; gap: 10px; align-items: baseline; color: var(--text); font-weight: 700; }
.news-points li::before { content: '✦'; color: var(--accent); }

/* ---- beta --------------------------------------------------------------------------------- */
.beta-card {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: 26px; border: 1px solid var(--border-strong);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(122, 75, 255, 0.3), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(63, 224, 255, 0.16), transparent 70%),
    var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.beta-card h2 { margin-bottom: 18px; }
.beta-card .cta { flex-direction: column; align-items: stretch; }
.beta-card .cta .btn { justify-content: center; }
.beta-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); }
.beta-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.beta-steps strong { color: var(--text); }
.beta-steps p { margin: 4px 0 0; }
.beta-steps span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: var(--space-950);
  background: linear-gradient(180deg, #5ce7ff, var(--accent-strong)); box-shadow: 0 4px 18px var(--glow);
}
@media (max-width: 820px) { .beta-card { grid-template-columns: 1fr; } .beta-card .cta { flex-direction: row; flex-wrap: wrap; } .beta-card .cta .btn { flex: 1 1 auto; } }

/* ---- questions ---------------------------------------------------------------------------- */
.faq-wrap { width: min(860px, 100%); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--border); background: var(--panel); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-family: var(--display); font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; font-size: 24px; line-height: 1; color: var(--accent); transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* ---- footer ------------------------------------------------------------------------------- */
.site-footer { padding: 44px 0 40px; border-top: 1px solid var(--border); background: rgba(4, 8, 22, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand img { width: 200px; height: auto; display: block; margin-bottom: 10px; }
.footer-brand p { margin: 0; color: var(--dim); font-size: 15px; }
.site-footer .menu-group { margin: 0 0 8px; }
.site-footer li a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.site-footer li a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--dim); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---- motion ------------------------------------------------------------------------------- */
/* A gentle drift: the art is shown near its own resolution, so it is barely enlarged. */
@keyframes drift { from { transform: scale(1.01) translate(0, 0); } to { transform: scale(1.05) translate(-0.8%, -0.5%); } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.9; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }
@keyframes bob { from { transform: translateY(-8px) rotate(-0.6deg); } to { transform: translateY(8px) rotate(0.6deg); } }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* The pictures show the ships nose to the lower left: they fly that way, from the upper right. */
@keyframes fly {
  0% { transform: translate(110vw, -10vh) scale(0.85); opacity: 0; }
  8% { opacity: 0.95; }
  88% { opacity: 0.95; }
  100% { transform: translate(-35vw, 12vh) scale(1.05); opacity: 0; }
}

.float { animation: bob 6s ease-in-out infinite alternate; }
.float.slow { animation-duration: 7.5s; }
.float.delay-1 { animation-delay: -2.5s; }
.float.delay-2 { animation-delay: -5s; }

/* Sections fade in as they scroll into view, where the browser supports scroll-driven animations.
   Elsewhere they are simply visible. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topo-art img, .stars, .scroll-cue span, .float, .topo-content > *, .reveal, .shine, .menu-panel { animation: none !important; }
  .flyby { display: none; }
  .race, .tile img, .model, .burger i { transition: none; }
  .race:hover, .model:hover { translate: none; }
  .tile:hover img { transform: none; }
}
