/* getkomos.com — alive.css: what makes a page live (2026-11-12). Loaded by the New York door pages, /get/ and the
   home page, on top of site.css. The founders, on /press/ (11-11): "we love love love the animation, how alive it is,
   the band across, the moving photos" — this file is that page's motion made shareable, with names of its own so it
   never collides with site.css or doors.css (R-20.4-1111-shared-class): the sky (a canvas of the page's own theme —
   lasers, a diner's signs, a rooftop at dusk, a holiday's own flood — drawn by alive.js), the stage (a phone and three sample-event cards
   carrying silent loops, moving with the scroll and only with it), the band (the tilted marquee), and sections that rise into view.
   Every bit of it stops under prefers-reduced-motion. Tokens are site.css's. */

/* ── the sky: the theme's canvas, fixed behind the page (alive.js draws it; nothing without the script) ── */
.alive-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
.alive-sky.on { display: block; }

/* ── the stage: a phone and three sample events floating over it ── */
/* tall enough that the first card's caption clears the third card while the lift is still 0 (reduced motion, or the
   stage just arriving); the first card stacks above the third, so a caption is never covered (measured 2026-11-12) */
.alive-stage { position: relative; height: 620px; perspective: 1400px; }
.alive-stage .alive-phone { position: absolute; left: 50%; bottom: -72px; width: 300px; height: auto; margin-left: -150px;
  transform: rotateY(-12deg) rotateX(5deg) translateY(var(--lift, 0px)); transform-style: preserve-3d;
  filter: drop-shadow(0 30px 60px rgba(148, 42, 251, 0.35));
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.alive-ev { position: absolute; width: 176px; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(148, 42, 251, 0.18);
  transform: translateY(var(--lift, 0px)) rotate(var(--tilt, 0deg)); }
.alive-ev .alive-clip { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.alive-ev figcaption { padding: 10px 12px 12px; display: grid; gap: 2px; }
.alive-ev .when { font: 700 10px/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-text); }
.alive-ev b { font: 800 15px/1.15 var(--font-display); color: var(--text); }
.alive-ev .where { font-size: 12px; color: var(--muted); }
.alive-ev .age { justify-self: start; margin-top: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
/* no idle bob on the phone or the cards (founders 2026-11-12: "the up and down bouncing is a little redundant"): they
   move with the scroll (alive.js lift), the loops move inside them, the sky moves behind */
.alive-ev.f1 { left: 0; top: 40px; z-index: 2; --tilt: -6deg; }
.alive-ev.f2 { right: 0; top: 150px; --tilt: 5deg; }
.alive-ev.f3 { left: 9%; bottom: 0; z-index: 1; --tilt: 3deg; width: 156px; }
/* the events on the stage are samples, and the page says so beside them, outside the hidden stage (§12); the phone
   overflows the stage's bottom and the stage is a stacking layer, so the label stacks above it or the phone covers it */
.alive-samples { position: relative; z-index: 3; margin: 10px 0 0; text-align: right; color: var(--dim); font-size: 12px; }

/* ── the band that moves (its wrapper clips the 104% width, so the page never scrolls sideways): the App Store link,
   "Download KOMOS · Free on iPhone" (founders 2026-11-12) ── */
.alive-bar { overflow-x: clip; position: relative; z-index: 2; }
/* a page's tint may set the band's own colors (doors.css html[data-tint]: --band, --band-ink, --band-edge, --band-mark,
   --band-focus); unset, it is KOMOS purple with white words */
.alive-band { position: relative; overflow: hidden; background: var(--band, var(--purple)); color: var(--band-ink, #fff); transform: rotate(-1.6deg); margin: 0 -2%; width: 104%;
  border-block: 1px solid var(--band-edge, rgba(255, 255, 255, 0.18)); }
a.alive-band, a.alive-band:hover { display: block; text-decoration: none; } /* site.css underlines a:hover */
a.alive-band:focus-visible { outline: 3px solid var(--band-focus, var(--gold)); outline-offset: 3px; }
.alive-band .track { display: flex; width: max-content; animation: alive-run 42s linear infinite; }
.alive-band:hover .track { animation-play-state: paused; }
.alive-band span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; white-space: nowrap;
  font: 800 clamp(16px, 1.8vw, 22px)/1 var(--font-display); letter-spacing: 0.01em; }
.alive-band span::after { content: ""; width: 34px; height: 11px; background: url(/brand/komos-mark.svg) center / contain no-repeat; filter: var(--band-mark, brightness(0) invert(1)); }
@keyframes alive-run { to { transform: translateX(-50%); } }

/* ── a strip of things that moves (the app's screens on /press/, the nights on the home page) ── */
.alive-strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.alive-strip .track { display: flex; gap: 18px; width: max-content; animation: alive-run 64s linear infinite; }
.alive-strip:hover .track, .alive-strip:focus-within .track { animation-play-state: paused; }

/* ── rise into view: hidden only under html.alive-on, which alive.js itself sets, so a page whose script never
   arrives shows everything (second opinion 012715 F1); alive.js adds .in as each section arrives ── */
.alive-on .alive-rise { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.alive-on .alive-rise.in { opacity: 1; transform: none; }
.alive-on .alive-rise[data-late="1"] { transition-delay: 0.1s; }
.alive-on .alive-rise[data-late="2"] { transition-delay: 0.2s; }

/* ── a QR code on its own (the home page's download stage; the door pages draw theirs with doors.css) ── */
.alive-qr { display: none; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.alive-qr p { margin: 0; color: var(--muted); font-size: 13px; text-align: center; max-width: 150px; line-height: 1.3; }
.alive-qr .qr-code { display: block; width: 128px; height: 128px; padding: 0; border-radius: 14px; background: #FFFFFF; }
.alive-qr .qr-paper { fill: #FFFFFF; }
.alive-qr .qr-ink { fill: #010101; }

@media (min-width: 900px) {
  .alive-stage { height: 620px; }
  .alive-stage .alive-phone { width: 330px; margin-left: -165px; }
  .alive-qr { display: flex; }
}
/* 900–1099: the hero's right column is only 344–430 px; at 176 px the third card covered the second card's caption
   ("Confetti Theory", "Kaleido", 21+; alive-probe.js REDUCE, 2026-11-12). The third card is as wide as the others
   here and on phones: "Countdown" is one word and was cut at 124 and 136 px. */
@media (min-width: 900px) and (max-width: 1099px) {
  .alive-ev, .alive-ev.f3 { width: 150px; }
  .alive-ev b { font-size: 14px; }
}
@media (max-width: 520px) {
  /* 590: a three-line first title ("Ultraviolet: Laser Night") with its 21+ pill still clears the third card */
  .alive-stage { height: 590px; }
  .alive-stage .alive-phone { width: 230px; margin-left: -115px; bottom: -60px; }
  .alive-ev { width: 136px; }
  .alive-ev.f3 { width: 136px; left: 2%; }
  .alive-ev b { font-size: 13px; }
}
/* under 360 the second and third cards meet: the second stacks above, so it covers only the third's picture ("Velour" was cut) */
@media (max-width: 359px) {
  .alive-ev.f2 { z-index: 1; }
  .alive-ev.f3 { z-index: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .alive-sky, .alive-sky.on { display: none; }
  /* a holiday sky stays as one still frame (alive.js KINDS `still`: hearts, clovers, fireworks, the Pride ribbon) */
  .alive-sky.on.alive-still { display: block; }
  .alive-band .track, .alive-strip .track { animation: none !important; }
  .alive-band .track { flex-wrap: wrap; width: auto; justify-content: center; }
  .alive-band .track span:nth-child(n+3) { display: none; } /* still, one "Download KOMOS · Free on iPhone" is the line */
  .alive-strip { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .alive-strip .track { width: auto; flex-wrap: wrap; }
  .alive-on .alive-rise { opacity: 1; transform: none; transition: none; }
  .alive-band .dup, .alive-strip .dup { display: none; }
}
