:root {
  color-scheme: dark;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "Cascadia Mono", monospace;
  --ink: #f5f7fb;
  --muted: rgba(229, 235, 245, 0.58);
  --faint: rgba(229, 235, 245, 0.22);
  --line: rgba(226, 233, 244, 0.15);
  --panel: rgba(9, 13, 21, 0.56);
  --accent: #9bbcf7;
  --accent-rgb: 155, 188, 247;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #030509;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-sans);
  background: #030509;
  transition: --accent 500ms ease;
}

body[data-route="sepia"] {
  --accent: #d8a36f;
  --accent-rgb: 216, 163, 111;
}

body[data-route="marcos"] {
  --accent: #91b7ff;
  --accent-rgb: 145, 183, 255;
}

body[data-route="foxi"] {
  --accent: #ff5a35;
  --accent-rgb: 255, 90, 53;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #05070b;
  background: #fff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.atmosphere,
.atmosphere__video,
.atmosphere__wash,
.atmosphere__grid,
.atmosphere__grain {
  position: fixed;
  inset: 0;
}

.atmosphere {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 44%, rgba(var(--accent-rgb), 0.17), transparent 32%),
    linear-gradient(124deg, #030509 0%, #080d15 54%, #030408 100%);
  transition: background 650ms var(--ease-out);
}

.atmosphere__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.11;
  filter: grayscale(0.35) saturate(0.8) contrast(1.14) brightness(0.68);
  transform: scale(1.025);
  transition: opacity 400ms ease, filter 500ms ease;
}

.video-unavailable .atmosphere__video,
.video-paused .atmosphere__video {
  opacity: 0.68;
}

.atmosphere__wash {
  background:
    radial-gradient(ellipse at 72% 45%, transparent 0 13%, rgba(3, 5, 9, 0.35) 48%, #030509 88%),
    linear-gradient(90deg, rgba(3, 5, 9, 0.98) 0%, rgba(3, 5, 9, 0.74) 44%, rgba(3, 5, 9, 0.34) 71%, rgba(3, 5, 9, 0.76) 100%);
}

.atmosphere__grid {
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, transparent, #000 36%, #000 80%, transparent);
}

.atmosphere__grain {
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 112rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1.25rem, 4.2vw, 5rem) clamp(1.1rem, 2vw, 2rem);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  font: 500 0.65rem/1 var(--font-mono);
  letter-spacing: -0.06em;
  border-radius: 0.15rem;
  text-indent: -0.02em;
}

.brand__mark::after {
  content: "";
  position: absolute;
}

