:root {
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  font-family: var(--sans);
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

[data-variant-root] {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

[data-variant-root]::selection {
  background: var(--accent, #ec7652);
  color: var(--selection, #fff);
}

.variant-header,
.variant-footer,
.variant-brand,
.variant-notation,
.variant-language,
.variant-header-actions,
.kinetic-topline-actions,
.style-switch {
  position: relative;
  z-index: 2;
}

.variant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.variant-header-actions,
.kinetic-topline-actions {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.variant-header-actions {
  margin-left: auto;
}

.variant-brand {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.08em;
}

.variant-notation {
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.variant-language {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.variant-language [data-language] {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 160ms ease;
}

.variant-language [data-language].is-active {
  opacity: 1;
  font-weight: 800;
}

.variant-language .language-separator {
  opacity: 0.35;
}

.style-switch {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.style-switch:hover {
  background: currentColor;
  color: var(--selection, #fff);
  transform: scale(1.04);
}

.variant-header-actions,
.kinetic-topline-actions {
  position: static;
}

.terminal-bar {
  position: relative;
}

[data-variant-root] .style-switch {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
}

[data-variant-root] .style-switch:hover {
  transform: scale(1.04);
}

.style-switch svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.variant-hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-products] {
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

[data-products]::-webkit-scrollbar {
  display: none;
}

.product-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: auto 3.5rem minmax(0, 1fr) minmax(3.75rem, 5rem);
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  animation: variant-rise 520ms both;
  animation-delay: calc(var(--product-order) * 55ms);
}

.product-index {
  align-self: start;
  padding-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  opacity: 0.5;
}

.product-icon,
.product-icon-fallback {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 3.5rem;
  border-radius: 18%;
  object-fit: cover;
}

.product-icon-fallback {
  display: grid;
  place-items: center;
  background: currentColor;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.product-content {
  min-width: 0;
}

.product-meta,
.product-platforms,
.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-meta {
  gap: 0.5rem;
  margin-bottom: 0.18rem;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-mode,
.product-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.2rem;
  padding: 0.1rem 0.42rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.product-status {
  opacity: 0.62;
  text-transform: none;
}

.product-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description {
  margin: 0.18rem 0 0;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.68;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-platforms {
  align-self: center;
  min-width: 0;
  max-width: 8rem;
  margin: 0;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.57rem;
  flex-wrap: wrap;
  justify-content: end;
}

.product-platform-rail {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  width: auto;
  min-width: 3.75rem;
  max-width: 5rem;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.product-platform-rail .platform-chip {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  justify-content: center;
}

.product-platform-rail .platform-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  white-space: nowrap;
}

.platform-icon {
  display: inline-grid;
  width: 0.78rem;
  height: 0.78rem;
  place-items: center;
}

.platform-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.platform-name {
  opacity: 0.74;
}

.product-actions {
  justify-content: end;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.product-action {
  transition: opacity 160ms ease, transform 160ms ease;
}

.product-action:hover {
  opacity: 0.62;
  transform: translateY(-1px);
}

.variant-socials {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.social-link {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.social-link:hover {
  background: currentColor;
  color: var(--social-hover, #fff);
  transform: translateY(-2px);
}

.social-link > svg,
.social-link > img {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  object-fit: contain;
}

.social-link-placeholder {
  opacity: 0.45;
}

.variant-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.variant-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 0.84;
}

.variant-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.7;
}

@keyframes variant-rise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 01 — Quiet Editorial: a calm, high-contrast index with a single image as the identity. */
.variant-editorial {
  --accent: #ee7852;
  --selection: #f3f0e8;
  background: #e9e6dc;
  color: #172c2b;
}

.editorial-watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  overflow: hidden;
  color: rgba(23, 44, 43, 0.055);
  font-family: var(--serif);
  font-size: min(27vw, 24rem);
  letter-spacing: -0.14em;
  line-height: 0.75;
  pointer-events: none;
}

.editorial-header {
  position: absolute;
  inset: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 3vw, 3rem) auto;
}

.editorial-header .variant-brand {
  color: #f3f0e8;
}

.editorial-header .variant-notation {
  position: absolute;
  left: 19%;
  color: #d9f45f;
}

.editorial-header .variant-language {
  border-color: rgba(23, 44, 43, 0.42);
  color: #172c2b;
}

.editorial-header .style-switch {
  border-color: #d9f45f;
  color: #d9f45f;
}

@media (min-width: 761px) {
  .editorial-header .style-switch {
    border-color: #172c2b;
    color: #172c2b;
  }
}

.editorial-layout {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
}

.editorial-identity {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(5.25rem, 9vw, 7.5rem) clamp(1rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2rem);
  background: #172c2b;
  color: #f3f0e8;
}

.editorial-image {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.2);
}

.editorial-image .variant-hero {
  filter: saturate(0.78) contrast(1.04);
}

.editorial-signature {
  padding: clamp(1rem, 2vw, 1.7rem) 0;
}

.editorial-signature .variant-kicker {
  color: #d9f45f;
}

.editorial-signature .variant-title {
  max-width: 10ch;
  margin-top: 0.45rem;
  font-size: clamp(2.5rem, 5.3vw, 5.9rem);
  white-space: nowrap;
}

.editorial-signature .variant-note {
  max-width: 18rem;
  margin-top: 0.7rem;
  color: rgba(243, 240, 232, 0.7);
}

.editorial-identity .variant-socials {
  justify-content: end;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(243, 240, 232, 0.18);
  color: #f3f0e8;
}

.editorial-index {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(5.25rem, 9vw, 7.5rem) clamp(1rem, 4vw, 4.5rem) clamp(1rem, 2.5vw, 2rem);
}

.editorial-index-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(23, 44, 43, 0.18);
  padding-bottom: 1.2rem;
}

.editorial-index-head .variant-title {
  margin-top: 0.55rem;
  font-size: clamp(3rem, 7vw, 7.7rem);
}

.editorial-index-head .variant-title sup {
  margin-left: 0.3rem;
  color: #ee7852;
  font-family: var(--mono);
  font-size: 0.23em;
  letter-spacing: 0;
  vertical-align: top;
}

.editorial-index-code {
  padding-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  opacity: 0.55;
}

.editorial-index [data-products] {
  padding-top: 0.7rem;
}

.editorial-index .product-card {
  grid-template-columns: 1.6rem 3.5rem minmax(0, 1fr) minmax(3.75rem, 5rem);
  border-bottom: 1px solid rgba(23, 44, 43, 0.17);
}

.editorial-index .product-index {
  color: #ee7852;
}

.editorial-index .product-heading {
  align-items: center;
}

.editorial-index .product-action {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* 02 — Build Terminal: native black, neutral type and restrained ANSI color. */
.variant-terminal {
  --terminal-bg: #0c0c0c;
  --terminal-panel: #101010;
  --terminal-border: #2b2b2b;
  --terminal-text: #d4d4d4;
  --terminal-dim: #7d7d7d;
  --terminal-bright: #f2f2f2;
  --terminal-blue: #5c9ded;
  --accent: var(--terminal-blue);
  --selection: var(--terminal-bg);
  min-height: 100svh;
  padding: clamp(0.8rem, 1.8vw, 1.5rem);
  background: var(--terminal-bg);
  color: var(--terminal-text);
  font-family: var(--mono);
}

body.variant-terminal {
  height: 100svh;
  min-height: 100svh;
}

main.variant-shell.variant-terminal {
  height: 100%;
  min-height: 0;
  padding: 0;
}

.terminal-window {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--terminal-border);
  background: var(--terminal-panel);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.38);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--terminal-border);
  padding: 0.7rem 1rem;
  color: var(--terminal-dim);
  font-size: 0.63rem;
}

.terminal-bar-left,
.terminal-bar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.terminal-dots {
  display: flex;
  gap: 0.25rem;
}

.terminal-dots i {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--terminal-dim);
}

.terminal-dots i:nth-child(1) {
  background: #ff5f57;
}

.terminal-dots i:nth-child(2) {
  background: #febc2e;
}

.terminal-dots i:nth-child(3) {
  background: #28c840;
}

.terminal-bar .variant-brand {
  color: var(--terminal-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.terminal-bar .style-switch,
.terminal-bar .variant-language {
  color: var(--terminal-dim);
}

.terminal-bar .variant-language [data-language].is-active {
  color: var(--terminal-bright);
}

.terminal-bar .variant-language {
  padding: 0;
  border: 0;
}

.terminal-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.terminal-intro {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  container-type: inline-size;
  overflow: hidden;
  border-right: 1px solid var(--terminal-border);
  padding: clamp(1.35rem, 2.8vw, 3rem);
}

.terminal-hero-wrap {
  display: grid;
  min-height: 0;
  width: min(100%, 18.5rem);
  align-self: center;
  justify-items: center;
  margin: auto 0;
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
}

.terminal-hero {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--terminal-border);
  border-radius: 50%;
  background: #151515;
}

.terminal-hero .variant-hero {
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.86;
}

.terminal-hero-rule {
  display: block;
  width: 3.6rem;
  height: 1px;
  background: #666;
}

.terminal-signature {
  min-width: 0;
  min-block-size: max-content;
  grid-row: 2;
}

.terminal-principle {
  margin: 0 0 0.65rem;
  color: var(--terminal-blue);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.terminal-intro .variant-title {
  color: var(--terminal-bright);
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5.4vw, 6.5rem);
  font-size: clamp(2.2rem, 10cqi, 6.5rem);
  letter-spacing: -0.16em;
  line-height: 0.9;
  white-space: nowrap;
}

.terminal-intro .variant-title span {
  color: inherit;
}

.terminal-products {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(1.1rem, 2.4vw, 2.2rem);
}

.terminal-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--terminal-border);
  padding-bottom: 0.72rem;
}

.terminal-path {
  margin: 0;
  color: var(--terminal-text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.terminal-count {
  color: var(--terminal-blue);
  font-size: 0.68rem;
}

.terminal-products [data-products] {
  padding-top: 0.35rem;
}

.terminal-products .product-card {
  grid-template-columns: 1.35rem 3.7rem minmax(0, 1fr) 4.25rem;
  border-bottom: 1px solid var(--terminal-border);
  gap: 0.85rem;
  padding: 0.82rem 0;
}

.terminal-products .product-icon {
  width: 3.7rem;
  height: 3.7rem;
  flex-basis: 3.7rem;
  border-radius: 0.25rem;
  filter: saturate(0.9);
}

.terminal-products .product-mode {
  display: none;
}

.terminal-products .product-meta {
  margin-bottom: 0.22rem;
  text-transform: none;
}

.terminal-products .product-status {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--terminal-dim);
  gap: 0.36rem;
  opacity: 1;
}

.terminal-products .product-status::before {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.terminal-products .product-name {
  color: var(--terminal-bright);
  font-family: var(--mono);
  font-size: clamp(1rem, 2.1vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.08em;
}

.terminal-products .product-description,
.terminal-products .product-platforms {
  color: var(--terminal-dim);
}

.terminal-products .product-description {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.terminal-products .product-platform-rail {
  min-width: 4.25rem;
  max-width: 4.25rem;
  color: var(--terminal-dim);
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.terminal-products .product-action {
  display: inline-grid;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  overflow: hidden;
  color: var(--terminal-blue);
  font-size: 0;
}

.terminal-products .product-action::before {
  font-size: 0.78rem;
  line-height: 1;
}

.terminal-products .product-action-url::before {
  content: "↗";
}

.terminal-products .product-action-release::before {
  content: "↓";
}

.terminal-products .product-action-source::before {
  content: "git";
  font-size: 0.5rem;
}

.terminal-products .product-action-community::before {
  content: "#";
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 3.2rem;
  border-top: 1px solid var(--terminal-border);
  padding: 0.7rem 1rem;
  color: var(--terminal-dim);
  font-size: 0.62rem;
}

.terminal-footer .variant-socials {
  color: var(--terminal-text);
}

.terminal-footer .social-link {
  width: 1.35rem;
  height: 1.35rem;
  border-color: var(--terminal-border);
}

/* 03 — Brutalist Index: a poster-like red field, hard rules and giant numerals. */
.variant-brutalist {
  --accent: #ff4a34;
  --selection: #fff8e9;
  background: #f5efe3;
  color: #111;
}

.brutalist-header {
  position: absolute;
  inset: 1rem 1.25rem auto;
  color: #fff8e9;
}

.brutalist-header .variant-notation {
  margin-left: auto;
  margin-right: 1rem;
  color: #111;
  white-space: nowrap;
}

.brutalist-header .variant-language {
  border-color: #111;
  color: #111;
}

.brutalist-header .style-switch {
  border-color: #111;
  color: #111;
}

.brutalist-layout {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.brutalist-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 7rem) clamp(1.25rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  background: #ff4a34;
  color: #fff8e9;
}

.brutalist-intro::after {
  position: absolute;
  top: 11%;
  right: -18%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 248, 233, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(255, 248, 233, 0.06), 0 0 0 7rem rgba(255, 248, 233, 0.05);
  content: "";
}

.brutalist-stamp {
  position: absolute;
  top: 5.3rem;
  left: 1.25rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
}

.brutalist-intro .variant-title {
  position: relative;
  z-index: 1;
  max-width: none;
  font-family: var(--sans);
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 0.78;
  text-transform: uppercase;
  white-space: nowrap;
}

.brutalist-intro .variant-title em {
  color: #111;
  font-style: normal;
}

.brutalist-hero {
  position: absolute;
  z-index: 1;
  top: 17%;
  right: 11%;
  width: 42%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0.45rem solid #111;
  box-shadow: 0.8rem 0.8rem 0 #111;
  transform: rotate(4deg);
}

.brutalist-hero .variant-hero {
  filter: saturate(0.5) contrast(1.25);
}

.brutalist-intro .variant-note {
  position: relative;
  z-index: 1;
  max-width: 18rem;
  margin-top: 1.1rem;
  color: rgba(255, 248, 233, 0.82);
}

.brutalist-intro .variant-socials {
  position: relative;
  z-index: 1;
  justify-content: start;
  margin-top: 1.4rem;
  color: #111;
}

.brutalist-intro .social-link {
  border-color: #111;
}

.brutalist-products {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 4.5rem) clamp(1rem, 2vw, 2rem);
}

.brutalist-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0.2rem solid #111;
  padding-bottom: 1rem;
}

.brutalist-products-head .variant-title {
  font-family: var(--sans);
  font-size: clamp(3rem, 7vw, 7.8rem);
  font-weight: 900;
  letter-spacing: -0.13em;
  text-transform: uppercase;
}

.brutalist-products-head .variant-kicker,
.brutalist-count {
  color: #ff4a34;
  font-weight: 800;
}

.brutalist-count {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.brutalist-products [data-products] {
  padding-top: 0.2rem;
}

.brutalist-products .product-card {
  grid-template-columns: 2rem 3.5rem minmax(0, 1fr) minmax(3.75rem, 5rem);
  border-bottom: 0.14rem solid #111;
}

.brutalist-products .product-icon {
  border-radius: 0;
  border: 0.12rem solid #111;
}

.brutalist-products .product-name {
  font-family: var(--sans);
  font-size: clamp(1.45rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.11em;
}

.brutalist-products .product-mode,
.brutalist-products .product-status {
  border-radius: 0;
  border-width: 0.11rem;
  font-weight: 800;
}

.brutalist-products .product-action {
  border: 0.11rem solid #111;
  padding: 0.18rem 0.35rem;
  font-weight: 800;
}

/* 04 — Soft Orbit: a quiet blue field with circular image geometry and glass-like cards. */
.variant-orbit {
  --accent: #ff8e6c;
  --selection: #102738;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.9), transparent 25%),
    radial-gradient(circle at 88% 80%, rgba(255, 183, 154, 0.45), transparent 28%),
    #dbe5ee;
  color: #102738;
}

.orbit-header {
  position: absolute;
  inset: clamp(1rem, 2.8vw, 2.5rem) clamp(1rem, 4vw, 4.5rem) auto;
}

.orbit-header .variant-notation {
  color: #ff7654;
}

.orbit-header .variant-language {
  border-color: rgba(16, 39, 56, 0.46);
}

.orbit-layout {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.orbit-identity {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 8vw, 7rem) clamp(1rem, 4vw, 4.5rem) clamp(1rem, 2vw, 2rem);
}

.orbit-identity::before,
.orbit-identity::after {
  position: absolute;
  top: 50%;
  left: 42%;
  width: min(28vw, 23rem);
  aspect-ratio: 1;
  border: 1px solid rgba(16, 39, 56, 0.17);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.orbit-identity::after {
  width: min(19vw, 16rem);
  border-color: rgba(255, 118, 84, 0.34);
}

.orbit-image {
  position: relative;
  z-index: 1;
  width: min(25vw, 20rem);
  aspect-ratio: 1;
  margin: 0 auto clamp(1.4rem, 3vw, 2.8rem);
  overflow: hidden;
  border: 0.7rem solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 1.5rem 3rem rgba(16, 39, 56, 0.14);
}

.orbit-image .variant-hero {
  object-fit: contain;
  filter: saturate(0.72) contrast(1.02);
}

.orbit-identity .variant-kicker {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ff7654;
}

.orbit-identity .variant-title {
  position: relative;
  z-index: 1;
  margin-top: 0.55rem;
  font-size: clamp(3rem, 6vw, 6.8rem);
  text-align: center;
  white-space: nowrap;
}

.orbit-identity .variant-note {
  position: relative;
  z-index: 1;
  max-width: 19rem;
  margin: 0.8rem auto 0;
  text-align: center;
}

.orbit-identity .variant-socials {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 1.5rem;
}

.orbit-products {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  margin: clamp(4.35rem, 7vw, 6rem) clamp(1rem, 4vw, 4.5rem) clamp(1rem, 2vw, 2rem) 0;
  border: 1px solid rgba(16, 39, 56, 0.18);
  border-radius: 2rem 0 0 2rem;
  background: rgba(248, 251, 255, 0.44);
  box-shadow: -1rem 1.5rem 3rem rgba(16, 39, 56, 0.07);
  backdrop-filter: blur(14px);
}

.orbit-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2.8rem) 1rem;
  border-bottom: 1px solid rgba(16, 39, 56, 0.16);
}

.orbit-products-head .variant-title {
  margin-top: 0.55rem;
  font-size: clamp(2.8rem, 5.7vw, 6.3rem);
}

.orbit-products-head .variant-title sup {
  color: #ff7654;
  font-family: var(--mono);
  font-size: 0.25em;
  vertical-align: top;
}

.orbit-count {
  color: #ff7654;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.orbit-products [data-products] {
  padding: 0.65rem clamp(1rem, 3vw, 2.8rem);
}

.orbit-products .product-card {
  grid-template-columns: 1.4rem 3.5rem minmax(0, 1fr) minmax(3.75rem, 5rem);
  border-bottom: 1px solid rgba(16, 39, 56, 0.14);
}

.orbit-products .product-icon {
  border: 0.35rem solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 0.45rem 1rem rgba(16, 39, 56, 0.1);
}

.orbit-products .product-name {
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
}

.orbit-products .product-action {
  color: #ff7654;
}

/* 05 — Kinetic Poster: a warm, offset composition with a strong diagonal rhythm. */
.variant-kinetic {
  --accent: #f4c84f;
  --selection: #1d1b18;
  background: #e7dfd1;
  color: #1d1b18;
}

.kinetic-layout {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(300px, 0.83fr) minmax(0, 1.17fr);
}

.kinetic-poster {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 3rem);
  background: #1d1b18;
  color: #f4eee3;
}

.kinetic-poster::before {
  position: absolute;
  right: -25%;
  bottom: 8%;
  width: 80%;
  height: 1px;
  background: #f4c84f;
  box-shadow: 0 -4rem 0 rgba(244, 200, 79, 0.28), 0 4rem 0 rgba(244, 200, 79, 0.28);
  content: "";
  transform: rotate(-28deg);
}

.kinetic-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.kinetic-global-tools {
  position: absolute;
  top: clamp(1rem, 2.8vw, 2rem);
  right: clamp(1rem, 4vw, 4.5rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.kinetic-topline .variant-brand {
  color: #f4c84f;
}

.kinetic-topline .variant-notation {
  max-width: 7rem;
  color: rgba(244, 238, 227, 0.6);
  text-align: right;
}

.kinetic-global-tools .variant-language {
  border-color: rgba(29, 27, 24, 0.55);
  color: #1d1b18;
}

.kinetic-number {
  position: absolute;
  top: 7%;
  left: -0.08em;
  color: rgba(244, 238, 227, 0.08);
  font-family: var(--serif);
  font-size: min(32vw, 28rem);
  letter-spacing: -0.18em;
  line-height: 0.7;
}

.kinetic-image {
  position: absolute;
  top: 26%;
  right: 12%;
  width: 48%;
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 0.35rem solid #f4eee3;
  box-shadow: 0.9rem 0.9rem 0 #f4c84f;
  transform: rotate(-7deg);
}

.kinetic-image .variant-hero {
  filter: saturate(0.6) contrast(1.08);
}

.kinetic-poster-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.kinetic-poster-copy .variant-kicker {
  color: #f4c84f;
}

.kinetic-poster-copy .variant-title {
  max-width: none;
  margin-top: 0.55rem;
  font-size: clamp(3.2rem, 7vw, 8rem);
  text-transform: lowercase;
  white-space: nowrap;
}

.kinetic-poster-copy .variant-title span {
  color: #f4c84f;
}

.kinetic-poster-copy .variant-note {
  max-width: 18rem;
  margin-top: 0.8rem;
  color: rgba(244, 238, 227, 0.64);
}

.kinetic-poster .variant-socials {
  position: relative;
  z-index: 1;
  justify-content: start;
  margin-top: 1.3rem;
  color: #f4c84f;
}

.kinetic-content {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(1rem, 3vw, 3rem) clamp(1rem, 4vw, 4.5rem) clamp(1rem, 2vw, 2rem);
}

.kinetic-content-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0.12rem solid #1d1b18;
  padding: 0.45rem 0 1rem;
}

.kinetic-content-header .variant-language {
  border-color: #1d1b18;
}

.kinetic-content-header .variant-title {
  margin-top: 0.55rem;
  font-size: clamp(3rem, 6.8vw, 7.2rem);
}

.kinetic-count {
  color: #bd6c42;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.kinetic-content [data-products] {
  padding-top: 0.45rem;
}

.kinetic-content .product-card {
  grid-template-columns: 2rem 3.5rem minmax(0, 1fr) minmax(3.75rem, 5rem);
  border-bottom: 1px solid rgba(29, 27, 24, 0.24);
}

.kinetic-content .product-card:nth-child(even) {
  transform: translateX(1.2rem);
}

.kinetic-content .product-icon {
  border-radius: 0.35rem;
  box-shadow: 0.35rem 0.35rem 0 rgba(189, 108, 66, 0.42);
}

.kinetic-content .product-name {
  font-size: clamp(1.45rem, 3vw, 2.8rem);
}

.kinetic-content .product-action {
  color: #bd6c42;
  font-weight: 700;
}

@media (max-width: 760px) {
  [data-variant-root] {
    height: 100svh;
  }

  .variant-header {
    gap: 0.4rem;
  }

  .variant-header-actions {
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .variant-header .variant-notation {
    flex: 1 1 auto;
  }

  .product-card {
    grid-template-columns: 1.2rem 3.15rem minmax(0, 1fr) 3.2rem;
    gap: 0.55rem;
    padding: 0.7rem 0;
  }

  .product-icon,
  .product-icon-fallback {
    width: 3.15rem;
    height: 3.15rem;
    flex-basis: 3.15rem;
  }

  .product-name {
    font-size: 1.35rem;
  }

  .product-description {
    font-size: 0.64rem;
  }

  .product-platforms {
    min-width: 1rem;
    max-width: 3rem;
    margin: 0;
    font-size: 0.52rem;
  }

  .product-platforms .platform-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .product-platforms .platform-chip {
    width: 1rem;
    height: 1rem;
    justify-content: center;
  }

  .product-platforms .platform-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .product-platform-rail {
    grid-column: 4;
    min-width: 3.2rem;
    max-width: 3.2rem;
    gap: 0.22rem;
  }

  .variant-header-actions,
  .kinetic-topline-actions {
    gap: 0.4rem;
  }

  .product-actions {
    font-size: 0.52rem;
  }

  .editorial-header,
  .brutalist-header,
  .orbit-header {
    inset: 0.75rem 1rem auto;
  }

  .editorial-layout,
  .brutalist-layout,
  .orbit-layout,
  .kinetic-layout,
  .terminal-body {
    grid-template-columns: 1fr;
    grid-template-rows: 39% 61%;
  }

  .editorial-identity,
  .brutalist-intro,
  .orbit-identity,
  .kinetic-poster,
  .terminal-intro {
    min-height: 0;
    padding: 4rem 1rem 0.75rem;
  }

  .editorial-image {
    flex: 1;
  }

  .editorial-signature {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .editorial-signature .variant-title {
    margin-top: 0.2rem;
    font-size: clamp(2rem, 9vw, 3.7rem);
  }

  .editorial-signature .variant-note {
    display: none;
  }

  .editorial-identity .variant-socials {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    border-top: 0;
    padding-top: 0;
  }

  .editorial-index,
  .brutalist-products,
  .orbit-products,
  .kinetic-content,
  .terminal-products {
    padding: 0.75rem 1rem 0.65rem;
  }

  .editorial-index-head,
  .brutalist-products-head,
  .orbit-products-head,
  .kinetic-content-header,
  .terminal-products-head {
    padding-bottom: 0.55rem;
  }

  .editorial-index-head .variant-title,
  .brutalist-products-head .variant-title,
  .orbit-products-head .variant-title,
  .kinetic-content-header .variant-title,
  .terminal-products-head .variant-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .brutalist-intro {
    justify-content: end;
    padding-top: 4rem;
  }

  .brutalist-intro .variant-title {
    font-size: clamp(2.4rem, 12vw, 4.7rem);
    white-space: nowrap;
  }

  .brutalist-hero {
    top: 21%;
    right: 7%;
    width: 28%;
    border-width: 0.22rem;
    box-shadow: 0.45rem 0.45rem 0 #111;
  }

  .brutalist-intro .variant-note {
    display: none;
  }

  .brutalist-intro .variant-socials {
    margin-top: 0.55rem;
  }

  .orbit-layout {
    grid-template-rows: 40% 60%;
  }

  .orbit-identity {
    display: grid;
    grid-template-columns: 6.4rem minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 0.65rem 0.8rem;
    padding-top: 4rem;
  }

  .orbit-identity::before,
  .orbit-identity::after {
    top: 52%;
    left: 18%;
    width: 9rem;
  }

  .orbit-identity::after {
    width: 6rem;
  }

  .orbit-image {
    grid-row: 1 / span 2;
    width: 6.3rem;
    margin: 0;
    border-width: 0.3rem;
  }

  .orbit-identity .variant-kicker,
  .orbit-identity .variant-title,
  .orbit-identity .variant-note {
    text-align: left;
  }

  .orbit-identity .variant-title {
    margin-top: 0.2rem;
    font-size: clamp(2rem, 10vw, 3.7rem);
  }

  .orbit-identity .variant-note {
    display: none;
  }

  .orbit-identity .variant-socials {
    grid-column: 2;
    justify-content: start;
    margin-top: 0.35rem;
  }

  .orbit-products {
    margin: 0;
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .kinetic-poster {
    padding-top: 3.8rem;
  }

  .kinetic-global-tools {
    color: #f4eee3;
  }

  .kinetic-global-tools .variant-language {
    border-color: rgba(244, 238, 227, 0.55);
    color: #f4eee3;
  }

  .kinetic-number {
    top: 3%;
    font-size: 34vw;
  }

  .kinetic-image {
    top: 18%;
    right: 7%;
    width: 25%;
    border-width: 0.18rem;
    box-shadow: 0.4rem 0.4rem 0 #f4c84f;
  }

  .kinetic-poster-copy .variant-title {
    font-size: clamp(2.4rem, 12vw, 4.8rem);
    white-space: nowrap;
  }

  .kinetic-poster-copy .variant-note {
    display: none;
  }

  .kinetic-poster .variant-socials {
    margin-top: 0.55rem;
  }

  .kinetic-content .product-card:nth-child(even) {
    transform: translateX(0.5rem);
  }

  .terminal-window {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .terminal-bar {
    padding: 0.55rem 0.7rem;
  }

  .terminal-intro {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--terminal-border);
    padding: 0.7rem 0.9rem 0.55rem;
  }

  .terminal-hero-wrap {
    width: min(100%, 18vh, 9rem);
    align-self: center;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .terminal-intro > .terminal-signature {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    text-align: center;
  }

  .terminal-intro .variant-title {
    align-self: center;
    font-size: clamp(1.8rem, 8.4vw, 3.3rem);
    letter-spacing: -0.14em;
    white-space: nowrap;
  }

  .terminal-products .product-card {
    grid-template-columns: 1rem 3rem minmax(0, 1fr) 3.2rem;
    gap: 0.48rem;
    padding: 0.3rem 0;
  }

  .terminal-products .product-icon {
    width: 3rem;
    height: 3rem;
    flex-basis: 3rem;
  }

  .terminal-products .product-platform-rail {
    min-width: 3.2rem;
    max-width: 3.2rem;
    gap: 0.16rem;
  }

  .terminal-products [data-products] {
    padding-top: 0.5rem;
  }

  .terminal-footer {
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 340px) {
  .editorial-header .variant-notation {
    max-width: 6.2rem;
  }

  .brutalist-header .variant-notation {
    margin-right: 0.35rem;
  }

  .terminal-bar {
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
  }

  .terminal-bar-left,
  .terminal-bar-right {
    min-width: 0;
    gap: 0.3rem;
  }

  .terminal-bar-left {
    flex: 1 1 auto;
  }

  .terminal-bar-left > span:last-child {
    font-size: 0.52rem;
  }

  .terminal-bar-right {
    flex: 0 0 auto;
  }

  .terminal-bar-right .variant-notation {
    font-size: 0.5rem;
    letter-spacing: 0.05em;
  }

  .terminal-bar-right .variant-language {
    gap: 0.25rem;
    padding: 0.24rem 0.38rem;
    font-size: 0.52rem;
  }
}

/* Keep the complete registry usable on short phones without removing any content. */
@media (max-width: 760px) and (max-height: 650px) {
  .editorial-layout,
  .brutalist-layout,
  .kinetic-layout {
    grid-template-rows: 34% 66%;
  }

  .orbit-layout {
    grid-template-rows: 36% 64%;
  }

  .editorial-identity,
  .brutalist-intro,
  .orbit-identity,
  .kinetic-poster {
    min-height: 0;
    padding-top: 3.25rem;
    padding-bottom: 0.45rem;
  }

  .editorial-index,
  .brutalist-products,
  .orbit-products,
  .kinetic-content {
    padding: 0.55rem 0.7rem 0.45rem;
  }

  .editorial-index-head,
  .brutalist-products-head,
  .orbit-products-head,
  .kinetic-content-header {
    padding-bottom: 0.4rem;
  }

  .editorial-index-head .variant-title,
  .brutalist-products-head .variant-title,
  .orbit-products-head .variant-title,
  .kinetic-content-header .variant-title {
    font-size: clamp(1.8rem, 8.6vw, 2.7rem);
  }

  .product-card {
    grid-template-columns: 1rem 2.55rem minmax(0, 1fr) 3rem;
    gap: 0.4rem;
    padding: 0.38rem 0;
  }

  .editorial-index .product-card,
  .brutalist-products .product-card,
  .orbit-products .product-card,
  .kinetic-content .product-card,
  .terminal-products .product-card {
    grid-template-columns: 1rem 2.55rem minmax(0, 1fr) 3rem;
    gap: 0.4rem;
  }

  .product-icon,
  .product-icon-fallback {
    width: 2.55rem;
    height: 2.55rem;
    flex-basis: 2.55rem;
  }

  .editorial-index .product-icon,
  .brutalist-products .product-icon,
  .orbit-products .product-icon,
  .kinetic-content .product-icon,
  .terminal-products .product-icon {
    width: 2.55rem;
    height: 2.55rem;
    flex-basis: 2.55rem;
  }

  .product-meta {
    gap: 0.3rem;
    margin-bottom: 0.1rem;
    font-size: 0.48rem;
  }

  .product-mode,
  .product-status {
    min-height: 1rem;
    padding: 0.08rem 0.28rem;
  }

  .product-heading {
    gap: 0.4rem;
  }

  .product-name {
    font-size: 1.1rem;
    line-height: 0.9;
  }

  .product-description {
    margin-top: 0.1rem;
    font-size: 0.56rem;
    line-height: 1.2;
  }

  .product-actions {
    gap: 0.25rem;
    font-size: 0.46rem;
  }

  .product-platform-rail {
    min-width: 3rem;
    max-width: 3rem;
    gap: 0.14rem;
  }

  .product-platform-rail .platform-chip {
    width: 0.85rem;
    height: 0.85rem;
    flex-basis: 0.85rem;
  }

  .product-platforms .platform-icon {
    width: 0.78rem;
    height: 0.78rem;
  }

  .brutalist-intro {
    min-height: 0;
  }

  .orbit-identity {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.45rem 0.65rem;
  }

  .orbit-image {
    width: 5.4rem;
    border-width: 0.24rem;
  }

  .orbit-identity .variant-title {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .terminal-body {
    grid-template-rows: 33% 67%;
  }

  .terminal-intro {
    gap: 0.35rem;
    padding: 0.45rem 0.55rem 0.35rem;
  }

  .terminal-hero-wrap {
    width: min(100%, 12vh, 6rem);
    gap: 0.45rem;
  }

  .terminal-intro .variant-title {
    font-size: clamp(1.7rem, 7.8vw, 2.8rem);
  }

  .terminal-products {
    padding: 0.45rem 0.65rem 0.35rem;
  }

  .terminal-products-head {
    padding-bottom: 0.35rem;
  }

  .terminal-products-head .variant-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .terminal-products [data-products] {
    padding-top: 0.3rem;
  }

  .terminal-products .product-card {
    grid-template-columns: 0.9rem 2.5rem minmax(0, 1fr) 2.8rem;
    gap: 0.36rem;
    padding: 0.18rem 0;
  }

  .terminal-products .product-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }

  .terminal-products .product-platform-rail {
    min-width: 2.8rem;
    max-width: 2.8rem;
    gap: 0.1rem;
  }

  .terminal-footer {
    padding: 0.35rem 0.55rem;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .variant-terminal {
    padding: 0.6rem;
  }

  .terminal-bar {
    padding: 0.55rem 0.8rem;
  }

  .terminal-body {
    grid-template-columns: 1fr;
    grid-template-rows: 34% 66%;
  }

  .terminal-intro {
    grid-template-columns: 7rem minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.9rem;
    border-right: 0;
    border-bottom: 1px solid var(--terminal-border);
    padding: 0.8rem 1rem;
  }

  .terminal-hero-wrap {
    width: min(100%, 7rem);
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .terminal-intro > .terminal-signature {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .terminal-intro .variant-title {
    font-size: clamp(2.2rem, 10cqi, 4.8rem);
  }

  .terminal-products {
    padding: 0.65rem 1rem 0.45rem;
  }

  .terminal-products-head {
    padding-bottom: 0.5rem;
  }

  .terminal-products-head .variant-title {
    font-size: clamp(2.1rem, 6.2vw, 4.2rem);
  }

  .terminal-products [data-products] {
    padding-top: 0.45rem;
  }

  .terminal-products .product-card {
    grid-template-columns: 1.2rem 3.35rem minmax(0, 1fr) 3.5rem;
    gap: 0.65rem;
    padding: 0.32rem 0;
  }

  .terminal-products .product-icon {
    width: 3.35rem;
    height: 3.35rem;
    flex-basis: 3.35rem;
  }

  .terminal-products .product-platform-rail {
    min-width: 3.5rem;
    max-width: 3.5rem;
    flex-direction: row;
    gap: 0.22rem;
  }

  .terminal-footer {
    padding: 0.5rem 0.8rem;
  }
}

@media (min-width: 761px) and (max-width: 900px) and (max-height: 650px) {
  .terminal-body {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .terminal-intro {
    grid-template-columns: 6rem minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.8rem;
    border-right: 1px solid var(--terminal-border);
    border-bottom: 0;
    padding: 0.65rem 0.8rem;
  }

  .terminal-hero-wrap {
    width: min(100%, 6rem);
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .terminal-intro > .terminal-signature {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    text-align: left;
  }

  .terminal-intro .variant-title {
    font-size: clamp(2rem, 5.8vw, 4rem);
  }

  .terminal-products {
    padding: 0.35rem 0.7rem 0.25rem;
  }

  .terminal-products-head {
    padding-bottom: 0.3rem;
  }

  .terminal-products-head .variant-title {
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  }

  .terminal-products [data-products] {
    padding-top: 0.2rem;
  }

  .terminal-products .product-card {
    grid-template-columns: 1rem 2.55rem minmax(0, 1fr) 3.2rem;
    gap: 0.5rem;
    padding: 0.2rem 0;
  }

  .terminal-products .product-icon {
    width: 2.55rem;
    height: 2.55rem;
    flex-basis: 2.55rem;
  }

  .terminal-products .product-platform-rail {
    min-width: 3.2rem;
    max-width: 3.2rem;
    gap: 0.16rem;
  }

  .terminal-hero-wrap {
    width: min(100%, 7rem);
  }

  .orbit-identity {
    display: grid;
    min-height: 0;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 0.6rem 0.8rem;
    padding: 4rem 1rem 0.75rem;
  }

  .orbit-image {
    grid-row: 1 / span 2;
    width: 7rem;
    margin: 0;
    border-width: 0.35rem;
  }

  .orbit-identity .variant-kicker,
  .orbit-identity .variant-title,
  .orbit-identity .variant-note {
    text-align: left;
  }

  .orbit-identity .variant-title {
    font-size: clamp(2rem, 5vw, 4.2rem);
  }

  .orbit-identity .variant-note {
    max-width: none;
    margin: 0.4rem 0 0;
  }

  .orbit-identity .variant-socials {
    grid-column: 2;
    justify-content: start;
    margin-top: 0.4rem;
  }

  .orbit-products .product-card {
    grid-template-columns: 1rem 2.8rem minmax(0, 1fr) 3.2rem;
    gap: 0.5rem;
    padding: 0.35rem 0;
  }

  .orbit-products .product-icon {
    width: 2.8rem;
    height: 2.8rem;
    flex-basis: 2.8rem;
  }

  .editorial-index,
  .brutalist-products,
  .orbit-products,
  .kinetic-content {
    padding: 0.45rem 0.7rem 0.3rem;
  }

  .orbit-products {
    margin: 0;
    border-radius: 1.4rem 0 0 1.4rem;
  }

  .editorial-index-head,
  .brutalist-products-head,
  .orbit-products-head,
  .kinetic-content-header {
    padding-bottom: 0.35rem;
  }

  .editorial-index-head .variant-title,
  .brutalist-products-head .variant-title,
  .orbit-products-head .variant-title,
  .kinetic-content-header .variant-title {
    font-size: clamp(1.8rem, 5.4vw, 3.4rem);
  }

  .editorial-index [data-products],
  .brutalist-products [data-products],
  .orbit-products [data-products],
  .kinetic-content [data-products] {
    padding: 0.2rem 0 0;
  }

  .editorial-index .product-card,
  .brutalist-products .product-card,
  .orbit-products .product-card,
  .kinetic-content .product-card {
    grid-template-columns: 1rem 2.45rem minmax(0, 1fr) 3rem;
    gap: 0.4rem;
    padding: 0.2rem 0;
  }

  .editorial-index .product-icon,
  .brutalist-products .product-icon,
  .orbit-products .product-icon,
  .kinetic-content .product-icon {
    width: 2.45rem;
    height: 2.45rem;
    flex-basis: 2.45rem;
  }

  .product-meta {
    gap: 0.3rem;
    margin-bottom: 0.1rem;
    font-size: 0.48rem;
  }

  .product-mode,
  .product-status {
    min-height: 1rem;
    padding: 0.08rem 0.28rem;
  }

  .product-heading {
    gap: 0.4rem;
  }

  .product-name {
    font-size: 1.1rem;
    line-height: 0.9;
  }

  .product-description {
    margin-top: 0.1rem;
    font-size: 0.56rem;
    line-height: 1.2;
  }

  .product-actions {
    gap: 0.25rem;
    font-size: 0.46rem;
  }

  .product-platform-rail {
    min-width: 3rem;
    max-width: 3rem;
    gap: 0.14rem;
  }

  .product-platform-rail .platform-chip {
    width: 0.85rem;
    height: 0.85rem;
    flex-basis: 0.85rem;
  }

  .product-platforms .platform-icon {
    width: 0.78rem;
    height: 0.78rem;
  }
}

/* 06 — Dark Build: a centered, low-noise launch surface inspired by modern AI build tools. */
.variant-grok {
  --grok-bg: #131211;
  --grok-surface: #181716;
  --grok-surface-strong: #0f0f0f;
  --grok-text: #f6f5f2;
  --grok-muted: #8a8884;
  --grok-rule: rgba(255, 255, 255, 0.12);
  --grok-accent: #85a7ff;
  --grok-product-1: #85a7ff;
  --grok-product-2: #b6ce79;
  --grok-product-3: #c7a0ff;
  --grok-product-4: #e59a72;
  --accent: var(--grok-accent);
  --selection: var(--grok-bg);
  background: var(--grok-bg);
  color: var(--grok-text);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

.grok-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.grok-header,
.grok-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
}

.grok-header {
  border-bottom: 1px solid var(--grok-rule);
}

.grok-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.grok-header .variant-brand {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.grok-zero,
.grok-footer-copy {
  color: var(--grok-muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.grok-header .style-switch {
  width: 1.9rem;
  height: 1.9rem;
  border-color: var(--grok-rule);
  color: rgba(246, 245, 242, 0.72);
}

.grok-header .variant-language {
  padding: 0;
  border: 0;
  color: rgba(246, 245, 242, 0.72);
}

.grok-center {
  display: grid;
  width: min(78rem, 100%);
  min-height: 0;
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(1.1rem, 2.6vh, 1.8rem);
  margin: 0 auto;
  padding: 0.7rem clamp(1rem, 3vw, 2.5rem) clamp(0.8rem, 2vh, 1.35rem);
}

.grok-build {
  display: flex;
  width: min(42rem, 100%);
  min-height: 0;
  align-self: center;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.grok-orb {
  width: clamp(3.2rem, 7vh, 4.4rem);
  height: clamp(3.2rem, 7vh, 4.4rem);
  margin-bottom: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--grok-rule);
  border-radius: 50%;
  background: var(--grok-surface);
}

.grok-orb .variant-hero {
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.25);
}

.grok-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  padding: 0 0 0 0.55rem;
  border-left: 1px solid var(--grok-product-4);
  color: var(--grok-muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.grok-badge-dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--grok-product-4);
}

.grok-build .variant-title {
  font-family: var(--sans);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 450;
  letter-spacing: -0.07em;
  line-height: 0.92;
  white-space: nowrap;
}

.grok-build .variant-note {
  margin-top: 1rem;
  color: var(--grok-muted);
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  letter-spacing: -0.02em;
}

.grok-command {
  display: grid;
  width: min(38rem, 100%);
  min-height: 3.5rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.35rem;
  padding: 0 1rem 0 0.85rem;
  border: 1px solid var(--grok-rule);
  border-left: 2px solid var(--grok-accent);
  border-radius: 0.25rem;
  background: var(--grok-surface-strong);
  color: var(--grok-text);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: left;
}

.grok-command-label {
  padding-right: 0.85rem;
  border-right: 1px solid var(--grok-rule);
  color: var(--grok-accent);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.grok-command-line {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grok-command-count {
  color: var(--grok-accent);
  font-size: 0.6rem;
}

.grok-products {
  min-height: 0;
}

.grok-products-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.grok-products [data-products] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
}

.grok-products .product-card {
  --product-accent: var(--grok-product-1);
  display: grid;
  min-height: 6.6rem;
  grid-template-columns: 2.55rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.4rem 0.7rem;
  padding: 0.86rem 0.9rem;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--product-accent);
  border-right: 1px solid var(--grok-rule);
  background: transparent;
  animation: none;
  animation-delay: 0s;
}

.grok-products .product-card:nth-child(2) {
  --product-accent: var(--grok-product-2);
}

.grok-products .product-card:nth-child(3) {
  --product-accent: var(--grok-product-3);
}

.grok-products .product-card:nth-child(4) {
  --product-accent: var(--grok-product-4);
}

.grok-products .product-card:last-child {
  border-right: 0;
}

.grok-products .product-card:hover {
  background: var(--grok-surface);
}

.grok-products .product-index {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  padding: 0;
  color: rgba(246, 245, 242, 0.28);
}

.grok-products .product-icon {
  width: 2.55rem;
  height: 2.55rem;
  grid-column: 1;
  grid-row: 1 / span 2;
  border-radius: 0.62rem;
  filter: saturate(0.82);
}

.grok-products .product-content {
  grid-column: 2;
  grid-row: 1;
}

.grok-products .product-meta {
  margin: 0 1.3rem 0.18rem 0;
  font-size: 0.48rem;
  letter-spacing: 0;
  text-transform: none;
}

.grok-products .product-mode {
  display: none;
}

.grok-products .product-status {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--grok-muted);
  gap: 0.32rem;
}

.grok-products .product-status::before {
  width: 0.3rem;
  height: 0.3rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--product-accent);
  content: "";
}

.grok-products .product-name {
  color: rgba(246, 245, 242, 0.92);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 580;
  letter-spacing: -0.035em;
  line-height: 1;
}

.grok-products .product-description {
  margin-top: 0.28rem;
  color: rgba(246, 245, 242, 0.38);
  font-size: 0.62rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.grok-products .product-actions {
  gap: 0.36rem;
  color: var(--product-accent);
  font-size: 0.48rem;
}

.grok-products .product-platform-rail {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  min-width: 0;
  max-width: none;
  gap: 0.25rem;
  color: rgba(246, 245, 242, 0.34);
}

.grok-products .product-platform-rail .platform-chip {
  width: 0.8rem;
  height: 0.8rem;
  flex-basis: 0.8rem;
}

.grok-products .product-platforms .platform-icon {
  width: 0.72rem;
  height: 0.72rem;
}

.grok-footer {
  min-height: 3.4rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-top: 1px solid var(--grok-rule);
}

.grok-footer .variant-socials {
  color: rgba(246, 245, 242, 0.58);
}

.grok-footer .social-link {
  width: 1.55rem;
  height: 1.55rem;
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .grok-header,
  .grok-footer {
    padding: 0.75rem 0.85rem;
  }

  .grok-zero,
  .grok-footer-copy {
    display: none;
  }

  .grok-center {
    grid-template-rows: auto auto;
    align-content: center;
    gap: 0.85rem;
    padding: 0.35rem 0.72rem 0.65rem;
  }

  .grok-orb {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.55rem;
  }

  .grok-badge {
    margin-bottom: 0.65rem;
    padding: 0.24rem 0.5rem;
    font-size: 0.5rem;
  }

  .grok-build .variant-title {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .grok-build .variant-note {
    margin-top: 0.65rem;
    font-size: 0.72rem;
  }

  .grok-command {
    min-height: 2.7rem;
    margin-top: 0.85rem;
    font-size: 0.62rem;
  }

  .grok-products [data-products] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .grok-products .product-card {
    min-height: 5.5rem;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.3rem 0.5rem;
    padding: 0.62rem;
  }

  .grok-products .product-card:nth-child(2n) {
    border-right: 0;
  }

  .grok-products .product-card:nth-child(3) {
    border-right: 1px solid var(--grok-rule);
  }

  .grok-products .product-index {
    top: 0.48rem;
    right: 0.52rem;
    font-size: 0.45rem;
  }

  .grok-products .product-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.5rem;
  }

  .grok-products .product-meta {
    margin-right: 1rem;
    font-size: 0.42rem;
  }

  .grok-products .product-name {
    font-size: 0.9rem;
  }

  .grok-products .product-description {
    margin-top: 0.2rem;
    font-size: 0.54rem;
  }

  .grok-products .product-actions {
    gap: 0.2rem;
    font-size: 0.4rem;
  }

  .grok-footer {
    min-height: 2.8rem;
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .grok-command {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding-left: 0.75rem;
  }

  .grok-command-label {
    display: none;
  }
}

@media (max-width: 760px) and (max-height: 650px) {
  .grok-orb {
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.35rem;
  }

  .grok-badge {
    margin-bottom: 0.4rem;
  }

  .grok-build .variant-title {
    font-size: 2rem;
  }

  .grok-build .variant-note {
    margin-top: 0.4rem;
  }

  .grok-command {
    min-height: 2.35rem;
    margin-top: 0.55rem;
  }

  .grok-products .product-card {
    min-height: 4.65rem;
    padding: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .variant-grok .product-card {
    animation: none;
    animation-delay: 0s;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .variant-grok .style-switch,
  .variant-grok .product-action,
  .variant-grok .social-link {
    animation: none;
    transition: none;
  }
}
