.page-home {
  --hp-cut: 20px;
  --hp-gap: clamp(18px, 3vw, 34px);
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.page-home .section {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.page-home .section__head {
  margin-bottom: clamp(26px, 4vw, 44px);
  max-width: 62ch;
}

.page-home .section__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 10px 0 14px;
  text-wrap: balance;
}

.page-home .section__head p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-mist);
  margin: 0;
}

/* ---------- HERO ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 3vw, 34px) 0 clamp(40px, 7vw, 76px);
  overflow: hidden;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 6%, rgba(56, 224, 208, 0.16), transparent 62%),
    linear-gradient(168deg, rgba(11, 20, 55, 0.94) 12%, rgba(11, 20, 55, 0.8) 50%, var(--ink) 97%);
}

.page-home .hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    104deg,
    rgba(242, 210, 122, 0.07) 0 2px,
    transparent 2px 24px
  );
  pointer-events: none;
}

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

.page-home .hero .breadcrumb {
  margin-bottom: clamp(22px, 4vw, 38px);
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 6.2rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
  margin: 12px 0 clamp(16px, 3vw, 26px);
  max-width: 16ch;
  text-wrap: balance;
}

.page-home .hero__title em {
  font-style: normal;
  color: var(--gold-bright);
  position: relative;
}

.page-home .hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-home .hero__lead {
  max-width: 58ch;
  color: #cfd6ea;
  font-size: clamp(0.97rem, 1.6vw, 1.08rem);
  line-height: 1.9;
  margin: 0 0 clamp(22px, 3.5vw, 34px);
}

.page-home .hero__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.page-home .hero__stats {
  list-style: none;
  margin: 0;
  padding: clamp(16px, 2.5vw, 24px) clamp(16px, 3vw, 28px);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: linear-gradient(100deg, rgba(17, 28, 78, 0.72), rgba(11, 20, 55, 0.35));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hp-cut)), calc(100% - var(--hp-cut)) 100%, 0 100%);
}

.page-home .hero__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hero__stats .stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--gold-bright);
  letter-spacing: -0.01em;
  line-height: 1;
}

.page-home .hero__stats .stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* ---------- SCHEDULE ---------- */
.page-home .schedule__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-home .schedule__aside h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 10px 0 16px;
}

.page-home .schedule__note {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0 0 22px;
}

.page-home .schedule__aside .filter {
  margin-bottom: 22px;
}

.page-home .filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .filter__btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .filter__btn:hover {
  border-color: var(--line-cyanish);
  color: var(--cyan-mist);
}

.page-home .filter__btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--char);
  font-weight: 600;
}

.page-home .filter__count {
  font-size: 0.74rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-left: 2px;
}

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.page-home .slot {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 14px clamp(13px, 2vw, 20px);
  background: linear-gradient(90deg, rgba(17, 28, 78, 0.92), rgba(11, 20, 55, 0.5));
  border-left: 2px solid var(--line-cyanish);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.16s var(--ease);
}

.page-home .slot:hover,
.page-home .slot:focus-within {
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(23, 38, 100, 0.95), rgba(11, 20, 55, 0.62));
  transform: translateX(3px);
}

.page-home .slot__time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.page-home .slot__match {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ivory);
  min-width: 0;
}

.page-home .slot__heat {
  display: none;
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .slot .tag {
  justify-self: end;
  font-size: 0.7rem;
  padding: 3px 9px;
  border: 1px solid var(--line-cyanish);
  color: var(--cyan-mist);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-home .slot .tag--gold {
  border-color: var(--line-gold);
  color: var(--gold-bright);
}

.page-home .timeline__foot {
  margin: 16px 0 0;
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--slate);
}

/* ---------- POSSESSION ---------- */
.page-home .possession {
  background:
    linear-gradient(180deg, rgba(17, 28, 78, 0.55), transparent 45%),
    var(--ink);
}

.page-home .poss__figure {
  margin: 0 0 clamp(22px, 3.5vw, 34px);
  position: relative;
  border: 1px solid var(--line-cyanish);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  overflow: hidden;
}

.page-home .poss__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 14 / 9;
}

.page-home .poss__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cyan-mist);
  background: rgba(22, 24, 29, 0.82);
  border-right: 1px solid var(--line-cyanish);
  border-top: 1px solid var(--line-cyanish);
}

.page-home .poss__panels {
  display: grid;
  gap: 14px;
}

.page-home .poss__panel {
  padding: clamp(18px, 2.6vw, 24px);
  background: var(--ink-2);
  border-top: 2px solid var(--line-cyanish);
}

.page-home .poss__panel:nth-child(3) {
  border-top-color: var(--line-gold);
}

.page-home .poss__panel-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--ivory);
}

.page-home .bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 16px;
}

.page-home .bar__label {
  font-size: 0.78rem;
  color: var(--cyan-mist);
  letter-spacing: 0.03em;
}