.brand__name {
  letter-spacing: 0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.8vw, 2.2rem);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.primary-nav a {
  position: relative;
  padding: 0.5rem 0;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.launcher {
  display: grid;
  grid-template-columns: minmax(33rem, 0.95fr) minmax(25rem, 0.72fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 10rem);
  padding: clamp(4.5rem, 9vh, 8rem) 0 clamp(3rem, 7vh, 6rem);
}

.launcher__choice {
  width: 100%;
  max-width: 46rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  width: min(100%, 38rem);
  margin: 0 0 1.35rem;
  color: var(--muted);
  font: 400 0.64rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  margin: 0 0.85rem;
  background: var(--line);
  order: 2;
}

.eyebrow b {
  color: var(--accent);
  font-weight: 500;
  order: 3;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 7.2rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.intro {
  max-width: 33rem;
  margin: 1.7rem 0 clamp(2.25rem, 4.6vh, 3.5rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  font-weight: 300;
  line-height: 1.55;
}

.intro strong {
  color: var(--ink);
  font-weight: 500;
}

.intro__line {
  display: block;
}

.intro__line + .intro__line {
  margin-top: 0.45rem;
}

.route-list {
  border-top: 1px solid var(--line);
}

.route-option {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: clamp(4.7rem, 8.4vh, 6.6rem);
  padding: 0.9rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transition: padding 320ms var(--ease-out), border-color 220ms ease;
}

.route-option::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent 76%);
  opacity: 0;
  transform: scaleX(0.96);
  transform-origin: left;
  transition: opacity 220ms ease, transform 360ms var(--ease-out);
}

.route-option__index,
.route-option__copy small {
  color: var(--muted);
  font: 400 0.61rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-option__copy {
  display: grid;
  gap: 0.38rem;
}

.route-option__copy strong {
  font-size: clamp(1.04rem, 1.24vw, 1.32rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.route-option__arrow {
  padding-right: 0.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  transform: rotate(45deg);
  transition: color 180ms ease, transform 280ms var(--ease-out);
}

.route-option:hover::before,
.route-option:focus-visible::before,
.route-option[aria-pressed="true"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.route-option[aria-pressed="true"] {
  padding-block: 1.2rem;
  border-bottom-color: rgba(var(--accent-rgb), 0.36);
}

.route-option[aria-pressed="true"] .route-option__index,
.route-option[aria-pressed="true"] .route-option__copy small {
  color: var(--accent);
}

.route-option:hover .route-option__arrow,
.route-option:focus-visible .route-option__arrow,
.route-option[aria-pressed="true"] .route-option__arrow {
  color: var(--accent);
  transform: rotate(0deg) translateX(0.12rem);
}

.route-option:focus-visible,
.primary-nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.route-preview {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(24rem, 54vh, 37rem);
  padding: clamp(1.6rem, 3vw, 3rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 33%),
    var(--panel);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  transition: border-color 350ms ease, background 500ms var(--ease-out), min-height 450ms var(--ease-out);
}

.route-preview::before,
.route-preview::after {
  content: "";
  position: absolute;
  width: 1.8rem;
  height: 1.8rem;
  pointer-events: none;
}

.route-preview::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.route-preview::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.route-preview__idle {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.route-preview__symbol {
  display: grid;
  place-items: center;
  width: 3.3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.3rem;
}

.route-preview__idle p {
  margin: 0 0 0.4rem;
  font: 400 0.61rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-preview__idle strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}

.route-preview__visual {
  position: absolute;
  top: clamp(1.6rem, 3vw, 3rem);
  right: clamp(1.6rem, 3vw, 3rem);
  display: grid;
  place-items: center;
  width: clamp(5rem, 8vw, 7.5rem);
  aspect-ratio: 1;
}

.route-preview__visual::before,
.route-preview__visual::after,
.route-preview__visual i {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.route-preview__visual::before {
  inset: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
}

.route-preview__visual::after {
  inset: 16%;
  border: 1px dashed rgba(var(--accent-rgb), 0.24);
  animation: orbit 18s linear infinite;
}

.route-preview__visual i {
  top: 1%;
  left: 50%;
  width: 0.36rem;
  aspect-ratio: 1;
  background: var(--accent);
  box-shadow: 0 0 1rem rgba(var(--accent-rgb), 0.72);
  transform: translateX(-50%);
}

.route-preview__visual span {
  color: var(--accent);
  font: 400 clamp(1.5rem, 2.8vw, 2.4rem)/1 var(--font-sans);
}

.route-preview__content {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  animation: preview-in 420ms var(--ease-out) both;
}

.route-preview__eyebrow,
.route-preview__hint {
  font: 400 0.61rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-preview__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
}

.route-preview h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.route-preview__lead {
  max-width: 28rem;
  margin: 1.2rem 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  font-weight: 300;
  line-height: 1.45;
}

.route-preview__description {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
}

.route-preview__hint {
  margin: 1.6rem 0 0;
  color: var(--muted);
}

.route-preview__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: min(100%, 16.5rem);
  margin-top: 1.8rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.48);
  background: rgba(var(--accent-rgb), 0.09);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 220ms ease, background 220ms ease, transform 260ms var(--ease-out);
}

.route-preview__cta b {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 400;
}

.route-preview__cta:hover,
.route-preview__cta:focus-visible {
  color: #05070b;
  background: var(--accent);
  transform: translateY(-2px);
}

.route-preview__cta:hover b,
.route-preview__cta:focus-visible b {
  color: inherit;
}

.route-preview__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preview-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  color: rgba(229, 235, 245, 0.4);
  font: 400 0.58rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .launcher {
    grid-template-columns: minmax(27rem, 1fr) minmax(21rem, 0.75fr);
    gap: 3rem;
  }

  .primary-nav {
    gap: 1rem;
  }
}

@media (max-width: 800px) {
  .site-shell {
    display: block;
    padding: 1.15rem;
  }

  .launcher {
    display: block;
    padding: clamp(5rem, 11vh, 7.5rem) 0 2rem;
  }

  .launcher__choice {
    max-width: none;
  }

  h1 {
    max-width: 20ch;
    font-size: clamp(1.9rem, 6.6vw, 3rem);
  }

  .route-preview {
    min-height: 13rem;
    margin-top: 1.75rem;
  }

  .route-list > .route-preview {
    min-height: 18.5rem;
    margin: 0;
    border-top: 0;
    background: rgba(8, 12, 19, 0.78);
  }

  .route-preview__visual {
    top: 1.3rem;
    right: 1.3rem;
    width: 4.5rem;
  }

  .route-preview h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .site-footer {
    margin-top: 2rem;
    padding-bottom: 0.4rem;
  }
}

@media (max-width: 520px) {
  .brand__mark {
    width: 1.9rem;
  }

  .launcher {
    padding-top: clamp(4.7rem, 9vh, 6rem);
  }

  .eyebrow {
    margin-bottom: 1.1rem;
  }

  h1 {
    max-width: 16ch;
    font-size: clamp(1.65rem, 7.8vw, 2.4rem);
  }

  .intro {
    max-width: 26rem;
    margin: 1.3rem 0 1.3rem;
    font-size: 0.96rem;
  }

  .route-option {
    grid-template-columns: 1.6rem 1fr auto;
    min-height: 5.15rem;
    gap: 0.75rem;
  }

  .route-option__copy strong {
    font-size: 1rem;
  }

  .route-preview {
    padding: 1.25rem;
  }

  .route-list > .route-preview {
    min-height: 19.5rem;
  }

  .route-preview__content {
    padding-top: 3.7rem;
  }

  .route-preview__description {
    font-size: 0.85rem;
  }

  .route-preview__cta {
    width: 100%;
  }

  .site-footer span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .atmosphere__video {
    display: none;
  }
}

/* Game launcher direction: a focused menu over a reactive scene. */
.atmosphere {
  background:
    radial-gradient(ellipse at 72% 48%, rgba(var(--accent-rgb), 0.2), transparent 27%),
    radial-gradient(ellipse at 68% 52%, rgba(10, 16, 27, 0.14), transparent 50%),
    linear-gradient(112deg, #020307 0%, #05080e 45%, #090e17 73%, #020307 100%);
}

.atmosphere__video {
  left: 35%;
  width: 65%;
  opacity: 0.28;
  filter: grayscale(0.18) saturate(0.9) contrast(1.18) brightness(0.74);
  mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 88%, transparent 100%);
}

.atmosphere__wash {
  background:
    linear-gradient(90deg, rgba(2, 3, 7, 0.99) 0%, rgba(2, 3, 7, 0.92) 34%, rgba(2, 3, 7, 0.32) 67%, rgba(2, 3, 7, 0.74) 100%),
    radial-gradient(ellipse at 72% 50%, transparent 0 22%, rgba(2, 3, 7, 0.15) 46%, #020307 94%);
}

.atmosphere__grid {
  opacity: 0.09;
  background-size: 6rem 6rem;
  mask-image: radial-gradient(circle at 72% 48%, #000, transparent 62%);
}

.site-shell {
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.launcher {
  grid-template-columns: minmax(32rem, 0.8fr) minmax(28rem, 1.2fr);
  gap: clamp(3rem, 6vw, 8rem);
  padding-block: clamp(4rem, 8vh, 7rem) clamp(3rem, 6vh, 5rem);
}

.launcher__choice {
  max-width: 40rem;
}

/* Editorial headline: order gives way to one deliberately unruly word. */
.launcher-title {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  justify-items: start;
  column-gap: clamp(0.8rem, 1.4vw, 1.4rem);
  row-gap: 0.58rem;
  width: max-content;
  max-width: none;
  margin: 0;
  overflow: visible;
  font-size: clamp(3.5rem, min(4.7vw, 7.2vh), 5.8rem);
  font-weight: 300;
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-wrap: nowrap;
  isolation: isolate;
}

.launcher-title > span {
  position: relative;
  display: block;
}

.launcher-title__lead,
.launcher-title__bridge,
.launcher-title__freedom {
  color: rgba(229, 235, 245, 0.7);
  font-size: clamp(1rem, 0.27em, 1.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.045em;
}

.launcher-title__lead {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  margin: 0;
  animation: title-soft-reveal 500ms 40ms var(--ease-out) backwards;
}

.launcher-title__herd {
  grid-row: 1;
  grid-column: 2;
  z-index: 1;
  color: rgba(245, 247, 251, 0.7);
  font-size: 1em;
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.045em;
  animation: title-herd-reveal 620ms 80ms var(--ease-out) backwards;
}

.launcher-title__herd::before,
.launcher-title__herd::after {
  content: attr(data-echo);
  position: absolute;
  z-index: -1;
  inset: 0;
  color: transparent;
  pointer-events: none;
}

.launcher-title__herd::before {
  opacity: 0.24;
  transform: translate(0.1em, 0.09em);
  -webkit-text-stroke: 1px rgba(229, 235, 245, 0.34);
  animation: title-herd-echo-one 760ms 40ms var(--ease-out) backwards;
}

.launcher-title__herd::after {
  display: none;
}

.launcher-title__bridge {
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  margin: 0;
  animation: title-soft-reveal 420ms 250ms var(--ease-out) backwards;
}

.launcher-title__breakout {
  grid-row: 2;
  grid-column: 2;
  z-index: 2;
  margin: 0;
  color: var(--ink);
  font-size: 1em;
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.078em;
  text-shadow: 0 0 2.5rem rgba(var(--accent-rgb), 0.08);
  transform: translateX(0);
  transition:
    transform 420ms var(--ease-out),
    text-shadow 420ms ease;
  animation: title-breakout-reveal 700ms 110ms var(--ease-out) backwards;
}

.launcher-title__breakout::after {
  content: "";
  position: absolute;
  right: -0.12em;
  bottom: -0.08em;
  left: -0.08em;
  height: max(2px, 0.028em);
  background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.72) 18%, var(--accent) 72%, transparent 100%);
  box-shadow: 0 0 1rem rgba(var(--accent-rgb), 0.24);
  opacity: 0.48;
  transform: scaleX(0.58);
  transform-origin: left;
  transition:
    opacity 360ms ease,
    transform 520ms var(--ease-out),
    background 420ms ease,
    box-shadow 420ms ease;
}

body[data-route]:not([data-route="neutral"]) .launcher-title__breakout {
  text-shadow: 0 0 2.8rem rgba(var(--accent-rgb), 0.17);
  transform: translateX(0.025em);
}

body[data-route]:not([data-route="neutral"]) .launcher-title__breakout::after {
  opacity: 0.92;
  transform: scaleX(1);
}

.launcher-title__freedom {
  grid-row: 3;
  grid-column: 2;
  justify-self: end;
  margin: 0.08em 0.08em 0 0;
  color: rgba(245, 247, 251, 0.88);
  animation: title-freedom-reveal 470ms 380ms var(--ease-out) backwards;
}

@supports (-webkit-text-stroke: 1px currentColor) {
  .launcher-title__herd {
    color: rgba(245, 247, 251, 0.2);
    -webkit-text-stroke: 1px rgba(229, 235, 245, 0.76);
  }
}

@keyframes title-soft-reveal {
  from {
    opacity: 0;
    transform: translateY(0.7em);
  }
}

@keyframes title-herd-reveal {
  from {
    opacity: 0;
    transform: translateX(-0.28em);
  }
}

@keyframes title-herd-echo-one {
  from {
    opacity: 0;
    transform: translate(0.58em, 0.11em);
  }
}

@keyframes title-herd-echo-two {
  from {
    opacity: 0;
    transform: translate(0.92em, 0.22em);
  }
}

@keyframes title-breakout-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-0.3em);
  }
}

@keyframes title-freedom-reveal {
  from {
    opacity: 0;
    transform: translate(0.7em, 0.35em);
  }
}

@keyframes title-letter-escape {
  0%,
  14%,
  100% {
    color: inherit;
    text-shadow: none;
    transform: translate(0, 0) rotate(0);
  }

  5% {
    color: var(--ink);
    text-shadow: 0 0 0.42em rgba(var(--accent-rgb), 0.5);
    transform: translate(0.025em, -0.09em) rotate(2deg);
  }

  10% {
    color: var(--ink);
    text-shadow: 0 0 0.2em rgba(var(--accent-rgb), 0.24);
    transform: translate(-0.01em, 0.018em) rotate(-1deg);
  }
}

.intro {
  max-width: 38rem;
  margin-bottom: 1.15rem;
}

/* The old title now prompts the list it refers to. It borrows the eyebrow's
   type token rather than introducing another size into the scale. */
.intro__question {
  margin: 0 0 clamp(2.2rem, 4vh, 3.2rem);
  color: var(--muted);
  font: 400 0.64rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 801px) {
  .atmosphere__video {
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }
}

.route-list {
  display: grid;
  gap: 0.28rem;
  width: min(100%, 38rem);
  border: 0;
}

.route-option {
  grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
  min-height: 4.35rem;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
  border: 0;
  opacity: 0.54;
  transition:
    opacity 180ms ease,
    color 180ms ease,
    padding 320ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.route-option::before {
  top: 50%;
  right: auto;
  bottom: auto;
  left: -0.7rem;
  width: 0.58rem;
  height: 0.82rem;
  border: 0;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0;
  transform: translate(-0.6rem, -50%);
  filter: drop-shadow(0 0 0.5rem rgba(var(--accent-rgb), 0.72));
  transition: opacity 180ms ease, transform 260ms var(--ease-out);
}

.route-option::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.38), transparent 72%);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 200ms ease, transform 380ms var(--ease-out);
}

.route-option:hover,
.route-option:focus-visible,
.route-option.is-highlighted,
.route-option[aria-pressed="true"] {
  padding-left: 1.35rem;
  opacity: 1;
  transform: translateX(0.45rem);
}

.route-option:hover::before,
.route-option:focus-visible::before,
.route-option.is-highlighted::before,
.route-option[aria-pressed="true"]::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.route-option:hover::after,
.route-option:focus-visible::after,
.route-option.is-highlighted::after,
.route-option[aria-pressed="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.route-option[aria-pressed="true"] {
  padding-block: 0.65rem;
  color: var(--accent);
}

.route-option__copy {
  gap: 0.22rem;
}

.route-option__copy strong {
  font-size: clamp(1.18rem, 1.5vw, 1.55rem);
  font-weight: 300;
}

.route-option__index,
.route-option__copy small {
  font-size: 0.54rem;
}

.route-option__arrow {
  padding: 0;
  font: 300 1.75rem/1 var(--font-sans);
  transform: none;
}

.route-option:hover .route-option__arrow,
.route-option:focus-visible .route-option__arrow,
.route-option.is-highlighted .route-option__arrow,
.route-option[aria-pressed="true"] .route-option__arrow {
  color: var(--accent);
  transform: translateX(0.2rem);
}

.route-option:focus-visible {
  outline: 0;
}

.route-option:focus-visible .route-option__copy strong {
  text-shadow: 0 0 1.2rem rgba(var(--accent-rgb), 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .route-option:hover {
    transform: translate(0.55rem, -2px);
  }
}

.route-option:active {
  transform: translate(0.68rem, 2px);
  transition-duration: 60ms;
}

.route-preview {
  align-items: end;
  align-self: stretch;
  min-height: 33rem;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1rem, 3vw, 3rem);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.route-preview::before {
  top: auto;
  right: auto;
  bottom: clamp(2rem, 4vw, 4.5rem);
  left: 0;
  width: 1px;
  height: min(18rem, 46%);
  border: 0;
  background: linear-gradient(transparent, var(--accent), transparent);
  opacity: 0.55;
}

.route-preview::after {
  display: none;
}

.route-preview__visual {
  top: 10%;
  right: 8%;
  width: clamp(8rem, 13vw, 13rem);
  opacity: 0.6;
}

.route-preview__visual::before {
  border-color: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 0 4rem rgba(var(--accent-rgb), 0.08);
}

.route-preview__visual span {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
}

.route-preview__content {
  max-width: 34rem;
  padding-left: clamp(1rem, 2.2vw, 2.5rem);
  padding-bottom: clamp(0rem, 1vh, 1rem);
}

.route-preview h2 {
  max-width: none;
  font-size: clamp(2.6rem, 4.4vw, 5.4rem);
  line-height: 0.92;
}

.route-preview__lead {
  max-width: 28rem;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.route-preview__description {
  max-width: 29rem;
}

.route-preview__hint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.route-preview__hint kbd,
.control-hints kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.8rem;
  min-height: 1.55rem;
  padding: 0.2rem 0.42rem;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 0.18rem;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.04em;
  background: rgba(var(--accent-rgb), 0.08);
}

.route-preview__cta {
  min-width: 16rem;
  border-width: 0 0 1px;
  border-color: rgba(var(--accent-rgb), 0.64);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.15), transparent);
}

