/* ==========================================================================
   Local AI 3D — Visual Design System
   Inspired by DROP / Holographik Brand Identity Architecture:
   Void Black (#09090B) · Pearly Purple (#A89FCA) · Desert White (#F5F4F0)
   Flame Orange (#EA5B25) · Acid Lime (#E7F45A) · Soft Mint (#BCE5B5)
   ========================================================================== */

:root {
  --void: #09090b;
  --charcoal: #141418;
  --surface: #1c1c22;
  --surface-hover: #25252e;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  --hairline-dark: rgba(9, 9, 11, 0.12);
  --pearly: #a89fca;
  --pearly-soft: #c4bde0;
  --pearly-band: #b8afda;
  --desert: #f5f4f0;
  --concrete: #e6e5e9;
  --ink: #09090b;
  --ink-muted: #52525e;
  --muted: #9898a6;
  --flame: #ea5b25;
  --acid: #e7f45a;
  --mint: #bce5b5;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "New York", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, monospace;
  --max-w: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--desert);
  line-height: 1.6;
  font-size: 16px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

::selection {
  background: var(--acid);
  color: var(--void);
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p, li, figcaption {
  text-wrap: pretty;
}

button {
  font-family: inherit;
}

/* Visible keyboard focus everywhere (mouse clicks stay clean) */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 6px;
}

.band-desert :focus-visible,
.band-concrete :focus-visible,
.band-pearly :focus-visible,
body.docs-body:not(.docs-dark) :focus-visible {
  outline-color: var(--ink);
}

/* Anchor targets clear the sticky bars */
section[id] {
  scroll-margin-top: 66px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-actions {
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--desert);
  white-space: nowrap;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(231, 244, 90, 0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--desert);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Buttons & Pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mobile-only-nav {
  display: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-acid {
  background: var(--acid);
  color: var(--void);
}

.btn-acid:hover {
  background: #f0fa7a;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--hairline-strong);
  color: var(--desert);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
}

.btn-dark {
  background: var(--void);
  color: var(--desert);
}

.btn-dark:hover {
  background: #1d1d24;
}

.btn-outline-dark {
  background: transparent;
  border-color: rgba(9, 9, 11, 0.28);
  color: var(--void);
}

.btn-outline-dark:hover {
  background: rgba(9, 9, 11, 0.06);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Inside column-flex cards a pill must hug its label, not stretch full width */
.engine-card .pill,
.store-card .pill {
  align-self: flex-start;
}

.pill-xs {
  font-size: 10px;
  padding: 3px 8px;
}

.pill-acid { background: rgba(231, 244, 90, 0.14); color: var(--acid); border: 1px solid rgba(231, 244, 90, 0.3); }
.pill-pearly { background: rgba(168, 159, 202, 0.15); color: var(--pearly-soft); border: 1px solid rgba(168, 159, 202, 0.3); }
.pill-mint { background: rgba(188, 229, 181, 0.14); color: var(--mint); border: 1px solid rgba(188, 229, 181, 0.3); }
.pill-flame { background: rgba(234, 91, 37, 0.15); color: #ff8657; border: 1px solid rgba(234, 91, 37, 0.35); }
.pill-dark { background: var(--void); color: var(--desert); }

/* --------------------------------------------------------------------------
   DROP Band & Metadata Rail System
   -------------------------------------------------------------------------- */
.band {
  padding: 88px 0;
  position: relative;
}

.band-hero {
  padding-top: 44px;
  padding-bottom: 64px;
}

/* Continues the band above it (same background) */
.band-follow {
  padding-top: 24px;
}

.band-void { background: var(--void); color: var(--desert); }
.band-charcoal { background: var(--charcoal); color: var(--desert); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band-desert { background: var(--desert); color: var(--ink); }
.band-concrete { background: var(--concrete); color: var(--ink); }
.band-pearly { background: var(--pearly-band); color: var(--ink); }
.band-acid { background: var(--acid); color: var(--ink); }

.meta-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.band-desert .meta-rail,
.band-concrete .meta-rail,
.band-pearly .meta-rail,
.band-acid .meta-rail {
  border-bottom-color: rgba(9, 9, 11, 0.16);
  color: rgba(9, 9, 11, 0.65);
}

/* Iconic DROP Dual-Register Display Typography */
.display-hero {
  margin: 0 0 24px;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-compact-head .display-hero {
  margin: 0;
}

.display-setup {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 68px);
  color: var(--pearly-soft);
  text-transform: uppercase;
}

.display-serif {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(44px, 7.2vw, 90px);
  color: var(--desert);
  margin-top: 4px;
}

.section-heading {
  margin: 0 0 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
}

.section-heading .serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.12em;
}

.lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 32px;
}

.band-desert .lead,
.band-concrete .lead,
.band-pearly .lead,
.band-acid .lead {
  color: rgba(9, 9, 11, 0.74);
}

/* --------------------------------------------------------------------------
   Hero Showcase & Interactive Media Frame
   -------------------------------------------------------------------------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-stage {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--charcoal);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.hero-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(20, 20, 24, 0.92);
}

.hero-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.hero-stage-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mint);
}

/* Fixed 16:9 stage so switching views never shifts the page */
#hero-stage-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--void);
}

.hero-stage-cap {
  padding: 13px 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Soft cross-fade while a swapped image loads */
.is-swapping {
  opacity: 0.4;
}

#hero-stage-img,
#theater-img,
.showcase-img {
  transition: opacity 0.22s ease, transform 0.35s ease;
}

.segmented {
  display: inline-flex;
  background: var(--void);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.segmented button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented button:hover:not(.active),
.showcase-mode-bar button:hover:not(.active) {
  color: var(--desert);
}

.segmented button.active {
  background: var(--acid);
  color: var(--void);
  font-weight: 600;
}

/* Interactive Demo Frame (supports reduced motion + pause toggle) */
.demo-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--void);
}

.band-desert .demo-frame,
.band-concrete .demo-frame {
  border-color: var(--hairline-dark);
}

.demo-frame-lg {
  border-radius: var(--radius-lg);
}

.demo-frame img {
  width: 100%;
  display: block;
}

.demo-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(8px);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 4;
}

.demo-toggle:hover {
  background: rgba(9, 9, 11, 0.96);
}

.demo-caption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--charcoal);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   DROP Signature 4-Column Metric Bar Chart ("RESULTS THAT SPEAK")
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.metric-bar-card {
  background: var(--void);
  color: var(--desert);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(9, 9, 11, 0.22);
  min-height: 220px;
}

