.page-home {
  --home-radius: 0px;
  --home-deep: var(--hth-night-deep);
  position: relative;
  background: var(--hth-night);
  color: var(--hth-on-dark);
  overflow-x: clip;
  font-family: var(--hth-sans);
  line-height: 1.75;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-family: var(--hth-sans);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.14;
}

.page-home p {
  margin: 0;
}

.page-home .hth-eyebrow {
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--hth-neon);
  font-family: var(--hth-serif);
  margin: 0;
}

.page-home .hth-title {
  color: #fff;
  font-size: clamp(27px, 4.4vw, 42px);
  margin-top: 10px;
}

.page-home .hth-lede {
  color: var(--hth-on-dark-dim);
  font-size: 16px;
  margin-top: 14px;
  max-width: 62ch;
}

.page-home .hth-card-title {
  color: #fff;
  font-size: clamp(19px, 2.2vw, 23px);
  margin-bottom: 12px;
}

/* ---------- hero ---------- */
.home-hero {
  position: relative;
  padding-top: calc(var(--hth-header-h) + clamp(30px, 5vw, 66px));
  padding-bottom: clamp(36px, 5vw, 72px);
  background:
    radial-gradient(120% 78% at 10% 0%, rgba(30, 78, 140, .5) 0%, rgba(6, 21, 43, 0) 62%),
    radial-gradient(90% 66% at 88% 16%, rgba(40, 240, 168, .13) 0%, rgba(6, 21, 43, 0) 58%),
    var(--hth-night);
}

.home-hero__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(720px, 88vh);
  pointer-events: none;
  background:
    radial-gradient(44% 38% at 24% 28%, rgba(40, 240, 168, .2), transparent 70%),
    radial-gradient(52% 44% at 74% 10%, rgba(30, 78, 140, .5), transparent 74%),
    radial-gradient(36% 32% at 52% 56%, rgba(255, 138, 61, .09), transparent 76%);
  mix-blend-mode: screen;
}

.home-hero .hth-shell {
  position: relative;
  z-index: 1;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}

.home-hero__eyebrow {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(40, 240, 168, .32);
}

.home-hero__title {
  margin-top: 16px;
  font-size: clamp(42px, 9vw, 78px);
  line-height: .96;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}

.home-hero__lede {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 44ch;
  color: var(--hth-on-dark-dim);
  font-size: 16px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
}

.home-hero__band {
  position: relative;
  margin: clamp(38px, 5.5vw, 74px) auto 0;
  width: min(100%, var(--hth-shell));
  padding-inline: var(--hth-gutter);
  box-sizing: border-box;
  border: 0;
}

.page-home .home-hero__band img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--hth-line);
}

/* ---------- directory ---------- */
.home-dir__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hth-line-strong);
}

.home-dir__mark {
  font-family: var(--hth-serif);
  font-size: 15px;
  letter-spacing: .26em;
  color: var(--hth-neon);
}

.home-dir__hint {
  font-size: 13px;
  color: var(--hth-note);
}

.home-dir__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
}

.page-home .home-dir__filter .hth-filter__btn {
  appearance: none;
  border: 1px solid var(--hth-line);
  background: transparent;
  color: var(--hth-on-dark-dim);
  font-family: var(--hth-sans);
  font-size: 13px;
  line-height: 1;
  padding: 8px 13px;
  border-radius: 0;
  cursor: pointer;
  transition: color .26s var(--hth-ease), border-color .26s var(--hth-ease), background .26s var(--hth-ease);
}

.page-home .home-dir__filter .hth-filter__btn:hover {
  color: #fff;
  border-color: var(--hth-line-strong);
}

.page-home .home-dir__filter .hth-filter__btn[aria-pressed="true"] {
  color: var(--hth-neon);
  border-color: var(--hth-neon);
  background: rgba(40, 240, 168, .08);
}

.home-dir__count {
  font-family: var(--hth-mono);
  font-size: 12px;
  color: var(--hth-note);
  margin-left: auto;
}

.home-dir__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--hth-line);
}

.home-dir__item {
  border-bottom: 1px solid var(--hth-line);
  transition: background .28s var(--hth-ease);
}

.home-dir__item[hidden] {
  display: none;
}

