.page-home {
  --hm-pad: clamp(40px, 6vw, 88px);
  --hm-hair: 1px solid var(--line);
  display: block;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .hm-h2 {
  font-family: var(--font-display);
  font-size: clamp(27px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.page-home .hm-h2--light {
  color: var(--ivory);
}

.page-home .hm-h2--dark {
  color: var(--ice);
}

.page-home .eyebrow {
  display: block;
}

.page-home .hm-eyebrow--light {
  color: var(--hl);
}

.page-home .hm-eyebrow--dark {
  color: rgba(17, 23, 25, 0.7);
}

.page-home .hm-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .hm-link:hover,
.page-home .hm-link:focus-visible {
  color: var(--accent-cool);
  border-color: currentColor;
}

/* ---------- hero ---------- */

.page-home .hm-hero {
  position: relative;
  padding: clamp(22px, 3.5vw, 52px) 0 var(--hm-pad);
  border-bottom: var(--hm-hair);
  overflow: hidden;
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
  pointer-events: none;
}

.page-home .hm-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-home .hm-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  padding-top: clamp(4px, 1.5vw, 18px);
}

.page-home .hm-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8.6vw, 92px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 12px 0 18px;
  color: var(--ink);
}

.page-home .hm-hero__title::after {
  content: "";
  display: block;
  width: clamp(54px, 14vw, 118px);
  height: 7px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 62%, var(--hl) 62% 100%);
}

.page-home .hm-hero__deck {
  max-width: 46ch;
  margin: 0 0 24px;
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.9;
  color: var(--ink-soft);
}

.page-home .hm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.page-home .hm-hero__alt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.page-home .hm-hero__alt:hover,
.page-home .hm-hero__alt:focus-visible {
  color: var(--lake);
}

.page-home .hm-idx {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.page-home .hm-idx__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  border-bottom: var(--hm-hair);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.page-home .hm-idx__link:hover,
.page-home .hm-idx__link:focus-visible {
  background: rgba(217, 107, 43, 0.1);
  padding-left: 14px;
}

.page-home .hm-idx__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

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

.page-home .hm-idx__label {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.page-home .hm-idx__meta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.page-home .hm-idx__go {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  opacity: 0.65;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.page-home .hm-idx__link:hover .hm-idx__go,
.page-home .hm-idx__link:focus-visible .hm-idx__go {
  transform: translate(3px, -3px);
  opacity: 1;
}

.page-home .hm-hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(24px, 4vw, 44px);
}

.page-home .hm-hero__media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.page-home .hm-hero__stats {
  list-style: none;
  margin: 0;
  padding: clamp(16px, 2.6vw, 26px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px;
  background: var(--ice);
  color: var(--ivory);
  border-radius: var(--radius-l);
}

.page-home .hm-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .hm-stat::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--hl);
  margin-bottom: 6px;
}

.page-home .hm-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(25px, 4.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.page-home .hm-stat__unit {
  margin-left: 4px;
  font-size: 12px;
  color: var(--sand);
}

.page-home .hm-stat__label {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.74);
}

/* ---------- entry band ---------- */

.page-home .hm-band {
  padding: var(--hm-pad) 0 clamp(34px, 5vw, 64px);
}

.page-home .hm-band__head {
  max-width: 62ch;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.page-home .hm-band__note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-home .hm-band__media {
  margin: 0 0 clamp(20px, 3vw, 32px);
}

.page-home .hm-band__rail {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px var(--gutter) 18px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}

.page-home .hm-card {
  position: relative;
  flex: 0 0 min(82vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  background: var(--ivory);
  border: var(--hm-hair);
  border-radius: var(--radius-l);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-home .hm-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.page-home .hm-card:hover,
.page-home .hm-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 38, 40, 0.34);
  box-shadow: 0 14px 28px rgba(31, 38, 40, 0.08);
}

.page-home .hm-card:hover::after,
.page-home .hm-card:focus-visible::after {
  width: 100%;
}

.page-home .hm-card__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
}

.page-home .hm-card__title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.page-home .hm-card__text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-home .hm-card__go {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lake);
}

/* ---------- city coordinates ---------- */

