/* The homepage uses the shared header and typography, with its own hero composition. */
.home-rework .launch-hero {
  min-height: 0;
  --home-hero-title: clamp(3rem, 5.5vw, 5.4rem);
  background: radial-gradient(ellipse at 75% 42%, var(--slate), var(--ink) 66%);
}
.home-rework .launch-hero::after { content: none; }
.home-rework .launch-hero-inner {
  grid-template: "copy park" minmax(400px, auto) "routes routes" auto / minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: start;
  padding-bottom: 18px;
  column-gap: clamp(12px, 2.2vw, 34px);
}
.home-rework .launch-hero-inner .launch-hero-copy {
  grid-area: copy;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  padding: 0;
}
.home-rework .launch-hero h1 {
  max-width: none;
  font-size: var(--home-hero-title);
}
.home-rework[data-page="home"] .launch-hero-copy > p {
  max-width: 41ch;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
}
.home-rework .launch-hero-actions { margin-top: 28px; }
.home-rework[data-page="home"] .launch-hero-copy > .home-pilot-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 0;
  padding-block: var(--pilot-proof-gap, 19.5px);
  font-size: 1rem;
  line-height: 1.5;
}
.home-pilot-proof .icon {
  display: block;
  color: var(--peach-light);
}

.home-rework .launch-routes {
  grid-area: routes;
  position: relative;
  background: var(--ink);
  border-bottom: 1px solid var(--night-rule);
}
.home-rework .launch-routes a { min-height: 76px; }
.home-rework .launch-routes strong { margin: 0; }
.home-rework .launch-routes small { margin-top: 2px; line-height: 1.35; }
.home-park-scene {
  grid-area: park;
  align-self: center;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  isolation: isolate;
  margin-bottom: 14px;
  mask-image: radial-gradient(ellipse farthest-side at 50% 50%, #000 76%, transparent 123%);
}
.home-park-scene .launch-scene,
.home-rework[data-page="home"] .home-park-scene .launch-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  translate: none;
  mask-image: none;
}
.home-park-scene .launch-scene { z-index: 0; }
.home-rework[data-page="home"] .home-park-scene .launch-scene img {
  object-fit: contain;
  object-position: center;
  animation: none;
}
.home-rework[data-page="home"] .home-park-scene .launch-scene img,
.home-rocket-detail image { filter: brightness(.88) saturate(.91); }
@media (max-width: 56.25em) {
  .home-rocket-detail { display: none; }
}
.home-park-effects { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-scene-window, .home-rocket-fire, .home-stars use { opacity: 0; }
.home-stars circle { fill: var(--peach-light); opacity: .55; }
.home-stars use { fill: #ffe7a8; }
.home-fire-halo { fill: var(--peach); filter: blur(8px); opacity: .54; }
.home-rocket-fire {
  transform-box: view-box;
  transform-origin: 0 0;
}
@media (width > 56.25em) {
  .home-rocket-exhaust {
    transform-box: view-box;
    transform-origin: 940px 361px;
    transform: scale(1.1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* Pods dim first, then the lodge one second later; keep the half-second lead into the rocket. */
  .home-park-scene.is-illuminating .home-pod-windows {
    animation: home-windows-out .14s ease-out 1.5s both;
  }
  .home-park-scene.is-illuminating .home-lodge-windows {
    animation: home-windows-out .14s ease-out 2.5s both;
  }
  .home-park-scene.is-illuminating .home-rocket-fire {
    animation: home-exhaust-burn 1.5s ease-in-out 3s both;
  }
  .home-park-scene.is-illuminating .home-stars use {
    animation: home-star-sparkle 1.5s ease-in-out var(--star-delay, 0s) 3 both;
  }
  .home-stars g:nth-child(2n) { --star-delay: .25s; }
  .home-stars g:nth-child(3n) { --star-delay: .5s; }
  @keyframes home-windows-out { to { opacity: 1; } }
  @keyframes home-exhaust-burn {
    0%, 100% { opacity: 0; transform: scale(.58, .42); }
    9%, 41%, 63% { opacity: .9; transform: scale(1, 1); }
    24%, 53%, 76% { opacity: .74; transform: scale(.9, .82); }
    88% { opacity: .55; transform: scale(.76, .67); }
  }
  @keyframes home-star-sparkle {
    0%, 100% { opacity: 0; }
    36% { opacity: .76; }
    60% { opacity: .22; }
  }
}

.home-rework .launch-services { padding-top: clamp(40px, 5.5vw, 80px); }
.home-rework .launch-section-heading {
  display: block;
  padding-bottom: clamp(22px, 3vw, 40px);
}
.home-rework .launch-section-heading h2 {
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  line-height: 1.08;
  text-wrap: balance;
}
.home-rework .launch-section-heading p {
  margin-top: 18px;
  max-width: 60ch;
  padding: 0;
  font-size: 1rem;
  text-wrap: pretty;
}
.home-rework .launch-service {
  grid-template: "intro example" auto "details example" auto / 1fr 1fr;
  align-items: start;
  align-content: center;
  column-gap: clamp(28px, 6vw, 90px);
  row-gap: 18px;
}
.home-rework .launch-service:nth-of-type(2) {
  grid-template-areas: "example intro" "example details";
}
.home-rework .launch-service:nth-of-type(2) .launch-service-copy { order: 0; }
.home-rework .launch-service-copy { grid-area: intro; align-self: end; }
.home-rework .home-service-details { grid-area: details; align-self: start; }
.home-rework .launch-service-copy .launch-deliverable { margin: 0; }
.home-rework .launch-service h3 { margin-bottom: 18px; text-wrap: pretty; }
.home-rework .launch-specimen { grid-area: example; align-self: center; }
.home-rework .launch-specimen .home-sample {
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 5px;
  white-space: nowrap;
}
.home-rework .launch-specimen .home-example-finding {
  margin-top: 16px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}
.home-example-finding strong { font-size: 1.22em; }
.launch-pace .home-example-finding strong { color: var(--peach-light); }
.launch-pace .home-shortfall-dates { color: var(--peach); }
.home-rework .launch-journey .home-example-finding { border: 0; padding: 0; }
.home-rework .launch-journey-steps li { font-size: 1rem; }
.home-rework .launch-plot { margin-top: 20px; font-size: .9375rem; }
.home-rework .launch-plot-key { font-size: .875rem; }
.home-rework .launch-pitches table { margin-top: 12px; }
.home-rework .launch-pitches :is(th, td):last-child { white-space: nowrap; }

@media (width > 43.75em) {
  .home-rework .launch-hero h1 {
    position: relative;
    z-index: 1;
    white-space: nowrap;
  }
}

@media (width > 56.25em) {
  .home-rework #navigation a { white-space: nowrap; }
}
@media (max-width: 56.25em) {
  .home-rework .launch-hero-inner {
    grid-template-rows: auto auto;
    padding-bottom: 18px;
  }
  .home-rework .launch-hero-copy { --pilot-proof-gap: 14.5px; }
  .home-rework .launch-routes { grid-template-columns: 1fr; }
  .home-rework .launch-routes a { min-height: 55px; padding: 6px 0; }
  .home-rework .launch-routes a + a { border: 0; border-top: 1px solid var(--night-rule); }
}
@media (max-width: 50em) {
  .home-rework .launch-service,
  .home-rework .launch-service:nth-of-type(2) {
    grid-template: "intro" auto "example" auto "details" auto / minmax(0, 1fr);
  }
  .home-rework .launch-service-copy .launch-deliverable { padding-top: 0; border: 0; }
}
@media (43.75em < width < 46.875em) {
  .home-rework[data-page="home"] .launch-hero-copy > .home-pilot-proof {
    font-size: .9375rem;
  }
}
@media (max-width: 43.75em) {
  .home-rework .launch-hero { --home-hero-title: clamp(2.32rem, 8.1vw, 3.55rem); }
  .home-rework .launch-hero-inner {
    grid-template: "copy" auto "routes" auto "park" auto / minmax(0, 1fr);
    padding-top: var(--hero-phone-top);
    padding-bottom: 0;
  }
  .home-rework .launch-hero-copy {
    /* Use the extra room on taller phones without pushing shortcuts off short screens. */
    --pilot-proof-gap: clamp(5.5px, calc(11svh - 56.7px), 15px);
  }
  .home-rework[data-page="home"] .launch-hero-copy > .home-pilot-proof {
    gap: 6px;
    padding-block: 8px 16px;
    color: var(--mist);
    font-size: .875rem;
    line-height: 1.5rem;
  }
  .home-rework[data-page="home"] .launch-hero-copy > p { margin-top: 17px; }
  .home-rework .launch-hero-actions { margin-top: 17px; }
  .home-park-scene {
    width: min(100%, 520px);
    aspect-ratio: 1.8;
    justify-self: center;
    margin: 0;
    overflow: hidden;
  }
  .home-rework[data-page="home"] .home-park-scene .launch-scene img,
  .home-park-scene .home-park-effects {
    inset: -6% 0 auto;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .home-rework #service-dashboard { padding-top: 22px; }
}
@media (max-width: 34.375em) {
  .home-rework .launch-routes strong { font-size: 1rem; }
  .home-rework .launch-routes small { font-size: .875rem; }
  .home-rework .launch-specimen { padding: 17px; }
  .home-rework .launch-plot-key { column-gap: 10px; }
  .home-rework .launch-journey-steps { margin: 18px 0 16px; }
}

@media (max-width: 23.125em) {
  .home-rework .launch-hero { --home-hero-title: 2.05rem; }
  .home-rework .launch-hero-actions { gap: 10px; }
  .home-rework .launch-hero-actions .launch-button { padding-inline: 12px; gap: 6px; }
  .home-rework .launch-hero-actions .launch-text-link { gap: 6px; }
  .home-rework .launch-routes a { min-height: 48px; padding-block: 3px; }
}

@media (max-width: 21.875em) {
  .home-pilot-detail { display: none; }
}

/* 340px and narrower: hero title 5% smaller, matching the service pages (parkrocket-home.css) */
@media (max-width: 21.25em) {
  .home-rework .launch-hero { --home-hero-title: 1.95rem; }
}

/* 901 to 1099px: three shortcut columns are narrow, so keep titles on one line and avoid single-word lines */
@media (56.25em < width < 68.75em) {
  .home-rework .launch-routes a { gap: 10px; padding-inline: 14px; }
  .home-rework .launch-routes strong { font-size: 1rem; white-space: nowrap; }
  .home-rework .launch-routes small { font-size: .9375rem; text-wrap: balance; }
}

/* Enlarged text on the narrowest phones (below 20em, never reached at the default text size): the pitch comparison's
   options and amounts wrap inside two columns, still as a table, so each amount stays with its option under "After costs". */
@media (max-width: 19.98em) {
  .home-rework .launch-pitches table { table-layout: fixed; }
  .home-rework .launch-pitches :is(th, td) { overflow-wrap: anywhere; }
  .home-rework .launch-pitches :is(th, td):last-child { white-space: normal; }
}
/* Enlarged text: the three journey steps stack instead of squeezing into three columns */
@media (max-width: 19.98em) {
  .launch-journey-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .launch-journey-steps::before { display: none; }
  .launch-journey-steps li { display: flex; align-items: center; gap: 12px; text-align: left; }
  .launch-journey-steps .icon { flex: none; margin: 0; }
}
