/* © 2026 Cromulent, Inc. All Rights Reserved. */
/* door-scene - launch's door, centred under its station: the ring turning above the wordmark, the Earth below, the
   suite's sign-in form between (signin.html; wchesher, 2026-11-25: "launch's page needs a amalgam of the original and
   the new login", "the login screen should be center with the wordmark, and earth below it and the space station
   rotating above it", "it needs to be promising and killer"). Loaded after /_cromulent/door.css, so it changes only
   where launch's door stands and how large its word is; the door's parts, their order and their wiring stay the
   suite's (tests/deploy/test_suite_door.py). */

html, body { margin: 0; min-height: 100%; background: #020306; }

/* THE WORD IN GROTESQUE (wchesher, 2026-11-25: "put launch in grotesque"): Bricolage Grotesque, the suite's grotesque
   (spawn, bench and fathom draw their words in it), served from launch's own fonts so the door needs no other host.
   Licence: fonts/BricolageGrotesque-OFL.txt. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-var-latin.woff2") format("woff2"); }

/* THE SCENE: the station picture fills the window behind the door (station/window.js stationDoor). A veil keeps the
   words and the form on a steady dark ground where they stand, so nothing behind a letter changes its contrast. */
.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; }
/* The still is the live station's first frame, centred as the shot is (station/window.js stationDoor), at full
   strength, so the live picture takes over under it without a change anyone can see. */
.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; }
/* Once the live picture is up, space behind it is black, as it is: the air drawn over the limb would otherwise cover
   the loading gradient and show as a darker band above the horizon. */
.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 DOOR, centred: the top third left to the station, the word in the middle, the form below it over the Earth's
   night side. */
.cd-door.ln-door { z-index: 1; min-height: 100svh; align-content: start; background: transparent;
  padding: clamp(170px, 38vh, 380px) max(16px, env(safe-area-inset-right, 0px)) clamp(28px, 5vh, 56px) max(16px, env(safe-area-inset-left, 0px));
  --cd-display: var(--font-display); --cd-body: var(--font-body); --cd-mono: var(--font-mono); }

/* The suite's hero canvas gives its place to the station; its Pause stays, in the corner, and holds the station. */
.ln-door .cd-hero { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: auto; height: auto; margin: 0; z-index: 2; }
.ln-door .cd-hero canvas { display: none; }
.ln-door .cd-hero { display: flex; gap: 8px; }
.ln-door .cd-pause { position: static; opacity: .7; }
/* Sound off sits beside Pause in the same look (door.css .cd-pause), and stays under reduced motion: it is not motion. */
.ln-door .ln-sound { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: lowercase; color: var(--cd-muted);
  background: transparent; border: 1px solid var(--cd-line-colour); border-radius: 999px; padding: 4px 8px; cursor: pointer; opacity: .7; }
.ln-door .ln-sound:hover, .ln-door .ln-sound:focus-visible { opacity: 1; color: var(--cd-ink); }
.ln-door .ln-sound:focus-visible { outline: 2px solid var(--cd-lead); outline-offset: 2px; }

.ln-door .cd-word { width: min(100%, 760px); margin: 0 0 22px; }
/* THE MARK beside the word (wchesher, 2026-11-25: "launch needs a logo next to the wordmark", "we can use the plkanet
   suggestion and comet?"): a planet, and a comet lifting off its limb on a launch arc in the lead. It sits on the
   word's baseline at the word's own size, so it scales with the suite's wordmark; the arc draws in as the page arrives. */