.home-dir__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 12px;
  text-decoration: none;
  color: inherit;
  transition: padding-left .28s var(--hth-ease);
}

.home-dir__item:hover {
  background: rgba(30, 78, 140, .3);
}

.home-dir__item:hover .home-dir__link {
  padding-left: 20px;
}

.home-dir__item:hover .home-dir__no {
  color: var(--hth-neon);
}

.home-dir__no {
  font-family: var(--hth-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--hth-note);
  transition: color .28s var(--hth-ease);
}

.home-dir__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.home-dir__meta {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--hth-on-dark-dim);
  line-height: 1.6;
}

.home-dir__arrow {
  font-family: var(--hth-mono);
  color: var(--hth-note);
}

/* ---------- shared section frame ---------- */
.page-home .home-sec {
  position: relative;
  padding-block: clamp(52px, 8vw, 104px);
}

.page-home .home-sec--deep {
  background: var(--home-deep);
}

.page-home .home-sec__head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

/* ---------- steps ---------- */
.home-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-home .home-steps__figure {
  border: 0;
  margin: 0;
}

.page-home .home-steps__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--hth-line);
}

.page-home .home-steps__figure .hth-figure__cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--hth-note);
  line-height: 1.7;
}

.home-track {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 14px;
}

.home-track__base {
  fill: none;
  stroke: var(--hth-line-strong);
  stroke-width: 1.5;
}

.home-track__fill {
  fill: none;
  stroke: var(--hth-neon);
  stroke-width: 1.5;
  stroke-dasharray: 470;
  stroke-dashoffset: 470;
  transition: stroke-dashoffset 1.5s var(--hth-ease) .15s;
}

.home-track__nodes circle {
  fill: var(--hth-night);
  stroke: var(--hth-neon);
  stroke-width: 1.5;
  opacity: .3;
  transition: opacity .5s var(--hth-ease);
}

.home-steps__body.is-in .home-track__fill {
  stroke-dashoffset: 0;
}

.home-steps__body.is-in .home-track__nodes circle {
  opacity: 1;
}

.home-steps__body.is-in .home-track__nodes circle:nth-child(2) {
  transition-delay: .45s;
}

.home-steps__body.is-in .home-track__nodes circle:nth-child(3) {
  transition-delay: .9s;
}

.page-home .hth-steps__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hth-line-strong);
}

.page-home .hth-steps__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 8px 13px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--hth-on-dark-dim);
  font-family: var(--hth-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color .26s var(--hth-ease), border-color .26s var(--hth-ease), background .26s var(--hth-ease);
}

.page-home .hth-steps__btn:hover {
  color: #fff;
}

.page-home .hth-steps__btn[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--hth-neon);
  background: rgba(40, 240, 168, .06);
}

.page-home .hth-steps__no {
  font-family: var(--hth-mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--hth-neon);
}

.page-home .hth-steps__panel {
  padding: 22px 2px 0;
}

.page-home .hth-steps__panel[hidden] {
  display: none;
}

.home-step__title {
  font-size: clamp(18px, 2vw, 21px);
  color: #fff;
  margin-bottom: 10px;
}

.page-home .hth-steps__panel p {
  max-width: 56ch;
  color: var(--hth-on-dark-dim);
  font-size: 15.5px;
}

.page-home .hth-steps__panel .home-step__note {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(40, 240, 168, .45);
  font-size: 14px;
  color: var(--hth-mist);
}

/* ---------- data ---------- */
.page-home .home-data {
  background-color: var(--hth-stand);
  background-image:
    linear-gradient(to right, rgba(198, 208, 221, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 208, 221, .07) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
}

.home-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}

.home-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  background: rgba(6, 21, 43, .74);
  border: 1px solid var(--hth-line);
  transition: transform .32s var(--hth-ease), border-color .32s var(--hth-ease), box-shadow .32s var(--hth-ease);
}

.home-card::after {
  content: "";
  position: absolute;
  left: clamp(22px, 2.6vw, 34px);
  right: 44%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hth-neon), rgba(40, 240, 168, 0));
  transform: skewX(-26deg);
  transform-origin: left bottom;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: var(--hth-line-strong);
  box-shadow: 0 18px 42px rgba(4, 16, 31, .55);
}

.home-stack__main .hth-card-title {
  margin-top: 12px;
}

