.page-home {
  --hm-line-soft: #D9D3C6;
  --hm-paper-alt: #EAE5D9;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-home .hm-paper {
  background: var(--paper);
  color: var(--ink);
}

.page-home .hm-text {
  max-width: 34em;
  margin: 0 0 1.1em;
  font-size: 1rem;
  line-height: 1.78;
  color: inherit;
  opacity: .88;
}

.page-home .hm-text--dim {
  font-size: .9375rem;
  color: var(--graphite);
  opacity: 1;
}

.page-home .hm-paper .eyebrow {
  color: var(--cyan-deep);
}

.page-home .hm-head {
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.page-home .hm-head h2 {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 22em;
}

/* ---------- context strip ---------- */

.page-home .hm-context {
  border-bottom: 1px solid var(--grid);
  background: var(--ink-deep);
}

.page-home .hm-context__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .hm-context__brand {
  color: var(--cyan);
}

.page-home .hm-context__rule {
  width: 28px;
  height: 1px;
  background: var(--grid);
}

.page-home .hm-context__path {
  color: var(--graphite);
}

/* ---------- opening ---------- */

.page-home .hm-open {
  padding-block: clamp(30px, 6vw, 76px) clamp(36px, 7vw, 88px);
}

.page-home .hm-open__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.page-home .hm-open__lead h1 {
  margin: 12px 0 20px;
  font-size: clamp(30px, 5.4vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.025em;
}

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

.page-home .hm-open__fig {
  border: 1px solid var(--grid);
  background: var(--ink-deep);
}

/* ---------- figure band ---------- */

.page-home .hm-figures {
  background: var(--ink-deep);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  padding-block: clamp(28px, 5vw, 60px);
}

.page-home .hm-figures__row {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .hm-fig {
  padding-top: 14px;
  border-top: 1px solid var(--grid);
}

.page-home .hm-fig__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(64px, 11vw, 148px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.045em;
  color: var(--paper);
}

.page-home .hm-fig__label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
  max-width: 22em;
}

/* ---------- category index ---------- */

.page-home .hm-index {
  padding-block: clamp(42px, 7vw, 96px);
}

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

.page-home .hm-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px 20px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--fast) var(--ease);
}

.page-home .hm-cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan-deep);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--fast) var(--ease);
}

.page-home .hm-cat:hover,
.page-home .hm-cat:focus-visible {
  background: var(--hm-paper-alt);
}

.page-home .hm-cat:hover::before,
.page-home .hm-cat:focus-visible::before {
  transform: scaleY(1);
}

.page-home .hm-cat__code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan-deep);
}

.page-home .hm-cat__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.page-home .hm-cat__meta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--graphite);
}

.page-home .hm-cat__bar {
  display: block;
  height: 3px;
  margin-top: 8px;
  background: #DED8CA;
}

.page-home .hm-cat__fill {
  display: block;
  height: 100%;
  background: var(--cyan-deep);
}

/* ---------- three lines ---------- */

.page-home .hm-lines {
  padding-block: clamp(42px, 7vw, 96px);
}

.page-home .hm-lines__grid {
  display: grid;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}

.page-home .hm-line {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--ink);
  transition: background var(--fast) var(--ease);
}

.page-home .hm-line:hover {
  background: var(--ink-deep);
}

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

.page-home .hm-line h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.015em;
}

.page-home .hm-line p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.78;
  color: var(--mist);
  max-width: 26em;
}

.page-home .hm-line__link {
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}

.page-home .hm-line__link:hover,
.page-home .hm-line__link:focus-visible {
  border-bottom-color: var(--cyan);
}

/* ---------- legend ---------- */

.page-home .hm-legend {
  padding-block: clamp(42px, 7vw, 96px);
}

.page-home .hm-legend__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .hm-legend__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  border-bottom: 1px solid var(--hm-line-soft);
}

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

.page-home .hm-legend__list li {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid currentColor;
}

.page-home .hm-chip--stock {
  color: var(--cyan-deep);
}

.page-home .hm-chip--mid {
  color: var(--graphite);
  border-style: dashed;
}

.page-home .hm-chip--pending {
  color: var(--graphite);
  background: var(--mist);
}

.page-home .hm-chip--price {
  color: var(--amber-deep);
}

.page-home .hm-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  flex: none;
}

.page-home .hm-legend__foot {
  margin: 22px 0 0;
  font-size: .9375rem;
}

.page-home .hm-legend__foot a {
  color: var(--amber-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- cities ---------- */

.page-home .hm-cities {
  padding-block: clamp(42px, 7vw, 96px);
}

.page-home .hm-cities__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.page-home .hm-cities__txt h2 {
  margin: 10px 0 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.page-home .hm-cities__list {
  list-style: none;
  margin: 22px 0 18px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--grid);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.page-home .hm-cities__list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 11px 0;
  background: var(--ink);
  font-size: .9375rem;
  color: var(--mist);
}

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

.page-home .hm-cities__fig {
  border: 1px solid var(--grid);
  background: var(--ink-deep);
}

/* ---------- steps ---------- */

.page-home .hm-steps {
  padding-block: clamp(42px, 7vw, 96px);
}

.page-home .hm-steps__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.page-home .hm-steps__intro h2 {
  margin: 10px 0 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

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

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

.page-home .hm-step summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  transition: background var(--fast) var(--ease);
}

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

.page-home .hm-step summary:hover {
  background: var(--hm-paper-alt);
}

.page-home .hm-step__no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan-deep);
}

.page-home .hm-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.page-home .hm-step__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--amber-deep);
  white-space: nowrap;
}

.page-home .hm-step__body {
  padding: 0 2px 20px;
}

.page-home .hm-step__body p {
  margin: 0;
  max-width: 34em;
  font-size: .9375rem;
  line-height: 1.78;
  color: var(--graphite);
}

/* ---------- reports ---------- */

.page-home .hm-reports {
  padding-block: clamp(42px, 7vw, 96px) clamp(52px, 8vw, 110px);
}

.page-home .hm-reports__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.page-home .hm-reports__intro h2 {
  margin: 10px 0 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.page-home .hm-reports__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grid);
}

.page-home .hm-reports__list li {
  border-bottom: 1px solid var(--grid);
}

.page-home .hm-reports__list a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 2px;
  text-decoration: none;
  color: var(--paper);
  transition: background var(--fast) var(--ease);
}

.page-home .hm-reports__list a:hover,
.page-home .hm-reports__list a:focus-visible {
  background: var(--ink-deep);
}

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

.page-home .hm-reports__t {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- reveal ---------- */

.js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */

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

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

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

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

@media (min-width: 960px) {
  .page-home .hm-open__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  }

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

  .page-home .hm-cities__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  }

  .page-home .hm-steps__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }

  .page-home .hm-reports__grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
}

@media (min-width: 1180px) {
  .page-home .hm-cat {
    padding: 20px 20px 24px;
  }
}

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