.control-hints {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.control-hints span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.control-hints kbd {
  min-width: auto;
  min-height: 1.25rem;
  padding: 0.12rem 0.3rem;
}

@media (max-width: 1040px) and (min-width: 801px) {
  .launcher {
    /* 27rem+22rem overflowed the viewport at the narrow end of this range
       (measured: 21px of horizontal scroll at 820px) — the column mins here
       must fit down to 801px, not just look right at 1040px. */
    grid-template-columns: minmax(22rem, 0.9fr) minmax(18rem, 1fr);
    gap: 1.5rem;
  }

  .route-preview {
    padding-right: 0;
  }
}

@media (max-width: 800px) {
  .atmosphere__video {
    left: 0;
    width: 100%;
    opacity: 0.2;
    mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  }

  .atmosphere__wash {
    background:
      linear-gradient(180deg, rgba(2, 3, 7, 0.52), rgba(2, 3, 7, 0.9) 62%, #020307 100%),
      linear-gradient(90deg, rgba(2, 3, 7, 0.72), transparent 70%);
  }

  .launcher {
    padding-top: clamp(4.4rem, 9vh, 6.5rem);
  }

  .route-option {
    min-height: 4rem;
    padding-left: 0.6rem;
  }

  .route-option:hover,
  .route-option:focus-visible,
  .route-option.is-highlighted,
  .route-option[aria-pressed="true"] {
    padding-left: 1rem;
    transform: translateX(0.3rem);
  }

  .route-list > .route-preview,
  .route-preview {
    min-height: 16rem;
    margin-top: 1rem;
    padding: 3rem 0.4rem 1.25rem 1.2rem;
    border: 0;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent 76%);
  }

  .route-preview::before {
    top: 2.5rem;
    bottom: 1rem;
    left: 0;
    height: auto;
  }

  .route-preview__visual {
    top: 1.1rem;
    right: 0.8rem;
    width: 4.8rem;
  }

  .route-preview__content {
    padding: 0;
  }

  .route-preview h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .control-hints span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 520px) {
  .route-option__copy strong {
    font-size: 1.08rem;
  }

  .route-list > .route-preview {
    min-height: 18rem;
  }

  .route-preview__content {
    padding-top: 1.6rem;
  }

  .control-hints {
    gap: 0.7rem;
  }

  .control-hints span {
    gap: 0.3rem;
  }
}

/* Initial invitation state: nothing is chosen until the visitor acts. */
.route-preview.is-idle {
  visibility: hidden;
  pointer-events: none;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]) {
  animation: route-breathe 6s ease-in-out infinite;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]):nth-child(2) {
  animation-delay: 2s;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]):nth-child(3) {
  animation-delay: 4s;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]) .route-option__arrow {
  animation: arrow-invite 6s var(--ease-out) infinite;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]):nth-child(2) .route-option__arrow {
  animation-delay: 2s;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]):nth-child(3) .route-option__arrow {
  animation-delay: 4s;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"])::after {
  animation: signal-sweep 6s var(--ease-out) infinite;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]):nth-child(2)::after {
  animation-delay: 2s;
}

