.page-home {
  --home-pad: clamp(20px, 4vw, 0px);
  --home-y: clamp(64px, 9vw, 112px);
  position: relative;
  overflow-x: clip;
}

/* ---------- HERO ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(88px, 12vw, 148px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

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

.page-home .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: .48;
  filter: saturate(1.05);
}

.page-home .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 18% 22%, rgba(11, 16, 32, .58) 0%, rgba(11, 16, 32, .9) 62%, #0B1020 100%),
    linear-gradient(200deg, rgba(122, 92, 255, .22) 0%, rgba(11, 16, 32, .1) 48%, rgba(255, 77, 141, .1) 100%);
}

.page-home .hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(47, 224, 200, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 224, 200, .09) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .25) 62%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .25) 62%, transparent 100%);
  pointer-events: none;
}

.page-home .hero__inner {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  grid-template-columns: 1fr;
}

.page-home .hero__vertical {
  display: none;
  position: absolute;
  left: -46px;
  top: 8px;
  color: var(--cyan);
  opacity: .7;
}

.page-home .hero__lead {
  position: relative;
  max-width: 720px;
}

.page-home .hero__lead .crumbs {
  margin-bottom: 22px;
}

.page-home .hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 8.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

.page-home .hero__title em {
  font-style: normal;
  background: var(--grad-cyan-violet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero__lede {
  margin-top: 22px;
  color: rgba(232, 236, 245, .82);
  max-width: 40ch;
}

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

.page-home .hero__rail {
  align-self: end;
  padding: 22px 22px 20px;
  border: 1px solid rgba(122, 92, 255, .28);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(20, 27, 51, .88) 0%, rgba(11, 16, 32, .72) 100%);
  backdrop-filter: blur(6px);
}

.page-home .hero__rail-label {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
  margin: 0 0 16px;
}

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

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--cyan), var(--violet) 55%, rgba(255, 165, 61, .6));
  opacity: .55;
}

.page-home .timeline__item {
  position: relative;
  padding: 0 0 22px 0;
  transition: transform var(--dur) var(--ease);
}

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

.page-home .timeline__dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 165, 61, .5);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .timeline__item:hover .timeline__dot {
  border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(47, 224, 200, .16);
}

.page-home .timeline__item:hover {
  transform: translateX(4px);
}

.page-home .timeline__seq {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mute);
}

.page-home .timeline__title {
  margin: 6px 0 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
}

.page-home .timeline__meta {
  font-size: 12px;
  color: var(--amber);
  letter-spacing: .06em;
}

.page-home .hero__rail-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(141, 150, 178, .22);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
}

.page-home .hero__stairs {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 46px;
  opacity: .85;
}

/* ---------- ENTRY CARDS ---------- */
.page-home .entries {
  padding-top: var(--home-y);
}

.page-home .section-head__note {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mute);
}

.page-home .entry-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: clamp(34px, 5vw, 56px);
}

.page-home .entry {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141, 150, 178, .16);
  background: linear-gradient(180deg, rgba(20, 27, 51, .92), rgba(11, 16, 32, .92));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .entry:hover,
.page-home .entry:focus-within {
  transform: translateY(-4px);
  border-color: rgba(122, 92, 255, .72);
  box-shadow: 0 18px 40px -22px rgba(122, 92, 255, .7);
}

.page-home .entry__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(47, 224, 200, .18), rgba(122, 92, 255, .22));
}

.page-home .entry__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

.page-home .entry__figure--plain {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(47, 224, 200, .1) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(47, 224, 200, .1) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(150deg, rgba(20, 27, 51, 1), rgba(11, 16, 32, 1));
}

.page-home .entry__glyph {
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: .06em;
  color: rgba(232, 236, 245, .88);
  text-shadow: 0 0 26px rgba(122, 92, 255, .55);
}

.page-home .entry__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 26px;
  flex: 1;
}

.page-home .entry__tag {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .entry__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .entry__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(232, 236, 245, .78);
}

.page-home .entry__scene {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .entry__body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- CATALOG ---------- */
.page-home .catalog {
  padding: var(--home-y) 0;
  margin-top: var(--home-y);
  border-top: 1px solid rgba(141, 150, 178, .14);
  border-bottom: 1px solid rgba(141, 150, 178, .14);
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(122, 92, 255, .16) 0%, transparent 58%),
    radial-gradient(70% 100% at 100% 100%, rgba(47, 224, 200, .1) 0%, transparent 62%),
    var(--ink-800);
}

