/* © 2026 Cromulent, Inc. All Rights Reserved.
   front.css - launch's front page (front.html): the door's scene and words (door-scene.css), without the form, each
   part in the slot every room's splash uses. The sizes and slots are /_cromulent/splash.css, loaded after this file;
   this file keeps the door's look and the room's chrome (the bar, the motto, the button, the corner, the foot). */

.fp { --cd-ink: #f4f5f6; --cd-muted: #a3a8b0; --cd-lead: var(--accent); --cd-line-colour: rgba(255, 255, 255, .22);
  background: #020306; color: var(--cd-ink); font-family: var(--font-body); }
.fp h1 { font-family: var(--font-body); text-transform: none; }

/* THE SCENE, the door's own (door-scene.css): the station picture fills the window, the live station takes over under
   its still, and a veil keeps the words on a steady dark ground where they stand. */
.ln-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 108%, #0a1424 0%, #04070d 46%, #020306 72%); }
.ln-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ln-scene-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%;
  transition: opacity 900ms ease; }
.ln-scene.is-live .ln-scene-still { opacity: 0; }
.ln-scene.is-live { background: #000; }
.ln-scene::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 34rem 26rem at 50% 58%, rgba(2, 3, 6, .7), rgba(2, 3, 6, .38) 55%, transparent 78%),
    linear-gradient(to bottom, rgba(2, 3, 6, .35), transparent 22%, transparent 70%, rgba(2, 3, 6, .25)); }

/* the splash, over the scene */
.fp-hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; text-align: center; }
.fp-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px clamp(16px, 4vw, 56px); }
.fp-motto { display: flex; align-items: center; gap: 14px; margin: 0; white-space: nowrap; font: 500 11px/1 var(--font-mono);
  letter-spacing: .3em; text-transform: uppercase; color: var(--cd-muted); }
.fp-motto::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--cd-lead)); }
.fp-nav { color: var(--cd-ink); }
.fp-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 0 clamp(16px, 4vw, 56px); }

/* the word: the door's lockup (door-scene.css .ln-logo, .cd-title, door.css .cd-pt), at the suite's size */
.fp-logo { margin: 0; display: flex; align-items: center; justify-content: center; gap: .16em; color: var(--cd-ink); }
.ln-logo { overflow: visible; }
.ln-logo-planet { fill: var(--cd-ink); }
.ln-logo-tail { fill: none; stroke: url(#ln-tail); stroke-width: 3.4; stroke-linecap: round; }
.ln-logo-comet { fill: var(--cd-lead); }
.fp-word { display: inline-flex; align-items: baseline; font: 700 1em/.9 "Bricolage Grotesque", var(--font-display); letter-spacing: -.035em;
  padding-bottom: .04em; text-shadow: 0 2px 28px rgba(2, 3, 6, .85), 0 0 80px rgba(253, 135, 25, .16); }
.fp-pt { display: inline-block; flex: none; width: .16em; height: .16em; margin-left: .05em; background: var(--cd-lead); }
/* the line and the story, the door's words, with the door's shadow for the scene behind them */
.fp-line { margin: 0; font-weight: 600; letter-spacing: -.02em; color: var(--cd-ink); text-wrap: balance;
  text-shadow: 0 1px 14px rgba(2, 3, 6, .9); }
.fp-line .lit { color: var(--cd-lead); }
.fp-lede { margin: 0; max-width: 34em; color: #d4d7dc; text-wrap: balance; text-shadow: 0 1px 14px rgba(2, 3, 6, .9); }
.fp-go { margin: 0; }
/* the way in: the door's own button (door.css .cd-go, door-scene.css .ln-door .cd-go) */
.fp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 36px; border-radius: 6px;
  background: var(--cd-lead); color: #0a0a0c; font: 600 16px/1 var(--font-body); letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(253, 135, 25, .4), 0 10px 30px rgba(253, 135, 25, .22); transition: background 160ms ease; }
.fp-btn:hover { background: #ff9a3d; }
.fp-btn:focus-visible { outline: 2px solid var(--cd-ink); outline-offset: 3px; }

/* Pause and Sound off, the door's pair, in the corner where every room keeps its count */
.fp-corner { position: absolute; right: clamp(16px, 4vw, 56px); bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.fp-pause { padding: 4px 8px; border: 1px solid var(--cd-line-colour); border-radius: 999px; background: transparent; color: var(--cd-muted);
  cursor: pointer; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: lowercase; }
.fp-pause:hover, .fp-pause:focus-visible { color: var(--cd-ink); border-color: var(--cd-muted); }
.fp-pause:focus-visible { outline: 2px solid var(--cd-lead); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #fp-pause { display: none; } }

/* the foot: the door's other ways in and its legal line */
.fp-foot { position: relative; z-index: 1; padding: 22px clamp(16px, 4vw, 56px) 28px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 24px; background: #020306; border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--cd-muted); font-size: 12px; line-height: 1.5; }
.fp-foot nav { display: flex; gap: 6px 18px; font-size: 14px; }
.fp-foot p { margin: 0; }
.fp-foot a { color: var(--cd-ink); text-decoration: underline; text-decoration-color: var(--cd-lead); text-underline-offset: 3px; }
.fp-foot p a { color: inherit; text-decoration-color: currentColor; }

@media (max-width: 640px) {
  .fp-motto { letter-spacing: .2em; gap: 10px; }
  .fp-motto::before { width: 18px; }
  .fp-corner { left: 0; right: 0; justify-content: center; }
}

/* ARRIVAL, as the door's: the word rises out of the dark, then the line and the story, then the way in */
@media (prefers-reduced-motion: no-preference) {
  .ln-logo-tail { stroke-dasharray: 1; animation: fp-arc 1.1s cubic-bezier(.3, .6, .2, 1) 300ms both; }
  .ln-logo-comet { animation: fp-comet 1.1s cubic-bezier(.3, .6, .2, 1) 300ms both; }
  .fp-word { animation: fp-rise 900ms cubic-bezier(.2, .7, .2, 1) 120ms both; }
  .fp-line, .fp-lede { animation: fp-rise 800ms cubic-bezier(.2, .7, .2, 1) 380ms both; }
  .fp-btn { animation: fp-rise 800ms cubic-bezier(.2, .7, .2, 1) 560ms both; }
  .fp-corner, .fp-head { animation: fp-fade 600ms ease 760ms both; }
  .ln-scene picture .ln-scene-still { animation: fp-fade 420ms ease backwards; }
}
@keyframes fp-arc { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fp-comet { from { opacity: 0; transform: translate(-21px, 21px); } to { opacity: 1; transform: none; } }
@keyframes fp-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fp-fade { from { opacity: 0; } }

@media print {
  .ln-scene, .fp-corner, .fp-head nav, .fp-go { display: none; }
  .fp, .fp-foot { background: #fff; color: #000; }
}
