/* Page layouts — home, products, signal, system stack */

/* —— Home hero —— */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Deep void + faint architectural grid like the design frame */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 45%, rgba(196, 165, 116, 0.05), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(80, 70, 140, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.home-hero__grid {
  width: min(100% - var(--gutter) * 2, var(--content-wide));
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.home-hero__grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1000px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-6);
  }
}

.home-hero h1 {
  font-size: var(--text-hero);
  max-width: 12ch;
  margin: var(--space-4) 0 var(--space-5);
}

.home-hero .lead {
  margin-bottom: var(--space-6);
  max-width: 34rem;
}

.home-hero__core {
  position: relative;
  min-height: min(72vh, 640px);
  border-radius: 0;
  isolation: isolate;
  background: transparent;
  overflow: visible;
}

/* Atmospheric depth behind the core — no bottom under-pool (avoids cut-off line) */
.home-hero__core::before {
  content: "";
  position: absolute;
  inset: 8% 5% 18% 5%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(196, 165, 116, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 35% at 48% 50%, rgba(90, 80, 160, 0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}

.wm-core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 1;
  /* Soft edge so the clear-color rect melts into the hero void */
  mask-image: radial-gradient(ellipse 72% 78% at 50% 48%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 48%, #000 40%, transparent 78%);
}

.wm-core-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(196, 165, 116, 0.1), transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(20, 18, 30, 0.5), transparent 55%);
}

/* High-fidelity CSS fallback when WebGL is skipped */
.wm-core-fallback__structure {
  width: min(78%, 340px);
  aspect-ratio: 0.92;
  position: relative;
  filter: none;
}

.wm-core-fallback__mass {
  position: absolute;
  inset: 12% 18% 22%;
  border-radius: 42% 38% 36% 40%;
  background:
    radial-gradient(circle at 45% 40%, #2a2a34 0%, #0c0c10 55%, #060608 100%);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(196, 165, 116, 0.12);
  overflow: hidden;
}

.wm-core-fallback__mass::before,
.wm-core-fallback__mass::after {
  content: "";
  position: absolute;
  background: linear-gradient(145deg, #1a1a22, #0a0a0e);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.wm-core-fallback__mass::before {
  width: 28%;
  height: 22%;
  top: 18%;
  left: 14%;
  border-radius: 4px;
  transform: rotate(-8deg);
}

.wm-core-fallback__mass::after {
  width: 34%;
  height: 18%;
  bottom: 24%;
  right: 12%;
  border-radius: 3px;
  transform: rotate(6deg);
  border-color: rgba(196, 165, 116, 0.2);
}

.wm-core-fallback__chip {
  position: absolute;
  inset: 34% 32%;
  display: grid;
  place-items: center;
  border-radius: 10%;
  border: 1px solid rgba(196, 165, 116, 0.4);
  background:
    linear-gradient(160deg, rgba(30, 30, 40, 0.98), rgba(8, 8, 12, 0.98));
  box-shadow:
    0 0 50px rgba(196, 165, 116, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.16em;
  text-align: center;
  line-height: 1.25;
  z-index: 2;
  color: var(--text-primary);
}

.wm-core-fallback__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(196, 165, 116, 0.22);
  box-shadow: 0 0 20px rgba(196, 165, 116, 0.08);
}

.wm-core-fallback__ring--1 {
  width: 92%;
  height: 42%;
  top: 58%;
  border-color: rgba(196, 165, 116, 0.35);
}

.wm-core-fallback__ring--2 {
  width: 78%;
  height: 34%;
  top: 52%;
  border-color: rgba(196, 165, 116, 0.2);
  transform: rotate(-8deg);
}

.wm-core-fallback__ring--3 {
  width: 100%;
  height: 48%;
  top: 68%;
  border-color: rgba(196, 165, 116, 0.15);
}

.wm-core-fallback__pad {
  position: absolute;
  left: 50%;
  bottom: 2%;
  translate: -50% 0;
  width: 88%;
  height: 18%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(196, 165, 116, 0.18) 0%, transparent 65%),
    repeating-radial-gradient(
      ellipse at center,
      transparent 0,
      transparent 10px,
      rgba(196, 165, 116, 0.08) 10px,
      rgba(196, 165, 116, 0.08) 11px
    );
  border: 1px solid rgba(196, 165, 116, 0.2);
  filter: blur(0.2px);
}

.core-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  z-index: 2;
}

@media (min-width: 1000px) {
  .core-labels {
    display: block;
  }
}

/* Hide fallback chrome when WebGL is active */
[data-core-mode="webgl"] .wm-core-fallback {
  pointer-events: none;
}

.core-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 179, 168, 0.88);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.core-label__dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--copper);
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

/* Leader lines toward the core */
.core-label::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.35), transparent);
  top: 50%;
  width: 2.5rem;
  pointer-events: none;
  opacity: 0.7;
}

.core-label--ai { top: 10%; right: 2%; }
.core-label--ai .core-label__dot { background: var(--green); color: var(--green); }
.core-label--ai::after { right: 100%; margin-right: 0.4rem; background: linear-gradient(270deg, rgba(61, 207, 142, 0.35), transparent); }

.core-label--products { top: 30%; right: -2%; }
.core-label--products .core-label__dot { background: var(--amber); color: var(--amber); }
.core-label--products::after { right: 100%; margin-right: 0.4rem; background: linear-gradient(270deg, rgba(232, 165, 75, 0.35), transparent); }

.core-label--cloud { bottom: 32%; right: 0; }
.core-label--cloud .core-label__dot { background: var(--cyan); color: var(--cyan); }
.core-label--cloud::after { right: 100%; margin-right: 0.4rem; background: linear-gradient(270deg, rgba(78, 196, 217, 0.35), transparent); }

.core-label--open { bottom: 14%; left: 28%; }
.core-label--open .core-label__dot { background: var(--green); color: var(--green); }
.core-label--open::after { left: 100%; margin-left: 0.4rem; }

.core-label--eng { bottom: 30%; left: -2%; }
.core-label--eng .core-label__dot { background: var(--copper); color: var(--copper); }
.core-label--eng::after { left: 100%; margin-left: 0.4rem; }

.core-label--consult { top: 34%; left: 0; }
.core-label--consult .core-label__dot { background: var(--violet); color: var(--violet); }
.core-label--consult::after { left: 100%; margin-left: 0.4rem; background: linear-gradient(90deg, rgba(139, 124, 246, 0.35), transparent); }

.home-hero__meta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-hint__line {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--copper), transparent);
}

/* —— System progression —— */
.system-section {
  padding-block: var(--section-y);
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

.system-section__grid {
  width: min(100% - var(--gutter) * 2, var(--content-wide));
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  gap: var(--space-7);
  min-width: 0;
}

.system-section__grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1000px) {
  .system-section__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

/* Mobile: keep copy, problem tiles, stack art and approach panel inside the viewport */
@media (max-width: 999px) {
  .system-section {
    padding-block: clamp(2.5rem, 8vw, 4rem);
  }

  .system-section__grid {
    gap: var(--space-5);
  }

  .system-section #system-heading {
    font-size: clamp(1.45rem, 6.5vw, 2rem) !important;
    max-width: 100%;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .system-section .lead {
    max-width: 100%;
    font-size: var(--text-sm);
  }

  .system-section .cta-row {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .system-section .cta-row .btn {
    max-width: 100%;
  }

  .system-section .panel {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

.layer-stack {
  position: relative;
  min-height: 420px;
  perspective: 1200px;
  display: grid;
  place-items: center;
}

.layer-stack__visual {
  width: min(100%, 360px);
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
}

.layer {
  position: absolute;
  left: 50%;
  width: 88%;
  height: 52px;
  margin-left: -44%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(40, 40, 52, 0.85), rgba(12, 12, 16, 0.9));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.layer:nth-child(1) { top: 6%;  --lift: -12px; border-color: rgba(232, 165, 75, 0.45); background: linear-gradient(180deg, rgba(80, 55, 20, 0.5), rgba(20, 14, 8, 0.9)); }
.layer:nth-child(2) { top: 18%; --lift: -8px;  border-color: rgba(196, 165, 116, 0.35); }
.layer:nth-child(3) { top: 30%; --lift: -4px;  border-color: rgba(139, 124, 246, 0.4); }
.layer:nth-child(4) { top: 42%; --lift: 0;     border-color: rgba(78, 196, 217, 0.35); }
.layer:nth-child(5) { top: 54%; --lift: 4px;   border-color: rgba(139, 124, 246, 0.45); background: linear-gradient(180deg, rgba(50, 40, 90, 0.55), rgba(12, 12, 20, 0.95)); }
.layer:nth-child(6) { top: 66%; --lift: 8px;   border-color: rgba(196, 165, 116, 0.3); }
.layer:nth-child(7) { top: 78%; --lift: 12px;  border-color: rgba(78, 196, 217, 0.4); }

/* Problem tiles: fixed 3×2 (six tiles) — do not auto-fit */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(5.75rem, auto));
  gap: 0.75rem;
  margin-top: var(--space-5);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

@media (max-width: 720px) {
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(5.5rem, auto));
    gap: 0.55rem;
  }
}

@media (max-width: 420px) {
  .problem-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}

.problem-tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  line-height: 1.35;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 5.75rem;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

/* Ecosystem cards: 5 × 2 at full width (10 items) */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1200px) {
  .ecosystem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

.ecosystem-grid .card {
  height: 100%;
  min-height: 0;
}

.problem-tile__icon {
  color: var(--copper);
  font-size: 1rem;
  opacity: 0.9;
}

.problem-result {
  margin-top: var(--space-5);
  min-height: 7rem;
}

.problem-result[hidden] {
  display: none;
}

.approach-list {
  display: grid;
  gap: 1rem;
}

.approach-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.approach-item__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  display: grid;
  place-items: center;
  color: var(--copper);
  font-size: 0.75rem;
}

