.page-home {
  --home-section-y: 64px;
  --home-section-y-lg: 96px;
  --home-hero-grid: repeating-linear-gradient(90deg, rgba(181, 196, 209, 0.18) 0 1px, transparent 1px 72px), repeating-linear-gradient(0deg, rgba(181, 196, 209, 0.18) 0 1px, transparent 1px 72px);
  --home-panel-pad: 24px;
  background: var(--color-cream);
  display: block;
  overflow-x: clip;
}

@keyframes home-scanline {
  0% { left: -30%; opacity: 0; }
  15% { opacity: 1; }
  60% { left: 120%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.page-home .home-hero {
  position: relative;
  padding: 24px 0 48px;
  background: var(--color-darknavy);
  color: var(--color-cream);
  overflow: hidden;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--home-hero-grid);
  pointer-events: none;
}

.page-home .home-hero__slash {
  position: absolute;
  top: 128px;
  right: -72px;
  width: 340px;
  height: 28px;
  background: var(--color-orange);
  transform: rotate(-24deg);
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 36px;
}

.page-home .home-hero .breadcrumbs {
  color: var(--color-cream);
}

.page-home .home-hero .breadcrumbs a,
.page-home .home-hero .breadcrumbs span {
  color: var(--color-cream);
}

.page-home .home-hero .breadcrumbs__sep {
  color: var(--color-grayblue);
}

.page-home .home-hero__body {
  max-width: 860px;
}

.page-home .home-hero__meta {
  margin-bottom: 12px;
  color: var(--color-grayblue);
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--color-cream);
}

.page-home .home-hero__lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-cream);
  max-width: 680px;
  margin-bottom: 28px;
  opacity: 0.86;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero__actions .btn--ghost {
  border-color: var(--color-cream);
  color: var(--color-cream);
  background: transparent;
}

.page-home .home-hero__actions .btn--ghost:hover {
  background: rgba(245, 241, 232, 0.12);
}

.page-home .home-hero__preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 44px;
  border-top: 1px solid rgba(181, 196, 209, 0.28);
  padding-top: 28px;
}

.page-home .home-hero__preview .route-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 16px;
  padding: 16px 18px;
  background: rgba(245, 241, 232, 0.96);
  border: 1px solid var(--color-cream);
  box-shadow: 4px 4px 0 rgba(255, 90, 31, 0.7);
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease);
}

.page-home .home-hero__preview .route-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(255, 90, 31, 1);
  background: var(--color-cream);
}

.page-home .home-hero__preview .route-card__index {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-orange);
  align-self: center;
}

.page-home .home-hero__preview .route-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-ink);
  font-size: 16px;
}

.page-home .home-hero__preview .route-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-navy);
  opacity: 0.72;
}

.page-home > section {
  padding-top: var(--home-section-y);
  padding-bottom: var(--home-section-y);
}

.page-home .home-dashboard {
  background: var(--color-cream);
}

.page-home .section-heading {
  margin-bottom: 32px;
}

.page-home .home-dashboard__stats {
  row-gap: 20px;
  margin-bottom: 28px;
}

.page-home .home-stat-card {
  position: relative;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  background: var(--color-cream);
  box-shadow: 6px 6px 0 var(--color-line);
  transition: transform var(--ease), box-shadow var(--ease);
}

.page-home .home-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 var(--color-navy);
}

.page-home .home-stat-card__index {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--color-orange);
  font-size: 12px;
}

.page-home .home-stat-card__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.page-home .home-stat-card__value {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  color: var(--color-ink);
  margin: 0 0 12px;
  overflow: hidden;
}

.page-home .home-stat-card--highlight .home-stat-card__value {
  color: var(--color-electric);
}

.page-home .home-stat-card--highlight .home-stat-card__value::after {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: home-scanline 2.8s ease-in-out infinite;
  pointer-events: none;
}

.page-home .home-stat-card__unit {
  font-family: var(--font-mono);
  font-size: 14px;
  margin-left: 4px;
  color: var(--color-orange);
}

.page-home .home-stat-card__note {
  color: var(--color-navy);
  opacity: 0.55;
  font-size: 12px;
  border-top: 1px solid var(--color-line);
  padding-top: 8px;
}

.page-home .home-dashboard__note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}

.page-home .home-dashboard__copy {
  background: var(--color-pale);
  border-left: 4px solid var(--color-orange);
  padding: 24px;
}

.page-home .home-dashboard__copy p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-ink);
  margin: 0 0 20px;
}

