.page-home {
  --hm-pad: clamp(52px, 8vw, 104px);
  --hm-gap: clamp(16px, 3vw, 30px);
  --hm-deep-cyan: #0d7c72;
  --hm-paper: #efe8da;
  --hm-ink-line: rgba(7, 20, 38, 0.14);
  background: var(--c-navy);
  color: var(--c-white);
  overflow-x: hidden;
}

.page-home .hm-context {
  background: var(--c-navy-2);
  border-bottom: 1px solid var(--c-line-soft);
}

.page-home .hm-context__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding-block: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-mist);
}

.page-home .hm-context__path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.page-home .hm-context__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
}

.page-home .hm-context__meta {
  margin: 0;
  color: var(--c-scale);
}

/* ---------- hero ---------- */
.page-home .hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(30px, 6vw, 64px) 0;
  background: linear-gradient(158deg, #061120 0%, #0a1c2e 58%, #0d2138 100%);
}

.page-home .hm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hm-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.72) contrast(1.04);
}

.page-home .hm-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, #071426 10%, rgba(7, 20, 38, 0.88) 46%, rgba(7, 20, 38, 0.38) 100%);
}

.page-home .hm-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -24%;
  right: -10%;
  width: 46%;
  height: 150%;
  background: linear-gradient(180deg, rgba(55, 245, 224, 0.16), rgba(55, 245, 224, 0) 68%);
  transform: skewX(-14deg);
  pointer-events: none;
}

.page-home .hm-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(26px, 5vw, 54px);
  padding-block: clamp(16px, 4vw, 40px) clamp(10px, 2vw, 18px);
}

.page-home .hm-hero__title {
  margin: 0 0 clamp(16px, 3vw, 26px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.1rem, 13vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.page-home .hm-hero__line {
  display: block;
}

.page-home .hm-hero__line--accent {
  color: var(--c-cyan);
  text-shadow: 0 12px 40px rgba(55, 245, 224, 0.24);
}

.page-home .hm-hero__text {
  max-width: 46ch;
  margin: 0 0 clamp(20px, 3vw, 30px);
  color: var(--c-mist);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
}

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

.page-home .hm-preview {
  position: relative;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-l);
  background: rgba(19, 43, 69, 0.84);
  box-shadow: 0 28px 56px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(246, 241, 231, 0.08);
  backdrop-filter: blur(6px);
}

.page-home .hm-preview::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(16px, 3vw, 24px);
  bottom: clamp(16px, 3vw, 24px);
  width: 2px;
  background: linear-gradient(180deg, var(--c-cyan), rgba(55, 245, 224, 0));
}

.page-home .hm-preview__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-scale);
}

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

.page-home .hm-preview__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "idx name"
    "idx desc";
  gap: 3px 10px;
  padding: 12px 10px 12px 0;
  border-top: 1px solid var(--c-line-soft);
  color: inherit;
  text-decoration: none;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .hm-preview__list li:first-child .hm-preview__item {
  border-top: 0;
}

.page-home .hm-preview__item:hover,
.page-home .hm-preview__item:focus-visible {
  background: rgba(55, 245, 224, 0.07);
  box-shadow: inset 3px 0 0 var(--c-cyan);
  outline: none;
}

.page-home .hm-preview__item:hover .hm-preview__index,
.page-home .hm-preview__item:focus-visible .hm-preview__index {
  color: var(--c-orange);
}

.page-home .hm-preview__index {
  grid-area: idx;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
  padding-top: 3px;
  transition: color var(--dur) var(--ease);
}

.page-home .hm-preview__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .hm-preview__desc {
  grid-area: desc;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-mist);
}

.page-home .hm-preview__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-scale);
}