.metric-bar-card.tall-1 { min-height: 288px; }
.metric-bar-card.tall-2 { min-height: 256px; }
.metric-bar-card.tall-3 { min-height: 232px; }
.metric-bar-card.tall-4 { min-height: 268px; }

.metric-num {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--acid);
  margin: 14px 0 8px;
}

.metric-label {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.metric-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Workflow Bento & Cards
   -------------------------------------------------------------------------- */
.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: center;
  background: var(--desert);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.workflow-card.reverse {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.workflow-card.reverse .workflow-copy {
  order: 2;
}

.workflow-copy h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
}

.workflow-copy p {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.workflow-bullets {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #2b2b33;
  font-size: 14.5px;
}

.workflow-bullets li {
  margin-bottom: 6px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  background: var(--charcoal);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-card.span-2 {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  cursor: zoom-in;
}

.gallery-meta {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-meta h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.gallery-meta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Provenance Strip */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.prop-card {
  background: var(--charcoal);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px;
}

.prop-card h4 {
  margin: 8px 0 10px;
  font-size: 18px;
}

.kv-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 13px;
  margin: 0;
}

.kv-list dt {
  font-family: var(--font-mono);
  color: var(--muted);
}

.kv-list dd {
  margin: 0;
  color: var(--desert);
  text-align: right;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Tables (Models, VRAM, Licenses)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--charcoal);
}

.band-desert .table-wrap,
.docs-body .table-wrap {
  border-color: var(--hairline-dark);
  background: #ffffff;
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

table.spec-table th,
table.spec-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

table.spec-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pearly-soft);
  background: rgba(255, 255, 255, 0.03);
}

.band-desert table.spec-table th,
.docs-body table.spec-table th {
  color: var(--ink-muted);
  background: #f0eff3;
  border-bottom-color: var(--hairline-dark);
}

.band-desert table.spec-table td,
.docs-body table.spec-table td {
  border-bottom-color: var(--hairline-dark);
}

table.spec-table tr:last-child td {
  border-bottom: none;
}

/* Honest Limits Split */
.honest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.honest-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--hairline);
  background: var(--charcoal);
}