.approach-item h3 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}

.approach-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* —— Capabilities hero (cube lives here) —— */
.capabilities-hero {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.capabilities-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 1100px) {
  .capabilities-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.85fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    min-height: min(62vh, 560px);
  }
}

.capabilities-hero__copy h1 {
  max-width: 18ch;
}

.capabilities-hero__viz {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(42vh, 380px);
}

@media (min-width: 1100px) {
  .capabilities-hero__viz {
    min-height: min(58vh, 520px);
  }
}

/* —— Products hero (mirrors homepage / capabilities) —— */
.products-hero {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.products-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 1100px) {
  .products-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.9fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    min-height: min(62vh, 560px);
  }
}

.products-hero__copy h1 {
  max-width: 16ch;
}

.products-hero__viz {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(42vh, 380px);
}

/* “Products online” stays fixed under the spinning stage */
.products-hero__live {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  translate: -50% 0;
  z-index: 5;
  margin: 0;
  pointer-events: none;
}

@media (min-width: 1100px) {
  .products-hero__viz {
    min-height: min(58vh, 520px);
  }
}

.products-hero__viz .viz--core {
  width: min(100%, 420px);
  max-width: 100%;
}

/*
 * Plate-only spin + shaped pulse:
 *   h = (1 − |sin(πt)|)^3
 *   mask-size = core + (full − core) × h
 * Very pointy peaks at full image; long slow valley at retracted core.
 */
.products-hero__plate-spin {
  display: block;
  width: 100%;
  transform-origin: 50% 48%;
  will-change: transform, filter, mask-size, -webkit-mask-size;
  -webkit-mask-image: radial-gradient(
    ellipse 50% 50% at 50% 48%,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.72) 58%,
    rgba(0, 0, 0, 0.28) 72%,
    transparent 86%
  );
  mask-image: radial-gradient(
    ellipse 50% 50% at 50% 48%,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.72) 58%,
    rgba(0, 0, 0, 0.28) 72%,
    transparent 86%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 48%;
  mask-position: 50% 48%;
  -webkit-mask-size: 48% 48%;
  mask-size: 48% 48%;
}

.products-hero__plate-spin img {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .products-hero__plate-spin {
    animation:
      products-hero-spin 80s linear infinite,
      products-hero-breathe 2.4s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-hero__plate-spin {
    animation: none;
  }
}

@keyframes products-hero-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* (1−|sin(πt)|)^3 — sharp spikes at full, long flat valley at core */
@keyframes products-hero-breathe {
  0% {
    -webkit-mask-size: 195% 195%;
    mask-size: 195% 195%;
    filter: brightness(1.1);
  }
  3.12% {
    -webkit-mask-size: 155.9% 155.9%;
    mask-size: 155.9% 155.9%;
    filter: brightness(1.073);
  }
  6.25% {
    -webkit-mask-size: 124.7% 124.7%;
    mask-size: 124.7% 124.7%;
    filter: brightness(1.052);
  }
  9.38% {
    -webkit-mask-size: 100.5% 100.5%;
    mask-size: 100.5% 100.5%;
    filter: brightness(1.036);
  }
  12.5% {
    -webkit-mask-size: 82.6% 82.6%;
    mask-size: 82.6% 82.6%;
    filter: brightness(1.024);
  }
  15.62% {
    -webkit-mask-size: 69.7% 69.7%;
    mask-size: 69.7% 69.7%;
    filter: brightness(1.015);
  }
  18.75% {
    -webkit-mask-size: 60.9% 60.9%;
    mask-size: 60.9% 60.9%;
    filter: brightness(1.009);
  }
  21.88% {
    -webkit-mask-size: 55.2% 55.2%;
    mask-size: 55.2% 55.2%;
    filter: brightness(1.005);
  }
  25% {
    -webkit-mask-size: 51.7% 51.7%;
    mask-size: 51.7% 51.7%;
    filter: brightness(1.003);
  }
  28.12% {
    -webkit-mask-size: 49.7% 49.7%;
    mask-size: 49.7% 49.7%;
    filter: brightness(1.001);
  }
  31.25% {
    -webkit-mask-size: 48.7% 48.7%;
    mask-size: 48.7% 48.7%;
    filter: brightness(1);
  }
  34.38% {
    -webkit-mask-size: 48.2% 48.2%;
    mask-size: 48.2% 48.2%;
    filter: brightness(1);
  }
  37.5%,
  40.62%,
  43.75%,
  46.88%,
  50%,
  53.12%,
  56.25%,
  59.38%,
  62.5% {
    -webkit-mask-size: 48% 48%;
    mask-size: 48% 48%;
    filter: brightness(1);
  }
  65.62% {
    -webkit-mask-size: 48.2% 48.2%;
    mask-size: 48.2% 48.2%;
    filter: brightness(1);
  }
  68.75% {
    -webkit-mask-size: 48.7% 48.7%;
    mask-size: 48.7% 48.7%;
    filter: brightness(1);
  }
  71.88% {
    -webkit-mask-size: 49.7% 49.7%;
    mask-size: 49.7% 49.7%;
    filter: brightness(1.001);
  }
  75% {
    -webkit-mask-size: 51.7% 51.7%;
    mask-size: 51.7% 51.7%;
    filter: brightness(1.003);
  }
  78.12% {
    -webkit-mask-size: 55.2% 55.2%;
    mask-size: 55.2% 55.2%;
    filter: brightness(1.005);
  }
  81.25% {
    -webkit-mask-size: 60.9% 60.9%;
    mask-size: 60.9% 60.9%;
    filter: brightness(1.009);
  }
  84.38% {
    -webkit-mask-size: 69.7% 69.7%;
    mask-size: 69.7% 69.7%;
    filter: brightness(1.015);
  }
  87.5% {
    -webkit-mask-size: 82.6% 82.6%;
    mask-size: 82.6% 82.6%;
    filter: brightness(1.024);
  }
  90.62% {
    -webkit-mask-size: 100.5% 100.5%;
    mask-size: 100.5% 100.5%;
    filter: brightness(1.036);
  }
  93.75% {
    -webkit-mask-size: 124.7% 124.7%;
    mask-size: 124.7% 124.7%;
    filter: brightness(1.052);
  }
  96.88% {
    -webkit-mask-size: 155.9% 155.9%;
    mask-size: 155.9% 155.9%;
    filter: brightness(1.073);
  }
  100% {
    -webkit-mask-size: 195% 195%;
    mask-size: 195% 195%;
    filter: brightness(1.1);
  }
}

/* —— Products catalog —— */
.products-catalog {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.products-catalog--rest {
  padding-top: 0;
}

.products-catalog__header {
  max-width: 40rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.products-catalog__header h2 {
  font-size: var(--text-xl);
  margin: 0.65rem 0 0.5rem;
}

.products-catalog__intro {
  margin: 0;
  font-size: var(--text-base);
  max-width: 42ch;
}

.product-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .product-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.product-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 124, 246, 0.28);
  background:
    linear-gradient(165deg, rgba(32, 28, 52, 0.72), rgba(10, 10, 14, 0.94));
  text-decoration: none;
  color: inherit;
  min-height: 11.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-feature-card:hover,
.product-feature-card:focus-visible {
  border-color: rgba(167, 139, 250, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(139, 124, 246, 0.55);
  outline: none;
}

.product-feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.product-feature-card__arrow {
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.7;
}

.product-feature-card:hover .product-feature-card__arrow,
.product-feature-card:focus-visible .product-feature-card__arrow {
  color: var(--violet-bright, #a78bfa);
  opacity: 1;
}

.product-feature-card__tag {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim, var(--text-muted));
}

.product-feature-card__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-feature-card__blurb {
  margin: 0;
  margin-top: auto;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.product-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(12, 12, 16, 0.75);
  text-decoration: none;
  color: inherit;
  min-height: 9.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 24, 0.92);
  transform: translateY(-1px);
  outline: none;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.product-card__blurb {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.product-card__link {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim, var(--text-muted));
}

.product-card:hover .product-card__link,
.product-card:focus-visible .product-card__link {
  color: var(--violet-bright, #a78bfa);
}

/* —— Products (legacy stage / rail — still used on home) —— */
.products-layout {
  width: min(100% - var(--gutter) * 2, var(--content-wide));
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}

.products-layout--list {
  max-width: min(100% - var(--gutter) * 2, 52rem);
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .products-layout:not(.products-layout--list) {
    grid-template-columns: 1fr 1.35fr;
    align-items: start;
  }
}

.product-stage {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 55% 45%, rgba(139, 124, 246, 0.15), transparent 45%),
    linear-gradient(165deg, #12121a, #08080c);
  overflow: hidden;
  padding: var(--space-5);
}

.product-stage__hud {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 700px) {
  .product-stage__hud {
    grid-template-columns: 1fr auto;
  }
}

.product-stage__visual {
  display: grid;
  place-items: center;
  min-height: 240px;
  position: relative;
}

.product-orb {
  width: 160px;
  height: 160px;
  border-radius: 22%;
  border: 1px solid rgba(139, 124, 246, 0.55);
  background:
    radial-gradient(circle at 35% 30%, rgba(167, 139, 250, 0.45), transparent 50%),
    linear-gradient(145deg, rgba(40, 30, 80, 0.8), rgba(10, 10, 16, 0.95));
  box-shadow: 0 0 60px rgba(139, 124, 246, 0.35), inset 0 0 40px rgba(139, 124, 246, 0.15);
  display: grid;
  place-items: center;
  position: relative;
}

.product-orb::after {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 124, 246, 0.25);
}

.product-orb__check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--violet-bright);
  display: grid;
  place-items: center;
  color: var(--violet-bright);
  font-size: 1.4rem;
}

.product-stats {
  display: grid;
  gap: 0.65rem;
  width: min(100%, 14rem);
}

.stat-card {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
}

.stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.stat-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.45rem;
  overflow: hidden;
}

