.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--step-5) var(--step-6);
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(124, 58, 237, 0.32), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(34, 211, 238, 0.13), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-hero__frame {
  position: relative;
  padding: var(--gutter);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 16, 31, 0.74), rgba(7, 6, 14, 0.42));
}

.page-home .home-hero__frame::before,
.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange);
  pointer-events: none;
}

.page-home .home-hero__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .home-hero__frame::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.page-home .home-hero__grid {
  display: grid;
  gap: var(--step-5);
}

.page-home .home-hero h1 {
  margin: 0 0 var(--step-4);
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 2px 0 rgba(255, 122, 26, 0.32), -2px 0 rgba(34, 211, 238, 0.32);
}

.page-home .home-hero .lead {
  max-width: 34ch;
  margin-bottom: var(--step-5);
  color: var(--paper);
}

.page-home .home-hero .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: var(--step-4);
}

.page-home .home-hero__side {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: var(--ink-2);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.15);
}

.page-home .home-hero__side::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(7, 6, 14, 0.85) 8%, rgba(7, 6, 14, 0.15) 55%, rgba(124, 58, 237, 0.35));
}

.page-home .home-hero__ruler {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 48px;
  height: 100%;
  color: var(--blue);
  opacity: 0.6;
}

.page-home .hero-readout {
  position: absolute;
  right: 60px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-home .hero-index {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--step-5);
  padding-top: var(--step-4);
  border-top: 1px dashed var(--line-soft);
}

.page-home .hero-index__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
}

.page-home .hero-index__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  color: var(--paper);
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.page-home .hero-index__item:nth-child(odd) {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.1);
}

.page-home .hero-index__item:hover,
.page-home .hero-index__item:focus-visible {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.45);
  outline: none;
}

.page-home .hero-index__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.2;
}

.page-home .hero-index__note {
  font-size: var(--step-2);
  line-height: 1.65;
  color: var(--muted);
}

.page-home .home-steps {
  display: grid;
  gap: var(--step-5);
}

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

.page-home .step:last-of-type {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .step summary {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 900;
  color: var(--paper);
}

.page-home .step summary::-webkit-details-marker {
  display: none;
}

.page-home .step summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.page-home .step__num {
  flex: none;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step-2);
  letter-spacing: 0.04em;
}

.page-home .step[open] summary .step__title {
  color: var(--gold);
}

.page-home .step__body {
  padding: 0 0 18px 46px;
  color: var(--muted);
  font-size: var(--step-3);
  line-height: 1.8;
}

.page-home .home-steps__list .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--step-4);
}

.page-home .home-steps__figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
}

.page-home .home-steps__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.page-home .home-steps__figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--step-1);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-home .rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 82%);
  gap: var(--gutter);
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .rail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--blue);
  background: var(--ink-2);
  color: var(--paper);
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.page-home .rail-card:nth-child(2) {
  border-top-color: var(--orange);
}

.page-home .rail-card:nth-child(3) {
  border-top-color: var(--gold);
}

.page-home .rail-card:hover,
.page-home .rail-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
  outline: none;
}

.page-home .rail-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.3;
}

.page-home .rail-card p {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.75;
  color: var(--muted);
}

.page-home .rail-card__go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  color: var(--blue);
}

.page-home .readout-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: var(--step-5);
  border: 1px solid var(--line-soft);
  object-fit: cover;
}

.page-home .readout-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
}

.page-home .readout-item {
  padding: 16px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .readout-item__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .readout-item__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  color: var(--gold);
}

.page-home .readout-item__unit {
  font-size: var(--step-2);
  color: var(--muted);
}

.page-home .home-readout__note {
  margin-top: var(--step-4);
  max-width: 46ch;
  font-size: var(--step-2);
  line-height: 1.8;
}

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

.page-home .fix-item {
  padding: 20px;
  border-left: 2px solid var(--orange);
  background: var(--ink-2);
}

.page-home .fix-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 900;
  color: var(--paper);
}

.page-home .fix-item p {
  margin: 0;
  font-size: var(--step-3);
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--step-5);
  padding: 22px;
}

.page-home .home-cta p {
  margin: 0;
  max-width: 46ch;
  font-size: var(--step-3);
  line-height: 1.8;
  color: var(--paper);
}

.page-home .home-cta .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (min-width: 720px) {
  .page-home .hero-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-hero__side {
    min-height: 320px;
  }

  .page-home .rail-track {
    grid-auto-columns: minmax(0, 360px);
  }

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

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

@media (min-width: 960px) {
  .page-home .home-hero__frame {
    padding: 40px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    align-items: stretch;
  }

  .page-home .home-hero__lead {
    grid-column: span 5;
    align-self: center;
  }

  .page-home .home-hero__side {
    grid-column: span 7;
    min-height: 420px;
  }

  .page-home .home-steps {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: var(--step-6);
  }

  .page-home .home-steps__figure {
    height: 100%;
  }
}

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

  .page-home .readout-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-index__item:hover,
  .page-home .hero-index__item:focus-visible,
  .page-home .rail-card:hover,
  .page-home .rail-card:focus-visible {
    transform: none;
  }
}
