/* Loopback company site — loopback.emu.sh
   Tokens match /brand/tokens.json (Paper light theme & Night dark theme).
   Geometry: straight cuts, square corners (radius 0), 45-degree chamfers,
   1.5px ink structural rules and 1px hairline grids. Zero third-party requests. */

:root {
  /* Palette tokens (Paper — light) */
  --Highlight: #b0198e;
  --Flamingo: #f473c6;
  --Secondary: #9c7bce;
  --Slate: #202020;
  --Amber: #fcac50;
  --Blue: #3286ce;
  --Cyan: #55cee9;
  --Indigo: #303090;

  --surface: #f6f2ee;
  --surface-raised: #fdfbf8;
  --ink: #26221e;
  --ink-muted: #615a53;
  --hairline: #d8d1c9;
  --accent-text: #b0198e;
  --on-primary: #ffffff;
  --focus: #3286ce;

  /* Studio graphite plate tokens (Parallax showcase — always dark) */
  --plate-bg: #181a1f;
  --plate-raised: #20232a;
  --plate-screen: #0b0d10;
  --plate-line: #323740;
  --plate-ink: #ecf5f3;
  --plate-muted: #a6b0ba;
  --plate-active: #62b5ff;
  --plate-mod: #f59e0b;

  /* Stage ground for Cycles renders */
  --stage-bg: #f1efec;

  /* Typography */
  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii — straight cuts */
  --radius-0: 0px;
  --radius-sm: 2px;

  /* Container */
  --max-w: 1280px;
  --iridescent: linear-gradient(90deg, var(--Cyan) 0%, var(--Blue) 30%, #e441c0 68%, var(--Amber) 100%);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --Highlight: #e441c0;
    --surface: #1c1c1c;
    --surface-raised: #262626;
    --ink: #f6f2ee;
    --ink-muted: #aaa49d;
    --hairline: #3d3a37;
    --accent-text: #f473c6;
    --stage-bg: #262626;
  }
}

:root[data-theme="dark"] {
  --Highlight: #e441c0;
  --surface: #1c1c1c;
  --surface-raised: #262626;
  --ink: #f6f2ee;
  --ink-muted: #aaa49d;
  --hairline: #3d3a37;
  --accent-text: #f473c6;
  --stage-bg: #262626;
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--surface);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* Iridescent brand bar */
.brand-stripe {
  height: 3px;
  width: 100%;
  background: var(--iridescent);
}

/* Layout wrapper */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: var(--space-8);
  }
}

/* Header */
.lb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1.5px solid var(--ink);
}

.lb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
}

.lb-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.lb-logo {
  width: 34px;
  height: auto;
}

.lb-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 860px) {
  .lb-nav {
    display: flex;
  }
}

.lb-nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
  padding-block: var(--space-2);
  transition: color 120ms ease;
}

.lb-nav-link:hover {
  color: var(--ink);
}

.lb-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lb-header-ext {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.lb-header-ext:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

@media (min-width: 520px) {
  .lb-header-ext {
    display: inline-flex;
  }
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ink-muted);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-0);
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.theme-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.theme-dot {
  width: 8px;
  height: 8px;
  background: var(--Highlight);
  display: inline-block;
}

/* Chamfer utility (45-degree straight cuts per tokens.json) */
.chamfer-tr {
  --cut: 22px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.chamfer-tr-lg {
  --cut: 28px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

@media (min-width: 640px) {
  .chamfer-tr {
    --cut: 32px;
  }
  .chamfer-tr-lg {
    --cut: 44px;
  }
}

/* Buttons */
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-0);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.lb-btn-primary {
  background: var(--Highlight);
  border-color: var(--Highlight);
  color: var(--on-primary);
}

.lb-btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.lb-btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.lb-btn-secondary:hover {
  background: var(--ink);
  color: var(--surface);
}

.lb-btn-plate {
  background: var(--plate-active);
  border-color: var(--plate-active);
  color: #0b0d10;
}

.lb-btn-plate:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b0d10;
}

.lb-btn-plate-ghost {
  background: transparent;
  border-color: #6b7685;
  color: var(--plate-ink);
}

