.page-home {
  --ph-num: clamp(1.8rem, 6vw, 2.5rem);
  display: block;
  background: var(--graphite);
}

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

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(1rem, 2.6vw, 1.6rem) clamp(2.4rem, 6vw, 4.5rem);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(780px, 92%);
  height: min(660px, 100%);
  background: linear-gradient(155deg, rgba(18, 48, 57, 0.95) 4%, rgba(36, 28, 77, 0.6) 56%, rgba(11, 15, 18, 0) 92%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 86%);
  pointer-events: none;
}

.page-home .hero__wrap {
  position: relative;
  z-index: 1;
}

.page-home .hero .breadcrumb {
  margin-bottom: clamp(0.8rem, 2.4vw, 1.4rem);
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}

.page-home .hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 6.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0.55rem 0 0.85rem;
  max-width: 18em;
  color: var(--paper);
}

.page-home .hero .lede {
  margin: 0 0 1.5rem;
  max-width: 30em;
  color: var(--mist);
  font-size: clamp(0.95rem, 2.3vw, 1.05rem);
  line-height: 1.85;
}

.page-home .paths {
  margin-top: 0.4rem;
}

.page-home .paths__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.page-home .paths__tabs .tabs__tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.15rem;
  margin-right: 1.3rem;
  font-family: var(--f-body);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .paths__tabs .tabs__tab[aria-selected="true"] {
  color: var(--cyan);
  border-bottom-color: var(--orange);
}

.page-home .paths__tabs .tabs__tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .path {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 1.1rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid rgba(51, 224, 212, 0.35);
  background: rgba(19, 27, 33, 0.72);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.page-home .path:hover,
.page-home .path:focus-visible {
  border-left-color: var(--orange);
  background: rgba(18, 48, 57, 0.6);
  transform: translateX(4px);
}

.page-home .path:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .path__num {
  font-family: var(--f-mono);
  font-size: var(--ph-num);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--orange);
}

.page-home .path__title {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .path__desc {
  display: block;
  margin-top: 0.18rem;
  color: var(--mist);
  font-size: 0.79rem;
  line-height: 1.65;
}

.page-home .path__go {
  justify-self: end;
  font-family: var(--f-mono);
  color: var(--cyan);
}

.page-home .hero__side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.page-home .side-entry {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px dashed rgba(157, 180, 194, 0.35);
  border-radius: 999px;
  color: var(--mist);
  text-decoration: none;
  font-size: 0.78rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .side-entry:hover,
.page-home .side-entry:focus-visible {
  border-color: var(--cyan);
  color: var(--paper);
}

.page-home .side-entry:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .side-entry__k {
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .hero__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--zone-teal);
  clip-path: polygon(7% 0, 100% 3%, 95% 100%, 0 96%);
  overflow: hidden;
}

.page-home .hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 18, 0.5) 0%, rgba(11, 15, 18, 0.66) 52%, rgba(11, 15, 18, 0.94) 100%);
}

