.page-home {
  --home-copy: clamp(15px, 1.65vw, 17px);
  --home-cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home p,
.page-home ul,
.page-home ol,
.page-home figure {
  margin: 0;
}

.page-home h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 4.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.page-home h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.2;
  color: var(--paper);
}

.page-home p {
  font-size: var(--home-copy);
  line-height: 1.75;
  color: var(--mist);
}

.page-home .hl {
  color: var(--cyan);
}

.page-home .hl-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 195, 0.45);
  padding-bottom: 1px;
}

.page-home .hl-link:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}

/* ---------- buttons ---------- */
.page-home .hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--line);
  clip-path: var(--home-cut);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-home .hbtn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--pitch);
}

.page-home .hbtn--solid:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
}

.page-home .hbtn--ghost {
  background: transparent;
  color: var(--paper);
}

.page-home .hbtn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .hbtn--plain {
  background: transparent;
  border-color: transparent;
  color: var(--mist);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.page-home .hbtn--plain:hover {
  color: var(--cyan);
}

/* ---------- hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(26px, 5vw, 58px) 0 clamp(38px, 6vw, 78px);
  background:
    radial-gradient(58% 64% at 82% 14%, rgba(0, 229, 195, 0.16), transparent 62%),
    radial-gradient(40% 50% at 6% 84%, rgba(255, 107, 53, 0.12), transparent 68%),
    linear-gradient(165deg, var(--night) 0%, var(--ink) 52%, var(--pitch) 100%);
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
}

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

.page-home .home-ctx {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 20px;
}

.page-home .home-ctx::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.page-home .home-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.05rem, 7.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  color: var(--paper);
  margin-bottom: 18px;
}

.page-home .home-hero__intro {
  max-width: 46ch;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.page-home .home-hero__nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  clip-path: var(--home-cut);
}

.page-home .hn {
  display: flex;
  flex-direction: column;
  padding: 15px 12px 14px;
  background: rgba(4, 17, 13, 0.9);
}

.page-home .hn__value {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(1.65rem, 5.6vw, 2.6rem);
  line-height: 1;
  color: var(--cyan);
}

.page-home .hn__value em {
  font-style: normal;
  font-size: 0.68em;
  color: var(--orange);
}

.page-home .hn__unit {
  margin-top: 5px;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan-soft);
}

.page-home .hn__label {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mist);
}

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

.page-home .home-hero__figure {
  position: relative;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%);
  overflow: hidden;
  background: var(--pitch);
}

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(1.05);
}

.page-home .home-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(4, 17, 13, 0.05) 30%, rgba(6, 31, 25, 0.72) 100%);
  pointer-events: none;
}

.page-home .home-hero__quick {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(320px, 100%);
  margin: -34px 0 0 auto;
  padding: 16px;
  background: rgba(4, 17, 13, 0.94);
  border: 1px solid var(--line);
  clip-path: var(--home-cut);
}

.page-home .home-hero__quick-title {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2px;
}

/* ---------- shots ---------- */
.page-home .home-shots {
  position: relative;
  padding: clamp(42px, 7vw, 84px) 0;
  background: var(--night);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-home .home-shots__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.page-home .home-shots::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 31, 25, 0.97) 18%, rgba(6, 31, 25, 0.78) 62%, rgba(4, 17, 13, 0.94) 100%);
  pointer-events: none;
}

.page-home .home-shots__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-shots__head {
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 30px);
}

.page-home .home-shots__head h2 {
  margin: 10px 0 14px;
}

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

.page-home .shots-switch {
  position: relative;
}

.page-home .shots-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .shots-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.page-home .shots-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--mist);
  background: rgba(4, 17, 13, 0.7);
  border: 1px solid var(--line);
  clip-path: var(--home-cut);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-home .shots-tab:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.page-home #metric-all:checked ~ .shots-tabs label[for="metric-all"],
.page-home #metric-on:checked ~ .shots-tabs label[for="metric-on"],
.page-home #metric-box:checked ~ .shots-tabs label[for="metric-box"],
.page-home #metric-wide:checked ~ .shots-tabs label[for="metric-wide"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--pitch);
}

.page-home #metric-all:focus-visible ~ .shots-tabs label[for="metric-all"],
.page-home #metric-on:focus-visible ~ .shots-tabs label[for="metric-on"],
.page-home #metric-box:focus-visible ~ .shots-tabs label[for="metric-box"],
.page-home #metric-wide:focus-visible ~ .shots-tabs label[for="metric-wide"] {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.page-home .shots-panels {
  min-height: 196px;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(4, 17, 13, 0.82);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  clip-path: var(--home-cut);
}

.page-home .shots-panel {
  display: none;
}

.page-home #metric-all:checked ~ .shots-panels .shots-panel:nth-child(1),
.page-home #metric-on:checked ~ .shots-panels .shots-panel:nth-child(2),
.page-home #metric-box:checked ~ .shots-panels .shots-panel:nth-child(3),
.page-home #metric-wide:checked ~ .shots-panels .shots-panel:nth-child(4) {
  display: block;
  animation: home-panel-in 0.28s ease both;
}

@keyframes home-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .shots-panel h3 {
  margin-bottom: 10px;
}

.page-home .shots-panel p {
  max-width: 64ch;
}

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

.page-home .shots-panel__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .shots-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 2px;
  background: var(--orange);
}

.page-home .home-shots__foot {
  margin-top: 20px;
  font-size: 14px;
}

