.page-products {
  --prod-cut: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  --prod-cut-sm: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --prod-tex: repeating-linear-gradient(118deg, rgba(47, 214, 196, 0.05) 0 1px, transparent 1px 28px),
              repeating-linear-gradient(62deg, rgba(47, 214, 196, 0.035) 0 1px, transparent 1px 28px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .section-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-products .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.6vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-products .section-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--gold);
  opacity: 0.3;
  display: block;
}

@supports (-webkit-text-stroke: 1px red) {
  .page-products .section-num {
    color: transparent;
    opacity: 1;
    -webkit-text-stroke: 1.2px rgba(201, 162, 39, 0.78);
  }
}

.page-products .prod-head {
  display: grid;
  gap: 12px 28px;
  align-items: start;
  margin-bottom: clamp(28px, 4.6vw, 52px);
}

.page-products .prod-head .section-kicker {
  color: var(--cyan);
}

@media (min-width: 720px) {
  .page-products .prod-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 30px;
  }
  .page-products .prod-head .section-num {
    margin-top: -6px;
  }
}

.page-products .prod-hero {
  position: relative;
  padding: clamp(24px, 4vw, 44px) 0 clamp(48px, 8vw, 100px);
  background: var(--ink);
  overflow: hidden;
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--prod-tex),
    linear-gradient(140deg, var(--night) 0%, rgba(16, 27, 51, 0.4) 48%, var(--ink) 78%);
  clip-path: polygon(0 0, 62% 0, 41% 100%, 0 100%);
  pointer-events: none;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: min(52vw, 560px);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 40% 40%, rgba(47, 214, 196, 0.16), transparent 62%);
  pointer-events: none;
}

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

.page-products .prod-hero .breadcrumb {
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-products .prod-hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
}

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

.page-products .prod-title {
  margin: 10px 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6.6vw, 3.85rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--paper);
}

.page-products .prod-lede {
  max-width: 60ch;
  margin: 0;
  color: rgba(243, 239, 230, 0.8);
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.9;
}

.page-products .prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-products .aside-label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-products .aside-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-mute);
}

.page-products .aside-nav li {
  border-bottom: 1px solid var(--line-mute);
}

.page-products .aside-nav a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 4px;
  color: rgba(243, 239, 230, 0.78);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.page-products .aside-nav a:hover,
.page-products .aside-nav a:focus-visible {
  color: var(--cyan);
  padding-left: 10px;
}

.page-products .aside-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-products .prod-section {
  position: relative;
  padding: clamp(56px, 9vw, 116px) 0;
}

.page-products .prod-lines {
  background: var(--ink);
}

.page-products .prod-library {
  background:
    var(--prod-tex),
    linear-gradient(180deg, var(--night) 0%, #0c1526 100%);
  border-top: 1px solid var(--line-cyan);
}

.page-products .prod-clause {
  background: var(--paper);
  color: var(--ink);
}

.page-products .prod-clause .section-kicker {
  color: var(--clay);
}

.page-products .prod-clause .section-title {
  color: var(--ink);
}

.page-products .prod-clause .section-num {
  color: var(--clay);
  opacity: 0.4;
}

@supports (-webkit-text-stroke: 1px red) {
  .page-products .prod-clause .section-num {
    color: transparent;
    opacity: 1;
    -webkit-text-stroke: 1.2px rgba(193, 80, 46, 0.8);
  }
}

.page-products .prod-intro {
  max-width: 68ch;
  margin: 0 0 clamp(26px, 4vw, 40px);
  color: rgba(243, 239, 230, 0.78);
  font-size: 1rem;
  line-height: 1.9;
}

.page-products .prod-clause .prod-intro {
  color: rgba(10, 26, 33, 0.78);
}

.page-products .prod-figure {
  margin: 0;
  position: relative;
}

.page-products .prod-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: var(--prod-cut);
}

.page-products .prod-caption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .prod-clause .prod-caption {
  color: rgba(10, 26, 33, 0.55);
}

.page-products .prod-lines-grid {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

@media (min-width: 900px) {
  .page-products .prod-lines-grid {
    grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.4fr);
    align-items: start;
  }
}

.page-products .line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pline;
}

.page-products .line-item {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--line-mute);
}

.page-products .line-item:last-child {
  border-bottom: 1px solid var(--line-mute);
}

@media (min-width: 620px) {
  .page-products .line-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 22px;
  }
}

