.page-home {
  --home-hair: rgba(22, 49, 76, 0.9);
  --home-mint-soft: rgba(53, 240, 192, 0.14);
  --home-amber-soft: rgba(255, 179, 71, 0.16);
  background:
    radial-gradient(120% 70% at 88% -8%, #0e2743 0%, rgba(6, 16, 30, 0) 58%),
    var(--ink);
  color: var(--text);
  overflow-x: clip;
}

/* ---------- HERO ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(30px, 6vw, 68px) 0 clamp(38px, 6vw, 76px);
}

.page-home .hero__inner {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.page-home .hero__entry {
  min-width: 0;
}

.page-home .hero__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 9vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .hero__lead {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  color: var(--muted);
}

.page-home .entry-search {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .entry-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.page-home .entry-search__input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

.page-home .entry-search__input::placeholder {
  color: #5d7591;
}

.page-home .entry-search__input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px var(--home-mint-soft);
}

.page-home .entry-search__go {
  flex: 0 0 auto;
}

.page-home .entry-search__hints {
  padding: 0 12px 14px;
}

.page-home .entry-search__hints-label {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .entry-search__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.page-home .entry-search__list a {
  display: block;
  padding: 6px 0 6px 14px;
  position: relative;
  color: #b9cbe0;
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 49, 76, 0.55);
}

.page-home .entry-search__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--mint-deep);
}

.page-home .entry-search__list a:hover,
.page-home .entry-search__list a:focus-visible {
  color: var(--mint);
}

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

.page-home .hero__quick a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--mint-deep);
  padding-bottom: 2px;
}

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

/* hero board */
.page-home .hero__board {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.page-home .hero__board-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.65) contrast(1.05);
}

.page-home .board {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.55) 0%, rgba(6, 16, 30, 0.86) 100%);
}

.page-home .board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .board__label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

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

.page-home .board__list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--mint-deep) 46%, rgba(27, 143, 120, 0) 100%);
}

.page-home .match {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid rgba(22, 49, 76, 0.5);
}

.page-home .match::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--home-mint-soft);
}

.page-home .match--live::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--home-amber-soft);
  animation: home-pulse 2.4s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--home-amber-soft); }
  50% { box-shadow: 0 0 0 9px rgba(255, 179, 71, 0.06); }
}

.page-home .match__meta {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-home .match:not(.match--live) .match__meta {
  color: var(--muted);
}

.page-home .match__title {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

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

.page-home .match__more {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #a9bdd4;
  transition: max-height 0.32s ease, opacity 0.32s ease, margin 0.32s ease;
}

.page-home .match:hover .match__more,
.page-home .match:focus-within .match__more {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}

.page-home .board__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid var(--mint-deep);
}

.page-home .board__link:hover,
.page-home .board__link:focus-visible {
  border-bottom-color: var(--mint);
}

/* ---------- LANES ---------- */
.page-home .lanes__head {
  max-width: 60ch;
}

.page-home .lanes__stack {
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 3vw, 40px);
}

.page-home .lane {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  min-width: 0;
}

.page-home .lane__index {
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.page-home .lane__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.24;
  color: var(--text);
}

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

.page-home .lane__grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.page-home .lane__side {
  min-width: 0;
}

.page-home .lane__side-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  object-fit: cover;
}

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

.page-home .lane--profile {
  display: grid;
  gap: 12px;
}

.page-home .lane__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 4px 0 16px;
}

.page-home .fact {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .fact__num {
  font-size: clamp(24px, 4vw, 34px);
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.page-home .lane__arrow {
  display: inline-block;
  font-size: 13px;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid var(--mint-deep);
  padding-bottom: 2px;
}

.page-home .lane__arrow:hover,
.page-home .lane__arrow:focus-visible {
  border-bottom-color: var(--mint);
}

.page-home .lane--alert {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.page-home .lane__media {
  min-width: 0;
  background: var(--panel-lift);
}

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

.page-home .lane--alert .lane__body {
  padding: clamp(20px, 3vw, 34px);
}

.page-home .lane--alert .lane__text {
  margin-bottom: 18px;
}

/* mini ui */
.page-home .mini-ui {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 14px;
}

.page-home .mini-ui__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .mini-ui__chip {
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
}

.page-home .mini-ui__chip.is-on {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}

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

.page-home .mini-ui__rows li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #a9bdd4;
}

.page-home .mini-ui__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-deep);
  flex: 0 0 auto;
}

.page-home .mini-ui__dot--amber {
  background: var(--amber);
}