.ln-logo { display: inline-block; width: .9em; height: .9em; margin-right: .12em; vertical-align: -.06em; 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); }
@media (prefers-reduced-motion: no-preference) {
  .ln-logo-tail { stroke-dasharray: 1; animation: ln-arc 1.1s cubic-bezier(.3, .6, .2, 1) 300ms both; }
  .ln-logo-comet { animation: ln-comet 1.1s cubic-bezier(.3, .6, .2, 1) 300ms both; }
}
@keyframes ln-arc { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ln-comet { from { opacity: 0; transform: translate(-21px, 21px); } to { opacity: 1; transform: none; } }

/* The word is the suite's size and full stop (door.css .cd-title; wchesher, 2026-11-25: "bring the wordmark in line
   with the ther products"), set in the grotesque (above), with a shadow for the scene behind it. */
.ln-door .cd-title { font-family: "Bricolage Grotesque", var(--font-display); font-weight: 700; letter-spacing: -.035em; text-shadow: 0 2px 28px rgba(2, 3, 6, .85), 0 0 80px rgba(253, 135, 25, .16); }
.ln-door .cd-line { margin-top: 16px; color: var(--cd-lead); letter-spacing: .32em; font-size: 12px; }
.ln-story { max-width: 50ch; margin: 12px auto 0; color: #d4d7dc; font: 400 clamp(16px, 1.6vw, 19px)/1.5 var(--font-body);
  text-wrap: balance; text-shadow: 0 1px 14px rgba(2, 3, 6, .9); }

.ln-door .cd-form { width: min(100%, 380px); padding: 18px 18px 20px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 6px;
  background: rgba(5, 8, 13, .62); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ln-door .cd-input { background: rgba(2, 3, 6, .7); }
.ln-door .cd-go { letter-spacing: .02em; box-shadow: 0 0 0 1px rgba(253, 135, 25, .4), 0 10px 30px rgba(253, 135, 25, .22); }
.ln-door .cd-pin, .ln-door .cd-others { width: min(100%, 380px); text-shadow: 0 1px 10px rgba(2, 3, 6, .9); }
.ln-door .cd-legal { text-shadow: 0 1px 10px rgba(2, 3, 6, .9); }

/* ARRIVAL: the word rises out of the dark, then the line, then the form, inside a second; the finished look is the
   plain rule, so a still page (reduced motion, or the door's Pause) is the whole door at once. */
@media (prefers-reduced-motion: no-preference) {
  .ln-door .cd-title { animation: ln-rise 900ms cubic-bezier(.2, .7, .2, 1) 120ms both; }
  .ln-door .cd-line, .ln-story { animation: ln-rise 800ms cubic-bezier(.2, .7, .2, 1) 380ms both; }
  .ln-door .cd-form { animation: ln-rise 800ms cubic-bezier(.2, .7, .2, 1) 560ms both; }
  /* everything under the form arrives with it, so no small print stands alone on the dark before the word does */
  .ln-door .cd-pin, .ln-door .cd-others, .ln-door .cd-legal, .ln-door .cd-hero { animation: ln-fade 600ms ease 760ms both; }
  /* the station comes up out of the dark with the page, never popping in under the rising word (backwards only, so
     once it ends the still answers to .is-live again and fades under the live station) */
  .ln-scene picture .ln-scene-still { animation: ln-fade 420ms ease backwards; }
}
@keyframes ln-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ln-rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* SHORT WINDOWS (the school screens test_console_door.py holds: 1366 by 768 and 650, 1280 by 720, and 1366 by 768 at 125
   and 150 percent, down to 512 tall): the fields, a refusal and Board the station stay in the window. Below 860 the station
   gives up more of the top and the form tightens; below 620 the story line steps aside. */
@media (max-height: 860px) {
  .cd-door.ln-door { padding-top: clamp(96px, 19vh, 170px); }
  .ln-door .cd-word { margin-bottom: 14px; }
  .ln-door .cd-line { margin-top: 10px; }
  .ln-story { margin-top: 6px; font-size: 15px; }
  .ln-door .cd-form { padding: 14px 16px 16px; gap: 6px; }
  .ln-door .cd-input + .cd-label { margin-top: 6px; }
}
@media (max-height: 620px) {
  .cd-door.ln-door { padding-top: 40px; }
  .ln-story { display: none; }
  .ln-door .cd-word { margin-bottom: 10px; }
  .ln-door .cd-line { margin-top: 6px; }
}
@media (max-width: 560px) {
  .cd-door.ln-door { padding-top: clamp(170px, 30vh, 260px); }
  .ln-door .cd-line { letter-spacing: .2em; }
}