.route-option:not(.is-highlighted):not([aria-pressed="true"]):nth-child(3)::after {
  animation-delay: 4s;
}

@keyframes route-breathe {
  0%, 18%, 100% { opacity: 0.48; }
  7% { opacity: 0.8; }
}

@keyframes arrow-invite {
  0%, 18%, 100% { color: var(--muted); transform: translateX(0); }
  7% { color: var(--ink); transform: translateX(0.34rem); }
}

@keyframes signal-sweep {
  0%, 18%, 100% { opacity: 0; transform: scaleX(0.08); }
  7% { opacity: 0.46; transform: scaleX(0.72); }
}

@media (max-width: 800px) {
  .route-preview.is-idle {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Orb selector — ported from the multiclass home (css/marcos-multiclase.css).
   The 3D wheel does not travel: rows are fixed, so the dial feeling is
   rebuilt from the arc rail, the sliding tick and the lit active orb.
   ------------------------------------------------------------------ */

.route-orb--sepia {
  --orb-rgb: 230, 170, 119;
}

.route-orb--marcos {
  --orb-rgb: 255, 255, 255;
}

.route-orb--foxi {
  --orb-rgb: 255, 52, 8;
}

.route-list {
  position: relative;
}

/* Arc rail: the ellipse edge from .mc-mode-wheel::before, flipped to the left. */
.route-list::before {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -1.9rem;
  width: 5.2rem;
  border-left: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 50%;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 74%, transparent);
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.18));
  pointer-events: none;
  transition: border-color 400ms ease, filter 400ms ease;
}

