.page-home {
  --home-cut-a: rgba(0, 87, 255, 0.86);
  --home-cut-b: rgba(0, 229, 255, 0.20);
  --home-cut-c: rgba(255, 106, 0, 0.24);
  --home-line: rgba(31, 42, 68, 0.9);
  overflow-x: hidden;
}

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

/* ---------- 01 hero ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(0, 87, 255, 0.16), transparent 62%),
    var(--ink);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -12% -14% -8% 46%;
  z-index: -1;
  background: linear-gradient(155deg, var(--home-cut-a), var(--home-cut-b) 56%, var(--home-cut-c) 96%);
  transform: skewY(-7deg);
  opacity: 0.92;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 15, 0.9) 12%, rgba(5, 7, 15, 0.15) 72%);
  pointer-events: none;
}

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

.page-home .home-hero__title {
  margin: 10px 0 0;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 15em;
}

.page-home .home-hero__lead {
  margin: 22px 0 0;
  max-width: 34em;
  color: rgba(233, 238, 249, 0.86);
}

.page-home .home-hero__actions {
  margin-top: 30px;
}

.page-home .home-hero__meta {
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .home-hero__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink-2);
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 229, 255, 0.16), transparent 46%, rgba(255, 106, 0, 0.18));
  pointer-events: none;
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.page-home .home-hero__scroll {
  display: none;
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 2;
  color: var(--cyan);
  line-height: 0;
  padding: 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.6);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}

.page-home .home-hero__scroll svg {
  transform: rotate(34deg);
}

.page-home .home-hero__scroll:hover,
.page-home .home-hero__scroll:focus-visible {
  transform: translateY(4px);
  border-color: var(--cyan);
}

/* ---------- 02 paths ---------- */
.page-home .home-paths {
  background: var(--ink);
}

.page-home .home-paths__grid {
  align-items: start;
}

.page-home .home-paths__text {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 36em;
}

.page-home .home-route {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  position: relative;
}

.page-home .home-route::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--cyan) 0 6px, transparent 6px 14px);
  opacity: 0.5;
}

.page-home .home-route__step {
  position: relative;
  padding: 0 0 26px 34px;
}

.page-home .home-route__step:last-child {
  padding-bottom: 0;
}

.page-home .home-route__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--ink);
}

.page-home .home-route__no {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .home-route__name {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.page-home .home-route__desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .home-paths__media {
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
}

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

/* ---------- 03 catalog ---------- */
.page-home .home-catalog {
  background: var(--ink-2);
}

.page-home .home-catalog__head {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.page-home .home-catalog__note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.page-home .home-catalog__note .dv-mono {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  color: var(--cyan);
  font-size: 12px;
}

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

.page-home .home-index__row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 18px 12px;
  border-bottom: 1px solid rgba(31, 42, 68, 0.9);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}

.page-home .home-index__row:hover,
.page-home .home-index__row:focus-within {
  background: rgba(0, 87, 255, 0.2);
  border-bottom-color: var(--hair);
}

.page-home .home-index__no {
  font-size: 13px;
  color: var(--orange);
  padding-top: 4px;
  letter-spacing: 0.06em;
}

.page-home .home-index__name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.page-home .home-index__desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-index__more {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(147, 161, 189, 0.86);
  transition: max-height 360ms var(--ease), opacity 300ms var(--ease), margin-top 300ms var(--ease);
}

.page-home .home-index__row:hover .home-index__more,
.page-home .home-index__row:focus-within .home-index__more {
  max-height: 7em;
  opacity: 1;
  margin-top: 8px;
}

.page-home .home-index__ver {
  font-size: 12px;
  color: rgba(0, 229, 255, 0.72);
  padding-top: 5px;
}

.page-home .home-catalog__actions {
  margin-top: 28px;
}

/* ---------- veil ---------- */
.page-home .home-veil {
  margin: 0;
  line-height: 0;
  position: relative;
  background: var(--ink);
}

.page-home .home-veil img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 260px;
  opacity: 0.72;
}

/* ---------- 04 cadence ---------- */
.page-home .home-cadence {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.page-home .home-cadence__head {
  display: grid;
  gap: 16px;
  max-width: 44em;
  margin-bottom: 34px;
}

.page-home .home-cadence__intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.page-home .home-cadence__grid {
  display: grid;
  gap: 18px;
}

.page-home .home-beat {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-beat__num {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.page-home .home-beat__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

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

.page-home .home-beat__rail {
  margin-top: 10px;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.85) 0 3px, transparent 3px 12px);
  opacity: 0.62;
}

.page-home .home-cadence__foot {
  margin: 30px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-cadence__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
}

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

/* ---------- 05 scenes ---------- */
.page-home .home-scenes {
  background: var(--ink-2);
}

.page-home .home-scenes__title {
  max-width: 20em;
  margin-bottom: 28px;
}

.page-home .home-scenes__grid {
  align-items: start;
}

.page-home .home-scene {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-scene--main {
  padding-top: 18px;
}

.page-home .home-scene__media {
  margin: 0 0 6px;
  border-radius: 12px;
  overflow: hidden;
}

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

.page-home .home-scene__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-scene__name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
}

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

.page-home .home-scene__link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.42);
  transition: border-color 280ms var(--ease), color 280ms var(--ease);
}