/* ---------- possession ---------- */
.page-home .home-poss {
  padding: clamp(42px, 7vw, 84px) 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--night) 100%);
}

.page-home .home-poss__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-home .home-poss__copy h2 {
  margin: 10px 0 16px;
}

.page-home .home-poss__copy p {
  max-width: 52ch;
}

.page-home .poss-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 10px;
}

.page-home .poss-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .poss-points__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .home-poss__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .poss-card {
  background: rgba(4, 17, 13, 0.86);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  clip-path: var(--home-cut);
  overflow: hidden;
}

.page-home .poss-card--amber {
  border-top-color: var(--amber);
}

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

.page-home .poss-card__body {
  padding: clamp(16px, 2.6vw, 22px);
}

.page-home .poss-card__tag {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.page-home .poss-card--amber .poss-card__tag {
  color: var(--amber);
}

.page-home .poss-card h3 {
  margin-bottom: 4px;
}

.page-home .poss-card p {
  font-size: 14px;
  line-height: 1.7;
}

.page-home .poss-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0 12px;
}

.page-home .poss-scale i {
  display: block;
  height: 12px;
  background: rgba(0, 229, 195, 0.1);
  border: 1px solid var(--line);
}

.page-home .poss-scale i.on {
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .poss-card--amber .poss-scale i.on {
  background: var(--amber);
  border-color: var(--amber);
}

/* ---------- path ---------- */
.page-home .home-path {
  position: relative;
  padding: clamp(42px, 7vw, 84px) 0;
  background: var(--pitch);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-home .home-path__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .home-path::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 17, 13, 0.95) 20%, rgba(11, 59, 46, 0.86) 100%);
  pointer-events: none;
}

.page-home .home-path__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-path__head {
  max-width: 60ch;
  margin-bottom: clamp(22px, 3vw, 30px);
}

.page-home .home-path__head h2 {
  margin: 10px 0 14px;
}

.page-home .route {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  counter-reset: route;
}

.page-home .route__step {
  position: relative;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(6, 31, 25, 0.82);
  border: 1px solid var(--line);
  clip-path: var(--home-cut);
}

.page-home .route__step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--orange);
}

.page-home .route__idx {
  display: block;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 10px;
}

.page-home .route__step h3 {
  margin-bottom: 8px;
}

.page-home .route__step p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.page-home .route__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 195, 0.4);
  padding-bottom: 2px;
}

.page-home .route__link:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}

/* ---------- rhythm ---------- */
.page-home .home-rhythm {
  padding: clamp(42px, 7vw, 84px) 0;
  background: var(--ink);
}

.page-home .home-rhythm__head {
  max-width: 58ch;
  margin-bottom: clamp(22px, 3vw, 30px);
}

.page-home .home-rhythm__head h2 {
  margin: 10px 0 14px;
}

.page-home .rhythm {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.page-home .rhythm__item {
  position: relative;
  padding: clamp(18px, 3vw, 26px);
  background: var(--night);
}

.page-home .rhythm__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 195, 0));
}

.page-home .rhythm__item:nth-child(2)::before {
  background: linear-gradient(90deg, var(--amber), rgba(255, 176, 58, 0));
}

.page-home .rhythm__item:nth-child(3)::before {
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 53, 0));
}

.page-home .rhythm__time {
  display: block;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.page-home .rhythm__item:nth-child(2) .rhythm__time {
  color: var(--amber);
}

.page-home .rhythm__item:nth-child(3) .rhythm__time {
  color: var(--orange);
}

.page-home .rhythm__item h3 {
  margin-bottom: 8px;
}

.page-home .rhythm__item p {
  font-size: 14px;
  line-height: 1.7;
}

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

/* ---------- closing ---------- */
.page-home .home-close {
  padding: clamp(38px, 6vw, 72px) 0 clamp(42px, 7vw, 80px);
  background:
    radial-gradient(52% 70% at 88% 12%, rgba(0, 229, 195, 0.12), transparent 66%),
    linear-gradient(180deg, var(--night) 0%, var(--pitch) 100%);
  border-top: 1px solid var(--line-soft);
}

.page-home .home-close__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 26px);
  align-items: start;
}

.page-home .home-close__copy h2 {
  margin-bottom: 12px;
}

.page-home .home-close__copy p {
  max-width: 58ch;
}

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

.page-home .home-close__meta {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  grid-column: 1 / -1;
}

.page-home .home-close__meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 13px 16px;
  background: rgba(4, 17, 13, 0.88);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .home-close__meta span {
  flex: 0 0 auto;
  min-width: 72px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  padding-top: 3px;
}

.page-home .home-close__meta a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 233, 216, 0.35);
}

.page-home .home-close__meta a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- anchor offset ---------- */
.page-home #shots,
.page-home #possession,
.page-home #path,
.page-home #rhythm {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

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

  .page-home .route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line);
  }

  .page-home .route__step {
    clip-path: none;
    border: 0;
  }
}

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

  .page-home .home-hero__nums {
    max-width: 520px;
  }

  .page-home .home-poss__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

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

  .page-home .home-close__actions {
    justify-content: flex-end;
  }

  .page-home .shots-panels {
    min-height: 210px;
  }
}

@media (min-width: 1180px) {
  .page-home .home-hero__quick {
    margin-top: -64px;
    margin-right: 18px;
  }

  .page-home .poss-scale i {
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .shots-panel,
  .page-home .home-hero__quick,
  .page-home .hbtn,
  .page-home .shots-tab {
    animation: none !important;
    transition: none !important;
  }
}