.page-home .hm-hero__ticks {
  position: relative;
  z-index: 2;
  height: 16px;
  margin-top: clamp(20px, 4vw, 42px);
  background-image: repeating-linear-gradient(90deg, var(--c-cyan) 0 1px, transparent 1px 28px);
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

/* ---------- lanes ---------- */
.page-home .hm-lanes {
  padding-block: var(--hm-pad);
  background: var(--c-navy-2);
}

.page-home .hm-lanes__head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-home .hm-lanes__head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.page-home .hm-lanes__intro {
  max-width: 52ch;
  margin: 0;
  color: var(--c-mist);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .hm-lanes__scroller {
  overflow-x: auto;
  padding-inline: max(var(--gutter), calc((100vw - var(--w-max)) / 2 + var(--gutter)));
  padding-block: 6px 26px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--c-scale) transparent;
}

.page-home .hm-lanes__scroller:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: -2px;
}

.page-home .hm-lanes__list {
  display: flex;
  gap: var(--hm-gap);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-lane {
  position: relative;
  flex: 0 0 auto;
  width: min(76vw, 312px);
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-m);
  background: var(--c-panel);
  scroll-snap-align: start;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .hm-lane:nth-child(2) {
  margin-top: 34px;
}

.page-home .hm-lane:nth-child(3) {
  margin-top: 12px;
}

.page-home .hm-lane:nth-child(4) {
  margin-top: 46px;
}

.page-home .hm-lane::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-orange);
  transition: width var(--dur) var(--ease);
}

.page-home .hm-lane:hover,
.page-home .hm-lane:focus-within {
  border-color: rgba(55, 245, 224, 0.55);
}

.page-home .hm-lane:hover::after,
.page-home .hm-lane:focus-within::after {
  width: 58px;
}

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

.page-home .hm-lane__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .hm-lane__text {
  margin: 0 0 14px;
  color: var(--c-mist);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .hm-lane__stat {
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-mist);
}

.page-home .hm-lane__link {
  font-size: 13px;
}

/* ---------- mobile sync ---------- */
.page-home .hm-mobile {
  padding-block: var(--hm-pad);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(255, 122, 26, 0.14), transparent 62%),
    linear-gradient(180deg, #071426 0%, #091829 100%);
}

.page-home .hm-mobile__grid {
  display: grid;
  gap: clamp(26px, 5vw, 54px);
}

.page-home .hm-mobile__figure {
  position: relative;
  margin: 0;
}

.page-home .hm-mobile__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(55, 245, 224, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  pointer-events: none;
}

.page-home .hm-mobile__body h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

.page-home .hm-mobile__lead {
  max-width: 54ch;
  margin: 0 0 20px;
  color: var(--c-mist);
  font-size: 15px;
  line-height: 1.75;
}

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

.page-home .hm-mobile__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--c-line-soft);
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-white);
}

.page-home .hm-mobile__list li:last-child {
  border-bottom: 1px solid var(--c-line-soft);
}

.page-home .hm-mobile__num {
  color: var(--c-orange);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

/* ---------- data ---------- */
.page-home .hm-data {
  padding-block: var(--hm-pad);
  background: var(--c-white);
  color: var(--c-ink);
}

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

.page-home .hm-data__head {
  max-width: 68ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-home .hm-data__head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  color: var(--c-ink);
}

.page-home .hm-data__lead {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .hm-data__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-home .hm-data__tablewrap {
  border: 1px solid var(--hm-ink-line);
  border-radius: var(--r-m);
  background: #fffdf8;
  overflow-x: auto;
}

.page-home .hm-data__table {
  width: 100%;
  min-width: 470px;
  border-collapse: collapse;
  font-size: 13px;
}

.page-home .hm-data__table th,
.page-home .hm-data__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(7, 20, 38, 0.08);
  color: var(--c-ink-2);
}

.page-home .hm-data__table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-ink-3);
  background: var(--hm-paper);
}

.page-home .hm-data__table tbody th {
  font-weight: 600;
  color: var(--c-ink);
}

.page-home .hm-data__table tbody td:nth-child(2) {
  font-family: var(--font-mono);
  color: var(--hm-deep-cyan);
}

.page-home .hm-data__table tbody tr:hover {
  background: rgba(55, 245, 224, 0.12);
}

.page-home .hm-data__note {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid rgba(7, 20, 38, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-ink-3);
}

