.page-home {
  --home-gap: clamp(48px, 8vw, 96px);
  --home-line: rgba(124, 196, 242, 0.28);
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

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

.page-home .fig-cap {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.page-home .sec--dark .fig-cap,
.page-home .sec--deep .fig-cap {
  color: rgba(217, 232, 245, 0.65);
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(26px, 4.5vw, 48px) 0 clamp(64px, 9vw, 104px);
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(255, 194, 75, 0.2), transparent 58%),
    radial-gradient(90% 70% at 6% 0%, rgba(124, 196, 242, 0.2), transparent 62%),
    linear-gradient(165deg, #08111f 0%, #0e2a47 56%, #14639b 128%);
  color: var(--snow);
  overflow: hidden;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(246, 251, 255, 0.5) 0.8px, transparent 0.8px);
  background-size: 6px 6px;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 5vw, 52px);
  align-items: center;
}

.page-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
}

.page-home .hero__dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.22);
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--snow);
}

.page-home .hero__mark {
  font-style: normal;
  color: var(--orange);
  box-shadow: inset 0 -0.16em 0 rgba(255, 90, 31, 0.26);
}

.page-home .hero__lead {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: rgba(217, 232, 245, 0.84);
}

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

.page-home .hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(217, 232, 245, 0.72);
}

.page-home .hero__status-time {
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.page-home .hero__visual {
  position: relative;
}

.page-home .hero__figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 2px solid rgba(246, 251, 255, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  filter: drop-shadow(10px 10px 0 rgba(255, 90, 31, 0.85));
}

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

/* ---------- scorecard ---------- */
.page-home .scorecard {
  position: relative;
  padding: 14px 16px 12px;
  background: var(--night);
  border: 2px solid var(--ice);
  box-shadow: 8px 8px 0 rgba(8, 17, 31, 0.55);
}

.page-home .hero__score {
  position: relative;
  width: min(100%, 340px);
  margin: -34px 0 0 auto;
}

.page-home .scorecard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .scorecard__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice);
}

.page-home .scorecard__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}

.page-home .scorecard__side {
  position: relative;
  padding: 8px 4px 2px;
  text-align: center;
  border-top: 2px solid rgba(124, 196, 242, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .scorecard__side:hover,
.page-home .scorecard__side:focus-visible,
.page-home .scorecard__side:focus-within {
  transform: translateY(-2px);
  border-color: var(--orange);
  outline: none;
}

.page-home .scorecard__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(217, 232, 245, 0.8);
}

.page-home .scorecard__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(36px, 6.4vw, 50px);
  line-height: 1.05;
  color: var(--amber);
}

.page-home .scorecard__city {
  display: block;
  font-size: 12px;
  color: rgba(217, 232, 245, 0.6);
}

.page-home .scorecard__vs {
  padding-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.page-home .scorecard__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  padding: 4px 8px;
  background: var(--snow);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  border: 2px solid var(--ink);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.page-home .scorecard__side:hover .scorecard__tip,
.page-home .scorecard__side:focus-visible .scorecard__tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-home .scorecard__hint {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(217, 232, 245, 0.55);
}

/* ---------- index strip ---------- */
.page-home .home-index {
  position: relative;
  z-index: 2;
  background: var(--snow);
  border-bottom: 2px solid var(--ink);
}

.page-home .home-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.page-home .home-index .section-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .home-index .section-link:hover {
  color: var(--orange);
}

.page-home .home-index .section-link[aria-current="true"] {
  color: var(--ink);
  border-color: var(--orange);
}

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

/* ---------- section shell ---------- */
.page-home .sec {
  position: relative;
  padding: var(--home-gap) 0;
}

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

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

.page-home .sec--dark {
  background: var(--night);
  color: var(--snow);
}

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

.page-home .sec--diag {
  margin-top: clamp(18px, 3.2vw, 44px);
}

.page-home .sec--diag::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * clamp(18px, 3.2vw, 44px));
  height: clamp(18px, 3.2vw, 44px);
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}

.page-home .sec-head {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-home .sec-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-home .sec-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.page-home .sec-head__lead {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--steel);
}

.page-home .sec--dark .sec-head__lead,
.page-home .sec--deep .sec-head__lead {
  color: rgba(217, 232, 245, 0.78);
}

.page-home .sec--dark .sec-head__title,
.page-home .sec--deep .sec-head__title {
  color: var(--snow);
}

/* ---------- inline link ---------- */
.page-home .linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  transition: color 0.18s ease, transform 0.18s ease;
}

.page-home .linkbtn:hover {
  color: var(--orange);
  transform: translateX(2px);
}

.page-home .linkbtn--ice {
  color: var(--ice);
}

.page-home .linkbtn--ice:hover {
  color: var(--amber);
}

/* ---------- steps ---------- */
.page-home .step-grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 36px);
}

.page-home .step-figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  border: var(--border);
  box-shadow: var(--shadow-hard);
}

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

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

.page-home .step {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
}

