/* Hero — editorial intro + cinematic rocket launch (js/hero-launch.js) */

:root {
  --header-h: 104px;
}

html.launch-scroll-lock,
html.launch-scroll-lock body {
  overflow: hidden;
}

.launch-hero {
  --paper: #f3ede2;
  --ink: #16140f;
  --ink-soft: #5a544b;
  --violet: #4a3aff;
  --violet-deep: #2c1fd6;
  --violet-soft: #b9b0ff;
  --amber: #f59e0b;
  --hairline: rgba(22, 20, 15, 0.14);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .18 0 0 0 0 .12 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-light: radial-gradient(90% 70% at 88% 4%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 62%);
  --paper-tint: radial-gradient(70% 60% at 0% 100%, rgba(74, 58, 255, 0.08), rgba(74, 58, 255, 0) 70%);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background: #05050d;
  font-family: Inter, system-ui, sans-serif;
}

.launch-hero [hidden] {
  display: none !important;
}

/* ---------- Layers ---------- */

.launch-hero .launch-hero__space {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 45% at 72% 30%, rgba(74, 58, 255, 0.38), rgba(74, 58, 255, 0) 70%),
    radial-gradient(45% 40% at 18% 78%, rgba(84, 221, 252, 0.12), rgba(84, 221, 252, 0) 70%),
    radial-gradient(40% 35% at 88% 92%, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0) 70%),
    radial-gradient(120% 100% at 50% 50%, #0d0b24 0%, #05050d 72%);
}

.launch-hero .launch-hero__space::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 33% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 14%, #dcd8ff, transparent),
    radial-gradient(1px 1px at 76% 54%, #fff, transparent),
    radial-gradient(1px 1px at 88% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 88%, #fff3d6, transparent),
    radial-gradient(1px 1px at 47% 41%, #fff, transparent),
    radial-gradient(1px 1px at 66% 83%, #cfe9ff, transparent);
  background-size: 340px 340px;
}

.launch-hero .launch-hero__paper,
.launch-hero .launch-shard {
  background-color: var(--paper);
  background-image: var(--paper-grain), var(--paper-light), var(--paper-tint);
}

.launch-hero .launch-hero__paper {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: 220px 220px, 100% 100%, 100% 100%;
}

.launch-hero .launch-hero__shards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1100px;
}

.launch-hero .launch-shard {
  position: absolute;
  background-size: 220px 220px, var(--hero-w) var(--hero-h), var(--hero-w) var(--hero-h);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.launch-hero.is-shattering .launch-hero__paper {
  visibility: hidden;
}

.launch-hero .launch-hero__canvas {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  visibility: hidden;
}

.launch-hero:not([data-launch-state="idle"]) .launch-hero__canvas {
  visibility: visible;
}

.launch-hero .launch-hero__flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 255, 255, 0.95), rgba(170, 160, 255, 0.55) 16%, rgba(74, 58, 255, 0) 58%);
  mix-blend-mode: screen;
}

/* ---------- Editorial intro ---------- */

.launch-hero .launch-hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(20px, 4.5vh, 56px)) clamp(20px, 4vw, 56px) clamp(24px, 4.5vh, 52px);
}

.launch-hero:not([data-launch-state="idle"]) .launch-hero__inner {
  pointer-events: none;
  user-select: none;
}

.launch-hero[data-launch-state="completed"] {
  height: 100vh;
  height: 100svh;
}

.launch-hero[data-launch-state="completed"] .launch-hero__inner {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.launch-hero[data-launch-state="completed"] .launch-hero__paper,
.launch-hero[data-launch-state="completed"] .launch-hero__shards {
  display: none;
}

.launch-hero .hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}

.launch-hero .hero-copy {
  min-width: 0;
}

.launch-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  font: 500 11px/16px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.launch-hero .hero-meta__index {
  color: var(--violet);
}