.page-products .line-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-top: 4px;
}

.page-products .line-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--paper);
}

.page-products .line-text {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, 0.76);
}

.page-products .line-fit {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .line-figure img {
  height: clamp(220px, 42vw, 400px);
  object-fit: cover;
}

.page-products .library-figure {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-products .library-figure img {
  height: clamp(180px, 34vw, 360px);
  object-fit: cover;
}

.page-products .prod-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.page-products .filter-btn {
  appearance: none;
  border: 1px solid var(--line-cyan);
  background: transparent;
  color: rgba(243, 239, 230, 0.74);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 8px 16px;
  cursor: pointer;
  clip-path: var(--prod-cut-sm);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.page-products .filter-btn:hover {
  color: var(--paper);
  border-color: var(--line-gold);
}

.page-products .filter-btn[aria-pressed="true"] {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--gold);
  color: var(--gold-light);
}

.page-products .filter-summary {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-products .filter-count {
  color: var(--gold-light);
}

.page-products .library-list {
  list-style: none;
  margin: 0;
  padding: 4px clamp(18px, 4vw, 40px) 10px;
  background: linear-gradient(160deg, rgba(30, 49, 56, 0.62), rgba(5, 13, 18, 0.5));
  border-top: 1px solid var(--line-gold);
  border-left: 1px solid var(--line-cyan);
  clip-path: var(--prod-cut);
}

.page-products .library-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: start;
  padding: 22px 2px;
  border-top: 1px solid var(--line-cyan);
  transition: background 0.25s var(--ease);
}

.page-products .library-row:first-child {
  border-top: 0;
}

.page-products .library-row:hover,
.page-products .library-row:focus-within {
  background: rgba(47, 214, 196, 0.045);
}

@media (min-width: 900px) {
  .page-products .library-row {
    grid-template-columns: 72px minmax(0, 1fr) 88px;
    align-items: center;
  }
}

.page-products .library-row .row-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding-top: 4px;
}

.page-products .library-row .row-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--paper);
}

.page-products .library-row .row-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, 0.74);
}

.page-products .library-row .row-meta {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold-light);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .page-products .library-row .row-meta {
    grid-column: auto;
    text-align: right;
  }
}

.page-products .clause-grid {
  display: grid;
  gap: clamp(30px, 4.5vw, 56px);
}

@media (min-width: 880px) {
  .page-products .clause-grid {
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
    align-items: start;
  }
}

.page-products .clause-aside {
  display: grid;
  gap: 18px;
}

.page-products .clause-figure img {
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.page-products .clause-note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(10, 26, 33, 0.75);
}

.page-products .clause-aside .btn {
  justify-self: start;
}

.page-products .clause-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(10, 26, 33, 0.22);
}

.page-products .clause {
  border-bottom: 1px solid rgba(10, 26, 33, 0.22);
}

.page-products .clause summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 20px;
  gap: 12px;
  align-items: center;
  padding: 18px 6px;
  cursor: pointer;
  list-style: none;
  transition: background 0.22s var(--ease);
}

.page-products .clause summary::-webkit-details-marker {
  display: none;
}

.page-products .clause summary:hover,
.page-products .clause summary:focus-visible {
  background: rgba(193, 80, 46, 0.07);
}

.page-products .clause summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  line-height: 1;
  text-align: right;
  color: var(--clay);
  transition: transform 0.26s var(--ease);
}

.page-products .clause[open] summary::after {
  transform: rotate(45deg);
}

.page-products .clause-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.page-products .clause-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}

.page-products .clause-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(10, 26, 33, 0.62);
  white-space: nowrap;
}

.page-products .clause-body {
  padding: 0 6px 22px 70px;
}

.page-products .clause-body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(10, 26, 33, 0.78);
}

@media (max-width: 620px) {
  .page-products .clause summary {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .page-products .clause summary::after {
    display: none;
  }
  .page-products .clause-body {
    padding: 0 6px 20px 6px;
  }
}

.page-products .prod-path {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--line-cyan);
}

.page-products .path-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.page-products .path-shell {
  position: relative;
  z-index: 1;
}

.page-products .path-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  border-top: 1px solid var(--line-mute);
}

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

.page-products .path-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 1120px;
}

.page-products .path-node {
  position: relative;
  flex: 0 0 224px;
  padding: 78px 22px 26px;
  scroll-snap-align: start;
  transition: background 0.25s var(--ease);
}

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

