/* Readiness is separate from the decorative intro, including skip/reduced motion. */
html[data-startup-pending] .workbench,
html[data-startup-pending] .development-ribbon,
html[data-startup-pending] #ambient-canvas,
html[data-startup-pending] .scene-glow {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Desktop drawers and previews explicitly set visibility:visible. Guard the
   descendants too; inherited visibility alone lets those fragments paint and
   receive input before the saved workspace has finished restoring. */
html[data-startup-pending] :is(.workbench, .development-ribbon, #ambient-canvas, .scene-glow) * {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Restore the saved history-column width without replaying its user-triggered
   collapse animation. Fast reads must not reveal an intermediate empty column;
   removing startup-pending restores normal interactive transitions. */
html[data-startup-pending] .workspace,
html[data-startup-pending] .chat-history-rail {
  transition: none !important;
}

/* Reference choreography: contour -> mesh -> color -> seamless eye opening.
   Raster geometry is fixed; animation never waits for chat or API readiness. */
html[data-launch-suppressed="share"] #launchScreen {
  display: none !important;
  pointer-events: none !important;
}
/* Drop only the decorative sibling fade. The !important startup readiness
   rules above continue to guard the restored workspace until its reads settle. */
html[data-launch-suppressed="share"] #launchScreen:not([hidden]) ~ .workbench,
html[data-launch-suppressed="share"] #launchScreen:not([hidden]) ~ .development-ribbon {
  opacity: 1;
  pointer-events: auto;
  animation: none;
}
#launchScreen.launch-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  color: #f0f5f8;
  background: #06070b;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  animation: launch-safety 6s step-end forwards;
}
#launchScreen.hidden,
#launchScreen[hidden] {
  display: none !important;
  pointer-events: none !important;
}
#launchScreen.is-leaving {
  pointer-events: none;
  animation: launch-depart .8s cubic-bezier(.42, 0, .58, 1) forwards, launch-safety 6s step-end forwards;
}
/* A two-sided dissolve: reveal the existing page during the intro's exit.
   Do not transform the workbench or change any fixed panel/scroll geometry.
   The hidden attribute releases these rules on skip, failure, and completion. */