.launch-hero .hero-meta__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.launch-hero .hero-meta__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.launch-hero .hero-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
  margin: clamp(18px, 3.2vh, 34px) 0 0;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(3.1rem, min(8.3vw, 13.2vh), 9rem);
  font-variation-settings: "opsz" 96;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: #fff;
}

.launch-hero .hero-name__line {
  position: relative;
  display: inline-block;
  padding: 0.06em 0.16em 0.1em;
  background: var(--violet);
  white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.launch-hero .hero-name__line + .hero-name__line {
  margin-left: 0.55em;
}

.launch-hero[data-launch-state="idle"] .hero-name__line:hover {
  transform: translate(-0.04em, -0.04em);
  box-shadow: 0.08em 0.08em 0 var(--ink);
}

.launch-hero .hero-name__char {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.launch-hero .hero-name__slab {
  position: absolute;
  z-index: 0;
  background: var(--violet);
}

.launch-hero.is-shattering .hero-name__line {
  background: transparent;
  box-shadow: none;
}

.launch-hero .hero-role {
  max-width: 30ch;
  margin: clamp(18px, 3.2vh, 32px) 0 0;
  font-size: clamp(1.15rem, 1.65vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.launch-hero .hero-role em {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.14em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--violet);
}

.launch-hero .hero-bio {
  max-width: 50ch;
  margin: 12px 0 0;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.launch-hero .hero-bio strong {
  font-weight: 600;
  color: var(--ink);
}

.launch-hero .hero-word {
  display: inline-block;
}

.launch-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(22px, 3.8vh, 38px);
}

.launch-hero .hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 0.35s ease, color 0.2s ease;
}

.launch-hero .hero-link:hover,
.launch-hero .hero-link:focus-visible {
  color: var(--violet);
  background-size: 100% 1px;
}

.launch-hero .hero-link:focus-visible,
.launch-hero .sound-toggle:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 4px;
}

.launch-hero .hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(22px, 4vh, 44px);
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.launch-hero .hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 11px/16px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.launch-hero .sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.launch-hero .sound-toggle:hover {
  color: var(--ink);
  border-color: rgba(22, 20, 15, 0.3);
}

.launch-hero .sound-toggle svg {
  width: 14px;
  height: 14px;
}

.launch-hero .sound-toggle .icon-on {
  display: none;
}

.launch-hero .sound-toggle[aria-pressed="true"] .icon-on {
  display: block;
}

.launch-hero .sound-toggle[aria-pressed="true"] .icon-off {
  display: none;
}

/* ---------- Portrait ---------- */

.launch-hero .hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
  margin: 0 18px 0 0;
}

.launch-hero .hero-portrait__frame {
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 4 / 5;
  background: var(--violet);
  transform: translate(18px, 18px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.launch-hero .hero-portrait__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d8d0c2;
}

.launch-hero .hero-portrait__hit {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.launch-hero .hero-portrait__hit:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.launch-hero .hero-portrait.is-cycle-off .hero-portrait__hit {
  cursor: default;
  pointer-events: none;
}

.launch-hero .hero-portrait__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 50% 40%;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

/* Crop of the 576×1024 source: keeps the face, trims the background on the left. */
.launch-hero .hero-portrait__media img[data-fit="polo"] {
  inset: auto;
  left: -115.05%;
  top: -108.5%;
  width: 215.05%;
  height: auto;
  object-fit: unset;
  object-position: unset;
  transform-origin: 38% 42%;
}

.launch-hero .hero-portrait__swap {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.04);
}

.launch-hero .hero-portrait__swap.is-in {
  opacity: 1;
  transform: scale(1);
}

.launch-hero .hero-portrait__media img,
.launch-hero .hero-portrait__tile {
  filter: saturate(0.92) contrast(1.04);
}

.launch-hero[data-launch-state="idle"] .hero-portrait:not(.is-swapping):hover .hero-portrait__hit > img:first-of-type {
  transform: scale(1.035);
}

.launch-hero[data-launch-state="idle"] .hero-portrait:not(.is-cycle-off):hover .hero-portrait__frame {
  transform: translate(24px, 24px);
}

.launch-hero .hero-portrait__dots {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}

.launch-hero .hero-portrait__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(243, 237, 226, 0.45);
  box-shadow: 0 0 0 1px rgba(22, 20, 15, 0.18);
  transition: width 0.25s ease, background 0.25s ease;
}