.honest-card.good { border-color: rgba(188, 229, 181, 0.35); }
.honest-card.limits { border-color: rgba(234, 91, 37, 0.4); }

.honest-card h3 {
  margin: 12px 0 14px;
  font-size: 24px;
}

.honest-card ul {
  margin: 0;
  padding-left: 20px;
  color: #d6d6df;
}

.honest-card li {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Pearly Purple FAQ Accordion (DROP Signature Band)
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 98px;
}

.faq-intro .section-heading {
  margin-bottom: 16px;
}

.faq-intro p {
  margin: 0 0 22px;
  max-width: 340px;
  color: rgba(9, 9, 11, 0.74);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(9, 9, 11, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.15s ease;
}

.faq-item:hover,
.faq-item[open] {
  background: rgba(255, 255, 255, 0.56);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 22px 18px;
  color: rgba(9, 9, 11, 0.8);
  font-size: 15px;
  line-height: 1.65;
  max-width: 68ch;
}

.faq-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-body code {
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(9, 9, 11, 0.09);
}

/* Store CTA Cards */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  max-width: 100%;
  gap: 22px;
}

.store-card {
  background: var(--charcoal);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.store-card h3 {
  margin: 10px 0 8px;
  font-size: 26px;
}

.store-card p {
  margin: 0;
  color: var(--muted);
}

.store-card {
  transition: border-color 0.2s ease;
}

.store-card:hover {
  border-color: var(--hairline-strong);
}

/* Footer */
.site-footer {
  background: var(--void);
  border-top: 1px solid var(--hairline);
  padding: 52px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h5 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pearly-soft);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--desert);
}

.footer-brand .brand-mark {
  margin-bottom: 12px;
}

.footer-blurb {
  margin: 0;
  max-width: 340px;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ==========================================================================
   DOCUMENTATION SITE LAYOUT (Light Desert Default + Dark Void Mode Toggle)
   ========================================================================== */
body.docs-body {
  background: var(--desert);
  color: var(--ink);
}

body.docs-body.docs-dark {
  background: var(--void);
  color: var(--desert);
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 60px;
  background: rgba(245, 244, 240, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 14px;
}

body.docs-dark .docs-topbar {
  background: rgba(9, 9, 11, 0.9);
  border-bottom-color: var(--hairline);
}

.docs-topbar .brand-mark {
  color: inherit;
}

.docs-topbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.docs-topbar-group.tight {
  gap: 8px;
}

.docs-ver-tag {
  font-size: 12px;
  opacity: 0.6;
  white-space: nowrap;
}

.search-label {
  color: var(--acid);
  font-size: 12px;
}

.docs-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 240px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(9, 9, 11, 0.16);
  background: #ffffff;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  cursor: pointer;
}

body.docs-dark .docs-search-btn {
  background: var(--charcoal);
  border-color: var(--hairline);
  color: var(--muted);
}

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid currentColor;
  opacity: 0.65;
}

.icon-btn {
  border: 1px solid rgba(9, 9, 11, 0.16);
  background: transparent;
  color: inherit;
  border-radius: 9px;
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}

.icon-btn:hover,
.docs-search-btn:hover {
  background: rgba(9, 9, 11, 0.05);
}

body.docs-dark .icon-btn {
  border-color: var(--hairline);
}

body.docs-dark .icon-btn:hover,
body.docs-dark .docs-search-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.docs-menu-btn {
  display: none;
}

.docs-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 228px;
  max-width: 1420px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

.docs-sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 24px 18px 40px 22px;
  border-right: 1px solid var(--hairline-dark);
}

body.docs-dark .docs-sidebar {
  border-right-color: var(--hairline);
}

.docs-group {
  margin-bottom: 22px;
}

.docs-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin: 0 0 8px 10px;
}

body.docs-dark .docs-group-title {
  color: var(--pearly);
}

.docs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #363642;
  transition: background 0.12s ease, color 0.12s ease;
}

body.docs-dark .docs-nav-list a {
  color: #b8b8c6;
}

.docs-nav-list a:hover {
  background: rgba(9, 9, 11, 0.06);
  color: var(--ink);
}

