:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #130b08;
  color: #fff4e7;
}
* { box-sizing: border-box; }
body { margin: 0; }
.opening {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1.3rem, 4vw, 4.5rem) clamp(1.3rem, 5.1vw, 6rem) clamp(1.15rem, 2.6vw, 2.4rem);
  background: radial-gradient(ellipse at 76% 36%, #361709, transparent 74%), #100907;
}
canvas, .veil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.veil {
  background: linear-gradient(90deg, #100907e8 0%, #100907bc 23%, #10090734 48%, transparent 70%),
              linear-gradient(0deg, #100907f0 0%, transparent 26%);
}
.brand, .controls, .footer, .readout { display: flex; align-items: center; }
.brand { gap: .8rem; align-self: start; width: fit-content; color: #ffe8ce; font-size: .86rem; font-weight: 700; letter-spacing: .28em; }
.brand svg { color: #efb46f; }
.intro { align-self: end; padding: 7rem 0 clamp(3rem, 9vh, 6.4rem); }
h1 { margin: 0; font-size: clamp(3rem, 7.1vw, 8rem); letter-spacing: -.075em; line-height: .97; font-weight: 650; }
h1 span { color: #f7b465; }
.invitation { max-width: 32ch; margin: 1.45rem 0 1.6rem; color: #e4c9b2; font-size: clamp(1rem, 1.15vw, 1.24rem); line-height: 1.55; }
.controls { flex-wrap: wrap; gap: .7rem 1.2rem; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid #ffd9a7; outline-offset: 5px; }
button[hidden], [hidden] { display: none; }
#signal {
  display: inline-flex; align-items: center; justify-content: center; gap: .62rem;
  min-height: 3.1rem; padding: .75rem 1rem;
  border: 1px solid #ca935a; border-radius: 4px;
  background: #f5bd82; color: #211007; font-weight: 700; font-size: .95rem;
}
#signal:hover:not(:disabled) { background: #ffdaa9; }
#signal:disabled { cursor: default; background: #2b190ff0; color: #ffdcaf; border-color: #885c38; }
.quiet { min-height: 2.75rem; border: 0; padding: .4rem .35rem; background: none; color: #f1d5bd; font-size: .9rem; text-underline-offset: .24em; }
.quiet:hover { text-decoration: underline; }
.footer { gap: .5rem 1.1rem; border-top: 1px solid #d79e693e; padding-top: .45rem; justify-content: space-between; }
.readout { gap: .6rem; color: #f8d6ad; font-size: .95rem; }
.readout p, .caption { margin: 0; }
.dot { width: .48rem; height: .48rem; border-radius: 50%; background: #eaaa67; box-shadow: 0 0 10px #ec9c50; flex: none; }
.caption { margin-left: auto; color: #ccaa90; font-size: .84rem; }
noscript { position: absolute; bottom: 4rem; right: 1.3rem; }
@media (max-width: 650px) {
  .opening { padding-top: max(1.15rem, env(safe-area-inset-top)); }
  .veil { background: linear-gradient(0deg, #100907 0%, #100907f0 15%, #100907b0 38%, transparent 66%); }
  .intro { padding-top: min(40svh, 16rem); padding-bottom: clamp(1.3rem, 4vh, 2.2rem); }
  h1 { font-size: clamp(2.35rem, 10.4vw, 4.2rem); }
  .invitation { margin: 1rem 0 1.2rem; }
  .footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .caption { margin: 0 0 .2rem 1.1rem; grid-row: 2; }
  #motion { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-height: 650px) and (min-width: 651px) {
  .intro { padding-top: 3.2rem; padding-bottom: 2rem; }
  h1 { font-size: clamp(3rem, 7.2vw, 5.8rem); }
}
