:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #040306; color: #f1e8da; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
#space, .fallback, .shade { position: fixed; inset: 0; width: 100%; height: 100lvh; pointer-events: none; }
#space { opacity: 0; transition: opacity .65s ease; }
.has-scene #space { opacity: 1; }
.fallback { background: radial-gradient(ellipse at 74% 40%, #42251e44, transparent 55%), #040306; transition: opacity .65s ease; }
.has-scene .fallback { opacity: 0; }
.shade { background: linear-gradient(90deg, #04030699, transparent 57%); }
.page { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: clamp(24px, 4vw, 64px); }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 0; font-size: 20px; font-weight: 600; letter-spacing: -.6px; }
.brand svg { margin-right: 10px; }
.brand span { color: #f2a950; font-weight: 400; }
.animation-toggle { border: 1px solid #f1e8da26; border-radius: 4px; padding: 9px 13px; background: #04030677; color: #d3c7b8; font: inherit; font-size: 12px; cursor: pointer; }
.animation-toggle:hover { background: #f1e8da16; }
.animation-toggle:focus-visible { outline: 2px solid #f2a950; outline-offset: 4px; }
main { flex: 1; display: flex; align-items: center; padding: 72px 0 88px; }
.panel { width: min(45vw, 560px); }
.status { display: flex; align-items: center; gap: 10px; color: #f2a950; font-size: 13px; }
.status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
h1 { margin: 28px 0 24px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(52px, 6.3vw, 94px); line-height: 1.1; letter-spacing: -.045em; }
.intro { max-width: 375px; margin: 0; color: #b0a497; font-size: 16px; line-height: 1.75; }
footer { color: #8e8278; font-size: 12px; }
@media (max-aspect-ratio: 9/10) {
  .page { padding: 24px; }
  .brand { font-size: 18px; }
  .brand svg { width: 23px; height: 23px; margin-right: 7px; }
  .animation-toggle { padding: 8px 10px; }
  main { align-items: flex-end; padding: 320px 0 40px; }
  .panel { width: 100%; }
  h1 { margin-top: 20px; font-size: clamp(48px, 12vw, 70px); }
  .intro { max-width: 330px; font-size: 14px; }
  .shade { background: linear-gradient(0deg, #040306bb, transparent 65%); }
  footer { gap: 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #space, .fallback { transition: none; }
}