body.docs-dark .docs-nav-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--desert);
}

.docs-nav-list a.active {
  background: var(--void);
  color: var(--acid);
  font-weight: 600;
}

body.docs-dark .docs-nav-list a.active {
  background: var(--acid);
  color: var(--void);
}

.docs-article {
  padding: 36px 48px 72px;
  max-width: 920px;
  min-width: 0;
}

.docs-article > p,
.docs-article > ul,
.docs-article > ol,
.docs-article .doc-lead {
  max-width: 72ch;
}

.docs-article a:not(.pager-link) {
  text-decoration: underline;
  text-decoration-color: rgba(9, 9, 11, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.12s ease;
}

.docs-article a:not(.pager-link):hover {
  text-decoration-color: currentColor;
}

body.docs-dark .docs-article a:not(.pager-link) {
  text-decoration-color: rgba(255, 255, 255, 0.36);
}

/* Pills were tuned for dark surfaces — readable variants on the light docs theme */
body.docs-body:not(.docs-dark) .pill-mint { color: #1d6b32; background: rgba(47, 143, 70, 0.13); border-color: rgba(47, 143, 70, 0.34); }
body.docs-body:not(.docs-dark) .pill-pearly { color: #55488f; background: rgba(120, 104, 190, 0.13); border-color: rgba(120, 104, 190, 0.36); }
body.docs-body:not(.docs-dark) .pill-flame { color: #b23c0e; background: rgba(234, 91, 37, 0.11); border-color: rgba(234, 91, 37, 0.4); }
body.docs-body:not(.docs-dark) .pill-acid { color: #4d5300; background: rgba(231, 244, 90, 0.5); border-color: rgba(120, 130, 0, 0.4); }

table.spec-table .pill {
  margin: 2px 0;
}

.docs-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flame);
  margin-bottom: 8px;
}

body.docs-dark .docs-kicker {
  color: var(--acid);
}

.docs-article h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.docs-article .doc-lead {
  font-size: 17.5px;
  color: var(--ink-muted);
  margin: 0 0 28px;
  line-height: 1.62;
}

body.docs-dark .docs-article .doc-lead {
  color: var(--muted);
}

.docs-article h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 38px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-dark);
  scroll-margin-top: 80px;
}

body.docs-dark .docs-article h2 {
  border-top-color: var(--hairline);
}

.docs-article h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  scroll-margin-top: 80px;
}

.docs-article p,
.docs-article li {
  line-height: 1.68;
}

.docs-article code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(9, 9, 11, 0.07);
}

body.docs-dark .docs-article code {
  background: rgba(255, 255, 255, 0.1);
}

.docs-article pre {
  background: var(--void);
  color: var(--desert);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  border: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.55;
  position: relative;
}

.docs-article pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--charcoal);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  border-left: 4px solid var(--pearly);
  background: rgba(168, 159, 202, 0.14);
  font-size: 14.5px;
}

.callout.warn {
  border-left-color: var(--flame);
  background: rgba(234, 91, 37, 0.1);
}

.callout.tip {
  border-left-color: #2f8f46;
  background: rgba(188, 229, 181, 0.25);
}

body.docs-dark .callout { background: rgba(168, 159, 202, 0.12); }
body.docs-dark .callout.warn { background: rgba(234, 91, 37, 0.14); }
body.docs-dark .callout.tip { background: rgba(188, 229, 181, 0.12); border-left-color: var(--mint); }

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.doc-figure {
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
  background: var(--void);
}

body.docs-dark .doc-figure {
  border-color: var(--hairline);
}

.doc-figure img {
  width: 100%;
  cursor: zoom-in;
}

.doc-figure figcaption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--charcoal);
  border-top: 1px solid var(--hairline);
}

body.docs-dark .table-wrap {
  background: var(--charcoal);
  border-color: var(--hairline);
}

body.docs-dark table.spec-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pearly-soft);
  border-bottom-color: var(--hairline);
}

body.docs-dark table.spec-table td {
  border-bottom-color: var(--hairline);
}

.docs-pager {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.docs-dark .docs-pager {
  border-top-color: var(--hairline);
}

.pager-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-dark);
  background: #ffffff;
}

body.docs-dark .pager-link {
  background: var(--charcoal);
  border-color: var(--hairline);
}