.page-home .catalog__inner {
  display: grid;
  gap: clamp(32px, 5vw, 52px);
  grid-template-columns: 1fr;
}

.page-home .catalog__lede {
  margin: 16px 0 26px;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(232, 236, 245, .8);
}

.page-home .catalog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.page-home .catalog__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .catalog__row:hover {
  background: rgba(122, 92, 255, .12);
  border-left-color: var(--cyan);
}

.page-home .catalog__idx {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mute);
  min-width: 46px;
}

.page-home .catalog__name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
}

/* ---------- RECOVER ---------- */
.page-home .recover {
  padding: var(--home-y) 0;
}

.page-home .recover__inner {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: start;
}

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

.page-home .recover__figure .figure__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(47, 224, 200, .22);
  background: linear-gradient(150deg, rgba(47, 224, 200, .14), rgba(122, 92, 255, .16));
}

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

.page-home .recover__figure .figure__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
}

.page-home .recover__lede {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(232, 236, 245, .8);
}

.page-home .steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .steps__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(141, 150, 178, .16);
  background: rgba(20, 27, 51, .6);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .steps__item:hover {
  border-color: rgba(47, 224, 200, .55);
  transform: translateY(-3px);
}

.page-home .steps__num {
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .04em;
  line-height: 1.2;
}

.page-home .steps__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .steps__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mute);
}

/* ---------- ASK ---------- */
.page-home .ask {
  padding: var(--home-y) 0;
  border-top: 1px solid rgba(141, 150, 178, .14);
}

.page-home .ask__list {
  list-style: none;
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.page-home .ask__item {
  padding: 22px 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(122, 92, 255, .22);
  border-left: 3px solid var(--violet);
  background: linear-gradient(160deg, rgba(20, 27, 51, .9), rgba(11, 16, 32, .8));
  transition: border-left-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .ask__item:hover {
  border-left-color: var(--cyan);
  transform: translateY(-3px);
}

.page-home .ask__q {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--paper);
}

.page-home .ask__a {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(232, 236, 245, .78);
}

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

/* ---------- CLOSING ---------- */
.page-home .closing {
  padding: var(--home-y) 0 calc(var(--home-y) + 12px);
  background:
    radial-gradient(80% 120% at 88% 10%, rgba(255, 77, 141, .14) 0%, transparent 60%),
    radial-gradient(70% 110% at 0% 100%, rgba(47, 224, 200, .12) 0%, transparent 58%),
    var(--ink-900);
}

.page-home .closing__inner {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.page-home .closing__vertical {
  display: none;
  color: var(--amber);
  opacity: .72;
}

.page-home .closing__lede {
  margin: 16px 0 26px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(232, 236, 245, .8);
}

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

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .entry:nth-child(2) {
    transform: translateY(34px);
  }
  .page-home .entry:nth-child(2):hover,
  .page-home .entry:nth-child(2):focus-within {
    transform: translateY(30px);
  }
  .page-home .entry:nth-child(3) {
    grid-column: 1 / -1;
  }
  .page-home .catalog__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .page-home .ask__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .ask__item:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
  }
  .page-home .hero__vertical {
    display: block;
  }
  .page-home .hero__lead {
    padding-left: 0;
  }
  .page-home .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .page-home .entry:nth-child(2) {
    transform: translateY(48px);
  }
  .page-home .entry:nth-child(2):hover,
  .page-home .entry:nth-child(2):focus-within {
    transform: translateY(44px);
  }
  .page-home .entry:nth-child(3) {
    grid-column: auto;
    transform: translateY(18px);
  }
  .page-home .entry:nth-child(3):hover,
  .page-home .entry:nth-child(3):focus-within {
    transform: translateY(14px);
  }
  .page-home .catalog__inner {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .recover__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .page-home .recover__figure {
    position: sticky;
    top: calc(var(--topbar-h) + 24px);
  }
  .page-home .ask__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .ask__item:first-child {
    grid-column: auto;
  }
  .page-home .closing__inner {
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
  }
  .page-home .closing__vertical {
    display: block;
  }
}

@media (min-width: 1180px) {
  .page-home .hero__title {
    font-size: clamp(64px, 6.6vw, 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry,
  .page-home .steps__item,
  .page-home .ask__item,
  .page-home .timeline__item {
    transition: none;
  }
}