.page-home .home-scene__link:hover,
.page-home .home-scene__link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.page-home .home-scenes__side {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

/* ---------- 06 trust ---------- */
.page-home .home-trust {
  background: var(--ink);
}

.page-home .home-trust__bar {
  display: grid;
  gap: 26px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--hair);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(0, 87, 255, 0.14), transparent 58%),
    var(--ink-2);
  box-shadow: var(--shadow);
}

.page-home .home-trust__text {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 34em;
}

.page-home .home-trust__list {
  margin: 0;
  display: grid;
  gap: 16px;
}

.page-home .home-trust__item {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 42, 68, 0.9);
}

.page-home .home-trust__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-trust__item dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .home-trust__item dd {
  margin: 0;
  font-size: 15px;
  color: var(--white);
  word-break: break-word;
}

.page-home .home-trust__item dd a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
}

.page-home .home-trust__item dd a:hover,
.page-home .home-trust__item dd a:focus-visible {
  border-bottom-color: var(--cyan);
}

.page-home .home-trust__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

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

@media (min-width: 600px) {
  .page-home .home-cadence__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

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

  .page-home .home-trust__actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .page-home .home-hero::before {
    inset: -14% -18% -10% 52%;
  }

  .page-home .home-hero__scroll {
    display: inline-block;
  }

  .page-home .home-hero__media {
    transform: translateY(-12px);
  }

  .page-home .home-paths__media {
    margin-top: 8px;
  }

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

  .page-home .home-index__row {
    grid-template-columns: 56px 1fr 84px;
    padding: 20px 18px;
    gap: 18px;
  }

  .page-home .home-scenes__side {
    margin-top: 0;
  }

  .page-home .home-scene--offset {
    margin-top: 42px;
  }

  .page-home .home-veil img {
    max-height: 320px;
  }

  .page-home .home-toc {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + 28px);
    right: max(16px, calc((100vw - var(--max)) / 2 - 96px));
    width: 132px;
    z-index: 3;
    padding: 14px 12px;
    border: 1px solid var(--hair);
    border-radius: 14px;
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(8px);
  }

  .page-home .home-toc .dv-toc__title {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--orange);
  }

  .page-home .home-toc .dv-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .page-home .home-toc .dv-toc__list a {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    text-decoration: none;
    padding-left: 8px;
    border-left: 2px solid transparent;
    transition: color 280ms var(--ease), border-color 280ms var(--ease);
  }

  .page-home .home-toc .dv-toc__list a:hover,
  .page-home .home-toc .dv-toc__list a:focus-visible,
  .page-home .home-toc .dv-toc__list a[aria-current="true"] {
    color: var(--cyan);
    border-left-color: var(--cyan);
  }
}

@media (min-width: 1440px) {
  .page-home .home-toc {
    right: calc((100vw - var(--max)) / 2 - 116px);
    width: 148px;
  }
}

@media (hover: none) {
  .page-home .home-index__more {
    max-height: none;
    opacity: 1;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-index__row,
  .page-home .home-index__more,
  .page-home .home-scene__link,
  .page-home .home-hero__scroll {
    transition: opacity 200ms linear;
    transform: none;
  }
}