.pager-link { transition: border-color 0.12s ease, transform 0.12s ease; }
.pager-link:hover { border-color: var(--ink); transform: translateY(-1px); }
body.docs-dark .pager-link:hover { border-color: var(--acid); }
.pager-link.next { text-align: right; }
.pager-dir { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; }
body.docs-dark .pager-dir { color: var(--muted); }
.pager-title { display: block; font-weight: 600; margin-top: 3px; }

/* Right TOC */
.docs-toc {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 28px 18px;
  font-size: 13px;
}

.docs-toc h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

body.docs-dark .docs-toc h5 {
  color: var(--pearly);
}

.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--hairline-dark);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body.docs-dark .docs-toc ul {
  border-left-color: var(--hairline);
}

.docs-toc a {
  color: var(--ink-muted);
}

body.docs-dark .docs-toc a {
  color: var(--muted);
}

.docs-toc a {
  display: block;
  line-height: 1.4;
  transition: color 0.12s ease;
}

.docs-toc a.active {
  color: var(--ink);
  font-weight: 600;
}

body.docs-dark .docs-toc a.active {
  color: var(--desert);
}

.docs-toc a:hover {
  color: var(--flame);
}

body.docs-dark .docs-toc a:hover {
  color: var(--acid);
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 18px 18px;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--charcoal);
  color: var(--desert);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.search-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--desert);
  font-family: var(--font-sans);
  font-size: 16px;
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.search-hit {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--desert);
}

.search-hit:hover,
.search-hit.selected {
  background: rgba(231, 244, 90, 0.14);
}

.search-hit-sec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acid);
  text-transform: uppercase;
}

.search-hit-title {
  font-weight: 600;
  font-size: 15px;
  margin: 2px 0;
}

.search-hit-snip {
  font-size: 13px;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(9, 9, 11, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; animation: lb-in 0.18s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox::after {
  content: "ESC · CLICK TO CLOSE";
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 12px; border: 1px solid var(--hairline-strong); }

/* --------------------------------------------------------------------------
   Responsive Breakpoints (Desktop -> Tablet -> 390px Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .docs-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-article { padding: 30px 28px 60px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-only-nav { display: inline-flex; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-bar-card.tall-1, .metric-bar-card.tall-2, .metric-bar-card.tall-3, .metric-bar-card.tall-4 { min-height: 190px; }
  .workflow-card, .workflow-card.reverse { grid-template-columns: 1fr; padding: 20px; }
  .workflow-card.reverse .workflow-copy { order: 0; }
  .gallery-grid, .prop-grid, .honest-grid, .store-grid { grid-template-columns: 1fr; }
  .gallery-card.span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
  .faq-intro p { max-width: none; }
}

/* Meta rails collapse to their lead label before they can wrap into a text block */
@media (max-width: 1100px) {
  .meta-rail span:nth-child(n + 3) { display: none; }
}

@media (max-width: 900px) {
  .meta-rail span:nth-child(n + 2) { display: none; }
  .meta-rail { padding-bottom: 16px; margin-bottom: 28px; }
}

@media (max-width: 780px) {
  .container { padding: 0 18px; }
  .band { padding: 56px 0; }
  .brand-mark .pill,
  .docs-ver-tag,
  .docs-home-link,
  .docs-search-btn .kbd { display: none; }
  .site-nav-inner .btn { padding: 8px 13px; font-size: 13px; }
  .docs-topbar { padding: 0 12px; gap: 8px; }
  .docs-menu-btn { display: inline-flex; padding: 6px 10px; }
  .docs-search-btn { min-width: 0; padding: 7px 10px; font-size: 12.5px; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 95;
    background: var(--desert);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.28);
  }
  body.docs-dark .docs-sidebar { background: var(--void); }
  .docs-sidebar.open { transform: translateX(0); }
  .docs-article { padding: 24px 18px 56px; }
  .docs-pager { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .section-heading { margin-bottom: 22px; }
  .hero-stage-tag { display: none; }
  .hero-stage-bar { padding: 10px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1 1 0; padding: 7px 4px; font-size: 10.5px; }

  .demo-caption span:nth-child(2) { opacity: 0.75; }
}


/* ==========================================================================
   Visual-First DROP Flagship Hero Gallery & Theater (v1.0.0 Flagship PBR)
   ========================================================================== */
.hero-compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.hero-compact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 8px;
}

.hero-compact-side p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-stat-tile {
  background: var(--charcoal);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-val {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--acid);
  line-height: 1.05;
}

.hero-stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Persona Filter Bar */
.persona-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.persona-btn {
  border: 1px solid var(--hairline);
  background: var(--charcoal);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.persona-btn:hover {
  color: var(--desert);
  border-color: rgba(255, 255, 255, 0.28);
}

.persona-btn.active {
  background: var(--acid);
  color: var(--void);
  border-color: var(--acid);
  font-weight: 700;
}

/* 6-Hero Museum Showcase Grid (3-Up on Desktop, 2-Up Tablet, 1-Up Mobile) */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.showcase-card {
  background: #0d0d11;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.showcase-card {
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.25s ease, filter 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 175, 218, 0.45);
}

/* Discipline filter: non-matching heroes recede instead of collapsing the grid */
.showcase-card.is-dim {
  opacity: 0.22;
  filter: saturate(0.4);
}

.showcase-card.is-dim:hover {
  opacity: 0.6;
  transform: none;
}

.showcase-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #09090b;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.showcase-card:hover .showcase-img {
  transform: scale(1.025);
}