/* Tick: the glowing needle from .mc-mode-wheel::after, now sliding vertically. */
.route-dial__tick {
  position: absolute;
  top: 0;
  left: -2rem;
  width: 3.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.95));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.62);
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--tick-y, 0));
  transition: transform 420ms var(--ease-out), opacity 300ms ease;
}

.route-list.has-tick .route-dial__tick {
  opacity: 1;
}

/* The tick is the only travelling marker, so the per-row arrowhead steps aside. */
.route-option::before {
  display: none;
}

.route-option {
  grid-template-columns: 4.4rem minmax(0, 1fr) 1.25rem;
  min-height: 5.35rem;
}

.route-option::after {
  left: 6.4rem;
}

.route-orb {
  display: grid;
  justify-items: center;
  width: 4.4rem;
}

/* Sphere: radial-gradient body of .mc-mode-card. */
.route-orb__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  color: rgb(var(--orb-rgb));
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at center, rgba(var(--orb-rgb), 0.2), rgba(3, 5, 12, 0.92) 62%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0.6rem 1.6rem rgba(0, 0, 0, 0.42);
  transition:
    transform 480ms var(--ease-out),
    box-shadow 380ms ease;
}

/* Concentric rings, hidden until the route is live. */
.route-orb__emblem::before,
.route-orb__emblem::after {
  content: "";
  position: absolute;
  inset: -0.32rem;
  border-radius: inherit;
  border: 1px solid rgba(var(--orb-rgb), 0.2);
  opacity: 0;
  transition: opacity 350ms ease, transform 350ms ease;
}