.page-home .hm-cities {
  position: relative;
  padding: var(--hm-pad) 0;
  background: var(--ice);
  color: var(--ivory);
  overflow: hidden;
}

.page-home .hm-cities::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 107, 43, 0.4), transparent 70%);
  pointer-events: none;
}

.page-home .hm-cities > .wrap {
  position: relative;
  z-index: 1;
}

.page-home .hm-cities__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 44px);
}

.page-home .hm-cities__text {
  max-width: 44ch;
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(245, 240, 230, 0.78);
}

.page-home .hm-city {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hm-city__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 240, 230, 0.26);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ivory);
}

.page-home .hm-city__chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hl);
}

.page-home .hm-cities__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}

.page-home .hm-cityfact {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(245, 240, 230, 0.05);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}

.page-home .hm-cityfact dt {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.1;
  color: var(--hl);
}

.page-home .hm-cityfact dd {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.76);
}

/* ---------- updates ---------- */

.page-home .hm-updates {
  padding: var(--hm-pad) 0;
  border-bottom: var(--hm-hair);
}

.page-home .hm-updates__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

.page-home .hm-updates__note {
  max-width: 34ch;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-home .hm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hm-list__item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: var(--hm-hair);
}

.page-home .hm-list__item:last-child {
  border-bottom: var(--hm-hair);
}

.page-home .hm-list__time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
}

.page-home .hm-list__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .hm-list__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- why ---------- */

.page-home .hm-why {
  padding: var(--hm-pad) 0;
}

.page-home .hm-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 44px);
}

.page-home .hm-why__text {
  max-width: 52ch;
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.page-home .hm-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}

.page-home .hm-fact {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  background: var(--frost);
  border-radius: var(--radius-m);
}

.page-home .hm-fact__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--accent-deep);
}

.page-home .hm-fact__v {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .hm-why__media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.page-home .hm-why__caption {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--rock);
}

/* ---------- contact ---------- */

.page-home .hm-contact-sec {
  padding: 0 0 var(--hm-pad);
}

.page-home .hm-contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(22px, 4vw, 48px);
  background: var(--accent);
  color: var(--ice);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.page-home .hm-contact__intro {
  max-width: 46ch;
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(17, 23, 25, 0.84);
}

.page-home .hm-contact__list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.page-home .hm-contact__row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 23, 25, 0.2);
}

.page-home .hm-contact__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(17, 23, 25, 0.62);
}

.page-home .hm-contact__v {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ice);
  overflow-wrap: anywhere;
}

.page-home .hm-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .hm-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.page-home .hm-btn-dark:hover,
.page-home .hm-btn-dark:focus-visible {
  background: var(--ivory);
  color: var(--ice);
}

.page-home .hm-copy {
  border: 1px solid rgba(17, 23, 25, 0.4);
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .hm-copy:hover,
.page-home .hm-copy:focus-visible {
  background: rgba(17, 23, 25, 0.14);
  border-color: var(--ice);
}

.page-home .hm-contact__tip {
  max-width: 46ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(17, 23, 25, 0.78);
}

.page-home .hm-contact__fig {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

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

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

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

  .page-home .hm-cityfact:first-child {
    grid-column: 1 / -1;
  }
}

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

  .page-home .hm-hero__stage {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: stretch;
    gap: 20px;
  }

  .page-home .hm-hero__media {
    height: 100%;
  }

  .page-home .hm-hero__media img {
    height: 100%;
    object-fit: cover;
  }

  .page-home .hm-cities__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
  }

  .page-home .hm-updates__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-home .hm-why__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .hm-contact {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .hm-card {
    flex: 0 0 300px;
  }
}

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

  .page-home .hm-cityfact:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-card,
  .page-home .hm-idx__link,
  .page-home .hm-idx__go,
  .page-home .hm-btn-dark,
  .page-home .hm-copy {
    transition: none;
  }

  .page-home .hm-card:hover,
  .page-home .hm-card:focus-visible {
    transform: none;
  }

  .page-home .hm-idx__link:hover,
  .page-home .hm-idx__link:focus-visible {
    padding-left: 6px;
  }

  .page-home .hm-idx__link:hover .hm-idx__go,
  .page-home .hm-idx__link:focus-visible .hm-idx__go {
    transform: none;
  }
}
