/* VoxLantern teaser: pure CSS/SVG, no JavaScript. Palette: brand v2 (palette.md). */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/montserrat-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #EAF4F4; --muted: #8FB3B8; --teal: #1F8F94; --amber: #FFA62B; --ember: #C2560A;
  --bg-0: #020507; --bg-1: #05100F; --bg-2: #0A1E22;
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; background: var(--bg-0); }
body {
  margin: 0; min-height: 100%; min-height: 100dvh;
  display: flex; flex-direction: column;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(194, 86, 10, .10), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 35%, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  overflow-x: hidden;
}
/* faint grain so the dark gradient doesn't band */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(40px, env(safe-area-inset-top)) 24px 24px; text-align: center;
}

/* ---- the lantern scene ---- */
.scene { position: relative; width: min(64vw, 300px, 40vh); aspect-ratio: 1; margin-bottom: clamp(20px, 4vh, 40px); }
.lantern { position: relative; z-index: 2; display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }

/* warm aura behind the lantern, centered on the window (50%, 60%) */
.halo { position: absolute; z-index: 0; left: 50%; top: 60%; width: 190%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 166, 43, .16) 0%, rgba(194, 86, 10, .08) 30%, transparent 62%);
  animation: breathe 6s ease-in-out infinite; }

/* broadcast arcs rolling outward behind the lantern, ( ) shaped like the mark's arcs */
.waves span { position: absolute; z-index: 1; left: 50%; top: 60%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid transparent; border-left-color: rgba(255, 166, 43, .55); border-right-color: rgba(255, 166, 43, .55);
  translate: -50% -50%; scale: .4; opacity: 0; animation: wave 4.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.waves span:nth-child(2) { animation-delay: 1.6s; }
.waves span:nth-child(3) { animation-delay: 3.2s; }

/* floor glow pooling under the base */
.floor { position: absolute; z-index: 1; left: 50%; top: 95%; width: 150%; height: 26%; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(194, 86, 10, .55) 0%, rgba(107, 46, 6, .25) 38%, rgba(26, 14, 4, 0) 70%);
  filter: blur(6px); animation: floor 6s ease-in-out infinite; }

.window-glow { animation: flicker 6s ease-in-out infinite; }
.arc { opacity: .35; animation: arc 3s ease-in-out infinite; }
.arc2 { animation-delay: .3s; }
.arc3 { animation-delay: .6s; }
.dot { transform-box: fill-box; transform-origin: center; animation: dot 3s ease-in-out infinite; }