.launch-hero .hero-portrait__dots span.is-on {
  width: 18px;
  background: #fff;
}

.launch-hero .hero-portrait__hint {
  position: absolute;
  right: 12px;
  bottom: 58px;
  z-index: 2;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(22, 20, 15, 0.12);
  border-radius: 999px;
  background: rgba(243, 237, 226, 0.88);
  color: var(--ink-soft);
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.launch-hero[data-launch-state="idle"] .hero-portrait:not(.is-cycle-off):hover .hero-portrait__hint,
.launch-hero[data-launch-state="idle"] .hero-portrait:has(.hero-portrait__hit:focus-visible) .hero-portrait__hint {
  opacity: 1;
  transform: translateY(0);
}

.launch-hero .hero-portrait.is-cycle-off .hero-portrait__dots,
.launch-hero .hero-portrait.is-cycle-off .hero-portrait__hint {
  opacity: 0;
}

.launch-hero.is-shattering .hero-portrait__media {
  background: transparent;
}

.launch-hero.is-shattering .hero-portrait__media img {
  visibility: hidden;
}

.launch-hero .hero-portrait__tiles {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  perspective: 1100px;
}

.launch-hero .hero-portrait__tile {
  position: absolute;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.launch-hero .hero-portrait__caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  font: 500 11px/16px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.launch-hero .hero-portrait__caption span:first-child {
  color: var(--ink);
}

.launch-hero .hero-badge {
  position: absolute;
  top: 34px;
  left: -50px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px -16px rgba(22, 20, 15, 0.35);
}

.launch-hero .hero-badge svg {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  animation: hero-badge-spin 22s linear infinite;
}

.launch-hero .hero-badge text {
  font: 600 9.5px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  fill: var(--ink);
}

.launch-hero .hero-badge__core {
  font-size: 22px;
  color: var(--violet);
}

@keyframes hero-badge-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Rocket launch button ---------- */

.launch-hero .rocket-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 14px 34px -16px rgba(74, 58, 255, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25), box-shadow 0.4s ease;
}

.launch-hero .rocket-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--violet), #9c90ff, var(--amber), var(--violet));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.launch-hero .rocket-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
}

.launch-hero .rocket-btn__badge {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--violet);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.launch-hero .rocket-btn__badge::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--violet);
  border-radius: 50%;
  opacity: 0;
  animation: rocket-ping 2.8s ease-out infinite;
}

.launch-hero .rocket-btn__ship {
  position: relative;
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.35), opacity 0.3s ease;
}

.launch-hero .rocket-btn__ship svg {
  display: block;
  width: 100%;
  height: 100%;
}