.stat-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--green));
  border-radius: inherit;
}

.product-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr));
  gap: 0.65rem;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 520px) {
  .product-rail {
    grid-template-columns: 1fr 1fr;
  }
}

.product-rail__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 14, 0.8);
  text-decoration: none;
  color: inherit;
  min-height: 5.5rem;
}

.product-rail__item strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.product-rail__item span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero products — stronger weight for demo-ready leads */
.product-rail--hero {
  grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
}

.product-rail__item--hero {
  min-height: 6.25rem;
  border-color: rgba(139, 124, 246, 0.35);
  background: linear-gradient(160deg, rgba(28, 24, 48, 0.9), rgba(10, 10, 14, 0.92));
  box-shadow: 0 0 0 1px rgba(139, 124, 246, 0.08) inset;
}

.product-rail__item--hero strong {
  font-size: 0.88rem;
}

.product-rail__item--hero:hover,
.product-rail__item--hero.is-active {
  border-color: rgba(139, 124, 246, 0.55);
}

.product-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.3);
}

.principle {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem;
}

.principle strong {
  font-size: var(--text-sm);
}

.principle span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Product detail */
.product-detail-hero {
  display: grid;
  gap: var(--space-6);
  width: min(100% - var(--gutter) * 2, var(--content-wide));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--space-7);
}

@media (min-width: 900px) {
  .product-detail-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.feature-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* —— Problem selector (homepage) —— */
.problem-selector {
  min-width: 0;
}

.problem-tile:focus-visible {
  outline: 2px solid rgba(196, 165, 116, 0.75);
  outline-offset: 2px;
}

.problem-tile.is-active {
  border-color: rgba(196, 165, 116, 0.55);
  color: var(--text-primary);
  background: rgba(196, 165, 116, 0.08);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.12), 0 8px 28px rgba(0, 0, 0, 0.25);
}

.problem-tile__label {
  display: block;
  width: 100%;
}

/* —— Problem path result (homepage) —— */
.problem-result:focus {
  outline: none;
}

.problem-result:focus-visible {
  outline: 2px solid rgba(196, 165, 116, 0.5);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.problem-path {
  display: grid;
  gap: 1rem;
}

.problem-path__head {
  min-width: 0;
}

.problem-path__title {
  font-size: var(--text-lg);
  margin: 0 0 0.5rem;
}

.problem-path__summary {
  margin: 0 0 0.25rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.problem-path__cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .problem-path__cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.problem-path__block {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.2);
}

.problem-path__block .panel-label {
  margin-top: 0;
}

.problem-path__next-wrap {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196, 165, 116, 0.28);
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.08), rgba(0, 0, 0, 0.2));
}

.problem-path__next-wrap .panel-label {
  margin-top: 0;
}

.problem-path__next {
  margin: 0.35rem 0 0;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

.problem-path__list {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.problem-path__cta {
  margin-top: 0.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Contact — topic handoff + process */
.contact-topic-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(196, 165, 116, 0.08);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.contact-topic-banner .mono {
  color: var(--copper);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-process {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
  display: grid;
  gap: 0.45rem;
}

.contact-form-meta {
  color: var(--text-dim);
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  max-width: 36rem;
}

/* —— Signal dual cadence (Today + This week) —— */
.signal-cadence {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  position: sticky;
  top: var(--header-h, 4rem);
  z-index: 20;
}

.signal-cadence__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.55rem 0;
}

.signal-cadence__link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color var(--dur-base), border-color var(--dur-base), background var(--dur-base);
}

.signal-cadence__link:hover {
  color: var(--text-secondary);
  border-color: var(--line-soft);
}

.signal-cadence__link.is-active {
  color: var(--cyan-bright, #4ec4e0);
  border-color: rgba(78, 196, 224, 0.35);
  background: rgba(78, 196, 224, 0.08);
}

.signal-cadence__link[href*="week"].is-active {
  color: var(--copper-bright);
  border-color: rgba(196, 165, 116, 0.4);
  background: rgba(196, 165, 116, 0.1);
}

.signal-cadence__meta {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.85;
}

.signal-week-portal {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 50% 40% at 80% 40%, rgba(196, 165, 116, 0.06), transparent 60%),
    rgba(6, 6, 10, 0.4);
}

.signal-week-portal__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

@media (min-width: 1000px) {
  .signal-week-portal__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 2rem;
  }
}

.signal-week-portal__title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0.5rem 0 0.85rem;
  max-width: 18ch;
}

.signal-week-portal__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.signal-week-portal__stage {
  min-width: 0;
}

.signal-week-portal__viz {
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: visible;
}

.signal-week-portal__viz .viz__media img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.4));
}

.insights-door__headline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Studio: connected brands —— */
.studio-brands__intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.studio-brands__title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0.65rem 0 0.85rem;
  max-width: 14ch;
  line-height: 1.12;
}

.studio-brands__lead {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
}

.studio-brands__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .studio-brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .studio-brands__grid {
    /* 8 brands → clean 4 × 2 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.studio-brand-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.15rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(18, 18, 26, 0.95), rgba(8, 8, 12, 0.98));
  box-shadow: var(--shadow-panel);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  height: 100%;
  transition:
    border-color var(--dur-base),
    transform var(--dur-base),
    box-shadow var(--dur-base);
}

.studio-brand-card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-panel), 0 14px 40px rgba(0, 0, 0, 0.3);
}

.studio-brand-card:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.studio-brand-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.studio-brand-card__go {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color var(--dur-base), transform var(--dur-base);
}

.studio-brand-card:hover .studio-brand-card__go {
  color: var(--copper-bright);
  transform: translate(1px, -1px);
}

.studio-brand-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text-primary);
}

.studio-brand-card__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.studio-brand-card__meta {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.studio-brand-card:hover .wm-icon-wrap {
  border-color: rgba(196, 165, 116, 0.4);
}

/* —— Studio: values + leadership —— */
/* Intro full width; body = equal-height 2×2 values | leadership */
.studio-values__intro {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.studio-values__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0.65rem 0 0.75rem;
  max-width: 14ch;
  line-height: 1.15;
}

.studio-values__lead {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
}

.studio-values__body {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 1000px) {
  .studio-values__body {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.85fr);
    gap: 1.15rem;
  }
}

.studio-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  gap: 0.85rem;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 640px) {
  .studio-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}

.studio-value-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(165deg, rgba(18, 18, 26, 0.95), rgba(8, 8, 12, 0.98));
  box-shadow: var(--shadow-panel);
  min-height: 100%;
  height: 100%;
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
}

.studio-value-card:hover {
  border-color: rgba(196, 165, 116, 0.32);
  transform: translateY(-2px);
  box-shadow: var(--shadow-panel), 0 12px 36px rgba(0, 0, 0, 0.28);
}

.studio-value-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.studio-value-card__index {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.studio-value-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text-primary);
  /* Keep titles to two lines so cards share a common rhythm */
  min-height: 2.6em;
}

.studio-value-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.studio-leader {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(196, 165, 116, 0.22);
  background:
    linear-gradient(155deg, rgba(24, 20, 16, 0.96), rgba(8, 8, 12, 0.98));
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(196, 165, 116, 0.08);
  overflow: hidden;
}

.studio-leader__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 55%;
  background: radial-gradient(ellipse 60% 70% at 30% 20%, rgba(196, 165, 116, 0.14), transparent 70%);
  pointer-events: none;
}

.studio-leader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  gap: 0;
}

.studio-leader__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.85rem 0 1.1rem;
  flex-shrink: 0;
}

.studio-leader__who {
  min-width: 0;
}

.studio-leader__avatar {
  position: relative;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.studio-leader__initials {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--copper-bright);
  background: linear-gradient(145deg, rgba(40, 32, 22, 0.95), rgba(12, 12, 16, 0.98));
  border: 1px solid rgba(196, 165, 116, 0.4);
  box-shadow: 0 0 24px rgba(196, 165, 116, 0.18);
}

.studio-leader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(196, 165, 116, 0.25);
  box-shadow: 0 0 0 4px rgba(196, 165, 116, 0.05);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .studio-leader__ring {
    animation: studio-leader-ring 5.5s ease-in-out infinite;
  }
}

@keyframes studio-leader-ring {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.studio-leader__name {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.2;
}

.studio-leader__role {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--copper-bright);
  text-transform: none;
}

.studio-leader__title {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.studio-leader__bio {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  flex: 1 1 auto;
}

.studio-leader__creds {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  flex-shrink: 0;
}

.studio-leader__creds li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.studio-leader__actions {
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.25rem;
  flex-shrink: 0;
}

/* —— WM Design —— */
.design-page {
  padding-bottom: var(--space-8);
}

.design-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.design-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}

.design-filter {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 14, 0.7);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--dur-base), color var(--dur-base), background var(--dur-base);
}

.design-filter:hover {
  border-color: rgba(196, 165, 116, 0.35);
  color: var(--text-secondary);
}