#launchScreen:not([hidden]) ~ .workbench,
#launchScreen:not([hidden]) ~ .development-ribbon {
  opacity: 0;
  pointer-events: none;
  animation: launch-workbench-safety 6s step-end forwards;
}
#launchScreen.is-leaving:not([hidden]) ~ .workbench,
#launchScreen.is-leaving:not([hidden]) ~ .development-ribbon {
  animation: launch-workbench-enter .8s cubic-bezier(.42, 0, .58, 1) both;
}
.launch-cosmos,
.launch-haze,
.launch-vignette,
.launch-paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.launch-cosmos {
  z-index: 0;
  background:
    radial-gradient(ellipse at 85% 51%, rgba(23, 56, 62, .06), transparent 51%),
    linear-gradient(115deg, #06070b, #07080d 66%, #08080e);
}
.launch-haze {
  background: radial-gradient(ellipse at 78% 45%, rgba(87, 159, 178, .035), transparent 47%);
}
/* All three portrait layers share one unchanging 3:2 coordinate space. */
.launch-character {
  position: absolute;
  top: 0;
  right: -6vw;
  z-index: 2;
  width: calc(100vh * 1.5);
  height: 100vh;
  aspect-ratio: 3 / 2;
  pointer-events: none;
}
.launch-portrait-motion {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
}
/* A single decoded image remains usable if its counterpart fails.
   These fallback backgrounds never appear when both portraits are ready.
   Readiness changes visibility only, not a composited animation's values. */
.launch-portrait-motion::before,
.launch-portrait-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: launch-fallback-portrait 7s linear both;
}
.launch-portrait-motion::before {
  background-image: url("/launch-character-closed-v4.webp?v=20261014-4");
}
.launch-portrait-motion::after {
  background-image: url("/launch-character-v2.webp?v=20261014-4");
}
#launchScreen.is-closed-ready:not(.is-image-ready) .launch-portrait-motion::before,
#launchScreen.is-image-ready:not(.is-closed-ready) .launch-portrait-motion::after {
  visibility: visible;
}
.launch-portrait,
.launch-portrait-closed,
.launch-character-lines {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.launch-portrait,
.launch-portrait-closed {
  object-fit: contain;
  object-position: center;
  visibility: hidden;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  will-change: opacity;
}
.launch-portrait {
  z-index: 0;
  animation: launch-portrait-reveal 7s linear both;
}
#launchScreen.is-image-ready.is-closed-ready .launch-portrait { visibility: visible; }
/* Full-length numeric timelines avoid a late variable change disagreeing
   with a cached opacity animation on the compositor. */
.launch-portrait-closed {
  z-index: 1;
  animation: launch-closed-portrait 7s linear both;
}
#launchScreen.is-image-ready.is-closed-ready .launch-portrait-closed { visibility: visible; }

/* These decorative overlays start only after the 3.16 s eye handoff.
   Keep the portrait/face still: only two masked outer hair locks move. */
.launch-hair-wind,
.launch-eye-glints {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  animation: launch-awake-details .16s 3.2s ease-out both;
}
#launchScreen.is-image-ready.is-closed-ready .launch-hair-wind,
#launchScreen.is-image-ready.is-closed-ready .launch-eye-glints { visibility: visible; }
.launch-hair-wind { z-index: 3; overflow: hidden; }
.launch-eye-glints { z-index: 4; overflow: hidden; }
.launch-hair-lock {
  transform-box: view-box;
  will-change: transform;
}
.launch-hair-lock-left {
  transform-origin: 663px 366px;
  animation: launch-hair-breeze-left 2s 3.2s ease-in-out both;
}
.launch-hair-lock-right {
  transform-origin: 1423px 243px;
  animation: launch-hair-breeze-right 2s 3.2s ease-in-out both;
}
.launch-iris-glow {
  opacity: 0;
  animation: launch-iris-breathe 1.8s 3.2s ease-in-out both;
}
.launch-eye-spark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: launch-eye-twinkle 1.8s 3.2s ease-in-out both;
}
.launch-eye-spark-right { animation-delay: 3.32s; }
.launch-eye-spark:nth-last-child(2) { animation-delay: 3.44s; }
.launch-iris-ray {
  opacity: 0;
  animation: launch-iris-flow 1.8s 3.2s ease-in-out both;
}
.launch-iris-ray:nth-child(3) { animation-delay: 3.38s; }