.page-home .hero__badge {
  position: absolute;
  left: 11%;
  bottom: 13%;
  padding-left: 0.6rem;
  border-left: 2px solid var(--orange);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .moves {
  padding-block: clamp(2.2rem, 5.5vw, 3.8rem);
  background: linear-gradient(180deg, rgba(11, 15, 18, 0) 0%, rgba(19, 27, 33, 0.55) 100%);
}

.page-home .section-head {
  margin-bottom: clamp(1.2rem, 3vw, 1.9rem);
}

.page-home .section-head__title {
  margin: 0.45rem 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.8vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.page-home .moves__intro {
  margin: 0.6rem 0 0;
  max-width: 32em;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.8;
}

.page-home .moves__grid {
  display: grid;
  gap: clamp(1.2rem, 3.5vw, 2.2rem);
}

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

.page-home .moves__map-frame {
  background: var(--panel);
  clip-path: polygon(0 3%, 100% 0, 97% 100%, 0 97%);
  overflow: hidden;
}

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

.page-home .moves__map figcaption,
.page-home .versions__shot figcaption,
.page-home .docks__shot figcaption {
  margin-top: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.page-home .moves__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .move {
  margin-bottom: 0.6rem;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(255, 122, 47, 0.5);
  background: rgba(19, 27, 33, 0.82);
  overflow: hidden;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.page-home .move[open] {
  border-left-color: var(--orange);
  background: rgba(18, 48, 57, 0.55);
}

.page-home .move__sum {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  list-style: none;
  cursor: pointer;
}

.page-home .move__sum::-webkit-details-marker {
  display: none;
}

.page-home .move__sum:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-home .move__num {
  font-family: var(--f-mono);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.page-home .move__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .move__hint {
  display: block;
  margin-top: 0.22rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .move__chev {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.page-home .move[open] .move__chev {
  transform: rotate(-135deg);
}

.page-home .move__body {
  padding: 0 0.95rem 1rem 2.9rem;
  border-top: 1px dashed rgba(157, 180, 194, 0.2);
}

.page-home .move__body p {
  margin: 0.7rem 0 0.6rem;
  color: var(--mist);
  font-size: 0.85rem;
  line-height: 1.8;
}

.page-home .move__paths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.page-home .move__paths li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.35rem 0.55rem;
  border-left: 2px solid transparent;
  background: rgba(11, 15, 18, 0.5);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .move__paths li.is-old {
  border-left-color: rgba(255, 122, 47, 0.55);
}

.page-home .move__paths li.is-old {
  border-left-style: dashed;
}

.page-home .move__paths li.is-new {
  border-left-color: var(--cyan);
  color: var(--paper);
}

.page-home .move__k {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.page-home .cases {
  padding-block: clamp(1.6rem, 4.5vw, 3rem);
}

.page-home .cases__inner {
  padding: clamp(1.4rem, 4.5vw, 2.6rem);
  background: linear-gradient(135deg, var(--zone-wine) 0%, rgba(59, 18, 32, 0.42) 62%, rgba(11, 15, 18, 0) 100%);
  clip-path: polygon(0 1.6%, 100% 0, 100% 98.4%, 0 100%);
}

.page-home .cases__title {
  margin: 0.45rem 0 0.6rem;
  max-width: 24em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 1.85rem);
  line-height: 1.28;
  color: var(--paper);
}

.page-home .cases__lede {
  margin: 0;
  max-width: 34em;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.85;
}

.page-home .cases__count-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.3rem 0 0.9rem;
}

.page-home .cases__count {
  font-family: var(--f-mono);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.page-home .cases__count-label {
  color: var(--mist);
  font-size: 0.76rem;
  line-height: 1.6;
}

.page-home .cases__scenes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding: 0;
}

.page-home .cases__scenes li {
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(157, 180, 194, 0.3);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .versions {
  padding-block: clamp(2rem, 5vw, 3.6rem);
}

.page-home .versions__grid {
  display: grid;
  gap: clamp(1.2rem, 3.5vw, 2.2rem);
}

.page-home .versions__title {
  margin: 0.45rem 0 0.7rem;
  max-width: 22em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 1.85rem);
  line-height: 1.28;
  color: var(--paper);
}

.page-home .versions__text {
  margin: 0 0 1.1rem;
  max-width: 32em;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.85;
}

.page-home .versions__facts {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .versions__facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .versions__k {
  font-size: 0.82rem;
  color: var(--mist);
}

.page-home .versions__v {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}

.page-home .versions__shot {
  margin: 0;
  padding: clamp(0.5rem, 1.6vw, 0.9rem);
  background: var(--zone-indigo);
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

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

.page-home .versions__shot figcaption {
  padding-top: 0.5rem;
}

.page-home .docks {
  padding-block: clamp(2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, rgba(19, 27, 33, 0.6) 0%, rgba(11, 15, 18, 0) 100%);
}

.page-home .docks__grid {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.4rem);
}

.page-home .docks__title {
  margin: 0.45rem 0 0.7rem;
  max-width: 20em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 1.85rem);
  line-height: 1.28;
  color: var(--paper);
}

.page-home .docks__text {
  margin: 0 0 1.2rem;
  max-width: 32em;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.85;
}

.page-home .dock-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .dock-step__num {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
}

.page-home .dock-step__title {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .dock-step__desc {
  margin: 0;
  color: var(--mist);
  font-size: 0.83rem;
  line-height: 1.8;
}

.page-home .docks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.page-home .docks__shot {
  margin: 0;
  justify-self: center;
  width: min(100%, 320px);
}

.page-home .docks__shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 2%, 100% 0, 100% 97%, 0 100%);
  background: var(--panel);
}

.page-home .trust {
  padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2.4rem, 6vw, 4rem);
}

.page-home .trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding-top: clamp(1rem, 2.6vw, 1.5rem);
  border-top: 1px solid var(--line);
}

.page-home .trust__text {
  margin: 0;
  max-width: 40em;
  color: var(--mist);
  font-size: 0.85rem;
  line-height: 1.8;
}

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

  .page-home .hero__frame {
    aspect-ratio: 4 / 4.3;
    margin-top: 0.6rem;
  }

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

  .page-home .moves__map {
    position: sticky;
    top: calc(var(--topbar-h) + 1.2rem);
  }

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

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

  .page-home .docks__shot {
    justify-self: end;
  }
}

@media (min-width: 1180px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
    gap: 3rem;
  }

  .page-home .path__title {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path,
  .page-home .move,
  .page-home .move__chev,
  .page-home .side-entry,
  .page-home .paths__tabs .tabs__tab {
    transition: none;
  }

  .page-home .path:hover,
  .page-home .path:focus-visible {
    transform: none;
  }
}