.design-filter.is-active {
  border-color: rgba(196, 165, 116, 0.45);
  color: var(--copper-bright);
  background: rgba(196, 165, 116, 0.08);
}

.design-filter:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.design-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .design-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .design-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.design-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(16, 16, 22, 0.92), rgba(8, 8, 12, 0.96));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-panel);
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
  min-width: 0;
}

.design-card:hover {
  border-color: rgba(196, 165, 116, 0.4);
  transform: translateY(-2px);
}

.design-card:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.design-card.is-hidden {
  display: none;
}

.design-card__shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0e;
  border-bottom: 1px solid var(--line-soft);
}

.design-card__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-base);
}

.design-card:hover .design-card__shot img {
  transform: scale(1.03);
}

.design-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 1.05rem 1.05rem;
}

.design-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.design-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.25;
}

.design-card__go {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color var(--dur-base);
}

.design-card:hover .design-card__go {
  color: var(--copper-bright);
}

.design-card__domain {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.design-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— WM Insights — weekly sector operating desk —— */
.insights-page {
  --ins-gov: #5dcc9a;
  --ins-gov-dim: rgba(93, 204, 154, 0.14);
  --ins-inf: #4ec4e0;
  --ins-inf-dim: rgba(78, 196, 224, 0.14);
  --ins-ent: #a78bfa;
  --ins-ent-dim: rgba(167, 139, 250, 0.14);
  --ins-gro: #e0b35c;
  --ins-gro-dim: rgba(224, 179, 92, 0.14);
  padding-bottom: 0;
  overflow-x: clip;
}

/* Icons */
.wm-icon {
  display: block;
  flex-shrink: 0;
}

.wm-icon--glow {
  filter: drop-shadow(0 0 6px currentColor);
}

.insights-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.65);
  color: var(--copper-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.insights-icon-wrap--lg {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
}

.insights-icon-wrap--government {
  color: var(--ins-gov);
  border-color: rgba(93, 204, 154, 0.35);
  background: linear-gradient(145deg, var(--ins-gov-dim), rgba(8, 8, 12, 0.8));
  box-shadow: 0 0 18px rgba(93, 204, 154, 0.18), inset 0 1px 0 rgba(93, 204, 154, 0.12);
}

.insights-icon-wrap--infrastructure {
  color: var(--ins-inf);
  border-color: rgba(78, 196, 224, 0.35);
  background: linear-gradient(145deg, var(--ins-inf-dim), rgba(8, 8, 12, 0.8));
  box-shadow: 0 0 18px rgba(78, 196, 224, 0.18), inset 0 1px 0 rgba(78, 196, 224, 0.12);
}

.insights-icon-wrap--enterprise {
  color: var(--ins-ent);
  border-color: rgba(167, 139, 250, 0.35);
  background: linear-gradient(145deg, var(--ins-ent-dim), rgba(8, 8, 12, 0.8));
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.2), inset 0 1px 0 rgba(167, 139, 250, 0.12);
}

.insights-icon-wrap--growth {
  color: var(--ins-gro);
  border-color: rgba(224, 179, 92, 0.4);
  background: linear-gradient(145deg, var(--ins-gro-dim), rgba(8, 8, 12, 0.8));
  box-shadow: 0 0 18px rgba(224, 179, 92, 0.2), inset 0 1px 0 rgba(224, 179, 92, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .insights-icon-wrap--government,
  .insights-icon-wrap--infrastructure,
  .insights-icon-wrap--enterprise,
  .insights-icon-wrap--growth {
    animation: insights-icon-breathe 4.5s ease-in-out infinite;
  }
  .insights-icon-wrap--infrastructure { animation-delay: 0.4s; }
  .insights-icon-wrap--enterprise { animation-delay: 0.8s; }
  .insights-icon-wrap--growth { animation-delay: 1.2s; }
}

@keyframes insights-icon-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Hero */
.insights-hero {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.25rem, 2vw, 1.75rem);
  overflow: hidden;
}

.insights-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 82% 42%, rgba(80, 200, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 40% at 12% 70%, rgba(196, 165, 116, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.insights-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .insights-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: var(--space-6);
  }
}

.insights-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insights-hero__kicker-sep {
  opacity: 0.4;
}

.insights-hero__copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  max-width: 14ch;
  margin: 0.65rem 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.insights-hero__glow {
  background: linear-gradient(105deg, #c8f5d8 0%, #7dffb2 35%, #c4e87a 70%, #e8d48a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(125, 255, 178, 0.35));
}

.insights-hero__copy .lead {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.insights-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.35rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insights-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.insights-hero__live-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ins-gov);
  box-shadow: 0 0 0 3px rgba(93, 204, 154, 0.2);
}

.insights-hero__status-sep {
  opacity: 0.4;
}

.insights-hero__stage {
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
}

/* Landscape life-alive stage — same particle/orbit system as home core */
.insights-hero__stage .viz--insights {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  aspect-ratio: 1536 / 1024;
  min-height: 0;
  /* overflow visible so orbiters can arc past the frame */
  overflow: visible;
}

@media (min-width: 1000px) {
  .insights-hero__stage .viz--insights {
    max-width: none;
    width: 108%;
    margin-left: -4%;
  }
}

.insights-hero__stage .viz--insights .viz__media,
.insights-hero__stage .insights-hero__visual {
  margin: 0;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.insights-hero__stage .insights-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  object-position: center;
  background: transparent;
  /* depth lift; glow comes from life-fx layers */
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.4));
}

/* Cyan/gold void tuned to insights core art (not copper home core) */
.life-fx__void--insights {
  inset: -14% -12% 4% -12%;
  background:
    radial-gradient(ellipse 58% 52% at 50% 44%, rgba(78, 196, 224, 0.12), transparent 68%),
    radial-gradient(ellipse 42% 38% at 50% 48%, rgba(196, 165, 116, 0.1), transparent 65%);
}

.life-fx__glow-field--insights {
  inset: 6% 8% 18% 8%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 220, 160, 0.09), transparent 42%),
    radial-gradient(circle at 32% 40%, rgba(60, 200, 220, 0.07), transparent 30%),
    radial-gradient(circle at 68% 38%, rgba(167, 139, 250, 0.05), transparent 26%);
}

.life-fx__bloom--insights {
  position: absolute;
  inset: 18% 20% 22% 20%;
  background: radial-gradient(ellipse 50% 45% at 50% 48%, rgba(120, 220, 255, 0.06), transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Sector doors — 4-up glass */
.insights-doors {
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.insights-doors__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .insights-doors__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .insights-doors__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.insights-door {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(165deg, rgba(18, 20, 28, 0.92), rgba(8, 8, 12, 0.96));
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  transition:
    border-color var(--dur-base),
    transform var(--dur-base),
    box-shadow var(--dur-base),
    opacity var(--dur-base);
  min-width: 0;
}

.insights-door__art {
  margin: 0 -0.15rem 0.15rem;
  border: 0;
  background: transparent;
  overflow: visible;
  line-height: 0;
}

.insights-door__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 768 / 512;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  transition: transform var(--dur-base), filter var(--dur-base);
}

.insights-door:hover .insights-door__art img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.45));
}

.insights-door:hover {
  transform: translateY(-2px);
}

.insights-door:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.insights-door.is-dimmed {
  opacity: 0.28;
  filter: grayscale(0.4);
  pointer-events: none;
}

.insights-door[data-sector="government"]:hover {
  border-color: rgba(93, 204, 154, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(93, 204, 154, 0.1);
}

.insights-door[data-sector="infrastructure"]:hover {
  border-color: rgba(78, 196, 224, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(78, 196, 224, 0.1);
}

.insights-door[data-sector="enterprise"]:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(167, 139, 250, 0.12);
}

.insights-door[data-sector="growth"]:hover {
  border-color: rgba(224, 179, 92, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(224, 179, 92, 0.12);
}

.insights-door__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.insights-door__name {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.insights-door[data-sector="government"] .insights-door__name { color: var(--ins-gov); }
.insights-door[data-sector="infrastructure"] .insights-door__name { color: var(--ins-inf); }
.insights-door[data-sector="enterprise"] .insights-door__name { color: var(--ins-ent); }
.insights-door[data-sector="growth"] .insights-door__name { color: var(--ins-gro); }

.insights-door__arrow {
  color: var(--text-dim);
  opacity: 0.7;
  transition: color var(--dur-base), transform var(--dur-base);
}

.insights-door:hover .insights-door__arrow {
  color: var(--text-primary);
  transform: translate(1px, -1px);
}

.insights-door__lenses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.insights-door__lenses li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.insights-door__dot {
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.55;
}

.insights-door[data-sector="government"] .insights-door__dot { color: var(--ins-gov); }
.insights-door[data-sector="infrastructure"] .insights-door__dot { color: var(--ins-inf); }
.insights-door[data-sector="enterprise"] .insights-door__dot { color: var(--ins-ent); }
.insights-door[data-sector="growth"] .insights-door__dot { color: var(--ins-gro); }

/* Macro lens rail */
.insights-lenses {
  padding: 0.35rem 0 0.75rem;
}

.insights-lenses__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 8, 12, 0.55);
}

.insights-lenses__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

.insights-lenses__lead-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ins-gov);
  box-shadow: 0 0 8px rgba(93, 204, 154, 0.5);
}

.insights-lenses__hint {
  opacity: 0.55;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.68rem;
}

.insights-lenses__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.insights-lens {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(12, 12, 18, 0.7);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur-base), color var(--dur-base), background var(--dur-base), box-shadow var(--dur-base);
}

.insights-lens:hover {
  border-color: rgba(196, 165, 116, 0.35);
  color: var(--text-secondary);
}

