.page-home {
  --home-rail-w: 272px;
  --home-gap: clamp(24px, 3.2vw, 44px);
  --home-line: 1px solid rgba(140, 163, 181, 0.22);
  --home-panel-border: 2px solid rgba(243, 232, 216, 0.14);
  --home-section-gap: clamp(44px, 7vw, 84px);

  display: block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  overflow-x: clip;
}

/* ---------- Hero ---------- */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 84% 10%, rgba(255, 106, 43, 0.16), transparent 58%),
    radial-gradient(90% 70% at 6% 94%, rgba(116, 198, 157, 0.08), transparent 62%),
    var(--ink);
  border-bottom: 1px solid rgba(140, 163, 181, 0.2);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(140, 163, 181, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 163, 181, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 92% at 76% 8%, #000 0%, transparent 74%);
  mask-image: radial-gradient(120% 92% at 76% 8%, #000 0%, transparent 74%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(24px, 4vw, 40px) clamp(48px, 8vw, 96px);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 52px);
  margin-top: clamp(26px, 5vw, 52px);
}

.page-home .home-hero h1 {
  margin: 16px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(2.7rem, 10vw, 6.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--white);
}

.page-home .home-hero__lead {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(0.97rem, 1.4vw, 1.0625rem);
  line-height: 1.8;
  color: var(--mist);
}

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

.page-home .home-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 460px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: var(--home-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .home-hero__signal {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(116, 198, 157, 0.18);
  animation: home-breathe 4s ease-in-out infinite;
}

@keyframes home-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.page-home .home-hero__sep {
  color: rgba(140, 163, 181, 0.5);
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  border: 2px solid rgba(255, 106, 43, 0.45);
  background: var(--ink-panel);
  overflow: hidden;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Body layout ---------- */

.page-home .home-body {
  display: grid;
  gap: var(--home-gap);
  padding-block: clamp(38px, 6vw, 74px) clamp(52px, 8vw, 100px);
}

.page-home .home-stream {
  display: grid;
  gap: var(--home-section-gap);
  min-width: 0;
}

.page-home .home-section {
  min-width: 0;
}

/* ---------- Rail ---------- */

.page-home .home-rail {
  display: block;
  min-width: 0;
}

.page-home .rail-panel {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--ink-panel);
  border: var(--home-panel-border);
}

.page-home .rail-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 52px;
  height: 4px;
  background: var(--orange);
}

.page-home .rail-panel__head {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .rail-axis {
  margin-top: 8px;
  border-left: 2px solid rgba(140, 163, 181, 0.28);
}

.page-home .rail-node {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 11px 0 11px 18px;
  border-top: var(--home-line);
  text-decoration: none;
  color: inherit;
}

.page-home .rail-node:first-child {
  border-top: 0;
}

.page-home .rail-node::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.page-home .rail-node__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.page-home .rail-node__type {
  color: var(--jade);
}

.page-home .rail-node__time {
  color: var(--mist);
  flex: 0 0 auto;
}

.page-home .rail-node__desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(243, 232, 216, 0.82);
}

.page-home .rail-node:hover .rail-node__desc {
  color: var(--white);
}

.page-home .rail-link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 106, 43, 0.55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--orange);
  text-decoration: none;
}

.page-home .rail-figure {
  margin: 18px 0 0;
  border: var(--home-line);
  overflow: hidden;
}

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

/* ---------- Section heads ---------- */

.page-home .sec-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.page-home .sec-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 26px;
  margin-top: 4px;
  background: var(--orange);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.page-home .sec-head h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.32rem, 3.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--white);
}

.page-home .lead-line {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- Download list ---------- */

.page-home .dl-banner {
  margin: 0 0 18px;
  border: var(--home-panel-border);
  background: var(--ink-panel);
  overflow: hidden;
}

.page-home .dl-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .dl-list {
  display: grid;
  background: var(--ink-panel);
  border: var(--home-panel-border);
}

.page-home .dl-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: var(--home-line);
  text-decoration: none;
  color: var(--paper);
  transition: background-color 0.18s ease;
}

.page-home .dl-item:first-child {
  border-top: 0;
}

.page-home .dl-item:hover {
  background: rgba(255, 106, 43, 0.1);
}

.page-home .dl-item:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -3px;
}

.page-home .dl-item__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
}

.page-home .dl-item__name {
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .dl-item__cadence {
  display: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .dl-item .status {
  font-size: 10.5px;
  white-space: nowrap;
}

.page-home .dl-note {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

/* ---------- Mobile check ---------- */

.page-home .mobile-check {
  display: grid;
  gap: 22px;
}

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

.page-home .step-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--paper);
  color: var(--brown);
  border: var(--border-hard);
  box-shadow: var(--shadow-sm);
}

.page-home .step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  background: var(--orange);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.page-home .step-card h3 {
  margin: 1px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brown);
}

.page-home .step-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(27, 18, 12, 0.78);
}

.page-home .mobile-check__next {
  margin: 20px 0 0;
}

.page-home .mobile-check__visual {
  margin: 0;
  border: 2px solid rgba(255, 106, 43, 0.45);
  background: var(--ink-panel);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 420px;
}

.page-home .mobile-check__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Triage ---------- */

.page-home .triage-panel {
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(160deg, rgba(255, 106, 43, 0.13), transparent 62%),
    var(--ink-panel);
  border: var(--home-panel-border);
  border-left: 4px solid var(--orange);
}

.page-home .triage-panel__intro {
  margin: 0 0 20px;
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .triage-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}

.page-home .triage-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(243, 232, 216, 0.22);
  background: rgba(8, 24, 38, 0.55);
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.4;
}

.page-home .triage-steps .mono {
  color: var(--amber);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

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

/* ---------- Metrics ---------- */

.page-home .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}

.page-home .metric {
  display: grid;
  gap: 6px;
  padding: 16px 14px 14px;
  background: var(--ink-panel);
  border: var(--home-panel-border);
  border-top: 3px solid var(--jade);
}

.page-home .metric:nth-child(3n + 1) {
  border-top-color: var(--orange);
}

.page-home .metric:nth-child(3n + 3) {
  border-top-color: var(--amber);
}

.page-home .metric__value {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-home .metric__small {
  margin-left: 2px;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--mist);
}

.page-home .metric__label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

.page-home .metrics__more {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .metrics__more a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 43, 0.5);
  padding-bottom: 1px;
}

/* ---------- Motion ---------- */

.page-home [data-reveal] {
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--reveal-delay, 0) * 45ms);
}

/* ---------- Responsive ---------- */

@media (min-width: 620px) {
  .page-home .dl-item {
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: 13px 16px;
  }

  .page-home .dl-item__cadence {
    display: block;
  }

  .page-home .dl-banner img {
    aspect-ratio: 5 / 2;
  }
}

@media (min-width: 760px) {
  .page-home .mobile-check {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr);
    align-items: start;
    gap: clamp(20px, 3vw, 34px);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
  }
}

@media (min-width: 1080px) {
  .page-home .home-body {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__signal {
    animation: none;
  }

  .page-home [data-reveal],
  .page-home .dl-item {
    transition: none;
  }
}
<<<END>>>

.page-home {
  --reveal-delay: 0.3s;
}
