.page-home {
  --hm-block: clamp(28px, 4vw, 48px);
  overflow-wrap: break-word;
}

/* ---------- Hero ---------- */
.page-home .hm-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  padding: clamp(104px, 15vw, 176px) 0 clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--line);
}

.page-home .hm-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: min(72%, 1040px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95), transparent 94%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95), transparent 94%);
}

.page-home .hm-hero__slab {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  background: var(--ink-800);
  opacity: 0.5;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  max-width: 900px;
}

.page-home .hm-hero__context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .hm-hero__title {
  margin: 0;
  max-width: min(100%, 820px);
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--mist);
}

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

.page-home .hm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: clamp(10px, 2vw, 20px) 0 0;
  padding: clamp(16px, 2.4vw, 24px) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .hm-hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--slate);
}

.page-home .hm-hero__meta .mono {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--mist);
}

/* ---------- Body grid ---------- */
.page-home .hm-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 56px);
  padding-block: clamp(40px, 8vw, 96px);
}

/* ---------- Rail ---------- */
.page-home .hm-rail {
  display: grid;
  gap: 26px;
  align-content: start;
  min-width: 0;
}

.page-home .hm-status {
  padding: 20px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
}

.page-home .hm-status__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .hm-status__ver {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-home .hm-status__meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.page-home .hm-status__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.page-home .hm-status__meta dt {
  color: var(--slate);
}

.page-home .hm-status__meta dd {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--mist);
}

.page-home .hm-toc__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--slate);
}

.page-home .hm-toc .toc-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-toc .toc-link {
  display: block;
  padding: 9px 0 9px 14px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}

.page-home .hm-toc .toc-link:hover,
.page-home .hm-toc .toc-link:focus-visible {
  color: var(--mist);
  border-left-color: var(--cyan);
}

.page-home .hm-toc .toc-link.is-active {
  padding-left: 18px;
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ---------- Sections ---------- */
.page-home .hm-canvas {
  min-width: 0;
}

.page-home .hm-section {
  padding-block: clamp(30px, 5vw, 56px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-home .hm-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-home .hm-head {
  display: grid;
  gap: 12px;
  max-width: 64ch;
  margin-bottom: clamp(22px, 3.4vw, 40px);
}

.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-home .hm-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .hm-lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.8;
  color: var(--slate);
}

.page-home .hm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(22px, 3vw, 32px) 0 0;
}

/* ---------- Figures ---------- */
.page-home .hm-figure,
.page-home .hm-insight__fig {
  margin: 0;
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.page-home .hm-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 720;
  object-fit: cover;
}

.page-home .hm-insight__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
}

.page-home .hm-figure figcaption,
.page-home .hm-insight__fig figcaption {
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* ---------- Entry path ---------- */
.page-home .hm-path {
  display: grid;
  gap: 0;
  margin: clamp(20px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .hm-path__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .hm-path__item:last-child {
  border-bottom: 0;
}

.page-home .hm-path__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .hm-path__item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  color: var(--mist);
}

.page-home .hm-path__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--slate);
}

/* ---------- Troubleshoot ---------- */
.page-home .hm-iconrow {
  margin: 0 0 clamp(20px, 3vw, 32px);
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.page-home .hm-iconrow img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 600;
  object-fit: cover;
  opacity: 0.92;
}

.page-home .hm-steps {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-step {
  padding: 26px 22px 22px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.page-home .hm-step:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  border-top-color: var(--orange);
}

.page-home .hm-step__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .hm-step__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--mist);
}

.page-home .hm-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .hm-step__more {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
}

/* ---------- Module matrix ---------- */
.page-home .hm-mods {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .hm-mod {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--ink-900);
  transition: background 0.2s ease;
}

.page-home .hm-mod:hover {
  background: var(--ink-800);
}

.page-home .hm-mod__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .hm-mod h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  color: var(--mist);
}