.insights-lens:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.insights-lens.is-active {
  border-color: rgba(93, 204, 154, 0.45);
  color: var(--ins-gov);
  background: rgba(93, 204, 154, 0.08);
  box-shadow: 0 0 16px rgba(93, 204, 154, 0.12);
}

.insights-lens__icon {
  display: inline-flex;
  opacity: 0.85;
}

/* Week read */
.insights-week-read {
  padding-top: 1rem;
  padding-bottom: 0;
}

.insights-week-read__panel {
  max-width: 52rem;
}

.insights-week-read__body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 48rem;
}

.insights-week-read__chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.insights-week-read__chips li {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(196, 165, 116, 0.22);
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--copper-bright);
  background: rgba(196, 165, 116, 0.06);
}

/* Section headers */
.insights-section__header {
  margin-bottom: 1.35rem;
  max-width: 40rem;
}

.insights-section__title {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}

.insights-section__intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Featured */
.insights-featured__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1000px) {
  .insights-featured__layout {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.8fr);
    gap: 1.75rem;
    align-items: start;
  }
}

.insights-featured__pulse {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--ins-ent);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
  vertical-align: middle;
}

.insights-featured__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .insights-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .insights-featured__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.insights-feature {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(16, 18, 26, 0.95), rgba(8, 8, 12, 0.98));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
  min-width: 0;
}

.insights-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.insights-feature:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.insights-feature__media {
  position: relative;
  aspect-ratio: 768 / 512;
  overflow: visible;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0.5rem 0.5rem 0;
}

.insights-feature__media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
  transition: transform var(--dur-base), filter var(--dur-base);
}

.insights-feature:hover .insights-feature__media img {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5));
}

.insights-feature__media .insights-icon-wrap {
  position: absolute;
  left: 0.65rem;
  bottom: 0.35rem;
  z-index: 1;
}

.insights-feature__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1.05rem 1.05rem;
  flex: 1;
}

.insights-feature__sector {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insights-feature__sector[data-sector="government"] { color: var(--ins-gov); }
.insights-feature__sector[data-sector="infrastructure"] { color: var(--ins-inf); }
.insights-feature__sector[data-sector="enterprise"] { color: var(--ins-ent); }
.insights-feature__sector[data-sector="growth"] { color: var(--ins-gro); }

.insights-feature__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.insights-feature__text {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.insights-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.insights-feature__go {
  margin-left: auto;
  color: var(--text-muted);
  transition: color var(--dur-base), transform var(--dur-base);
}

.insights-feature:hover .insights-feature__go {
  color: var(--text-primary);
  transform: translate(1px, -1px);
}

/* Running strip */
.insights-running__strip {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(16, 16, 22, 0.9), rgba(8, 8, 12, 0.95));
  overflow: hidden;
}

@media (min-width: 900px) {
  .insights-running__strip {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
}

.insights-running__cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: background var(--dur-base);
}

.insights-running__cell:hover {
  background: rgba(196, 165, 116, 0.05);
}

.insights-running__cell:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: -2px;
}

.insights-running__label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.insights-running__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.insights-running__meta {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.insights-running__rule {
  display: none;
  width: 1px;
  background: var(--line-soft);
}

@media (min-width: 900px) {
  .insights-running__rule {
    display: block;
  }
}

@media (max-width: 899px) {
  .insights-running__cell + .insights-running__rule + .insights-running__cell {
    border-top: 1px solid var(--line-soft);
  }
}

.insights-cta {
  padding-bottom: 1.5rem;
}

/* Foot bar */
.insights-foot {
  border-top: 1px solid var(--line-soft);
  background: rgba(6, 6, 10, 0.7);
  padding: 0.85rem 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.insights-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
}

.insights-foot__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.insights-foot__cta {
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  transition: border-color var(--dur-base), color var(--dur-base);
}

.insights-foot__cta:hover {
  border-color: rgba(196, 165, 116, 0.4);
  color: var(--copper-bright);
}

/* —— Sector briefing room —— */
.insights-sector[data-sector="government"] {
  --sector-accent: var(--ins-gov, #5dcc9a);
}
.insights-sector[data-sector="infrastructure"] {
  --sector-accent: var(--ins-inf, #4ec4e0);
}
.insights-sector[data-sector="enterprise"] {
  --sector-accent: var(--ins-ent, #a78bfa);
}
.insights-sector[data-sector="growth"] {
  --sector-accent: var(--ins-gro, #e0b35c);
}
.insights-sector {
  --sector-accent: var(--copper-bright);
  --ins-gov: #5dcc9a;
  --ins-inf: #4ec4e0;
  --ins-ent: #a78bfa;
  --ins-gro: #e0b35c;
}

.insights-sector__hero {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 1.25rem;
}

.insights-sector__hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .insights-sector__hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.75rem;
  }
}

.insights-sector__hero-art {
  margin: 0;
  background: transparent;
  border: 0;
  line-height: 0;
  display: grid;
  place-items: center;
}

.insights-sector__hero-art img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.4));
}

@media (min-width: 900px) {
  .insights-sector__hero-art img {
    max-width: none;
  }
}

.insights-sector__crumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-base), border-color var(--dur-base);
}

.insights-sector__crumb a:hover,
.insights-sector__crumb a:focus-visible {
  color: var(--sector-accent);
  border-bottom-color: color-mix(in srgb, var(--sector-accent) 45%, transparent);
}

.insights-sector__switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 1rem;
}

.insights-sector__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  transition: border-color var(--dur-base), color var(--dur-base), background var(--dur-base);
}

.insights-sector__chip:hover {
  border-color: color-mix(in srgb, var(--sector-accent) 40%, transparent);
  color: var(--sector-accent);
}

.insights-sector__chip.is-active,
.insights-sector__chip[aria-current="page"] {
  border-color: color-mix(in srgb, var(--sector-accent) 55%, transparent);
  color: var(--sector-accent);
  background: color-mix(in srgb, var(--sector-accent) 12%, transparent);
}

.insights-sector__chip:focus-visible {
  outline: 2px solid var(--sector-accent);
  outline-offset: 2px;
}

.insights-sector__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.insights-sector__code {
  color: var(--sector-accent);
  border: 1px solid color-mix(in srgb, var(--sector-accent) 40%, transparent);
  border-radius: 3px;
  padding: 0.12rem 0.35rem;
}

.insights-sector__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.18;
  max-width: 28ch;
  font-weight: 650;
}

.insights-sector__thesis {
  margin: 0;
  max-width: 44rem;
  color: var(--text-secondary);
}

.insights-sector__body {
  padding-bottom: var(--space-8);
}

.insights-sector__layout {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

@media (min-width: 960px) {
  .insights-sector__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.75fr);
    gap: 1.35rem;
  }
}

.insights-sector__main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.insights-sector__aside {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 960px) {
  .insights-sector__aside {
    position: sticky;
    top: calc(var(--header-h, 4rem) + 1rem);
  }
}

.insights-card__pressure {
  flex-shrink: 0;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
}

.insights-card__pressure[data-level="high"] {
  border-color: rgba(220, 100, 100, 0.4);
  color: #e8a0a0;
  background: rgba(180, 60, 60, 0.1);
}

.insights-card__pressure[data-level="elevated"] {
  border-color: rgba(196, 165, 116, 0.4);
  color: var(--copper-bright);
  background: rgba(196, 165, 116, 0.08);
}

.insights-card__pressure[data-level="steady"] {
  border-color: rgba(120, 160, 140, 0.35);
  color: #9fc4b0;
  background: rgba(80, 120, 100, 0.1);
}

.insights-matters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.insights-matters__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.insights-matters__n {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--sector-accent);
  padding-top: 0.15rem;
}

.insights-matters__point {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.insights-matters__so {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.insights-sector__reco {
  border-color: color-mix(in srgb, var(--sector-accent) 40%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sector-accent) 12%, transparent), transparent 55%),
    linear-gradient(165deg, rgba(20, 18, 14, 0.95), rgba(8, 8, 12, 0.98));
  box-shadow: var(--shadow-panel), inset 3px 0 0 var(--sector-accent);
}

.insights-sector__reco-action {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 650;
  line-height: 1.4;
  color: var(--text-primary);
}