.launch-hero .rocket-btn__flame {
  position: absolute;
  top: 80%;
  left: 50%;
  width: 7px;
  height: 10px;
  margin-left: -3.5px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: radial-gradient(circle at 50% 22%, #fff 0 20%, #ffd27a 36%, var(--amber) 62%, rgba(245, 158, 11, 0) 76%);
  transform-origin: 50% 0;
  transform: scaleY(0.55);
  opacity: 0.85;
  animation: rocket-flicker 0.12s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

.launch-hero .rocket-btn__puffs i {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
}

.launch-hero .rocket-btn__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.launch-hero .rocket-btn__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.launch-hero .rocket-btn__sub {
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.launch-hero .rocket-btn__kbd {
  margin-left: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  color: rgba(255, 255, 255, 0.7);
}

.launch-hero[data-launch-state="idle"] .rocket-btn:hover,
.launch-hero[data-launch-state="idle"] .rocket-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -16px rgba(74, 58, 255, 0.95);
}

.launch-hero[data-launch-state="idle"] .rocket-btn:hover::before,
.launch-hero[data-launch-state="idle"] .rocket-btn:focus-visible::before {
  opacity: 1;
}

.launch-hero[data-launch-state="idle"] .rocket-btn:hover .rocket-btn__badge {
  box-shadow: 0 0 22px rgba(124, 108, 255, 0.85);
}

.launch-hero[data-launch-state="idle"] .rocket-btn:hover .rocket-btn__ship,
.launch-hero[data-launch-state="idle"] .rocket-btn:focus-visible .rocket-btn__ship {
  transform: rotate(36deg) translate(1px, -3px);
}

.launch-hero[data-launch-state="idle"] .rocket-btn:hover .rocket-btn__flame,
.launch-hero[data-launch-state="idle"] .rocket-btn:focus-visible .rocket-btn__flame {
  transform: scaleY(1.35);
}

.launch-hero[data-launch-state="idle"] .rocket-btn:hover .rocket-btn__puffs i {
  animation: rocket-puff 0.9s ease-out infinite;
}

.launch-hero .rocket-btn__puffs i:nth-child(2) {
  animation-delay: 0.3s !important;
}

.launch-hero .rocket-btn__puffs i:nth-child(3) {
  animation-delay: 0.6s !important;
}

.launch-hero[data-launch-state="idle"] .rocket-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.launch-hero .rocket-btn:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

.launch-hero[data-launch-state="igniting"] .rocket-btn__ship {
  animation: rocket-shake 0.06s linear infinite;
}

.launch-hero[data-launch-state="igniting"] .rocket-btn__flame {
  transform: scaleY(2.3);
}

.launch-hero:not([data-launch-state="idle"]) .rocket-btn {
  cursor: default;
}

.launch-hero:not([data-launch-state="idle"]) .rocket-btn__badge::after {
  animation: none;
}

.launch-hero.is-rocket-away .rocket-btn__ship {
  animation: none;
  opacity: 0;
  transform: rotate(45deg) translateY(-34px) scale(0.4);
  transition: transform 0.28s cubic-bezier(0.5, 0, 0.9, 0.4), opacity 0.28s ease;
}

@keyframes rocket-ping {
  0% {
    opacity: 0.75;
    transform: scale(0.92);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes rocket-flicker {
  to {
    opacity: 1;
    filter: brightness(1.25);
  }
}

@keyframes rocket-puff {
  0% {
    opacity: 0.85;
    transform: translateY(0) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translateY(16px) scale(1.7);
  }
}

@keyframes rocket-shake {
  0% {
    transform: rotate(45deg) translate(0.6px, -0.4px);
  }
  50% {
    transform: rotate(45deg) translate(-0.6px, 0.5px);
  }
  100% {
    transform: rotate(45deg) translate(0.4px, 0.6px);
  }
}

/* ---------- Cinematic overlays ---------- */

.launch-hero .launch-skip {
  position: absolute;
  top: calc(var(--header-h) + 16px);
  right: clamp(16px, 3vw, 40px);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(12, 10, 30, 0.55);
  color: #fff;
  font: 500 12px/1 Inter, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
  animation: launch-fade-in 0.4s 0.6s both;
}

.launch-hero .launch-skip kbd {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font: 500 10px/1 "JetBrains Mono", monospace;
}

.launch-hero .launch-skip:focus-visible,
.launch-hero .launch-world :focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}

.launch-hero .launch-fallback-rocket {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: none;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  color: #fff;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(124, 108, 255, 0.8));
}

.launch-hero.is-fallback .launch-fallback-rocket {
  display: block;
}

.launch-hero .launch-fallback-rocket .rocket-btn__flame {
  top: 82%;
  width: 22px;
  height: 34px;
  margin-left: -11px;
  transform: scaleY(1.4);
}

.launch-hero .corgi-bubble {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  padding: 8px 14px;
  border: 1px solid rgba(185, 176, 255, 0.45);
  border-radius: 999px;
  background: rgba(14, 12, 38, 0.85);
  color: #fff;
  font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
}

.launch-hero .corgi-bubble.is-visible {
  opacity: 1;
}

/* ---------- New world (after the launch) ---------- */

.launch-hero .launch-world {
  position: absolute;
  inset: 0;
  z-index: 5;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 24px) clamp(20px, 4vw, 56px) clamp(28px, 6vh, 64px);
  color: #fff;
  pointer-events: none;
}

.launch-hero .launch-world > * {
  pointer-events: auto;
}

.launch-hero .launch-world [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.launch-hero .launch-world.is-visible [data-reveal] {
  opacity: 1;
  transform: none;
}

.launch-hero .launch-world__copy {
  max-width: 600px;
}

.launch-hero .launch-world__eyebrow {
  margin: 0;
  font: 500 11px/16px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

.launch-hero .launch-world__title {
  margin: 14px 0 0;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  outline: none;
}

.launch-hero .launch-world__title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--violet-soft);
}

.launch-hero .launch-world__text {
  max-width: 48ch;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.launch-hero .launch-world__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.launch-hero .world-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.launch-hero .world-link:hover {
  border-color: var(--violet-soft);
  background: rgba(74, 58, 255, 0.35);
  transform: translateY(-1px);
}

.launch-hero .world-link--primary {
  border-color: transparent;
  background: var(--violet);
}

.launch-hero .world-link--primary:hover {
  background: var(--violet-deep);
}

.launch-hero .launch-world__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: clamp(22px, 4vh, 40px);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.launch-hero .world-controls__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.launch-hero.is-fallback .world-controls__group {
  visibility: hidden;
}

.launch-hero .world-controls__label {
  margin-right: 4px;
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.launch-hero .world-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font: 500 12px/1 Inter, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.launch-hero .world-chip:hover {
  border-color: var(--violet-soft);
  background: rgba(74, 58, 255, 0.3);
  color: #fff;
}

.launch-hero .world-chip svg {
  width: 14px;
  height: 14px;
}

.launch-hero .launch-world .sound-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  min-height: 36px;
}

.launch-hero .launch-world .sound-toggle:hover {
  color: #fff;
  border-color: var(--violet-soft);
}

.launch-hero.is-returning .launch-hero__inner,
.launch-hero.is-returning .launch-hero__paper {
  animation: hero-return 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes hero-return {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes launch-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .launch-hero .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 44px;
  }

  .launch-hero .hero-portrait {
    justify-self: start;
    width: min(76%, 400px);
    margin: 0 0 18px;
  }

  .launch-hero .hero-badge {
    top: -28px;
    right: -42px;
    left: auto;
    width: 92px;
    height: 92px;
  }

  .launch-hero .launch-world {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .launch-hero .hero-name {
    font-size: clamp(2.9rem, 15.5vw, 4.6rem);
  }

  .launch-hero .hero-name__line + .hero-name__line {
    margin-left: 0.4em;
  }

  .launch-hero .hero-actions {
    gap: 12px 22px;
  }

  .launch-hero .rocket-btn {
    width: 100%;
    min-height: 64px;
  }

  .launch-hero .rocket-btn__kbd {
    display: none;
  }

  .launch-hero .hero-foot {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .launch-hero .launch-world {
    padding-bottom: 20px;
  }

  .launch-hero .launch-world__title {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .launch-hero .launch-world__text {
    font-size: 0.95rem;
  }

  .launch-hero .launch-world__controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-hero .rocket-btn__badge::after,
  .launch-hero .rocket-btn__flame,
  .launch-hero .hero-badge svg {
    animation: none;
  }

  .launch-hero[data-launch-state="idle"] .rocket-btn:hover .rocket-btn__puffs i {
    animation: none;
  }

  .launch-hero[data-launch-state="igniting"] .rocket-btn__ship {
    animation: none;
  }

  .launch-hero .launch-world [data-reveal] {
    transform: none;
    transition: opacity 0.5s ease;
  }
}