.page-home .home-dashboard__copy .btn {
  margin-bottom: 4px;
}

.page-home .home-dashboard__figure {
  margin: 0;
}

.page-home .home-dashboard__figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--color-ink);
  box-shadow: 6px 6px 0 var(--color-line);
}

.page-home .home-dashboard__figure figcaption {
  margin-top: 10px;
  color: var(--color-navy);
  opacity: 0.6;
}

.page-home .home-curve {
  background: var(--color-navy);
  color: var(--color-cream);
}

.page-home .home-curve .section-heading__index {
  color: var(--color-neon);
}

.page-home .home-curve .section-heading__title {
  color: var(--color-cream);
}

.page-home .home-curve .section-heading__lead {
  color: var(--color-grayblue);
}

.page-home .home-curve__panel {
  background: var(--color-darknavy);
  border: 1px solid rgba(181, 196, 209, 0.25);
  padding: 20px;
  margin-top: 28px;
}

.page-home .home-curve__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.page-home .home-curve__header .coords {
  color: var(--color-grayblue);
}

.page-home .home-curve__chart {
  overflow-x: auto;
}

.page-home .home-curve__chart svg {
  min-width: 680px;
  width: 100%;
  height: auto;
  display: block;
}

.page-home .home-curve__grid line {
  stroke: #2a3b51;
  stroke-width: 1;
}

.page-home .home-curve__axis line {
  stroke: #2a3b51;
  stroke-width: 1.5;
}

.page-home .home-curve__line--2022 {
  stroke: var(--color-orange);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .home-curve__line--2023 {
  stroke: var(--color-electric);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .home-curve__line--2024 {
  stroke: var(--color-neon);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(158, 240, 26, 0.4));
}

.page-home .home-curve__dots circle {
  fill: var(--color-darknavy);
  stroke-width: 2;
}

.page-home .home-curve__dots circle:nth-child(1),
.page-home .home-curve__dots circle:nth-child(2),
.page-home .home-curve__dots circle:nth-child(3),
.page-home .home-curve__dots circle:nth-child(4) {
  stroke: var(--color-orange);
}

.page-home .home-curve__dots circle:nth-child(5),
.page-home .home-curve__dots circle:nth-child(6),
.page-home .home-curve__dots circle:nth-child(7),
.page-home .home-curve__dots circle:nth-child(8) {
  stroke: var(--color-electric);
}

.page-home .home-curve__dots circle:nth-child(9),
.page-home .home-curve__dots circle:nth-child(10),
.page-home .home-curve__dots circle:nth-child(11),
.page-home .home-curve__dots circle:nth-child(12) {
  stroke: var(--color-neon);
}

.page-home .home-curve__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(181, 196, 209, 0.18);
}

.page-home .home-curve__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-cream);
}

.page-home .home-curve__swatch {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.page-home .home-curve__swatch--2022 {
  background: var(--color-orange);
}

.page-home .home-curve__swatch--2023 {
  background: var(--color-electric);
}

.page-home .home-curve__swatch--2024 {
  background: var(--color-neon);
}

.page-home .home-curve__footnote {
  margin-top: 24px;
  color: var(--color-grayblue);
  font-size: 14px;
  line-height: 1.7;
  max-width: 760px;
  border-left: 3px solid var(--color-neon);
  padding-left: 16px;
}

.page-home .home-history {
  background: var(--color-cream);
}

.page-home .home-history__banner {
  position: relative;
  background: var(--color-orange);
  border: 3px solid var(--color-ink);
  box-shadow: 10px 10px 0 var(--color-ink);
  padding: 32px 28px;
  display: grid;
  gap: 20px;
}

.page-home .home-history__banner::before {
  content: "";
  position: absolute;
  top: -3px;
  right: 36px;
  width: 120px;
  height: 28px;
  background: var(--color-neon);
  border-left: 3px solid var(--color-ink);
  border-right: 3px solid var(--color-ink);
  border-bottom: 3px solid var(--color-ink);
  transform: rotate(-8deg);
}

.page-home .home-history__banner .section-heading {
  margin-bottom: 0;
}

.page-home .home-history__banner .section-heading__index {
  color: var(--color-darknavy);
}

.page-home .home-history__banner .section-heading__title {
  color: var(--color-ink);
}

.page-home .home-history__banner .section-heading__lead {
  color: var(--color-ink);
  opacity: 0.9;
}

.page-home .home-history__action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-home .home-history__action .btn--primary {
  border-color: var(--color-darknavy);
  background: var(--color-darknavy);
  color: var(--color-cream);
}

.page-home .home-history__action .btn--ghost {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: transparent;
}

.page-home .home-history__action .btn--ghost:hover {
  background: rgba(245, 241, 232, 0.3);
}

.page-home .home-apple {
  background: var(--color-pale);
}

.page-home .home-apple__grid {
  row-gap: 32px;
}

.page-home .home-apple__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.page-home .home-apple__features {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.page-home .home-apple__features li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: baseline;
}

.page-home .home-apple__features li:first-child {
  border-top: 1px solid var(--color-line);
}

.page-home .home-apple__feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-electric);
  flex: 0 0 28px;
}