.page-home .hm-mod p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- Insights ---------- */
.page-home .hm-insight {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}

.page-home .hm-insight__side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.page-home .hm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .hm-metric {
  display: grid;
  gap: 6px;
  padding: 18px 14px;
  background: var(--ink-900);
}

.page-home .hm-metric span {
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.page-home .hm-metric p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}

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

.page-home .hm-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--slate);
}

.page-home .hm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 1.5px;
  background: var(--cyan);
}

/* ---------- Update log ---------- */
.page-home .hm-updates {
  border-top: 1px solid var(--line);
}

.page-home .hm-updates .faq-item {
  border-bottom: 1px solid var(--line);
}

.page-home .hm-updates__h {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.page-home .hm-updates .faq-q {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.page-home .hm-updates__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange);
  white-space: nowrap;
}

.page-home .hm-updates__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
  color: var(--mist);
}

.page-home .hm-updates .faq-q__sign {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.page-home .hm-updates .faq-q__sign::before,
.page-home .hm-updates .faq-q__sign::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-home .hm-updates .faq-q__sign::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}

.page-home .hm-updates .faq-q__sign::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}

.page-home .hm-updates .faq-q[aria-expanded="true"] .faq-q__sign::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.page-home .hm-updates .faq-a__inner {
  padding: 0 clamp(0px, 4vw, 64px) 22px 0;
}

.page-home .hm-updates .faq-a__inner p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- Support ---------- */
.page-home .hm-support {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .hm-support__card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 3vw, 32px);
  background: var(--ink-900);
  border-left: 3px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .hm-support__card:hover,
.page-home .hm-support__card:focus-visible {
  background: var(--ink-800);
  border-left-color: var(--cyan);
}

.page-home .hm-support__card--accent {
  border-left-color: var(--orange);
}

.page-home .hm-support__card--accent:hover,
.page-home .hm-support__card--accent:focus-visible {
  border-left-color: var(--orange);
}

.page-home .hm-support__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .hm-support__card--accent .hm-support__k {
  color: var(--orange);
}

.page-home .hm-support__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  color: var(--mist);
}

.page-home .hm-support__card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--slate);
}

.page-home .hm-footnote {
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate);
}

.page-home .hm-footnote a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.page-home .hm-footnote a:hover,
.page-home .hm-footnote a:focus-visible {
  color: var(--mist);
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .page-home .hm-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 38px);
  }

  .page-home .hm-path__item {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .page-home .hm-mods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hm-support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .hm-insight {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }

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

@media (min-width: 1080px) {
  .page-home .hm-body {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
  }

  .page-home .hm-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

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

@media (min-width: 900px) and (hover: hover) {
  .page-home .hm-step__more {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    opacity: 0;
    border-top-color: transparent;
    transition: max-height 0.3s ease, opacity 0.24s ease, margin-top 0.3s ease, padding-top 0.3s ease;
  }

  .page-home .hm-step:hover .hm-step__more {
    max-height: 200px;
    margin-top: 12px;
    padding-top: 12px;
    opacity: 1;
    border-top-color: var(--line);
  }
}

@media (max-width: 700px) {
  .page-home .hm-hero__bg {
    width: 100%;
    opacity: 0.16;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-home .hm-hero__slab {
    width: 82%;
    opacity: 0.34;
  }

  .page-home .hm-status__ver {
    font-size: 36px;
  }

  .page-home .hm-metric {
    padding: 15px 10px;
  }

  .page-home .hm-metric span {
    font-size: 18px;
  }

  .page-home .hm-metric p {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-step,
  .page-home .hm-mod,
  .page-home .hm-support__card,
  .page-home .hm-toc .toc-link,
  .page-home .hm-step__more,
  .page-home .hm-updates .faq-q__sign::before,
  .page-home .hm-updates .faq-q__sign::after {
    transition: none;
  }

  .page-home .hm-step:hover {
    transform: none;
  }
}