.launch-character-lines {
  z-index: 2;
  overflow: visible;
  fill: none;
  opacity: 1;
  pointer-events: none;
  animation: launch-wireframe-retire 3.16s linear both;
}
.launch-contours,
.launch-mesh { fill: none; }
.launch-contours path:nth-child(1) { --trace-delay: .15s; }
.launch-contours path:nth-child(2) { --trace-delay: .19s; }
.launch-contours path:nth-child(3) { --trace-delay: .23s; }
.launch-contours path:nth-child(4) { --trace-delay: .27s; }
.launch-contours path:nth-child(5) { --trace-delay: .31s; }
.launch-contours path:nth-child(6) { --trace-delay: .35s; }
.launch-contours path:nth-child(7) { --trace-delay: .39s; }
.launch-contours path:nth-child(8) { --trace-delay: .43s; }
.launch-contours path:nth-child(9) { --trace-delay: .47s; }
.launch-contours path:nth-child(10) { --trace-delay: .51s; }
.launch-contours path:nth-child(11) { --trace-delay: .55s; }
.launch-contours path:nth-child(12) { --trace-delay: .59s; }
.launch-contours path:nth-child(13) { --trace-delay: .63s; }
.launch-contours path:nth-child(14) { --trace-delay: .67s; }
.launch-contours path:nth-child(15) { --trace-delay: .71s; }
.launch-contours path:nth-child(16) { --trace-delay: .42s; }
.launch-contours path:nth-child(17) { --trace-delay: .50s; }
.launch-contours path:nth-child(18) { --trace-delay: .36s; }
.launch-contours path:nth-child(19) { --trace-delay: .40s; }
.launch-contours path:nth-child(20) { --trace-delay: .44s; }
.launch-contours path:nth-child(21) { --trace-delay: .48s; }
.launch-contours path:nth-child(22) { --trace-delay: .52s; }
.launch-contours path:nth-child(23) { --trace-delay: .73s; }
.launch-contours path:nth-child(24) { --trace-delay: .77s; }
.launch-contours path:nth-child(25) { --trace-delay: .81s; }
.launch-contours path:nth-child(26) { --trace-delay: .85s; }
.launch-contours path:nth-child(27) { --trace-delay: .69s; }
.launch-contours path:nth-child(28) { --trace-delay: .65s; }
.launch-contours path:nth-child(29) { --trace-delay: .89s; }
.launch-contours path:nth-child(30) { --trace-delay: .93s; }
.launch-contours path:nth-child(31) { --trace-delay: .87s; }
.launch-contours path:nth-child(32) { --trace-delay: .91s; }
.launch-contours path:nth-child(33) { --trace-delay: .83s; }
.launch-contours path:nth-child(34) { --trace-delay: .25s; }
.launch-contours path:nth-child(35) { --trace-delay: .29s; }
.launch-contours path:nth-child(36) { --trace-delay: .75s; }
.launch-contours path:nth-child(37) { --trace-delay: .79s; }
.launch-contours path:nth-child(38) { --trace-delay: .95s; }
.launch-contours path:nth-child(39) { --trace-delay: .17s; }
.launch-contours path:nth-child(40) { --trace-delay: .61s; }
/* Additional fine strands/folds keep the same contour completion budget. */
.launch-contours path:nth-child(41) { --trace-delay: .21s; }
.launch-contours path:nth-child(42) { --trace-delay: .33s; }
.launch-contours path:nth-child(43) { --trace-delay: .45s; }
.launch-contours path:nth-child(44) { --trace-delay: .57s; }
.launch-contours path:nth-child(45) { --trace-delay: .69s; }
.launch-contours path:nth-child(46) { --trace-delay: .81s; }
.launch-contours path:nth-child(47) { --trace-delay: .27s; }
.launch-contours path:nth-child(48) { --trace-delay: .39s; }
.launch-contours path:nth-child(49) { --trace-delay: .51s; }
.launch-contours path:nth-child(50) { --trace-delay: .63s; }
.launch-contours path:nth-child(51) { --trace-delay: .75s; }
.launch-contours path:nth-child(52) { --trace-delay: .87s; }
.launch-contours path:nth-child(53) { --trace-delay: .79s; }
.launch-contours path:nth-child(54) { --trace-delay: .83s; }
.launch-contours path:nth-child(55) { --trace-delay: .91s; }
.launch-contours path:nth-child(56) { --trace-delay: .95s; }
/* Fine lashes meet their closed-eye contour without extending the intro. */
.launch-contours path:nth-child(57) { --trace-delay: .72s; }
.launch-contours path:nth-child(58) { --trace-delay: .76s; }
.launch-contours path:nth-child(59) { --trace-delay: .80s; }
.launch-contours path:nth-child(60) { --trace-delay: .84s; }
.launch-contours path:nth-child(61) { --trace-delay: .88s; }
.launch-contours path:nth-child(62) { --trace-delay: .92s; }
.launch-contours path:nth-child(63) { --trace-delay: .75s; }
.launch-contours path:nth-child(64) { --trace-delay: .79s; }
.launch-contours path:nth-child(65) { --trace-delay: .83s; }
.launch-contours path:nth-child(66) { --trace-delay: .87s; }
.launch-contours path:nth-child(67) { --trace-delay: .91s; }
.launch-contours path:nth-child(68) { --trace-delay: .95s; }
.launch-mesh path:nth-child(1) { --trace-delay: .22s; }
.launch-mesh path:nth-child(2) { --trace-delay: .26s; }
.launch-mesh path:nth-child(3) { --trace-delay: .30s; }
.launch-mesh path:nth-child(4) { --trace-delay: .34s; }
.launch-mesh path:nth-child(5) { --trace-delay: .38s; }
.launch-mesh path:nth-child(6) { --trace-delay: .42s; }
.launch-mesh path:nth-child(7) { --trace-delay: .46s; }
.launch-mesh path:nth-child(8) { --trace-delay: .50s; }
.launch-mesh path:nth-child(9) { --trace-delay: .54s; }
.launch-mesh path:nth-child(10) { --trace-delay: .58s; }
.launch-mesh path:nth-child(11) { --trace-delay: .24s; }
.launch-mesh path:nth-child(12) { --trace-delay: .28s; }
.launch-mesh path:nth-child(13) { --trace-delay: .32s; }
.launch-mesh path:nth-child(14) { --trace-delay: .36s; }
.launch-mesh path:nth-child(15) { --trace-delay: .40s; }
.launch-mesh path:nth-child(16) { --trace-delay: .44s; }
.launch-mesh path:nth-child(17) { --trace-delay: .48s; }
.launch-mesh path:nth-child(18) { --trace-delay: .52s; }
.launch-mesh path:nth-child(19) { --trace-delay: .56s; }
.launch-mesh path:nth-child(20) { --trace-delay: .60s; }
.launch-mesh path:nth-child(21) { --trace-delay: .64s; }
.launch-mesh path:nth-child(22) { --trace-delay: .68s; }
.launch-mesh path:nth-child(23) { --trace-delay: .72s; }
.launch-mesh path:nth-child(24) { --trace-delay: .76s; }
/* Denser curved subdivisions still finish with the original last stroke. */
.launch-mesh path:nth-child(25) { --trace-delay: .25s; }
.launch-mesh path:nth-child(26) { --trace-delay: .29s; }
.launch-mesh path:nth-child(27) { --trace-delay: .33s; }
.launch-mesh path:nth-child(28) { --trace-delay: .37s; }
.launch-mesh path:nth-child(29) { --trace-delay: .41s; }
.launch-mesh path:nth-child(30) { --trace-delay: .45s; }
.launch-mesh path:nth-child(31) { --trace-delay: .49s; }
.launch-mesh path:nth-child(32) { --trace-delay: .53s; }
.launch-mesh path:nth-child(33) { --trace-delay: .59s; }
.launch-mesh path:nth-child(34) { --trace-delay: .65s; }
.launch-mesh path:nth-child(35) { --trace-delay: .71s; }
.launch-mesh path:nth-child(36) { --trace-delay: .76s; }
.launch-contours path {
  fill: none;
  stroke: #b3efff;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  vector-effect: non-scaling-stroke;
  animation: launch-contour-draw 1.12s calc(.15s + var(--trace-delay, 0s)) cubic-bezier(.27, .65, .35, 1) both;
}
.launch-mesh path {
  fill: none;
  stroke: #63d5e3;
  stroke-width: .75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: .65;
  vector-effect: non-scaling-stroke;
  animation: launch-mesh-draw .9s calc(1.2s + var(--trace-delay, 0s)) linear both;
}
.launch-contours path:nth-child(n+41) { stroke-width: .9; opacity: .82; }
.launch-contours path:nth-child(n+57) { stroke-width: .8; opacity: .92; }
.launch-mesh path:nth-child(n+25) { stroke-width: .65; opacity: .55; }
.launch-vignette {
  z-index: 3;
  background:
    linear-gradient(90deg, #06070b 0%, rgba(6, 7, 11, .96) 12%, rgba(6, 7, 11, .25) 42%, transparent 62%),
    linear-gradient(0deg, #06070b, transparent 25%),
    linear-gradient(180deg, rgba(6, 7, 11, .25), transparent 17%);
}
.launch-hud {
  position: absolute;
  inset: 12% 6.5%;
  z-index: 4;
  display: block;
  width: 87%;
  height: 76%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  animation: launch-hud-appear .7s 2.1s ease-out both;
}
.launch-hud > svg,
.launch-paths > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.launch-hud-trace {
  fill: none;
  stroke: rgba(103, 192, 202, .23);
  stroke-width: .8;
  stroke-linecap: square;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  vector-effect: non-scaling-stroke;
  animation: launch-hud-draw .85s 2.1s ease-out both;
}
.launch-paths {
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.launch-orbit-line,
.launch-orbit-echo {
  fill: none;
  stroke: rgba(125, 232, 240, .58);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  animation: launch-ambient-line 1.1s 2.3s ease-out both;
}
.launch-orbit-echo {
  stroke: rgba(114, 195, 209, .15);
  stroke-width: .65;
  animation-delay: 2.5s;
}
.launch-orbit-star {
  fill: #b5faff;
  opacity: 0;
  animation: launch-orbit-spark .6s 2.7s ease-out both;
}
/* The reference uses tiny framing details, not a separate central emblem. */
.launch-scan { display: none; }
.launch-stage {
  position: absolute;
  z-index: 5;
  top: 32%;
  left: 8.2%;
  width: min(45%, 650px);
  min-width: 0;
  text-align: left;
  pointer-events: none;
}
.launch-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #839ba4;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: .2em;
  animation: launch-label .45s 2.1s ease-out both;
}
.launch-kicker > span { display: block; }
.launch-logo {
  flex: 0 0 auto;
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #a6e6ed;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.launch-brand { position: relative; }
.launch-name {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(60px, 8.2vw, 142px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
  white-space: nowrap;
  animation: launch-title-arrive .12s 2.1s linear both;
}
.launch-title-outline,
.launch-title-fill { display: block; }
.launch-title-outline {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(169, 225, 233, .75);
  animation: launch-title-outline .85s 2.1s linear both;
}
.launch-title-fill {
  position: relative;
  color: transparent;
  background: linear-gradient(180deg, #fff 18%, #e5f0f5 62%, #abc7d8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  /* A small title-only wipe reproduces the reference's left-to-right fill. */
  clip-path: inset(0 100% 0 0);
  animation: launch-title-fill 1s 2.8s cubic-bezier(.27, .63, .35, 1) both;
}
.launch-wordmark {
  margin: 7px 0 0 3px;
  color: #bbd4db;
  font-size: clamp(9px, .85vw, 13px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .2em;
  animation: launch-label .55s 3.85s ease-out both;
}
.launch-tagline {
  margin: 29px 0 0 3px;
  color: #d8e4e8;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .06em;
  animation: launch-label .55s 3.65s ease-out both;
}
.launch-description {
  margin: 7px 0 0 3px;
  color: #81959d;
  font-size: clamp(9px, .85vw, 12px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .2em;
  animation: launch-label .55s 3.85s ease-out both;
}
.launch-corner {
  position: absolute;
  top: max(32px, env(safe-area-inset-top));
  left: 8.2%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b9ca4;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .16em;
  pointer-events: none;
  animation: launch-label .5s .15s ease-out both;
}
.launch-corner svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #98cdd5;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.launch-skip {
  position: absolute;
  top: max(25px, env(safe-area-inset-top));
  right: max(30px, env(safe-area-inset-right));
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(153, 207, 218, .17);
  border-radius: 24px;
  color: #b7cdd6;
  background: rgba(12, 20, 26, .6);
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.launch-skip:hover {
  border-color: rgba(177, 236, 244, .4);
  color: #f4fcff;
  background: rgba(47, 99, 118, .19);
}
.launch-skip:focus-visible {
  outline: 2px solid #a5ebf3;
  outline-offset: 5px;
}
.launch-skip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.launch-footnote {
  position: absolute;
  z-index: 5;
  bottom: max(49px, calc(env(safe-area-inset-bottom) + 28px));
  left: 8.2%;
  display: flex;
  align-items: center;
  gap: 19px;
  max-width: calc(100% - 70px);
  pointer-events: none;
  color: #71858f;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .16em;
  animation: launch-label .6s 3.2s ease-out both;
}
.launch-progress {
  width: 106px;
  height: 1px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(111, 179, 193, .17);
}
.launch-progress > span {
  display: block;
  width: 100%;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, #466f7c, #a6edf5);
  animation: launch-timeline 4.6s linear both;
}
.launch-coordinate {
  position: absolute;
  z-index: 5;
  right: max(33px, env(safe-area-inset-right));
  bottom: max(49px, calc(env(safe-area-inset-bottom) + 28px));
  color: #5f737e;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .15em;
  pointer-events: none;
  animation: launch-label .6s 3.2s ease-out both;
}
@keyframes launch-contour-draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@keyframes launch-mesh-draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@keyframes launch-wireframe-retire {
  /* Last mesh stroke ends at 1.2 + .76 + .9 = 2.86 s.
     Keep every line visible until then; dissolve with the closed portrait. */
  0%, 90.506329% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes launch-portrait-reveal {
  0%, 37.142857% { opacity: 0; }
  /* Paint the open frame underneath the already-opaque closed frame
     from 2.6 to 2.8 s, before the 2.86 s handoff. No one-frame 0 -> 1 jump. */
  40%, 100% { opacity: 1; }
}
@keyframes launch-closed-portrait {
  0%, 27.142857% { opacity: 0; }
  37.142857%, 40.857143% { opacity: 1; }
  /* Preserve the previous full-frame reveal; both overlays retire together. */
  45.142857%, 100% { opacity: 0; }
}
@keyframes launch-fallback-portrait {
  0%, 27.142857% { opacity: 0; }
  37.142857%, 100% { opacity: 1; }
}
@keyframes launch-awake-details {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes launch-hair-breeze-left {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, .5px) rotate(-.25deg); }
  58% { transform: translate(-.6px, -.3px) rotate(.08deg); }
  82% { transform: translate(1.8px, .4px) rotate(.16deg); }
}
@keyframes launch-hair-breeze-right {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  32% { transform: translate(-2.6px, -.4px) rotate(-.22deg); }
  64% { transform: translate(.8px, .3px) rotate(.12deg); }
  84% { transform: translate(1.5px, .4px) rotate(.16deg); }
}
@keyframes launch-iris-breathe {
  0%, 100% { opacity: 0; }
  25% { opacity: .65; }
  55% { opacity: .18; }
  80% { opacity: .55; }
}
@keyframes launch-eye-twinkle {
  0%, 100% { opacity: 0; transform: scale(.75); }
  24% { opacity: .85; transform: scale(1.12); }
  55% { opacity: .15; transform: scale(.88); }
  80% { opacity: .7; transform: scale(1.04); }
}
@keyframes launch-iris-flow {
  0%, 100% { opacity: 0; transform: translateY(0); }
  30% { opacity: .8; transform: translateY(4px); }
  58% { opacity: .18; transform: translateY(-3px); }
  82% { opacity: .65; transform: translateY(2px); }
}
@keyframes launch-hud-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes launch-hud-appear {
  from { opacity: 0; }
  to { opacity: .65; }
}
@keyframes launch-ambient-line {
  from { opacity: 0; }
  to { opacity: .58; }
}
@keyframes launch-orbit-spark {
  from { opacity: 0; }
  to { opacity: .65; }
}
@keyframes launch-title-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes launch-title-outline {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  15% { opacity: 1; }
  to { opacity: .7; clip-path: inset(0 0 0 0); }
}
@keyframes launch-title-fill {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes launch-label {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes launch-timeline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes launch-safety {
  to { visibility: hidden; pointer-events: none; }
}
@keyframes launch-depart {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes launch-workbench-enter {
  from { opacity: 0; pointer-events: none; }
  99.9% { pointer-events: none; }
  to { opacity: 1; pointer-events: auto; }
}
@keyframes launch-workbench-safety {
  to { opacity: 1; pointer-events: auto; }
}
@media (min-aspect-ratio: 19 / 9) {
  .launch-character { right: 1vw; }
  .launch-stage { top: 24%; }
  .launch-name { font-size: clamp(60px, 8.2vw, 142px); }
}
@media (max-width: 680px) and (min-height: 551px) {
  .launch-character {
    top: 5vh;
    right: -25vw;
    width: 200vw;
    height: calc(200vw * 2 / 3);
    mask-image: linear-gradient(transparent 0%, #000 9%, #000 53%, rgba(0, 0, 0, .65) 72%, transparent 97%);
    -webkit-mask-image: linear-gradient(transparent 0%, #000 9%, #000 53%, rgba(0, 0, 0, .65) 72%, transparent 97%);
  }
  .launch-vignette {
    background:
      linear-gradient(90deg, rgba(6, 7, 11, .3), transparent 48%),
      linear-gradient(0deg, #06070b 10%, rgba(6, 7, 11, .9) 30%, transparent 62%),
      linear-gradient(180deg, rgba(6, 7, 11, .35), transparent 23%);
  }
  .launch-hud { inset: 12% 6%; width: 88%; }
  .launch-stage {
    top: auto;
    bottom: 16.5%;
    left: 9%;
    width: 82%;
  }
  .launch-kicker { font-size: 8px; gap: 10px; letter-spacing: .15em; }
  .launch-logo { width: 24px; height: 24px; }
  .launch-name { margin-top: 0; font-size: clamp(48px, 17vw, 82px); }
  .launch-wordmark { margin-top: 7px; font-size: 10px; letter-spacing: .18em; }
  .launch-tagline { margin-top: 22px; font-size: 17px; letter-spacing: .04em; }
  .launch-description { margin-top: 7px; font-size: 10px; letter-spacing: .15em; }
  .launch-corner { top: max(26px, env(safe-area-inset-top)); left: 9%; font-size: 7px; gap: 7px; }
  .launch-corner svg { width: 13px; height: 13px; }
  .launch-skip { top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); min-width: 77px; }
  .launch-footnote { left: 9%; bottom: max(33px, calc(env(safe-area-inset-bottom) + 20px)); gap: 14px; font-size: 7px; letter-spacing: .1em; }
  .launch-progress { width: 62px; }
  .launch-coordinate { display: none; }
  .launch-orbit-line { stroke-width: .8; }
}
@media (max-width: 680px) and (min-height: 551px) and (max-height: 740px) {
  .launch-kicker { display: none; }
}
@media (max-height: 550px) {
  .launch-character { right: -3vw; }
  .launch-hud { inset: 19% 5%; width: 90%; height: 65%; }
  .launch-stage { top: 24%; left: 7%; width: 45%; }
  .launch-kicker { font-size: 7px; letter-spacing: .15em; gap: 9px; }
  .launch-logo { width: 21px; height: 21px; }
  .launch-name { margin-top: 0; font-size: clamp(42px, 7.1vw, 72px); }
  .launch-wordmark { margin-top: 5px; font-size: 9px; letter-spacing: .17em; }
  .launch-tagline { margin-top: 15px; font-size: 13px; }
  .launch-description { margin-top: 5px; font-size: 9px; letter-spacing: .12em; }
  .launch-corner { top: 21px; left: 7%; font-size: 7px; }
  .launch-skip { top: max(14px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); }
  .launch-footnote { left: 7%; bottom: max(18px, env(safe-area-inset-bottom)); font-size: 7px; gap: 12px; }
  .launch-progress { width: 72px; }
  .launch-coordinate { bottom: max(18px, env(safe-area-inset-bottom)); right: 22px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  #launchScreen:not([hidden]) ~ .workbench,
  #launchScreen:not([hidden]) ~ .development-ribbon {
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: none !important;
  }
  /* The watchdog must survive the app's global animation:none!important rule. */
  #launchScreen.launch-screen { animation: launch-safety .25s step-end forwards !important; }
  #launchScreen.launch-screen.is-leaving { visibility: hidden; pointer-events: none; }
  #launchScreen .launch-character-lines,
  #launchScreen .launch-hair-wind,
  #launchScreen .launch-eye-glints,
  #launchScreen .launch-portrait-motion::before,
  #launchScreen .launch-portrait-motion::after,
  #launchScreen .launch-portrait-closed,
  #launchScreen .launch-hud,
  #launchScreen .launch-paths,
  #launchScreen .launch-scan { display: none; }
  #launchScreen .launch-haze,
  #launchScreen .launch-portrait,
  #launchScreen .launch-kicker,
  #launchScreen .launch-name,
  #launchScreen .launch-title-fill,
  #launchScreen .launch-wordmark,
  #launchScreen .launch-tagline,
  #launchScreen .launch-description,
  #launchScreen .launch-footnote,
  #launchScreen .launch-corner,
  #launchScreen .launch-coordinate { opacity: 1; transform: none; }
  #launchScreen .launch-portrait { will-change: auto; }
  #launchScreen .launch-title-outline { display: none; }
  #launchScreen .launch-title-fill { clip-path: none; }
  #launchScreen .launch-progress > span { transform: none; }
}
