.page-products {
  --pp-gap: clamp(14px, 1.8vw, 20px);
  --pp-pad: clamp(18px, 2.4vw, 28px);
  background: var(--plum-deep);
  color: var(--ice);
  font-family: var(--font-cn);
  overflow-x: hidden;
}

.page-products .container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ---------- breadcrumbs ---------- */
.page-products .prod-crumbbar {
  background: var(--plum-deep);
  border-bottom: 1px solid var(--hair);
  padding: 11px 0;
}

.page-products .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.page-products .breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-products .breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--steel);
}

.page-products .breadcrumbs__item a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-products .breadcrumbs__item a:hover,
.page-products .breadcrumbs__item a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ---------- shared type ---------- */
.page-products .prod-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-products .prod-kicker--neon {
  color: var(--neon);
}

.page-products .prod-kicker--dark {
  color: var(--saffron);
}

.page-products .prod-h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--ice);
}

.page-products .prod-h3 {
  margin: 0 0 8px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ice);
}

.page-products .prod-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .prod-copy {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.88;
  color: rgba(247, 244, 238, 0.82);
}

.page-products .prod-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
}

/* ---------- hero ---------- */
.page-products .prod-hero {
  position: relative;
  padding: clamp(34px, 6vw, 78px) 0 clamp(38px, 6vw, 76px);
  background:
    radial-gradient(70% 62% at 88% 4%, rgba(199, 74, 58, 0.28), transparent 66%),
    radial-gradient(52% 54% at 4% 92%, rgba(184, 255, 61, 0.09), transparent 72%),
    linear-gradient(168deg, var(--plum) 0%, var(--plum-deep) 72%);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  left: 42%;
  right: -12%;
  bottom: -46%;
  height: 86%;
  background: repeating-linear-gradient(
    112deg,
    rgba(247, 244, 238, 0.055) 0 1px,
    transparent 1px 24px
  );
  pointer-events: none;
}

.page-products .prod-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .prod-hero__title {
  margin: 0 0 clamp(22px, 3.4vw, 36px);
  font-size: clamp(38px, 8.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--ice);
}

.page-products .prod-hero__title > span {
  display: block;
}

.page-products .prod-hero__accent {
  color: var(--neon);
}

.page-products .prod-hero__row {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: 1fr;
  align-items: start;
}

.page-products .prod-hero__lede {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.9;
  color: rgba(247, 244, 238, 0.84);
}

.page-products .prod-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--hair-strong);
}

.page-products .prod-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-products .prod-fact__label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- bands ---------- */
.page-products .prod-band {
  position: relative;
  padding: clamp(46px, 6.4vw, 92px) 0;
}

.page-products .prod-band--indigo {
  background: var(--indigo);
}

.page-products .prod-band--plum {
  background: var(--plum);
}

.page-products .prod-band--sand {
  background: var(--sand);
  color: var(--indigo);
}

.page-products .prod-band--sand .prod-h2,
.page-products .prod-band--sand .prod-h3 {
  color: var(--indigo);
}

.page-products .prod-band--sand .prod-copy {
  color: rgba(16, 24, 38, 0.8);
}

.page-products .prod-band--sand .prod-lead,
.page-products .prod-lead--dark {
  color: rgba(16, 24, 38, 0.72);
}

.page-products .prod-band--sand .prod-num {
  color: var(--saffron);
}

.page-products .prod-head {
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

/* ---------- bento map ---------- */
.page-products .prod-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pp-gap);
}

.page-products .prod-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--pp-pad);
  background: var(--purple-gray);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(247, 244, 238, 0.05), 0 16px 34px -28px rgba(0, 0, 0, 0.95);
  min-width: 0;
}

.page-products .prod-panel--desktop {
  background: linear-gradient(160deg, var(--purple-gray) 0%, #2b2440 100%);
}

.page-products .prod-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--neon);
  color: var(--indigo);
  transform: skewX(-10deg);
}

.page-products .prod-tag--saffron {
  background: var(--saffron);
  color: var(--ice);
}

.page-products .prod-panel__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--plum-deep);
}

.page-products .prod-panel__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-products .prod-panel__media--tall img {
  aspect-ratio: 3 / 4;
}

.page-products .prod-panel__media--wide img {
  aspect-ratio: 8 / 5;
}

.page-products .prod-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .prod-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247, 244, 238, 0.78);
}

.page-products .prod-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--neon);
}

.page-products .prod-shared {
  padding: var(--pp-pad);
  border: 1px dashed var(--hair-strong);
  border-radius: var(--radius);
  background: rgba(42, 27, 61, 0.55);
  min-width: 0;
}

.page-products .prod-shared__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-products .prod-shared__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247, 244, 238, 0.76);
}

/* ---------- filter cards ---------- */
.page-products .prod-cards {
  margin-top: clamp(30px, 4.6vw, 58px);
}

.page-products .prod-cards__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.page-products .chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.page-products .chip {
  appearance: none;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.24s var(--ease), background 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-products .chip:hover {
  color: var(--ice);
  border-color: var(--ice);
}

.page-products .chip[aria-pressed="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--indigo);
  font-weight: 700;
}

.page-products .chip:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.page-products .prod-cards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pp-gap);
}

