.page-home {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-home .home-shell {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 18px;
}

.page-home a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding-block: 34px 40px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(143, 166, 178, 0.1) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(25deg, rgba(143, 166, 178, 0.055) 0 1px, transparent 1px 152px);
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.015em;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.page-home .home-hero__lede {
  margin: 18px 0 0;
  max-width: 41em;
  color: var(--text);
  line-height: 1.8;
}

.page-home .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-home .home-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.page-home .home-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.page-home .home-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .home-legend .legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 auto;
}

.page-home .home-legend .legend-swatch--lime { background: var(--accent); }
.page-home .home-legend .legend-swatch--yellow { background: var(--yellow); }
.page-home .home-legend .legend-swatch--red { background: var(--red); }
.page-home .home-legend .legend-swatch--steel { background: var(--steel); }

.page-home .home-hero__aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .home-hero__figure {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-kicker {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-kicker p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-dim);
  transition: background 140ms ease, color 140ms ease;
}

.page-home .home-kicker p:hover {
  background: var(--surface-2);
  color: var(--text);
}

.page-home .home-kicker .mono {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- band ---------- */
.page-home .home-band {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 30%,
    var(--accent-soft) 30% 52%,
    var(--yellow) 52% 61%,
    var(--red) 61% 67%,
    var(--line-strong) 67% 100%
  );
}

/* ---------- section shell ---------- */
.page-home .home-section {
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.page-home .home-head {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: 28px;
}

.page-home .home-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-home .home-head .lede {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ---------- calendar ---------- */
.page-home .home-cal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-cal__col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 16px;
}

.page-home .home-cal__h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.page-home .home-cal__list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-cal__list > div {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.page-home .home-cal__list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-cal__list dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.page-home .home-cal__list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .home-rounds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-round {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: var(--surface);
  font-size: 14px;
  transition: background 140ms ease;
}

.page-home .home-round:hover {
  background: var(--surface-2);
}

.page-home .home-round .mono {
  color: var(--steel);
  font-size: 12px;
  flex: 0 0 auto;
}

.page-home .home-round__name {
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .home-round__tag {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}

.page-home .home-round__tag.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.page-home .home-round__act {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease;
}

.page-home .home-round__act:hover,
.page-home .home-round__act:focus-visible {
  border-bottom-color: var(--accent);
}

/* ---------- index steps ---------- */
.page-home .home-index__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line-strong);
  display: grid;
  gap: 2px;
}

.page-home .home-step {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: var(--radius);
  transition: background 150ms ease;
}

.page-home .home-step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
}

.page-home .home-step .step-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text-dim);
}

.page-home .home-step__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .home-step__note {
  flex: 0 0 auto;
  width: calc(100% - 36px);
  margin-left: 36px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
}

.page-home .home-step:hover {
  background: var(--surface);
}

.page-home .home-step.is-current {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.page-home .home-step.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 255, 63, 0.16);
}

.page-home .home-step.is-current .step-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.page-home .home-step.is-current .home-step__label {
  color: var(--accent);
}

/* ---------- figures ---------- */
.page-home .home-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.page-home .home-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------- data panel ---------- */
.page-home .home-data__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-home .home-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  scroll-margin-top: 24px;
}

.page-home .home-panel__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
}

.page-home .home-panel__bar .mono {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.page-home .home-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .home-panel__col {
  padding: 16px 14px 18px;
}

.page-home .home-panel__col + .home-panel__col {
  border-top: 1px solid var(--line);
}

.page-home .home-panel__h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-records {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-records li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color 140ms ease, color 140ms ease;
}

.page-home .home-records li:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.page-home .home-swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 16px;
  border-radius: 2px;
}

.page-home .home-swatch--yellow { background: var(--yellow); }
.page-home .home-swatch--red { background: var(--red); }
.page-home .home-swatch--steel { background: var(--steel); }

.page-home .home-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.page-home .home-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  background: var(--surface);
  transition: background 140ms ease;
}

.page-home .home-metric:hover {
  background: var(--surface-2);
}

.page-home .home-metric__name {
  font-size: 13px;
}

.page-home .home-metric__note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}