.page-home .hm-data__figure {
  margin: 0;
}

.page-home .hm-data__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hm-data__stats li {
  padding: 7px 15px;
  border: 1px solid var(--hm-ink-line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--c-ink-2);
}

.page-home .hm-data__stats .hm-mono {
  color: var(--hm-deep-cyan);
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- archive ---------- */
.page-home .hm-archive {
  padding-block: var(--hm-pad);
  background: linear-gradient(180deg, #0d2138 0%, #071426 100%);
}

.page-home .hm-archive__grid {
  display: grid;
  gap: clamp(26px, 5vw, 52px);
}

.page-home .hm-archive__body h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

.page-home .hm-archive__lead {
  max-width: 56ch;
  margin: 0 0 22px;
  color: var(--c-mist);
  font-size: 15px;
  line-height: 1.75;
}

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

.page-home .hm-archive__version {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--c-line-soft);
}

.page-home .hm-archive__versions li:last-child {
  border-bottom: 1px solid var(--c-line-soft);
}

.page-home .hm-archive__vnum {
  color: var(--c-cyan);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.page-home .hm-archive__vtext {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-white);
}

.page-home .hm-archive__more {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-scale);
}

.page-home .hm-archive__figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-m);
  background: var(--c-panel);
  box-shadow: 12px 12px 0 -4px rgba(55, 245, 224, 0.14);
}

.page-home .hm-archive__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-s);
}

.page-home .hm-archive__figurecap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-scale);
}

/* ---------- search ---------- */
.page-home .hm-search {
  padding-block: var(--hm-pad);
  background:
    linear-gradient(160deg, rgba(55, 245, 224, 0.08), transparent 46%),
    var(--c-navy-2);
}

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

.page-home .hm-search__body h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

.page-home .hm-search__lead {
  max-width: 54ch;
  margin: 0 0 22px;
  color: var(--c-mist);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .hm-search__panel {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(55, 245, 224, 0.4);
  border-radius: var(--r-l);
  background: rgba(7, 20, 38, 0.72);
  box-shadow: inset 0 1px 0 rgba(55, 245, 224, 0.16);
}

.page-home .hm-search__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-panel);
}

.page-home .hm-search__placeholder {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-scale);
}

.page-home .hm-search__caret {
  width: 2px;
  height: 16px;
  background: var(--c-cyan);
}

.page-home .hm-search__hint {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-scale);
}

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

.page-home .hm-search__tag {
  padding: 6px 14px;
  border: 1px solid rgba(55, 245, 224, 0.55);
  border-radius: var(--r-s);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.page-home .hm-search__tag--orange {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.page-home .hm-search__foot {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--c-line-soft);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-mist);
}

/* ---------- closing ---------- */
.page-home .hm-closing {
  padding-block: var(--hm-pad) clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, #071426 0%, #0a1a2c 100%);
}

.page-home .hm-closing h2 {
  max-width: 22ch;
  margin: 0 0 clamp(24px, 4vw, 38px);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
}

.page-home .hm-closing__grid {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  margin-bottom: clamp(26px, 4vw, 36px);
}

.page-home .hm-closing__col {
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.page-home .hm-closing__text {
  margin: 0;
  color: var(--c-mist);
  font-size: 14px;
  line-height: 1.78;
}

.page-home .hm-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .hm-closing__rule {
  height: 14px;
  margin: clamp(30px, 5vw, 48px) 0 16px;
  background-image: repeating-linear-gradient(90deg, var(--c-scale) 0 1px, transparent 1px 24px);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}

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

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .page-home .hm-data__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }

  .page-home .hm-search__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
  }

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

@media (min-width: 900px) {
  .page-home .hm-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: end;
    gap: clamp(32px, 5vw, 64px);
  }

  .page-home .hm-mobile__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }

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

  .page-home .hm-lane:nth-child(1) {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-preview__item,
  .page-home .hm-lane,
  .page-home .hm-lane::after,
  .page-home .hm-preview__index {
    transition: none;
  }
}