.route-orb__emblem::after {
  inset: -0.62rem;
  border-color: rgba(var(--orb-rgb), 0.12);
}

.route-orb__emblem img,
.route-orb__emblem svg {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  filter: drop-shadow(0 0 0.55rem rgba(var(--orb-rgb), 0.5));
  transition: filter 380ms ease;
}

.route-orb__emblem img {
  object-fit: contain;
}

.route-orb__emblem svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-orb--sepia .route-orb__emblem img {
  transform: scale(1.18);
}

.route-orb--marcos .route-orb__emblem img {
  filter: drop-shadow(0 0 0.6rem rgba(255, 255, 255, 0.5));
}

/* ------------------------------------------------------------------
   Foxi is the only route whose identity is fire, so it is the only orb
   that moves: the fox sits silhouetted against live coals. Everything
   here is vector + CSS so it stays crisp at any pixel density and can
   react to the lit state, which a rendered video loop could not.
   ------------------------------------------------------------------ */

.fox-fire {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 380ms ease;
}

/* The bed of coals, breathing under the fox. The bright core sits just below
   the rim so the falloff — not the hotspot — is what shows inside the circle. */
.fox-fire::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62%;
  background: radial-gradient(ellipse 72% 100% at 50% 108%, rgba(var(--orb-rgb), 0.9), transparent 72%);
  transform-origin: 50% 100%;
  animation: fox-coals 3.9s ease-in-out infinite;
}

/* Sparks lifting off the coals, each on its own clock. */
.fox-fire i {
  position: absolute;
  bottom: 20%;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgb(var(--orb-rgb));
  box-shadow: 0 0 4px rgba(var(--orb-rgb), 0.9);
  opacity: 0;
  animation: fox-spark var(--dur) ease-out var(--delay) infinite;
}

.fox-fire i:nth-child(1) { left: 33%; --dur: 3.6s; --delay: 0s; }
.fox-fire i:nth-child(2) { left: 49%; --dur: 4.3s; --delay: 1.1s; }
.fox-fire i:nth-child(3) { left: 63%; --dur: 3.2s; --delay: 2.1s; }
.fox-fire i:nth-child(4) { left: 42%; --dur: 4.8s; --delay: 3s; }

@keyframes fox-coals {
  0%, 100% { opacity: 0.4; transform: scaleY(0.92); }
  50% { opacity: 0.72; transform: scaleY(1.06); }
}

@keyframes fox-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  12% { opacity: 0.85; }
  60% { opacity: 0.45; }
  100% { opacity: 0; transform: translate(var(--drift, 2px), -1.9rem) scale(0.25); }
}

.fox-fire i:nth-child(2) { --drift: -3px; }
.fox-fire i:nth-child(4) { --drift: -2px; }

/* A slow blink is the cheapest way to make it read as alive rather than
   as an icon. The lids close by collapsing the stroke, not by fading. */
.fox-eyes {
  animation: fox-blink 6.4s ease-in-out infinite;
}

@keyframes fox-blink {
  0%, 91%, 100% { stroke-width: 1.7; }
  94% { stroke-width: 0.15; }
  97% { stroke-width: 1.7; }
}

/* Lit: the fire comes up rather than speeding up, so nothing jumps. */
.route-option:hover .fox-fire,
.route-option:focus-visible .fox-fire,
.route-option.is-highlighted .fox-fire,
.route-option[aria-pressed="true"] .fox-fire {
  opacity: 1;
}

.route-option:hover .route-orb--foxi svg,
.route-option:focus-visible .route-orb--foxi svg,
.route-option.is-highlighted .route-orb--foxi svg,
.route-option[aria-pressed="true"] .route-orb--foxi svg {
  filter: drop-shadow(0 0 0.85rem rgba(var(--orb-rgb), 0.75));
}

/* Lit state: the box-shadow stack of .mc-mode-card.mc-active. */
.route-option:hover .route-orb__emblem,
.route-option:focus-visible .route-orb__emblem,
.route-option.is-highlighted .route-orb__emblem,
.route-option[aria-pressed="true"] .route-orb__emblem {
  transform: scale(1.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 0.15rem rgba(var(--orb-rgb), 0.16),
    0 0 1.7rem rgba(var(--orb-rgb), 0.54),
    0 0.9rem 2rem rgba(0, 0, 0, 0.45);
}

.route-option:hover .route-orb__emblem::before,
.route-option:hover .route-orb__emblem::after,
.route-option:focus-visible .route-orb__emblem::before,
.route-option:focus-visible .route-orb__emblem::after,
.route-option.is-highlighted .route-orb__emblem::before,
.route-option.is-highlighted .route-orb__emblem::after,
.route-option[aria-pressed="true"] .route-orb__emblem::before,
.route-option[aria-pressed="true"] .route-orb__emblem::after {
  opacity: 1;
  transform: scale(1.02);
}

@media (max-width: 800px) {
  .route-list::before,
  .route-dial__tick {
    display: none;
  }

  .route-option {
    grid-template-columns: 3.4rem minmax(0, 1fr) 1.1rem;
    min-height: 4.7rem;
    gap: 0.85rem;
  }

  .route-option::after {
    left: 4.9rem;
  }

  .route-orb {
    width: 3.4rem;
    gap: 0.3rem;
  }

  .route-orb__emblem {
    width: 2.7rem;
    height: 2.7rem;
  }

  .route-orb__emblem img,
  .route-orb__emblem svg {
    width: 1.45rem;
    height: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-option:hover .route-orb__emblem,
  .route-option:focus-visible .route-orb__emblem,
  .route-option.is-highlighted .route-orb__emblem,
  .route-option[aria-pressed="true"] .route-orb__emblem {
    transform: none;
  }
}

/* Headline layout adaptations are kept last so older generic h1 rules cannot
   flatten the editorial composition. */
@media (max-width: 1199px) and (min-width: 801px) {
  .launcher-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3.3rem, min(5.7vw, 8.2vh), 4.4rem);
  }

  .launcher-title__breakout {
    margin: 0;
    font-size: 1em;
  }

  .launcher-title__freedom {
    margin-right: 0.08em;
  }
}