.lb-btn-plate-ghost:hover {
  border-color: var(--plate-ink);
  background: var(--plate-ink);
  color: #0b0d10;
}

/* Monospace kickers & labels */
.mono-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--space-4);
}

.mono-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--Highlight);
  flex-shrink: 0;
}

.sec-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-2);
}

/* Hero */
.hero {
  padding-block: var(--space-12) var(--space-8);
}

@media (min-width: 960px) {
  .hero {
    padding-block: var(--space-16) var(--space-12);
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: var(--space-12);
    align-items: stretch;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  margin: 0 0 var(--space-6);
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.hero-lede {
  margin: 0 0 var(--space-8);
  max-width: 54ch;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-sublink {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-sublink a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-sublink a:hover {
  color: var(--ink);
}

/* Hero Dual-Domain Visual Plate */
.hero-plate {
  background: var(--Slate);
  color: #f6f2ee;
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  position: relative;
  border: 1px solid #353535;
}

.hero-plate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-right: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid #333333;
}

.hero-plate-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-plate-mark {
  width: 46px;
  height: auto;
}

.hero-plate-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6f2ee;
  line-height: 1.1;
}

.hero-plate-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--Amber);
  margin-top: 2px;
}

.hero-plate-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--Cyan);
  letter-spacing: 0.04em;
}

.hero-plate-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 520px) {
  .hero-plate-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-tile {
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid #333333;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease;
}

.hero-tile:hover {
  border-color: var(--Cyan);
}

.hero-tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0f12;
  display: grid;
  place-items: center;
}

.hero-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tile-meta {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-tile-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Amber);
}

.hero-tile-title {
  font-size: 14px;
  font-weight: 700;
  color: #f6f2ee;
}

.hero-tile-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #aaa49d;
}

.hero-plate-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid #333333;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #aaa49d;
}

/* Spec Strip */
.spec-strip {
  margin-top: var(--space-12);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .spec-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.spec-cell {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .spec-cell {
    padding: var(--space-4) var(--space-6);
    border-bottom: 0;
    border-right: 1px solid var(--hairline);
  }
  .spec-cell:first-child {
    padding-left: 0;
  }
  .spec-cell:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

.spec-cell:nth-last-child(-n+2) {
  border-bottom: 0;
}

.spec-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Two Pillars overview */
.pillars {
  padding-block: var(--space-8) var(--space-12);
}

.pillars-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar-card {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

.pillar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--Highlight);
}

.pillar-card-audio::after {
  background: var(--Blue);
}

.pillar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-right: var(--space-6);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.pillar-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.pillar-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.pillar-text {
  margin: 0;
  color: var(--ink-muted);
  flex: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.lb-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface);
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-decoration: none;
  padding-top: var(--space-2);
  border-top: 1px solid var(--hairline);
}

.pillar-link:hover {
  color: var(--ink);
}

/* Sections */
.section {
  padding-block: var(--space-12);
  scroll-margin-top: 72px;
}

.section-rule {
  border-top: 1.5px solid var(--ink);
  padding-top: var(--space-6);
  margin-bottom: var(--space-8);
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 860px) {
  .section-rule {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-8);
  }
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* Filter Bar (Hardware) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  margin-bottom: var(--space-6);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.lb-chip {
  padding: 6px 12px;
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius-0);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.lb-chip:hover {
  border-color: var(--ink);
}

.lb-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.filter-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  text-decoration: none;
}

.filter-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hardware Product Grid */
.hw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 600px) {
  .hw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hw-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hw-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
}

.hw-card[hidden] {
  display: none;
}

.hw-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--stage-bg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: border-color 140ms ease;
}

.hw-card:hover .hw-stage {
  border-color: var(--ink);
}

.hw-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

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

/* Automatic daylight/night render switching */
.render-night {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .has-night .render-day {
    display: none;
  }
  :root:not([data-theme="light"]) .has-night .render-night {
    display: block;
  }
}

:root[data-theme="dark"] .has-night .render-day {
  display: none;
}