/* embers drifting up out of the lantern */
.embers { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.embers i { position: absolute; left: 50%; top: 62%; width: 3px; height: 3px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 6px 1px rgba(255, 166, 43, .7); opacity: 0;
  --dx: 0px; --rise: -220%; animation: ember 7s linear infinite; }
.embers i:nth-child(1)  { left: 44%; --dx: -18px; animation-delay: 0s;   animation-duration: 7.5s; }
.embers i:nth-child(2)  { left: 55%; --dx: 22px;  animation-delay: 1.1s; animation-duration: 8.5s; width: 2px; height: 2px; }
.embers i:nth-child(3)  { left: 50%; --dx: -8px;  animation-delay: 2.3s; animation-duration: 6.5s; }
.embers i:nth-child(4)  { left: 38%; --dx: -30px; animation-delay: 3.4s; animation-duration: 9s;   width: 2px; height: 2px; }
.embers i:nth-child(5)  { left: 61%; --dx: 34px;  animation-delay: 4.2s; animation-duration: 8s; }
.embers i:nth-child(6)  { left: 47%; --dx: 12px;  animation-delay: 5.1s; animation-duration: 7s;   width: 2px; height: 2px; }
.embers i:nth-child(7)  { left: 53%; --dx: -26px; animation-delay: 6.0s; animation-duration: 9.5s; }
.embers i:nth-child(8)  { left: 41%; --dx: 18px;  animation-delay: .6s;  animation-duration: 10s;  width: 2px; height: 2px; }
.embers i:nth-child(9)  { left: 58%; --dx: -14px; animation-delay: 2.8s; animation-duration: 7.8s; }
.embers i:nth-child(10) { left: 35%; --dx: -40px; animation-delay: 4.8s; animation-duration: 11s;  width: 2px; height: 2px; }
.embers i:nth-child(11) { left: 65%; --dx: 44px;  animation-delay: 1.7s; animation-duration: 10.5s; width: 2px; height: 2px; }
.embers i:nth-child(12) { left: 50%; --dx: 28px;  animation-delay: 3.9s; animation-duration: 8.8s; }
.embers i:nth-child(13) { left: 45%; --dx: -36px; animation-delay: 5.6s; animation-duration: 12s;  width: 2px; height: 2px; }
.embers i:nth-child(14) { left: 56%; --dx: 8px;   animation-delay: 6.6s; animation-duration: 9.2s; }

/* ---- copy ---- */
/* Wordmark: dim letters with an amber light bar sweeping left to right (background-clip:text).
   Three stacked copies of the same text: the dim base (the element), a soft edge bloom (::before) and the
   crisp lit pass (::after). Both pseudo layers share the gradient and its animation. */
.mark { display: flex; justify-content: center; padding: clamp(8px, 3vh, 36px) 16px 12px; }
.wordmark {
  position: relative; display: inline-block; margin: 0;
  font-weight: 500; font-size: clamp(24px, 6.6vw, 46px); letter-spacing: .38em; padding-left: .38em; line-height: 1.25;
  color: #182C30; text-shadow: 0 0 1px rgba(39, 162, 167, .2);
}
.wordmark::before, .wordmark::after {
  content: attr(data-text); position: absolute; inset: 0; padding-left: inherit; pointer-events: none;
  color: transparent; -webkit-text-fill-color: transparent;
  /* skewed bar: trail (#C2560A fading to transparent) behind it on the left, bright core, hard leading edge */
  background-image: linear-gradient(104deg,
    transparent 0%, transparent 34%,
    rgba(194, 86, 10, .2) 40%, rgba(194, 86, 10, .6) 46%, rgba(255, 166, 43, .95) 48.4%,
    #FFE2A8 49%, #FFF4DC 49.9%, #FFE2A8 50.6%, rgba(255, 166, 43, 0) 51%, transparent 100%);
  background-size: 320% 100%; background-repeat: no-repeat; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: sweep 7s cubic-bezier(.45, .05, .35, 1) 1.8s infinite;
}
/* Light stays inside the letters: ::after is the crisp lit pass; ::before is the same clipped text softened by a
   1px blur, so its bloom only hugs the glyph edges. No layer draws anything in the empty space. */
.wordmark::before { filter: blur(1px); opacity: .75; }
@keyframes sweep { 0% { background-position: 100% 0; } 48%, 100% { background-position: 0% 0; } }
.line { margin: clamp(14px, 2.4vh, 22px) 0 0; font-weight: 300; font-size: clamp(17px, 4.4vw, 24px); color: var(--ink); letter-spacing: .01em; }
.soon { margin: clamp(18px, 3vh, 30px) 0 0; display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 12px; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--amber); }
.spark { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 2px rgba(255, 166, 43, .6);
  animation: spark 3s ease-in-out infinite; }
.foot { padding: 20px 24px max(20px, env(safe-area-inset-bottom)); text-align: center; font-size: 11px; letter-spacing: .14em; color: rgba(143, 179, 184, .55); }
.foot a { color: inherit; }

/* entrance */
.scene, .mark, .line, .soon, .foot { animation-fill-mode: both; }
.scene { animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.line { animation: rise 1.4s .5s cubic-bezier(.2, .7, .2, 1) both; }
.soon { animation: rise 1.4s .8s cubic-bezier(.2, .7, .2, 1) both; }
.mark { animation: rise 1.6s 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.foot { animation: fade 2s 1.6s both; }

@keyframes rise { from { opacity: 0; translate: 0 14px; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: .7; scale: .96; } 50% { opacity: 1; scale: 1.04; } }
@keyframes floor { 0%, 100% { opacity: .65; scale: .92 1; } 50% { opacity: 1; scale: 1.06 1.08; } }
@keyframes flicker { 0%, 100% { opacity: .55; } 22% { opacity: .8; } 30% { opacity: .68; } 55% { opacity: 1; } 78% { opacity: .72; } }
@keyframes arc { 0%, 100% { opacity: .3; } 25% { opacity: 1; } 55% { opacity: .45; } }
@keyframes dot { 0%, 100% { scale: 1; } 15% { scale: 1.18; } 40% { scale: 1; } }
@keyframes wave { 0% { opacity: 0; scale: .4; } 12% { opacity: .55; } 100% { opacity: 0; scale: 2.3; } }
@keyframes ember {
  0% { opacity: 0; translate: 0 0; }
  10% { opacity: .9; }
  60% { opacity: .55; }
  100% { opacity: 0; translate: var(--dx) -260px; }
}
@keyframes spark { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (min-width: 900px) {
  .scene { width: min(380px, 46vh); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arc { opacity: 1; }
  .window-glow { opacity: .8; }
  .waves, .embers { display: none; }
  .wordmark { color: rgba(255, 166, 43, .42); text-shadow: 0 0 14px rgba(194, 86, 10, .35); }
  .wordmark::before, .wordmark::after { display: none; }
}

/* 404 */
.lost .lantern { opacity: .55; filter: grayscale(.4) drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.lost .wordmark { margin-top: 8px; }
.lost .line a { color: var(--amber); text-underline-offset: 4px; }