.page-home .bar__label--right {
  text-align: right;
  color: var(--gold-bright);
}

.page-home .bar__track {
  grid-column: 1 / -1;
  height: 10px;
  background: rgba(140, 155, 196, 0.16);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.page-home .bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 224, 208, 0.45));
}

.page-home .bar__fill--gold {
  background: linear-gradient(90deg, var(--gold), rgba(216, 168, 78, 0.45));
}

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

.page-home .poss__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #c6cfe6;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(140, 155, 196, 0.18);
}

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

.page-home .poss__list .mono {
  color: var(--slate);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

/* ---------- TABLET ---------- */
.page-home .tablet__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.page-home .tablet__media {
  margin: 0;
  position: relative;
  border: 1px solid var(--line-gold);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
  overflow: hidden;
}

.page-home .tablet__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .tablet__media .media-frame__caption {
  position: absolute;
  left: 0;
  top: 0;
  padding: 7px 13px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  background: rgba(22, 24, 29, 0.85);
  border-right: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}

.page-home .tablet__copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 10px 0 16px;
}

.page-home .tablet__copy > p {
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.9;
  margin: 0 0 24px;
}

.page-home .criteria {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.page-home .criteria__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 12px 14px;
  background: var(--ink-2);
  transition: background 0.18s var(--ease);
}

.page-home .criteria__item:hover {
  background: #16234f;
}

.page-home .criteria__num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cyan);
  align-self: center;
}

.page-home .criteria__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ivory);
}

.page-home .criteria__desc {
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.6;
}

.page-home .tablet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- BRIEFS ---------- */
.page-home .briefs {
  background: linear-gradient(180deg, transparent, rgba(122, 31, 43, 0.16) 65%, transparent);
}

.page-home .section__head--split {
  max-width: none;
  display: grid;
  gap: 16px;
}

.page-home .briefs__hint {
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 0;
  border-left: 2px solid var(--crimson);
  padding-left: 14px;
}

.page-home .briefs__grid {
  display: grid;
  gap: 14px;
}

.page-home .brief {
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--ink-2);
  border-bottom: 2px solid transparent;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .brief:hover {
  border-bottom-color: var(--gold);
  background: #14204c;
}

.page-home .brief__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin: 0 0 10px;
}

.page-home .brief__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: var(--ivory);
}

.page-home .brief__text {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #c3cce3;
  margin: 0 0 16px;
}

.page-home .brief__data {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--slate);
}

.page-home .brief__data .mono {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-bright);
  margin-right: 5px;
  font-size: 0.86rem;
}

.page-home .briefs__more {
  margin-top: clamp(22px, 3vw, 30px);
}

/* ---------- PATHS ---------- */
.page-home .legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line-cyanish);
}

.page-home .legend__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: stretch;
  background: var(--ink);
  transition: background 0.18s var(--ease);
}

.page-home .legend__item:hover {
  background: #101b46;
}

.page-home .legend__num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  border-right: 1px solid var(--line);
}

.page-home .legend__link {
  display: block;
  padding: 15px clamp(13px, 2.5vw, 22px);
  text-decoration: none;
  color: inherit;
}

.page-home .legend__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin-bottom: 5px;
}

.page-home .legend__desc {
  display: block;
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--slate);
}

.page-home .legend__link:hover .legend__name {
  color: var(--cyan-mist);
}

/* ---------- CLOSING ---------- */
.page-home .closing {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 8vw, 100px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line-gold);
}

.page-home .closing__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.page-home .closing__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(11, 20, 55, 0.94), rgba(22, 24, 29, 0.86));
}

.page-home .closing__inner {
  max-width: 62ch;
}

.page-home .closing__inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 10px 0 16px;
  text-wrap: balance;
}

.page-home .closing__inner > p {
  color: #cbd3e8;
  font-size: 0.96rem;
  line-height: 1.9;
  margin: 0 0 24px;
}

.page-home .closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .closing__contact {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  line-height: 1.7;
  word-break: break-word;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 560px) {
  .page-home .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .slot {
    grid-template-columns: 62px minmax(0, 1fr) auto auto;
    gap: 6px 14px;
  }

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

  .page-home .section__head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: end;
    gap: clamp(18px, 4vw, 40px);
  }

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

@media (min-width: 880px) {
  .page-home .schedule__grid {
    grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr);
    align-items: start;
  }

  .page-home .schedule__aside {
    position: sticky;
    top: 108px;
  }

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

  .page-home .tablet__grid {
    grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr);
    align-items: center;
  }

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

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

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

@media (min-width: 1120px) {
  .page-home .hero__stats {
    max-width: 760px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .slot,
  .page-home .brief,
  .page-home .criteria__item,
  .page-home .legend__item,
  .page-home .filter__btn,
  .page-home .legend__link {
    transition: none;
  }
}