.page-home .home-apple__feature-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .home-apple__feature-copy strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--color-ink);
}

.page-home .home-apple__feature-copy span {
  font-size: 14px;
  color: var(--color-navy);
  opacity: 0.72;
}

.page-home .home-apple__media {
  margin: 0;
}

.page-home .home-apple__media img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--color-ink);
  box-shadow: 8px 8px 0 var(--color-line);
}

.page-home .home-apple__media figcaption {
  margin-top: 10px;
  color: var(--color-navy);
  opacity: 0.6;
}

.page-home .home-starter {
  background: var(--color-cream);
}

.page-home .home-starter__grid {
  row-gap: 28px;
}

.page-home .home-starter__steps {
  display: grid;
  gap: 14px;
}

.page-home .home-starter__step {
  display: block;
  text-decoration: none;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--color-cream);
  box-shadow: 4px 4px 0 var(--color-navy);
  transition: transform var(--ease), box-shadow var(--ease);
}

.page-home .home-starter__step:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-navy);
}

.page-home .home-starter__step h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: var(--color-ink);
  margin: 8px 0 8px;
}

.page-home .home-starter__step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-navy);
  opacity: 0.78;
  margin-bottom: 12px;
}

.page-home .home-starter__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-orange);
}

.page-home .home-starter__media {
  margin: 0;
  align-self: stretch;
}

.page-home .home-starter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--color-ink);
  box-shadow: 8px 8px 0 var(--color-line);
}

.page-home .home-starter__media figcaption {
  margin-top: 10px;
  color: var(--color-navy);
  opacity: 0.6;
}

.page-home .home-legacy {
  background: var(--color-darknavy);
  color: var(--color-cream);
}

.page-home .home-legacy .section-heading__title {
  color: var(--color-cream);
}

.page-home .home-legacy .section-heading__lead {
  color: var(--color-grayblue);
}

.page-home .home-legacy__panel {
  background: linear-gradient(135deg, var(--color-navy), var(--color-darknavy));
  border: 1px solid rgba(181, 196, 209, 0.25);
  padding: var(--home-panel-pad);
}

.page-home .home-legacy__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.page-home .home-legacy__intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-cream);
  opacity: 0.86;
  margin-bottom: 20px;
}

.page-home .home-legacy__facts {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(181, 196, 209, 0.25);
  border: 1px solid rgba(181, 196, 209, 0.25);
}

.page-home .home-legacy__facts div {
  background: var(--color-darknavy);
  padding: 14px 16px;
}

.page-home .home-legacy__facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-grayblue);
  text-transform: uppercase;
}

.page-home .home-legacy__facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--color-neon);
}

.page-home .home-help {
  background: var(--color-cream);
  border-top: 3px solid var(--color-ink);
}

.page-home .home-help__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.page-home .home-help__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--color-ink);
  margin: 0;
}

.page-home .home-help p {
  font-size: 14px;
  color: var(--color-navy);
  opacity: 0.78;
  max-width: 520px;
  line-height: 1.7;
}

.page-home .home-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 560px) {
  .page-home .home-hero__preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-dashboard__note {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }

  .page-home .home-starter__steps {
    grid-template-columns: 1fr;
  }

  .page-home .home-legacy__body {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

@media (min-width: 768px) {
  .page-home {
    --home-section-y: 80px;
  }

  .page-home .home-hero {
    padding: 36px 0 64px;
  }

  .page-home .home-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-home .home-hero__preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .page-home .home-history__banner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .page-home .home-legacy__facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home {
    --home-section-y: var(--home-section-y-lg);
  }

  .page-home .home-hero__preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-hero__body {
    max-width: 920px;
  }

  .page-home .home-dashboard__stats {
    row-gap: 28px;
  }

  .page-home .home-apple__grid {
    align-items: center;
  }

  .page-home .home-apple__content {
    padding-right: 40px;
  }

  .page-home .home-legacy__panel {
    padding: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}