.showcase-persona-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--pearly-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.showcase-mode-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.showcase-mode-bar button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.showcase-mode-bar button.active {
  background: var(--pearly);
  color: var(--void);
  font-weight: 700;
}

.showcase-card-foot {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-card-foot h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--desert);
}

.showcase-card-spec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Visual PBR + Retopo Two-Up on Desert White */
.pbr-visual-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* Both proofs are 16:9 — equal columns keep their frames and captions on one line */
.pbr-visual-stack .demo-frame {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  border-color: rgba(9, 9, 11, 0.14);
}

.pbr-visual-stack .demo-caption,
.pbr-visual-stack .pbr-zoom-cap {
  flex: 1;
  align-items: center;
  padding: 14px 18px;
  font-size: 12px;
  background: var(--void);
  border-top: 1px solid var(--hairline);
}

.pbr-zoom {
  background: var(--void);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(9, 9, 11, 0.14);
  display: flex;
  flex-direction: column;
}

.pbr-zoom img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.pbr-zoom-cap {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Interactive 4-Tab Visual Workflow Theater */
.theater-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.theater-head .section-heading {
  margin: 0;
}

.theater-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theater-tab {
  border: 1px solid var(--hairline);
  background: var(--charcoal);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theater-tab:hover:not(.active) {
  color: var(--desert);
  border-color: rgba(255, 255, 255, 0.28);
}

.theater-tab.active {
  background: var(--pearly);
  color: var(--void);
  border-color: var(--pearly);
  font-weight: 700;
}

.ui-strip-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.ui-strip-card {
  background: var(--charcoal);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ui-strip-card {
  transition: border-color 0.2s ease;
}

.ui-strip-card:hover {
  border-color: var(--hairline-strong);
}

.ui-strip-card img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.ui-strip-card span {
  display: block;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* Compact 3-Engine Trio (replaces giant text table on landing page) */
.engine-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.engine-card {
  background: var(--void);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.engine-card.featured {
  border-color: rgba(184, 175, 218, 0.45);
}

.engine-card code {
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.engine-card h4 {
  margin: 2px 0 0;
  font-size: 20px;
  color: var(--desert);
}

.engine-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .hero-compact-head,
  .pbr-visual-stack {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ui-strip-3,
  .engine-trio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-card.is-dim {
    display: none;
  }
  .hero-stat-val {
    font-size: 19px;
  }
  .hero-stat-tile {
    padding: 14px;
  }
  .section-heading .serif-accent {
    display: block;
  }
  .btn-row .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 780px) {
  /* Filter + tab pills become one swipeable row instead of a 4-row stack */
  .persona-bar,
  .theater-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .persona-bar::-webkit-scrollbar,
  .theater-tabs::-webkit-scrollbar {
    display: none;
  }
  .persona-btn,
  .theater-tab {
    flex: 0 0 auto;
  }
  .theater-head {
    display: block;
  }
  .theater-head .section-heading {
    margin-bottom: 18px;
  }
}