/* ---------- modes (light band) ---------- */
.page-home .home-modes {
  background: var(--light);
  color: var(--ink-900);
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.page-home .home-modes .home-h2 {
  color: var(--ink-900);
}

.page-home .home-modes .home-head .lede {
  color: #38473F;
}

.page-home .home-modes .eyebrow {
  color: #44562C;
}

.page-home .home-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-mode-card {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 20px 18px;
}

.page-home .home-mode-card .mono {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.page-home .home-mode-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.22;
}

.page-home .home-mode-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.page-home .home-mode-card li {
  position: relative;
  padding-left: 16px;
}

.page-home .home-mode-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
}

.page-home .home-mode-card--std {
  background: var(--ink-900);
  border-color: var(--ink-700);
  color: var(--fog);
}

.page-home .home-mode-card--std .mono { color: var(--accent); }
.page-home .home-mode-card--std li::before { background: var(--accent); }

.page-home .home-mode-card--lite {
  background: #FFFFFF;
  border-color: rgba(8, 23, 19, 0.18);
  color: var(--ink-900);
}

.page-home .home-mode-card--lite .mono { color: #44562C; }
.page-home .home-mode-card--lite h3 { color: var(--ink-900); }
.page-home .home-mode-card--lite li::before { background: var(--lime-soft); }

.page-home .home-figure--modes {
  margin-top: 20px;
  border-color: rgba(8, 23, 19, 0.16);
  background: #FFFFFF;
}

.page-home .home-figure--modes figcaption {
  border-top-color: rgba(8, 23, 19, 0.12);
  color: #38473F;
}

/* ---------- scenes ---------- */
.page-home .home-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .home-scene {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.page-home .home-scene:hover,
.page-home .home-scene:focus-visible {
  border-color: var(--accent);
  background: var(--surface-2);
}

.page-home .home-scene__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 12px;
  color: var(--accent);
}

.page-home .home-scene h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.page-home .home-scene p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .home-scene__go {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease;
}

.page-home .home-scene:hover .home-scene__go {
  border-bottom-color: var(--accent);
}

/* ---------- figures strip ---------- */
.page-home .home-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-figures > div {
  background: var(--surface);
  padding: 16px 14px;
}

.page-home .home-figures dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.page-home .home-figures dd {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
}

.page-home .home-figures dd span {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
}

.page-home .home-figures__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .home-figures__note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 140ms ease;
}

.page-home .home-figures__note a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- cta ---------- */
.page-home .home-cta {
  padding-block: 46px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(214, 255, 63, 0.12) 0%, rgba(214, 255, 63, 0) 62%),
    var(--ink-800);
}

.page-home .home-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.page-home .home-cta__lede {
  margin: 14px 0 0;
  color: var(--text-dim);
  line-height: 1.8;
}

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

.page-home .home-cta__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

/* ---------- responsive ---------- */
@media (max-width: 420px) {
  .page-home .home-actions .btn,
  .page-home .home-cta__actions .btn {
    width: 100%;
  }

  .page-home .home-cta__actions {
    width: 100%;
  }
}

@media (min-width: 620px) {
  .page-home .home-panel__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .home-panel__col + .home-panel__col {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 720px) {
  .page-home .home-shell {
    padding-inline: 28px;
  }

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

@media (min-width: 820px) {
  .page-home .home-scenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .home-compare {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }
}

@media (min-width: 860px) {
  .page-home .home-cal {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .page-home .home-cta__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 32px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding-block: 56px 64px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .home-section {
    padding-block: 68px;
  }

  .page-home .home-modes {
    padding-block: 68px;
  }

  .page-home .home-index__grid {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .home-cta {
    padding-block: 64px;
  }
}

@media (min-width: 960px) {
  .page-home .home-data__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-home .home-figures {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-kicker p,
  .page-home .home-round,
  .page-home .home-records li,
  .page-home .home-metric,
  .page-home .home-step,
  .page-home .home-scene,
  .page-home .home-scene__go,
  .page-home .home-round__act,
  .page-home .home-figures__note a,
  .page-home .home-actions .btn,
  .page-home .home-cta__actions .btn {
    transition: none;
  }
}