@media (max-width: 800px) {
  .launcher-title {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.55rem;
    row-gap: 0.38rem;
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.55rem, 11.2vw, 3.8rem);
    line-height: 0.88;
  }

  .launcher-title__lead {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    margin: 0;
  }

  .launcher-title__herd {
    grid-row: 1;
    grid-column: 2;
    line-height: 0.83;
  }

  .launcher-title__herd::before {
    transform: translate(0.08em, 0.08em);
  }

  .launcher-title__herd::after {
    display: none;
  }

  .launcher-title__bridge {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    margin: 0;
  }

  .launcher-title__breakout {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
    margin: 0;
    font-size: 1em;
  }

  .launcher-title__freedom {
    grid-row: 3;
    grid-column: 2;
    margin: 0.1em 0.12em 0 0;
  }
}

@media (max-width: 520px) {
  .eyebrow {
    margin-bottom: 0.8rem;
  }

  .intro {
    margin: 1rem 0 0.85rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .intro__question {
    margin-bottom: 1.35rem;
  }
}

@media (max-height: 940px) and (min-width: 801px) {
  .launcher {
    padding-block: clamp(1.75rem, 3.8vh, 2.75rem) clamp(1.4rem, 3vh, 2.25rem);
  }

  .eyebrow {
    margin-bottom: 0.85rem;
  }

  .launcher-title {
    font-size: clamp(3.4rem, min(4.7vw, 7.2vh), 5.4rem);
  }

  .intro {
    margin-top: 1rem;
    margin-bottom: 0.65rem;
    line-height: 1.45;
  }

  .intro__question {
    margin-bottom: 1.25rem;
  }

  .route-option {
    min-height: 4.8rem;
  }
}

@media (forced-colors: active) {
  .launcher-title__herd {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }

  .launcher-title__herd::before,
  .launcher-title__herd::after {
    display: none;
  }

  .launcher-title__breakout::after {
    background: Highlight;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launcher-title > span,
  .launcher-title__herd::before,
  .launcher-title__herd::after {
    animation: none !important;
  }

  body[data-route]:not([data-route="neutral"]) .launcher-title__breakout {
    transform: none;
  }
}

/* One compact type scale: display, reading text and utility metadata. */
.eyebrow,
.intro__question,
.control-hints {
  font-size: 0.75rem;
}

.route-option__copy strong {
  font-size: clamp(1.1rem, 1.2vw, 1.3rem);
}

/* Final headline direction: one natural sentence, one scale, one live detail. */
.launcher-title {
  display: block;
  width: min(100%, 36rem);
  max-width: 36rem;
  overflow: visible;
  font-size: clamp(2.1rem, min(4vw, 6.4vh), 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.launcher-title > .launcher-title__line {
  position: relative;
  display: block;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
}

.launcher-title__line--muted {
  color: rgba(229, 235, 245, 0.62) !important;
  animation: headline-line-in 620ms 40ms var(--ease-out) backwards;
}

.launcher-title__line--main {
  margin-top: 0.14em;
  animation: headline-line-in 680ms 130ms var(--ease-out) backwards;
}

.launcher-title .launcher-title__breakout {
  position: relative;
  display: inline-block;
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  line-height: inherit;
  text-shadow: none;
  transform: none;
  animation: none;
}

body[data-route]:not([data-route="neutral"]) .launcher-title .launcher-title__breakout {
  text-shadow: none;
  transform: none;
}

.launcher-title .launcher-title__breakout::after {
  right: -0.04em;
  bottom: -0.08em;
  left: -0.04em;
  opacity: 0.38;
  transform: scaleX(0.42);
}

body[data-route]:not([data-route="neutral"]) .launcher-title .launcher-title__breakout::after {
  opacity: 0.82;
  transform: scaleX(1);
}

@keyframes headline-line-in {
  from {
    opacity: 0;
    transform: translateY(0.28em);
  }
}

@media (max-width: 520px) {
  .launcher-title {
    width: 100%;
    max-width: 22rem;
    font-size: clamp(2.05rem, 8.8vw, 2.55rem);
    line-height: 1.02;
  }
}

@media (forced-colors: active) {
  .launcher-title__line--muted {
    color: CanvasText !important;
  }
}

.launcher-title__herd-word {
  display: inline-block;
  color: rgba(205, 210, 218, 0.58);
  font-weight: 300;
  letter-spacing: -0.065em;
  text-shadow:
    0.025em 0.025em 0 rgba(255, 255, 255, 0.08),
    0 0.08em 0.22em rgba(210, 215, 224, 0.08);
  filter: grayscale(1) contrast(0.9);
  transform: scaleX(0.98);
  transform-origin: left center;
}

.launcher-title .launcher-title__breakout {
  color: #ff8a3d;
  background: linear-gradient(112deg, #fff7e9 4%, #ffd06a 42%, #ff7a32 70%, #ff3517 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 0.7em rgba(255, 180, 65, 0.11),
    0 0 1.25em rgba(255, 64, 24, 0.13);
}

.launcher-title .launcher-title__breakout::after {
  background: linear-gradient(90deg, transparent 0%, #ffc35a 18%, #ff742f 58%, #ff3517 84%, transparent 100%);
  box-shadow:
    0 0 0.55rem rgba(255, 142, 49, 0.48),
    0 0 1.25rem rgba(255, 53, 23, 0.22);
  opacity: 0.48;
}

@media (forced-colors: active) {
  .launcher-title .launcher-title__breakout {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launcher-title__line {
    animation: none !important;
  }
}

/* The heat wave resolves into a small flame-smile below the word. */
.launcher-title .launcher-title__breakout {
  background-image: linear-gradient(
    108deg,
    #ff4b1f 0%,
    #ff8a36 20%,
    #ffd36a 34%,
    #fff8df 42%,
    #ffbd4f 50%,
    #ff6528 68%,
    #ff3517 100%
  );
  background-size: 240% 100%;
  background-position: 110% 50%;
  animation: title-heat-reflection 3.8s ease-in-out infinite;
}

.launcher-title .launcher-title__breakout::after {
  content: none;
}

@keyframes title-heat-reflection {
  0%,
  100% {
    background-position: 110% 50%;
    filter: brightness(0.96) saturate(0.96);
  }

  48% {
    background-position: -10% 50%;
    filter: brightness(1.08) saturate(1.08);
  }

  64% {
    background-position: 12% 50%;
    filter: brightness(1.02) saturate(1.04);
  }
}

@media (forced-colors: active), (prefers-reduced-motion: reduce) {
  .launcher-title .launcher-title__breakout {
    animation: none !important;
    filter: none;
  }
}

/* Mobile fallback: keep the grin physically drawn even when Samsung Internet
   limits or skips the decorative animation. */
@media (max-width: 700px) {
  .launcher-title .launcher-title__breakout {
    margin-bottom: 0.32em;
  }
}

/* Final typography system: display, section heading, reading and metadata. */
:root {
  --type-meta: 0.75rem;
  --type-reading: 1rem;
  --type-section: clamp(1.8rem, 3vw, 2.6rem);
}

.brand,
.intro,
.route-option__copy strong,
.route-preview__lead,
.route-preview__description,
.route-preview__cta {
  font-size: var(--type-reading);
}

.eyebrow,
.intro__question,
.control-hints,
.site-footer,
.route-preview__eyebrow,
.route-preview__hint {
  font-size: var(--type-meta);
}

.route-preview h2 {
  font-size: var(--type-section);
  line-height: 1;
}

.launcher-title {
  width: min(100%, 36rem);
  max-width: 36rem;
  font-size: clamp(2.4rem, min(4vw, 6.4vh), 3.6rem);
}

@media (max-width: 520px) {
  .launcher-title {
    width: 100%;
    max-width: none;
    font-size: clamp(2.15rem, 9.4vw, 2.65rem);
    text-wrap: wrap;
  }

  .brand,
  .intro,
  .route-option__copy strong {
    font-size: var(--type-reading);
  }
}

/* La sonrisa bajo "destacar": cinta con degradado, un colmillo y la llama
   original saliendo de la punta derecha. Todo en un SVG, tres reglas. */
.fox-grin {
  position: absolute;
  right: -1%;
  bottom: -0.32em;
  left: 9.5%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

/* Se dibuja al cargar: la cinta se barre de izquierda a derecha, el colmillo
   brota cuando el barrido lo alcanza y la llama prende al llegar a la punta. */
.fox-grin__ribbon {
  fill: url(#foxGrin);
  animation: fox-grin-draw 700ms ease-out both;
}

.fox-grin__fang {
  fill: #fff;
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: fox-fang-in 260ms ease-out 480ms both;
}

.fox-grin__flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation:
    fox-flame-in 380ms ease-out 640ms both,
    fox-flame 3.8s ease-in-out 1020ms infinite;
}

@keyframes fox-grin-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -3% 0 0); }
}

@keyframes fox-fang-in {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes fox-flame-in {
  from { opacity: 0; transform: scale(0.3) rotate(-12deg); }
  to { opacity: 0.72; transform: scale(0.88) rotate(6deg); }
}

.fox-grin__spark {
  fill: #ffcf6a;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: fox-spark-rise var(--d) ease-out var(--delay) infinite;
}

.fox-grin__spark:nth-of-type(1) { --d: 2.2s; --delay: 1.2s; --dx: 2px; }
.fox-grin__spark:nth-of-type(2) { --d: 2.9s; --delay: 2s; --dx: -3px; }
.fox-grin__spark:nth-of-type(3) { --d: 2.5s; --delay: 3.1s; --dx: 4px; }

@keyframes fox-spark-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  16% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -15px) scale(0.25); }
}

@keyframes fox-flame {
  0%, 100% { opacity: 0.72; transform: scale(0.88) rotate(6deg); }
  48% { opacity: 1; transform: scale(1.06) rotate(-4deg); }
  74% { opacity: 0.86; transform: scale(0.96) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fox-grin__ribbon,
  .fox-grin__fang,
  .fox-grin__flame,
  .fox-grin__spark { animation: none; }
}

@media (forced-colors: active) {
  .fox-grin { display: none; }
}