.insights-sector__reco-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.insights-sector__reco-meta span {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.insights-sector__watch {
  border-color: rgba(200, 140, 90, 0.25);
}

.insights-sector__watch-signal {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.insights-sector__watch-if {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.insights-sector__watch-if .mono {
  display: inline-block;
  margin-right: 0.35rem;
  color: #d4a574;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insights-donot,
.insights-questions {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.insights-donot li::marker {
  color: #c07070;
}

.insights-questions li::marker {
  color: var(--sector-accent);
}

.insights-sector__outcome-rec {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.btn--block {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.insights-sector__outcome-links {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.insights-sector__outcome-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-base);
}

.insights-sector__outcome-links a:hover,
.insights-sector__outcome-links a:focus-visible {
  color: var(--sector-accent);
}

.insights-sector__ai-hook {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.insights-sector__related-link {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sector-accent);
  text-decoration: none;
}

.insights-sector__related-link:hover {
  text-decoration: underline;
}

.insights-sector__products {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.insights-sector__products a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.insights-sector__products a:hover {
  color: var(--sector-accent);
}

.insights-sector__siblings {
  margin-top: 1.75rem;
}

.insights-siblings {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .insights-siblings {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insights-siblings__card {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 14, 0.7);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base), transform var(--dur-base);
  min-width: 0;
}

.insights-siblings__card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-1px);
}

.insights-siblings__card:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.insights-siblings__code {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--copper-bright);
}

.insights-siblings__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.insights-siblings__headline {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insights-sector__nav {
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

@media (max-width: 640px) {
  .insights-sector__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .insights-sector__nav .btn {
    width: 100%;
    justify-content: center;
  }
}

.insights-sector__hero-icon {
  display: inline-flex;
  margin-bottom: 0.75rem;
}
/* —— WM Blog —— */
.blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(16, 16, 22, 0.9), rgba(8, 8, 12, 0.95));
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.blog-card__media {
  display: block;
  /* Match Grok blog images (16:9) — avoid tall 16:10 crop on mobile */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(196, 165, 116, 0.12), transparent 70%),
    #0a0a0e;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1;
}

.blog-card__meta {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 650;
}

.blog-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--copper-bright);
}

.blog-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.blog-card__more {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--copper-bright);
  margin-top: 0.25rem;
}

.blog-page-summary {
  margin: 1rem 0 0;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.blog-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination__pages a,
.blog-pagination__pages .is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(12, 12, 16, 0.6);
}

.blog-pagination__pages a:hover {
  color: var(--text-primary);
  border-color: var(--line-mid);
}

.blog-pagination__pages .is-current {
  color: var(--text-primary);
  border-color: rgba(196, 165, 116, 0.45);
  background: rgba(196, 165, 116, 0.12);
}

.blog-pagination__ellipsis {
  color: var(--text-dim);
  padding: 0 0.2rem;
  font-family: var(--font-mono);
}

.blog-pagination .btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.blog-article__byline {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-article__figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #0a0a0e;
  /* Fixed 16:9 frame — width:100% + max-height without aspect-ratio
     was squashing / over-cropping on mobile */
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  max-height: min(28rem, 56vw);
}

.blog-article__figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.blog-article__content {
  max-width: 42rem;
  padding-bottom: var(--space-8);
}

.blog-article__content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.15rem;
}

.blog-article__content h2 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.15rem 0 0.85rem;
  max-width: 28ch;
}

.blog-article__content h2:first-child {
  margin-top: 0;
}

/* Open-source quick-start steps */
.open-package-card__meta {
  color: var(--text-dim);
  font-size: var(--text-xs);
  margin: 0 0 0.5rem;
}

.open-package-card--soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}

.products-catalog--open {
  border-top: 1px solid var(--line-soft);
}

.open-steps {
  list-style: decimal;
  padding-left: 1.25rem;
  gap: 0.55rem;
}

.open-steps li {
  display: list-item;
  padding-left: 0.25rem;
}

.open-steps li::before {
  display: none;
}

/* —— Blog desk (admin) —— */
.page-admin .site-main {
  padding-bottom: 4rem;
}

.desk {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.desk-login {
  padding: 4rem 0 6rem;
}

.desk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.desk-bar__title {
  font-size: var(--text-xl);
  margin: 0.2rem 0 0;
}

.desk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-left: auto;
}

.desk-nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}

.desk-nav__link:hover,
.desk-nav__link.is-active {
  color: var(--copper);
}

.desk-logout {
  margin: 0;
}

.desk-flash {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.desk-flash--ok {
  border: 1px solid rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.08);
  color: var(--green-bright);
}

.desk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.desk-search {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 16rem;
}

.desk-search input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-mid);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
}

.desk-count {
  color: var(--text-dim);
  font-size: var(--text-xs);
  margin: 0;
}

.desk-toolbar__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.desk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.desk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.desk-table th,
.desk-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.desk-table th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

.desk-table tr:last-child td {
  border-bottom: 0;
}

.desk-table__title {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.desk-table__title:hover {
  color: var(--copper);
}

.desk-table__slug {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.desk-table__date {
  white-space: nowrap;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.desk-table__go {
  white-space: nowrap;
  font-size: 0.8rem;
}

.desk-table__go a {
  color: var(--text-dim);
}

.desk-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--copper);
}

.desk-empty {
  color: var(--text-dim);
  margin: 0.5rem 0;
}

.desk-pagehead {
  margin: 0 0 1.35rem;
}

.desk-pagehead h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: var(--text-xl);
}

.desk-pagehead__meta a {
  color: var(--text-dim);
}

.desk-form {
  max-width: 46rem;
}

.field-hint {
  margin: -0.15rem 0 0;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.desk-form textarea#a-body {
  min-height: 22rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
}

.desk-image {
  margin: 0.5rem 0 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.desk-image__preview {
  margin: 0 0 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 28rem;
  background: #0a0a0e;
}

.desk-image__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.desk-danger {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  max-width: 46rem;
}

.desk-note {
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* Product / open-source screenshots — compact cards, not full-bleed */
.shot-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: #0c0c10;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  max-width: 100%;
}

.shot-frame img {
  width: 100%;
  height: auto;
  max-height: 200px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Clickable thumbs → full-screen lightbox */
.shot-frame.is-lightboxable,
.phone-shot.is-lightboxable {
  cursor: zoom-in;
  position: relative;
}

.shot-frame.is-lightboxable img,
.phone-shot.is-lightboxable img {
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.35s var(--ease-out);
}

.shot-frame.is-lightboxable:hover img,
.phone-shot.is-lightboxable:hover img {
  opacity: 0.92;
}

.shot-frame.is-lightboxable::after {
  content: "Click to expand";
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(8, 8, 12, 0.78);
  border: 1px solid rgba(232, 228, 220, 0.12);
  pointer-events: none;
  opacity: 0.85;
}

.phone-shot.is-lightboxable::after {
  content: "Expand";
  position: absolute;
  right: 50%;
  bottom: 2.4rem;
  translate: 50% 0;
  z-index: 2;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(8, 8, 12, 0.78);
  border: 1px solid rgba(232, 228, 220, 0.12);
  pointer-events: none;
}

body.img-lightbox-open {
  overflow: hidden;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-command) + 20);
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.img-lightbox[hidden] {
  display: none !important;
}

.img-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.img-lightbox__stage {
  position: relative;
  z-index: 1;
  width: min(100%, 1400px);
  max-height: min(96vh, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.img-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 96vw);
  max-height: min(88vh, 1200px);
  object-fit: contain;
  object-position: center top;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 228, 220, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  background: #0c0c10;
}

.img-lightbox__caption {
  margin: 0;
  max-width: 40rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.img-lightbox__hint {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.img-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(16, 16, 20, 0.9);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.img-lightbox__close:hover {
  border-color: var(--line-mid);
  background: rgba(30, 30, 38, 0.95);
}

@media (max-width: 640px) {
  .img-lightbox__img {
    max-height: 75vh;
  }

  .img-lightbox__close {
    top: 0;
    right: 0;
  }

  .shot-frame.is-lightboxable::after {
    font-size: 0.52rem;
    padding: 0.22rem 0.4rem;
  }
}

.shot-frame--dark {
  background: linear-gradient(160deg, #14141c, #08080c);
}

.shot-frame--app {
  background: #0c0c10;
  padding: 0;
}

.shot-frame--app img {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: top center;
}

/* Hero product UI shot — keep secondary to copy */
.product-detail-hero .shot-frame {
  max-width: min(100%, 420px);
  justify-self: center;
}

.product-detail-hero .shot-frame img {
  max-height: 260px;
}

/* Cinematic product hero (e.g. AI Receptionist) — wider landscape still */
.shot-frame--cinematic img {
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.product-detail-hero--receptionist .shot-frame--cinematic {
  max-width: min(100%, 560px);
  width: 100%;
}

.product-detail-hero--receptionist .shot-frame--cinematic img {
  max-height: min(42vh, 380px);
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (min-width: 900px) {
  .product-detail-hero--receptionist {
    align-items: center;
  }
}

.shot-gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  max-width: 56rem;
}

@media (min-width: 640px) {
  .shot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .shot-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* No full-width hero shot — every card stays equal */
.shot-gallery__wide {
  grid-column: auto;
}

.shot-gallery .shot-frame img {
  max-height: 180px;
  aspect-ratio: 16 / 10;
}

.shot-caption {
  margin: 0;
  padding: 0.55rem 0.75rem 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* —— Product phone UI shots (CouncilBins, etc.) —— */
.phone-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .phone-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .phone-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .phone-gallery--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phone-shot {
  margin: 0;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.phone-shot img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  border-radius: 1.35rem;
  border: 1px solid rgba(232, 228, 220, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 56px rgba(0, 0, 0, 0.4);
  background: #e8f5ef;
}

.phone-shot--hero {
  justify-self: center;
}

.phone-shot--hero img {
  max-width: min(100%, 320px);
}

@media (min-width: 900px) {
  .product-detail-hero--councilbins {
    align-items: center;
  }
}

/* —— Signal —— */
.signal-layout {
  width: min(100% - var(--gutter) * 2, var(--content-wide));
  margin-inline: auto;
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}

@media (min-width: 1000px) {
  .signal-layout {
    grid-template-columns: 0.9fr 1.2fr;
  }
}

.signal-globe {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 124, 246, 0.12), transparent 50%),
    radial-gradient(circle at 30% 40%, rgba(78, 196, 217, 0.08), transparent 40%),
    #09090e;
  overflow: hidden;
}

.signal-globe__core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(58%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(139, 124, 246, 0.35);
  background:
    radial-gradient(circle at 40% 35%, rgba(100, 90, 180, 0.35), transparent 45%),
    radial-gradient(circle at 60% 70%, rgba(40, 80, 120, 0.3), #0a0a12 70%);
  box-shadow: 0 0 80px rgba(139, 124, 246, 0.25);
}

.signal-globe__badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  border: 1px solid rgba(167, 139, 250, 0.6);
  background: #12121c;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 0 30px rgba(139, 124, 246, 0.35);
}

.signal-card {
  position: absolute;
  width: min(46%, 220px);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(12, 12, 18, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
}

.signal-card h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0.35rem 0;
}

.signal-card p {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin: 0;
  line-height: 1.4;
}

.signal-card__cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-bright);
}

.signal-card--1 { top: 8%; left: 4%; }
.signal-card--2 { top: 6%; right: 3%; }
.signal-card--3 { top: 38%; left: 2%; }
.signal-card--4 { bottom: 28%; right: 3%; }
.signal-card--5 { bottom: 8%; left: 18%; }
.signal-card--6 { bottom: 10%; right: 8%; }

@media (max-width: 700px) {
  .signal-globe {
    min-height: auto;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
  }
  .signal-globe__core,
  .signal-globe__badge {
    display: none;
  }
  .signal-card {
    position: relative;
    width: 100%;
    inset: auto;
  }
}

.signal-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-5) 0;
}

.cat-btn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cat-btn.is-active,
.cat-btn:hover {
  color: var(--text-primary);
  border-color: var(--line-mid);
  background: rgba(255, 255, 255, 0.04);
}

.signal-board {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}

.signal-board h3 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.trend-up { color: var(--green-bright); }
.trend-down { color: var(--rose); }

/* —— Content pages —— */
.content-grid {
  width: min(100% - var(--gutter) * 2, var(--content-wide));
  margin-inline: auto;
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .content-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .content-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .content-grid--sidebar {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-4);
}

.big-stat {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
}

.big-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: 0.35rem;
}

.big-stat span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Contact */
.contact-layout {
  width: min(100% - var(--gutter) * 2, var(--content-max));
  margin-inline: auto;
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-9);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* Prominent call-to-mobile */
.contact-phone {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.35rem 0 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196, 165, 116, 0.35);
  background:
    linear-gradient(145deg, rgba(196, 165, 116, 0.12), rgba(12, 12, 16, 0.4));
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.contact-phone:hover,
.contact-phone:focus-visible {
  border-color: rgba(196, 165, 116, 0.65);
  background:
    linear-gradient(145deg, rgba(196, 165, 116, 0.18), rgba(12, 12, 16, 0.5));
  outline: none;
  transform: translateY(-1px);
}

.contact-phone__label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-bright, #d4b896);
}