/* ---------- RHYTHM ---------- */
.page-home .rhythm {
  background: linear-gradient(180deg, rgba(11, 27, 46, 0.9) 0%, rgba(6, 16, 30, 0.2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .rhythm__track {
  position: relative;
  margin: clamp(24px, 3vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.page-home .beat {
  position: relative;
  padding: 22px 0 22px 30px;
  border-left: 1px solid var(--line);
}

.page-home .beat::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 30px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
}

.page-home .beat:first-child::before {
  background: var(--amber);
  animation: home-pulse 2.4s ease-in-out infinite;
}

.page-home .beat__time {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.page-home .beat__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--text);
}

.page-home .beat__text {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- HELP DECKS ---------- */
.page-home .helpdecks__panel {
  padding: clamp(22px, 4vw, 48px);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(27, 143, 120, 0.16) 0%, rgba(11, 27, 46, 0) 58%),
    var(--panel);
}

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

.page-home .helpdecks__search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  max-width: 640px;
}

.page-home .helpdecks__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

.page-home .helpdecks__input::placeholder {
  color: #5d7591;
}

.page-home .helpdecks__input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px var(--home-mint-soft);
}

.page-home .helpdecks__cats {
  display: grid;
  gap: 1px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .helpdecks__cats a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .helpdecks__cats a:hover,
.page-home .helpdecks__cats a:focus-visible {
  background: var(--panel-lift);
  color: var(--mint);
}

.page-home .helpdecks__cats .mono {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mint-deep);
}

/* ---------- SCENES ---------- */
.page-home .scenes__board {
  display: grid;
  gap: 16px;
  margin-top: clamp(22px, 3vw, 36px);
}

.page-home .scene {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-home .scene__when {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-home .scene__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--text);
}

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

.page-home .scene__out {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--home-hair);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--mint);
}

/* ---------- PROOF ---------- */
.page-home .proof {
  border-top: 1px solid var(--line);
}

.page-home .proof__head {
  max-width: 60ch;
}

.page-home .proof__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(22px, 3vw, 36px);
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .stat {
  background: var(--ink);
  padding: 20px 16px;
}

.page-home .stat__num {
  margin: 0 0 6px;
  font-size: clamp(24px, 4.4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.page-home .proof__notes {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.page-home .proof__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--mint-deep);
}

.page-home .proof__note--legal {
  border-left-color: var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ---------- CLOSING ---------- */
.page-home .closing {
  padding: clamp(30px, 5vw, 64px) 0 clamp(36px, 6vw, 80px);
}

.page-home .closing__panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(53, 240, 192, 0.1) 0%, rgba(11, 27, 46, 0) 46%),
    var(--panel);
}

.page-home .closing__body {
  padding: clamp(24px, 4vw, 46px);
  min-width: 0;
}

.page-home .closing__title {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(25px, 4.6vw, 44px);
  line-height: 1.14;
  color: var(--text);
}

.page-home .closing__text {
  margin: 0 0 22px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

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

.page-home .closing__meta {
  margin: 22px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--muted);
  word-break: break-word;
}

.page-home .closing__media {
  min-width: 0;
  background: var(--panel-lift);
}

.page-home .closing__media .media__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.page-home .closing__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 16px clamp(24px, 4vw, 46px);
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .closing__legal a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}

.page-home .closing__legal a:hover,
.page-home .closing__legal a:focus-visible {
  color: var(--mint);
}

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

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

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

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

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

  .page-home .lane--profile {
    width: calc(100% - 48px);
    margin-left: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .lane--profile .lane__index,
  .page-home .lane--profile .lane__title,
  .page-home .lane--profile .lane__text {
    grid-column: 1;
  }

  .page-home .lane--profile .lane__facts {
    grid-column: 2;
    grid-row: 1 / span 3;
    flex-direction: column;
    gap: 18px;
    margin: 0;
  }

  .page-home .lane--profile .lane__arrow {
    grid-column: 1;
    justify-self: start;
  }

  .page-home .lane--alert {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: stretch;
    width: calc(100% - 32px);
  }

  .page-home .lane--alert .lane__media .media__img {
    height: 100%;
    min-height: 280px;
  }

  .page-home .lane--client {
    width: calc(100% - 64px);
  }

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

  .page-home .beat {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 26px 20px 0 0;
  }

  .page-home .beat::before {
    left: 0;
    top: -5px;
  }

  .page-home .closing__panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
  }

  .page-home .scenes__board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }

  .page-home .scene--shift {
    transform: translateY(26px);
  }
}

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

  .page-home .helpdecks__cats a {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 16px;
  }

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

  .page-home .entry-search__hints {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    opacity: 0;
    transition: max-height 0.34s ease, opacity 0.34s ease, padding 0.34s ease;
  }

  .page-home .entry-search:focus-within .entry-search__hints {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .match--live::before,
  .page-home .beat:first-child::before {
    animation: none;
  }

  .page-home .match__more,
  .page-home .entry-search__hints {
    transition: none;
  }

  .page-home .scene--shift {
    transform: none;
  }
}