.page-home .step:last-child {
  border-bottom: 2px solid var(--ink);
}

.page-home .step__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
}

.page-home .step__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 23px);
}

.page-home .step__text {
  grid-column: 2;
  grid-row: 2;
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--steel);
}

/* ---------- board ---------- */
.page-home .board {
  display: grid;
  gap: clamp(22px, 3.2vw, 36px);
}

.page-home .board__cards {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .board .scorecard {
  background: rgba(246, 251, 255, 0.05);
  border-color: rgba(124, 196, 242, 0.42);
  box-shadow: 6px 6px 0 rgba(8, 17, 31, 0.6);
}

.page-home .board__figcap {
  margin: 0;
}

.page-home .board__figure {
  margin: 0;
  aspect-ratio: 14 / 9;
  border: 2px solid rgba(124, 196, 242, 0.42);
}

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

/* ---------- columns ---------- */
.page-home .columns {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.page-home .columns__item {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: clamp(16px, 2vw, 24px);
  background: var(--snow);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.page-home .columns__item:hover {
  background: #ffffff;
  box-shadow: inset 0 4px 0 var(--orange);
}

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

.page-home .columns__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 21px);
}

.page-home .columns__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel);
}

.page-home .columns__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(20px, 3vw, 30px);
}

/* ---------- commute ---------- */
.page-home .commute {
  display: grid;
  gap: clamp(22px, 3.2vw, 38px);
}

.page-home .commute__panel {
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--night);
  color: var(--snow);
  border: var(--border);
  box-shadow: var(--shadow-hard);
}

.page-home .commute__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--home-line);
}

.page-home .commute__panel-time {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 34px);
  color: var(--amber);
  line-height: 1;
}

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

.page-home .commute__feed li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 251, 255, 0.86);
  border-bottom: 1px solid rgba(124, 196, 242, 0.16);
}

.page-home .commute__feed li:last-child {
  border-bottom: 0;
}

.page-home .commute__feed-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice);
  padding-top: 3px;
}

.page-home .commute__panel-foot {
  margin: 10px 0 0;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(217, 232, 245, 0.55);
  border-top: 2px solid var(--home-line);
}

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

.page-home .commute__points li {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--steel);
  border-bottom: 1px solid rgba(11, 18, 32, 0.12);
}

.page-home .commute__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.page-home .commute__points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.page-home .commute__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin: 22px 0 18px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.page-home .commute__stat {
  background: var(--snow);
  padding: 12px 10px;
}

.page-home .commute__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--blue);
  line-height: 1.2;
}

.page-home .commute__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--steel);
}

/* ---------- service / trust ---------- */
.page-home .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: clamp(26px, 4vw, 44px);
  background: var(--home-line);
  border: 2px solid var(--home-line);
}

.page-home .stat {
  padding: clamp(14px, 2vw, 22px);
  background: var(--deep);
}

.page-home .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  color: var(--amber);
}

.page-home .stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(217, 232, 245, 0.75);
}

.page-home .trust {
  display: grid;
  gap: clamp(22px, 3.2vw, 38px);
  align-items: center;
}

.page-home .trust__fig {
  margin: 0;
  aspect-ratio: 14 / 9;
  border: 2px solid rgba(124, 196, 242, 0.45);
  filter: drop-shadow(8px 8px 0 rgba(255, 90, 31, 0.7));
}

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

.page-home .trust__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.8vw, 28px);
  line-height: 1.25;
  color: var(--snow);
}

.page-home .trust__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(217, 232, 245, 0.82);
}

.page-home .trust__text--sm {
  font-size: 14px;
  color: rgba(217, 232, 245, 0.7);
  margin-bottom: 0;
}

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

.page-home .chips li {
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--snow);
  border: 2px solid rgba(124, 196, 242, 0.45);
}

.page-home .trust__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: clamp(24px, 3.4vw, 38px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 2px solid var(--home-line);
}

.page-home .trust__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(217, 232, 245, 0.68);
}

/* ---------- mobile bar ---------- */
.page-home .home-bar {
  display: none;
}

/* ---------- breakpoints ---------- */
@media (min-width: 720px) {
  .page-home .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .step-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

  .page-home .board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .page-home .commute {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .page-home .trust {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

@media (min-width: 960px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }

  .page-home .hero__score {
    position: absolute;
    right: -10px;
    bottom: -42px;
    width: 320px;
    margin: 0;
  }
}

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

@media (max-width: 899px) {
  .page-home {
    padding-bottom: 64px;
  }

  .page-home .home-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--night);
    border-top: 2px solid var(--orange);
    text-decoration: none;
  }

  .page-home .home-bar__text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--mist);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .scorecard__side,
  .page-home .scorecard__tip,
  .page-home .columns__item,
  .page-home .linkbtn,
  .page-home .home-index .section-link {
    transition: none;
  }

  .page-home .linkbtn:hover,
  .page-home .scorecard__side:hover,
  .page-home .scorecard__side:focus-visible {
    transform: none;
  }
}