.page-products .path-node::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 40px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.62), rgba(201, 162, 39, 0.14));
}

.page-products .path-node:last-child::before {
  right: 40%;
}

.page-products .path-node::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 28px;
  width: 1px;
  height: 38px;
  background: rgba(201, 162, 39, 0.42);
  transform: rotate(-16deg);
  transform-origin: top center;
}

.page-products .path-ring {
  position: absolute;
  top: 19px;
  left: 20px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--ink-deep);
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.12);
  z-index: 2;
}

.page-products .path-node:first-child .path-ring {
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.2);
}

.page-products .path-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-products .path-name {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .path-out {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(243, 239, 230, 0.74);
}

.page-products .path-time {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.page-products .path-desc {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.875rem;
  line-height: 1.82;
  color: rgba(243, 239, 230, 0.68);
  transition: max-height 0.32s var(--ease), opacity 0.32s var(--ease);
}

.page-products .path-node:hover .path-desc,
.page-products .path-node:focus-visible .path-desc,
.page-products .path-node:focus-within .path-desc {
  max-height: 260px;
  opacity: 1;
}

@media (hover: none) {
  .page-products .path-desc {
    max-height: none;
    opacity: 1;
  }
}

.page-products .path-foot {
  margin: clamp(26px, 4vw, 40px) 0 0;
  max-width: 64ch;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(243, 239, 230, 0.72);
}

.page-products .inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 214, 196, 0.4);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.page-products .inline-link:hover,
.page-products .inline-link:focus-visible {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.page-products .prod-evolve {
  background:
    var(--prod-tex),
    linear-gradient(180deg, var(--celadon) 0%, #16262c 100%);
  border-top: 1px solid var(--line-mute);
}

.page-products .evolve-grid {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
}

@media (min-width: 960px) {
  .page-products .evolve-grid {
    grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr);
    align-items: start;
  }
}

.page-products .evolve-scale {
  height: 28px;
  border-bottom: 1px solid rgba(243, 239, 230, 0.22);
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 214, 196, 0.8) 0 1px, transparent 1px 8.3333%),
    linear-gradient(90deg, transparent 0 66.6%, rgba(201, 162, 39, 0.22) 66.6% 100%);
}

.page-products .evolve-scale-label {
  margin: 10px 0 clamp(22px, 3.4vw, 34px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-products .evolve-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .evolve-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line-mute);
}

.page-products .evolve-item:last-child {
  border-bottom: 1px solid var(--line-mute);
}

.page-products .evolve-seq {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.page-products .evolve-badge {
  align-self: start;
  justify-self: end;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  border: 1px solid rgba(193, 80, 46, 0.7);
  background: rgba(193, 80, 46, 0.12);
  clip-path: var(--prod-cut-sm);
  white-space: nowrap;
}

.page-products .evolve-text {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, 0.76);
}

.page-products .evolve-more {
  margin: clamp(22px, 3.4vw, 32px) 0 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, 0.7);
}

.page-products .evolve-env {
  padding: clamp(22px, 3.4vw, 34px);
  background: rgba(5, 13, 18, 0.42);
  border-top: 1px solid var(--line-gold);
  border-left: 1px solid var(--line-cyan);
  clip-path: var(--prod-cut);
}

.page-products .evolve-figure {
  margin-bottom: clamp(22px, 3.4vw, 30px);
}

.page-products .evolve-figure img {
  height: clamp(140px, 22vw, 220px);
  object-fit: cover;
}

.page-products .env-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--paper);
}

.page-products .env-list {
  margin: 0;
  padding: 0;
}

.page-products .env-row {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid var(--line-mute);
}

.page-products .env-row:last-child {
  border-bottom: 1px solid var(--line-mute);
}

@media (min-width: 560px) {
  .page-products .env-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 18px;
    align-items: baseline;
  }
}

.page-products .env-row dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-products .env-row dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(243, 239, 230, 0.76);
}

.page-products .env-foot {
  margin: 20px 0 0;
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgba(243, 239, 230, 0.68);
}

.page-products .btn {
  font-family: var(--font-body);
}

@media (prefers-reduced-motion: reduce) {
  .page-products .aside-nav a,
  .page-products .filter-btn,
  .page-products .library-row,
  .page-products .clause summary,
  .page-products .clause summary::after,
  .page-products .path-node,
  .page-products .path-desc,
  .page-products .inline-link {
    transition: none;
  }
}