.page-products .prod-fcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(60, 51, 85, 0.5);
  border: 1px solid var(--hair);
  border-left: 2px solid var(--steel);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-left-color 0.24s var(--ease), transform 0.24s var(--ease), background 0.24s var(--ease);
}

.page-products .prod-fcard:hover {
  border-left-color: var(--neon);
  background: rgba(60, 51, 85, 0.78);
  transform: translateY(-2px);
}

.page-products .prod-fcard__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.page-products .prod-fcard h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ice);
}

.page-products .prod-fcard p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(247, 244, 238, 0.72);
}

.page-products .prod-fcard__tag {
  margin-top: 4px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  color: var(--neon);
  border: 1px solid rgba(184, 255, 61, 0.42);
  border-radius: 999px;
}

.page-products [data-filter-item][data-filtered-out] {
  display: none;
}

/* ---------- split: schedule ---------- */
.page-products .prod-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.page-products .prod-taglist {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(16, 24, 38, 0.18);
}

.page-products .prod-taglist__row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 24, 38, 0.14);
}

.page-products .prod-taglist__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--saffron);
  padding-top: 3px;
}

.page-products .prod-taglist__row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(16, 24, 38, 0.82);
}

.page-products .prod-aside {
  padding: var(--pp-pad);
  background: var(--plum);
  border-radius: var(--radius);
  box-shadow: 0 22px 46px -34px rgba(16, 24, 38, 0.9);
}

.page-products .prod-aside__label {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-products .prod-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-products .prod-stats li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}

.page-products .prod-stats li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .prod-stats span:last-child {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-products .prod-aside__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(247, 244, 238, 0.66);
}

/* ---------- film strip ---------- */
.page-products .prod-film {
  margin: 0 0 clamp(22px, 3vw, 34px);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum-deep);
}

.page-products .prod-film img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-products .prod-film figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border-top: 1px solid var(--hair);
}

.page-products .prod-tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pp-gap);
}

.page-products .prod-tier {
  position: relative;
  padding: 22px 20px 22px 22px;
  background: rgba(60, 51, 85, 0.42);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  min-width: 0;
}

.page-products .prod-tier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: var(--neon);
}

.page-products .prod-tier__time {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--neon);
}

.page-products .prod-tier p {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: rgba(247, 244, 238, 0.74);
}

.page-products .prod-footnote {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--saffron);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- archive ---------- */
.page-products .prod-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.page-products .prod-archive__panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pp-gap);
}

.page-products .prod-mini {
  padding: 20px 18px;
  background: rgba(29, 18, 48, 0.65);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  min-width: 0;
}

.page-products .prod-mini--wide {
  grid-column: 1 / -1;
  border-color: rgba(199, 74, 58, 0.5);
}

.page-products .prod-mini p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .prod-archive__copy .btn {
  margin-top: 4px;
}

/* ---------- skill tree ---------- */
.page-products .prod-pathwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 44px);
  align-items: start;
}

.page-products .prod-tree {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.page-products .prod-tree__node {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 26px;
}

.page-products .prod-tree__node:last-child {
  padding-bottom: 0;
}

.page-products .prod-tree__node::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, var(--saffron), rgba(199, 74, 58, 0.08));
}

.page-products .prod-tree__node:last-child::before {
  display: none;
}

.page-products .prod-tree__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  background: var(--sand);
  border: 1px solid var(--saffron);
  border-radius: var(--radius);
}

.page-products .prod-tree__body {
  padding-top: 4px;
  min-width: 0;
}

.page-products .prod-tree__body p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(16, 24, 38, 0.78);
}

.page-products .prod-tree__route {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--plum);
  padding: 5px 12px;
  border: 1px solid rgba(42, 27, 61, 0.28);
  border-radius: 999px;
  margin-bottom: 0;
}

.page-products .prod-pathmap {
  margin: 0;
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum);
}

.page-products .prod-pathmap img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.page-products .prod-pathmap figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  border-top: 1px solid var(--hair);
}

/* ---------- get / version ---------- */
.page-products .prod-get {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
}

.page-products .prod-get__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-products .prod-get__media {
  margin: 0;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum-deep);
}

.page-products .prod-get__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-products .prod-get__media figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  border-top: 1px solid var(--hair);
}

/* ---------- focus ---------- */
.page-products a:focus-visible,
.page-products button:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

/* ---------- media queries ---------- */
@media (min-width: 620px) {
  .page-products .prod-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .prod-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .prod-cards__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .page-products .prod-hero__row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
  }

  .page-products .prod-hero__facts {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--hair-strong);
    padding-left: clamp(18px, 2.6vw, 32px);
  }

  .page-products .prod-bento {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.4fr);
    align-items: stretch;
  }

  .page-products .prod-shared {
    grid-column: 1 / -1;
  }

  .page-products .prod-cards__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .prod-split {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .page-products .prod-archive {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .page-products .prod-pathwrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .page-products .prod-get {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 1140px) {
  .page-products .prod-cards__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .prod-cards__grid .prod-fcard:nth-child(1),
  .page-products .prod-cards__grid .prod-fcard:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 419px) {
  .page-products .prod-archive__panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-products .prod-taglist__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .page-products .prod-hero__facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .prod-fcard,
  .page-products .chip,
  .page-products .breadcrumbs__item a {
    transition: none;
  }

  .page-products .prod-fcard:hover {
    transform: none;
  }
}