.contact-phone__number {
  font-family: var(--font-display), var(--font-body), system-ui, sans-serif;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.contact-phone__hint {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.contact-phone__note {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: var(--text-sm);
}

/* —— Capabilities map —— */
.cap-rail {
  position: sticky;
  top: var(--header-h);
  z-index: calc(var(--z-header) - 1);
  border-block: 1px solid var(--line-soft);
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cap-rail__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding-block: 0.45rem;
}

.cap-rail__label {
  flex: 0 0 auto;
  color: var(--copper);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cap-rail__track {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-block: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.cap-rail__link {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.cap-rail__link:hover {
  color: var(--text-primary);
  border-color: var(--line-soft);
}

.cap-rail__link.is-active {
  color: var(--text-primary);
  border-color: rgba(196, 165, 116, 0.4);
  background: rgba(196, 165, 116, 0.1);
}

.cap-domains-intro {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .cap-domains-intro {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.cap-sector-filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.cap-sector-chip {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.cap-sector-chip:hover {
  color: var(--text-primary);
  border-color: rgba(196, 165, 116, 0.35);
}

.cap-sector-chip.is-active {
  color: var(--text-primary);
  border-color: rgba(196, 165, 116, 0.45);
  background: rgba(196, 165, 116, 0.1);
}

.cap-tier {
  margin-bottom: 2.25rem;
}

.cap-tier__head {
  margin-bottom: 1rem;
  max-width: 48ch;
}

.cap-tier__intro {
  margin: 0.4rem 0 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.cap-domains {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .cap-domains {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .cap-domains {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cap-domains--spine {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .cap-domains--spine {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cap-domain {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(165deg, rgba(22, 22, 30, 0.95), rgba(10, 10, 14, 0.98));
  scroll-margin-top: calc(var(--header-h) + 3.25rem);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
}

.cap-domain:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-2px);
}

.cap-domain:target,
.cap-domain.is-target {
  border-color: rgba(196, 165, 116, 0.55);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.18);
}

.cap-domain.is-filtered-out {
  display: none;
}

.cap-domain--spine {
  border-color: rgba(196, 165, 116, 0.22);
  background:
    linear-gradient(165deg, rgba(32, 28, 22, 0.96), rgba(12, 11, 14, 0.98));
}

.cap-domain__head {
  display: grid;
  gap: 0.35rem;
}

.cap-domain__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.cap-domain__num {
  color: var(--copper);
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.cap-domain__tier {
  color: var(--text-dim);
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.cap-domain__title {
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.cap-domain__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.cap-domain .check-list {
  margin-top: auto;
  padding-top: 0.35rem;
}

.cap-domain__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-soft);
}

.cap-domain__link {
  color: var(--copper-bright);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.cap-domain__link:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cap-filter-empty {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.cap-filter-empty[hidden] {
  display: none;
}

/* Integration flow visual */
.cap-integration-viz {
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(165deg, rgba(18, 18, 26, 0.96), rgba(8, 8, 12, 0.98));
}

.cap-flow {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.cap-flow__node {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}

.cap-flow__node strong {
  font-size: var(--text-sm);
  font-weight: 600;
}

.cap-flow__node span:last-child {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.cap-flow__tag {
  color: var(--copper);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cap-flow__node--legacy {
  border-color: rgba(120, 120, 140, 0.35);
}

.cap-flow__node--spine {
  border-color: rgba(196, 165, 116, 0.45);
  background:
    linear-gradient(165deg, rgba(48, 38, 24, 0.55), rgba(12, 12, 16, 0.95));
}

.cap-flow__node--modern {
  border-color: rgba(78, 196, 217, 0.3);
}

.cap-flow__edge {
  display: flex;
  justify-content: center;
  position: relative;
  height: 1.1rem;
}

.cap-flow__edge::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(196, 165, 116, 0.15),
    rgba(196, 165, 116, 0.55),
    rgba(196, 165, 116, 0.15)
  );
}

.cap-flow__edge-label {
  position: relative;
  z-index: 1;
  padding: 0 0.45rem;
  background: rgba(10, 10, 14, 0.95);
  color: var(--text-dim);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: center;
}

.cap-flow__ai {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(139, 124, 246, 0.4);
  background: rgba(40, 32, 70, 0.25);
}

.cap-flow__ai p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Engagement steps */
.cap-engage {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cap-engage {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cap-engage {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cap-engage__step {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.22);
}

.cap-engage__num {
  display: block;
  color: var(--copper);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
}

.cap-engage__step h3 {
  margin: 0 0 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.cap-engage__step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

.program-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .program-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.program-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}

.program-card__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--copper-bright);
}

.program-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.program-card__detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.program-card__outcome {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

#proof {
  scroll-margin-top: calc(var(--header-h) + 3.25rem);
}

#integration-control {
  scroll-margin-top: calc(var(--header-h) + 3.25rem);
}

#domains {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  .cap-domain {
    transition: none;
  }

  .cap-domain:hover {
    transform: none;
  }
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-9) var(--gutter);
}

.error-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

/* Work case study views */
.work-case__layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .work-case__layout--media {
    grid-template-columns: minmax(14rem, 0.95fr) minmax(0, 1.25fr);
    gap: 1.5rem 1.75rem;
    align-items: start;
  }
}

.work-case__media {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.work-case__figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
}

.work-case__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* Diagrams / SVG: show full structure, no crop */
.work-case__figure img[src$=".svg"] {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #0c0c12;
  padding: 0;
}

.work-case__credit {
  margin: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.45);
}

.work-case__credit a {
  color: inherit;
  text-decoration: none;
}

.work-case__credit a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.work-case__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.work-case__thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.work-case__video {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #000;
}

.work-case__video-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.work-case__video-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.work-case__video-poster--empty {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1a1628, #0a0a10);
}

.work-case__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(139, 124, 246, 0.92);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.work-case__video-btn:hover .work-case__video-play,
.work-case__video-btn:focus-visible .work-case__video-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(167, 139, 250, 0.98);
}

.work-case__video-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.work-case__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.work-case__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-case__product-link {
  margin: 0.65rem 0 0;
}

.work-case__product-link a {
  color: var(--copper-bright, #d4b896);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
}

.work-case__product-link a:hover {
  text-decoration: underline;
}

.work-case__highlights {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.work-case__highlights li {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--copper-bright, #d4b896);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 165, 116, 0.22);
  background: rgba(196, 165, 116, 0.06);
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-5);
}

.view-tab {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
}

.view-tab.is-active {
  color: var(--text-primary);
  border-color: rgba(196, 165, 116, 0.45);
  background: rgba(196, 165, 116, 0.08);
}

.case-panel[hidden] {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   WM.AI page — control room (phases 1–3)
   ═══════════════════════════════════════════════════════════ */
.ai-hero {
  padding-bottom: clamp(1rem, 3vw, 1.75rem);
}

.ai-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 1100px) {
  .ai-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    min-height: min(58vh, 540px);
  }
}

.ai-hero__copy h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.ai-hero__copy .lead {
  max-width: 40ch;
}

.ai-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.35rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ai-hero__chips span {
  color: var(--text-muted);
}

.ai-hero__console-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(40vh, 360px);
}

@media (min-width: 1100px) {
  .ai-hero__console-wrap {
    min-height: min(52vh, 480px);
  }
}

/* —— Governance Console —— */
.ai-console {
  width: min(100%, 420px);
  max-width: 100%;
  aspect-ratio: 1;
  position: relative;
  isolation: isolate;
}

.ai-console__bezel {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(139, 124, 246, 0.22);
  background:
    radial-gradient(circle at 50% 42%, rgba(139, 124, 246, 0.16), transparent 48%),
    radial-gradient(circle at 55% 70%, rgba(78, 196, 217, 0.08), transparent 42%),
    linear-gradient(165deg, rgba(18, 16, 28, 0.95), rgba(8, 8, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(139, 124, 246, 0.08) inset,
    0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ai-console__screen {
  position: absolute;
  inset: 8%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 228, 220, 0.08);
  background: rgba(4, 4, 8, 0.55);
  overflow: hidden;
}

.ai-console__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(139, 124, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 124, 246, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 48%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 48%, #000 20%, transparent 75%);
}

.ai-console__ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(139, 124, 246, 0.2);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(139, 124, 246, 0.35) 40deg,
    transparent 90deg,
    transparent 180deg,
    rgba(78, 196, 217, 0.25) 220deg,
    transparent 280deg
  );
  mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%);
  -webkit-mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%);
  opacity: 0.85;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.ai-console__gate {
  position: absolute;
  left: 50%;
  top: 48%;
  translate: -50% -50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(12, 10, 16, 0.88);
  box-shadow: 0 0 28px rgba(139, 124, 246, 0.15);
  text-align: center;
  max-width: 80%;
}

.ai-console__gate-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--copper-bright);
}

.ai-console__gate-sub {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.ai-console__node {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: rgba(200, 190, 255, 0.75);
  text-transform: uppercase;
}

.ai-console__node--1 { left: 10%; top: 18%; }
.ai-console__node--2 { right: 8%; top: 22%; }
.ai-console__node--3 { left: 12%; bottom: 20%; }
.ai-console__node--4 { right: 10%; bottom: 18%; color: rgba(196, 165, 116, 0.9); }

.ai-console__live {
  bottom: 6% !important;
  z-index: 12;
}

.ai-status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-top: 1.25rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ai-status-strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(139, 124, 246, 0.5);
}

.ai-journey.journey-rail {
  margin-top: 0.5rem;
  justify-content: center;
}

.ai-section__header {
  margin-bottom: 1.75rem;
}

.ai-section__title {
  font-size: var(--text-xl);
  margin: 0.5rem 0 0.75rem;
  max-width: 22ch;
}

.ai-section__intro {
  max-width: 40rem;
  margin-bottom: 0;
}

/* Practice rail + stage */
.ai-practice__layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .ai-practice__layout {
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.ai-practice__rail {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .ai-practice__rail {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
  }
}

.ai-practice__tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(12, 12, 18, 0.7);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ai-practice__tab:hover {
  color: var(--text-primary);
  border-color: var(--line-mid);
}

.ai-practice__tab.is-active {
  color: var(--text-primary);
  border-color: rgba(139, 124, 246, 0.45);
  background: rgba(139, 124, 246, 0.1);
  box-shadow: inset 0 0 0 1px rgba(139, 124, 246, 0.12);
}

.ai-practice__tab-index {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.ai-practice__tab.is-active .ai-practice__tab-index {
  color: rgba(180, 165, 255, 0.9);
}

.ai-practice__tab-label {
  font-size: 0.85rem;
  font-weight: 550;
  white-space: nowrap;
}

.ai-practice__stage {
  min-height: 16rem;
}

.ai-practice__stage-title {
  font-size: 1.25rem;
  margin: 0.35rem 0 0.75rem;
}

.ai-practice__bullets {
  margin-top: 1rem;
}

/* Decision stack */
.ai-stack {
  display: grid;
  gap: 0.85rem;
  position: relative;
}

.ai-stack::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(139, 124, 246, 0.05),
    rgba(139, 124, 246, 0.35),
    rgba(196, 165, 116, 0.25),
    rgba(139, 124, 246, 0.05)
  );
  pointer-events: none;
}

@media (max-width: 640px) {
  .ai-stack::before {
    left: 0.95rem;
  }
}

.ai-stack__layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem 1.25rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 16, 0.75);
  opacity: 0.58;
  transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  scroll-margin-top: 6rem;
}

.ai-stack__layer.is-active {
  opacity: 1;
  border-color: rgba(139, 124, 246, 0.35);
  box-shadow: 0 0 0 1px rgba(139, 124, 246, 0.08), 0 16px 48px rgba(0, 0, 0, 0.25);
}

.ai-stack__index {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(180, 165, 255, 0.75);
  padding-top: 0.2rem;
  min-width: 1.75rem;
}

.ai-stack__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.ai-stack__body .check-list {
  margin-top: 0.75rem;
}

/* Integration matrix tags */
.ai-flow {
  margin: 1.25rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--text-dim);
  word-break: break-word;
}

.ai-matrix__tag {
  display: inline-block;
  min-width: 2.6rem;
  margin-right: 0.4rem;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(139, 124, 246, 0.25);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(180, 165, 255, 0.9);
  vertical-align: middle;
}

/* Proof */
.ai-proof__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .ai-proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ai-proof__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ai-proof__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ai-proof__card:hover {
  border-color: rgba(139, 124, 246, 0.4);
  transform: translateY(-2px);
}

.ai-proof__name {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-primary);
}

