@font-face {
  font-family: Geist;
  src: url('sr-launch-geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Caveat;
  src: url('sr-launch-caveat.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

.launch-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  max-width: 67rem;
  padding-block: clamp(2rem, 6vw, 5rem);
}

.launch-copy .eyebrow { margin-top: 2.35rem; }
.launch-copy h1 { margin: .7rem 0 1rem; font-size: clamp(2.65rem, 7vw, 6rem); }
.launch-copy p:not(.eyebrow) { max-width: 30rem; color: var(--muted); }
.launch-copy .actions { margin-top: 1.15rem; }
.launch-copy button { cursor: pointer; }
.launch-filter { position: absolute; }
.launch-device { position: relative; width: 100%; max-width: 414px; aspect-ratio: 414 / 868; }
.launch-phone { position: absolute; top: 0; left: 0; transform: scale(var(--launch-scale, .72)); transform-origin: top left; }
.launch-entry { text-decoration: none; }
.launch-entry:hover { text-decoration: underline; text-underline-offset: .2em; }
.launch-entry:focus-visible { outline-color: #fde68a; outline-offset: -4px; }
[data-opening-toggle][hidden] { display: none; }

.launch-phone[data-phase='splash'] .launch-entry { visibility: hidden; }
.launch-phone[data-phase='splash'] .launch-splash { animation: launch-overlay 5.2s both; }
.launch-phone[data-phase='splash'] .launch-splash [data-a^='once:'] {
  animation-duration: var(--opening-duration);
  animation-delay: var(--opening-delay);
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}
.launch-phone[data-phase='splash'] [data-a^='once:fade'] { animation-name: launch-fade; }
.launch-phone[data-phase='splash'] [data-a^='once:drop'] { animation-name: launch-drop; }
.launch-phone[data-phase='splash'] [data-a^='once:grow'] { animation-name: launch-grow; }
.launch-phone[data-phase='splash'] [data-a^='once:line'] { animation-name: launch-line; }
.launch-phone[data-phase='splash'] [data-a^='once:launch'] { animation-name: launch-rocket; }

@keyframes launch-overlay { 0%, 91% { opacity: 1; } 100% { opacity: 0; } }
@keyframes launch-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes launch-drop { from { opacity: 0; transform: translateY(-45px); } to { opacity: 1; transform: translateY(0); } }
@keyframes launch-grow { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; transform: scaleX(1); } }
@keyframes launch-line { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes launch-rocket { from { opacity: 0; transform: translate(-19px, 35px); } to { opacity: 1; transform: translate(0); } }

@media (max-width: 45rem) {
  .launch-workbench { grid-template-columns: 1fr; }
  .launch-device { width: min(100%, 22rem); justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-phone[data-phase='splash'] .launch-splash { animation: none; opacity: 1 !important; }
  .launch-phone[data-phase='splash'] .launch-splash [data-a^='once:'] { animation: none; }
}