:root[data-theme="dark"] .has-night .render-night {
  display: block;
}

.hw-stage-cap {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hw-body {
  padding-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.hw-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.hw-name a {
  text-decoration: none;
}

.hw-name a:hover {
  color: var(--accent-text);
}

.hw-desc {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
  flex: 1;
}

.hw-foot {
  padding-top: var(--space-2);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.hw-foot-cta {
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.hw-foot-cta:hover {
  color: var(--ink);
}

/* Hardware Category Strip */
.cat-strip {
  margin-top: var(--space-8);
  padding: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cat-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.cat-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cat-strip-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}

.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.cat-link span {
  color: var(--ink-muted);
  font-size: 11px;
}

.cat-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.cat-link:hover span {
  color: var(--surface);
  opacity: 0.75;
}

/* Audio Software Flagship Plate (Parallax) */
.parallax-plate {
  background: var(--plate-bg);
  color: var(--plate-ink);
  border: 1px solid var(--plate-line);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 960px) {
  .parallax-plate {
    padding: var(--space-8);
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
  }
}

.parallax-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Amber);
  margin-bottom: var(--space-3);
}

.parallax-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--plate-active);
}

.parallax-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.parallax-desc {
  margin: 0 0 var(--space-4);
  font-size: 15px;
  line-height: 23px;
  color: var(--plate-muted);
}

.parallax-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.plate-pill {
  padding: 3px 8px;
  border: 1px solid var(--plate-line);
  background: var(--plate-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--plate-ink);
}

.parallax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Interactive Parallax UI switcher */
.parallax-viewer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.viewer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.viewer-tab {
  padding: 5px 10px;
  border: 1px solid var(--plate-line);
  background: var(--plate-raised);
  color: var(--plate-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-0);
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}

.viewer-tab:hover {
  border-color: var(--plate-ink);
  color: var(--plate-ink);
}

.viewer-tab[aria-selected="true"] {
  border-color: var(--plate-active);
  background: rgba(98, 181, 255, 0.14);
  color: #ffffff;
}

.viewer-frame {
  border: 1px solid var(--plate-line);
  background: var(--plate-screen);
  overflow: hidden;
}

.viewer-panel {
  margin: 0;
}

.viewer-panel[hidden] {
  display: none;
}

.viewer-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.viewer-panel figcaption {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--plate-line);
  background: var(--plate-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--plate-muted);
}

/* Secondary Audio Software (In Development) */
.audio-secondary {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .audio-secondary {
    grid-template-columns: 1fr 1fr;
  }
}

.sw-card {
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.sw-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink-muted);
}

.status-live::before {
  background: var(--Blue);
}

.status-beta::before {
  background: var(--Amber);
  transform: rotate(45deg);
}

.sw-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 21px;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 860px) {
  .principles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.principle {
  padding: var(--space-6);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-text);
  letter-spacing: 0.06em;
}

.principle-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.principle-body {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 21px;
}

/* Directory Table */
.dir-list {
  border-top: 1px solid var(--hairline);
}

.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  align-items: center;
  transition: background-color 120ms ease, padding-inline 120ms ease;
}

.dir-host,
.dir-desc {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .dir-row {
    grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.5fr) auto auto;
    gap: var(--space-6);
  }
  .dir-host,
  .dir-desc {
    grid-column: auto;
  }
}

.dir-row:hover {
  background: var(--surface-raised);
  padding-inline: var(--space-3);
}

.dir-host {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
}

.dir-desc {
  color: var(--ink-muted);
  font-size: 14px;
}

.dir-row .status-badge {
  justify-self: start;
}

.dir-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  justify-self: end;
}

/* Footer */
.lb-footer {
  margin-top: var(--space-8);
  border-top: 1.5px solid var(--ink);
  padding-block: var(--space-8);
}

.lb-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--hairline);
}

.lb-footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.lb-footer-links a:hover {
  color: var(--ink);
}

.lb-footer-bottom {
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  font-size: 13px;
  color: var(--ink-muted);
}

.lb-footer-bottom a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lb-footer-bottom p {
  margin: 0;
}