.home-dims {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.home-dims li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hth-line);
}

.home-dims li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-dims__key {
  font-family: var(--hth-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--hth-neon);
  letter-spacing: .04em;
}

.home-dims__text {
  font-size: 14.5px;
  color: var(--hth-on-dark-dim);
  line-height: 1.7;
}

.home-details {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--hth-line);
}

.home-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: var(--hth-mist);
  font-weight: 600;
}

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

.home-details summary::before {
  content: "+";
  font-family: var(--hth-mono);
  font-size: 16px;
  color: var(--hth-neon);
  line-height: 1;
}

.home-details[open] summary::before {
  content: "–";
}

.home-details p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--hth-on-dark-dim);
}

.page-home .home-stack__figure {
  border: 0;
  margin: 0;
}

.page-home .home-stack__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--hth-line);
}

.home-stack__metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
}

.page-home .home-metric {
  display: block;
  padding: clamp(20px, 2.2vw, 28px);
  background: rgba(6, 21, 43, .62);
  border: 1px solid var(--hth-line);
  transition: transform .32s var(--hth-ease), border-color .32s var(--hth-ease), box-shadow .32s var(--hth-ease);
}

.page-home .home-metric:hover {
  transform: translateY(-4px);
  border-color: var(--hth-line-strong);
  box-shadow: 0 18px 42px rgba(4, 16, 31, .55);
}

.home-metric__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.home-metric__value .hth-num {
  font-family: var(--hth-mono);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--hth-neon);
}

.home-metric__unit {
  font-size: 13px;
  color: var(--hth-on-dark-dim);
}

.page-home .home-metric .hth-metric__label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--hth-on-dark-dim);
  line-height: 1.7;
}

/* ---------- paper slab ---------- */
.page-home .home-sec--paper {
  background: var(--hth-paper);
  color: var(--hth-ink);
}

.page-home .home-sec--paper .hth-title {
  color: var(--hth-ink);
}

.page-home .home-sec--paper .hth-eyebrow {
  color: var(--hth-touch);
}

.home-free {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.home-free__text {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--hth-note);
}

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

.home-free__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--hth-note);
  line-height: 1.7;
}

.home-free__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 14px;
  height: 2px;
  background: var(--hth-orange);
}

.home-free__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.page-home .home-sec--paper .hth-btn--ghost {
  color: var(--hth-ink);
  border-color: var(--hth-grid);
}

.page-home .home-sec--paper .hth-btn--ghost:hover {
  border-color: var(--hth-touch);
  color: var(--hth-touch);
}

.page-home .home-free__figure {
  border: 0;
  margin: 0;
}

.page-home .home-free__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--hth-grid);
}

.page-home .home-free__figure .hth-figure__cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--hth-note);
  line-height: 1.7;
}

/* ---------- story ---------- */
.home-story__title {
  max-width: 22ch;
}

.home-story__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(22px, 3vw, 36px);
}

.page-home .home-story__cols p {
  font-size: 16px;
  color: var(--hth-on-dark-dim);
  max-width: 58ch;
}

.home-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .home-stack__metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 880px) {
  .home-stack {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }

  .home-stack__main {
    grid-column: 1 / span 7;
  }

  .home-stack__figure {
    grid-column: 8 / span 5;
    margin-top: 30px;
  }

  .home-stack__metrics {
    grid-column: 1 / -1;
    margin-top: 26px;
  }

  .home-stack__metrics .home-metric:nth-child(2) {
    margin-top: 22px;
  }

  .home-stack__metrics .home-metric:nth-child(3) {
    margin-top: 44px;
  }

  .home-stack {
    padding-bottom: 52px;
  }
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(40px, 5vw, 80px);
  }

  .home-hero__dir {
    margin-top: 6px;
  }

  .home-steps__grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  .home-free {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

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

  .page-home .home-story__cols p:first-child {
    padding-right: clamp(16px, 2.4vw, 34px);
    border-right: 1px solid var(--hth-line);
  }
}

@media (max-width: 520px) {
  .home-dims li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-home .hth-steps__btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
  }

  .home-dir__arrow {
    display: none;
  }
}

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

  .home-track__fill {
    stroke-dashoffset: 0;
  }

  .home-track__nodes circle {
    opacity: 1;
  }
}