.ai-proof__bound {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: auto;
}

.ai-proof__substrate {
  margin: 1.5rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ai-proof__substrate a {
  color: var(--text-muted);
  text-decoration: none;
}

.ai-proof__substrate a:hover {
  color: var(--copper-bright);
}

.ai-engage__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .ai-engage__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ai-engage__title {
  font-size: 1.05rem;
  margin: 0.35rem 0 0.5rem;
}

.ai-cta {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Life-layer accents for AI console */
.life-fx__void--ai {
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(139, 124, 246, 0.18), transparent 65%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(78, 196, 217, 0.08), transparent 60%);
}

.life-fx__glow-field--ai {
  background:
    radial-gradient(circle at 50% 40%, rgba(200, 180, 255, 0.12), transparent 42%),
    radial-gradient(circle at 55% 48%, rgba(78, 196, 217, 0.08), transparent 38%);
}

.life-fx__bloom--ai {
  background: radial-gradient(circle, rgba(180, 160, 255, 0.2) 0%, transparent 68%);
}

@media (prefers-reduced-motion: no-preference) {
  .ai-console__ring {
    animation: ai-console-ring 42s linear infinite;
  }

  .ai-console__gate {
    animation: ai-console-gate 6s ease-in-out infinite;
  }

  .ai-console__node {
    animation: ai-console-node 5s ease-in-out infinite;
  }

  .ai-console__node--2 { animation-delay: 0.6s; }
  .ai-console__node--3 { animation-delay: 1.2s; }
  .ai-console__node--4 { animation-delay: 1.8s; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-console__ring,
  .ai-console__gate,
  .ai-console__node {
    animation: none;
  }

  .ai-stack__layer {
    opacity: 1;
  }
}

@keyframes ai-console-ring {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ai-console-gate {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(139, 124, 246, 0.12);
  }
  50% {
    box-shadow: 0 0 36px rgba(139, 124, 246, 0.28);
  }
}

@keyframes ai-console-node {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

/* —— Phase 4: Running intelligence strip —— */
.ai-running__strip {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .ai-running__strip {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
}

.ai-running__cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
  min-width: 0;
}

.ai-running__cell:hover {
  background: rgba(139, 124, 246, 0.06);
}

.ai-running__cell:focus-visible {
  outline: 1px solid rgba(196, 165, 116, 0.55);
  outline-offset: -1px;
}

.ai-running__title {
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-running__meta {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ai-running__rule {
  display: none;
  width: 1px;
  background: var(--line-soft);
  margin: 0.85rem 0;
}

@media (min-width: 900px) {
  .ai-running__rule {
    display: block;
  }
}

@media (max-width: 899px) {
  .ai-running__cell + .ai-running__rule + .ai-running__cell {
    border-top: 1px solid var(--line-soft);
  }
}

.ai-running__status {
  margin: 0.85rem 0 0;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* —— Phase 5: Decision chains —— */
.ai-chains__grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .ai-chains__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .ai-chains__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ai-chains__tile {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(12, 12, 18, 0.7);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ai-chains__tile:hover {
  color: var(--text-primary);
  border-color: var(--line-mid);
}

.ai-chains__tile:focus-visible {
  outline: 2px solid rgba(196, 165, 116, 0.65);
  outline-offset: 2px;
}

.ai-chains__tile.is-active {
  color: var(--text-primary);
  border-color: rgba(196, 165, 116, 0.5);
  background: rgba(196, 165, 116, 0.08);
  box-shadow: inset 0 0 0 1px rgba(196, 165, 116, 0.12);
}

.ai-chains__tile-index {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding-top: 0.2rem;
}

.ai-chains__tile.is-active .ai-chains__tile-index {
  color: var(--copper-bright);
}

.ai-chains__tile-label {
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.3;
}

.ai-chains__result {
  margin-top: 0.25rem;
}

.ai-chains__result-title {
  font-size: 1.15rem;
  margin: 0.35rem 0 1rem;
}

.ai-chains__map {
  display: grid;
  gap: 0.85rem;
}

.ai-chains__row {
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 720px) {
  .ai-chains__row {
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    gap: 1rem;
    align-items: start;
  }
}

.ai-chains__key {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ai-chains__val {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}
