/* ===== styles.css ===== */
:root {
  color-scheme: dark;
  --bg: #030305;
  --panel: rgba(18, 18, 22, 0.72);
  --panel-strong: rgba(30, 30, 36, 0.82);
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.22);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --soft: #72727c;
  --accent: #e8edf7;
  --cyan: #76d8ff;
  --green: #94f0c3;
  --violet: #b9a8ff;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
  /*
   * Section vertical rhythm (global).
   * Each section uses padding-block: var(--section-y).
   * Adjacent sections → visual gap ≈ 2 × --section-y
   * (matches Products ↔ Art Gallery feel when --section-y is 36px → ~72px).
   */
  --section-y: 100px;
  /* Hero → first section (Products) stays a bit tighter */
  --section-y-hero: 32px;
  --section-y-closing: 32px;
  /* Research module cards (2DGS / FSR / …) — gap between project cards */
  --research-gap: 100px;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 27rem),
    linear-gradient(180deg, #09090d 0%, var(--bg) 42%, #050507 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 68%, transparent);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  height: 64px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(140%);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  width: 21px;
  height: 21px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, transparent 24%),
    linear-gradient(135deg, #2f333b, #08090c);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.12);
}

.nav {
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 4px;
  height: 4px;
  margin: 1px;
  border-radius: 50%;
  background: var(--text);
}

.hero {
  /* Single-column intro (no side device preview) — stay compact, not full-viewport */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  padding: 96px 0 var(--section-y-hero);
}

.apple-hero {
  padding-bottom: var(--section-y-hero);
}

.hero-copy {
  padding-top: 8px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

/* Products sits directly under hero — use tight rhythm */
.hero + .section-band,
#products.section-band {
  padding-top: var(--section-y-hero);
  padding-bottom: var(--section-y);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}

.primary-action {
  color: #050507;
  background: linear-gradient(180deg, #ffffff, #c9cbd1);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.16);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.console,
.hero-device {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 34%),
    rgba(11, 11, 14, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(140%);
}

.console::before,
.hero-device::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 16%, rgba(118, 216, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 22% 76%, rgba(148, 240, 195, 0.08), transparent 18rem);
}

.console-bar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.console-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 1.2fr 0.8fr;
  gap: 14px;
  height: calc(100% - 48px);
  min-height: 572px;
  padding: 14px;
}

.hero-device {
  min-height: 590px;
}

.hero-device-body {
  position: relative;
  z-index: 1;
  min-height: 542px;
  overflow: hidden;
}

.device-orbit {
  position: absolute;
  inset: 32px 0 96px;
  display: grid;
  place-items: center;
}

.device-stack {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.device-stack span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.compact-feature {
  min-height: 190px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

.panel-head strong {
  color: var(--text);
  font-weight: 650;
}

.command-panel {
  grid-row: span 2;
  min-height: 444px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.1), transparent 18rem),
    var(--panel);
}

.orbital {
  position: absolute;
  inset: 56px 14px 14px;
  display: grid;
  place-items: center;
}

.core,
.ring,
.node {
  position: absolute;
  border-radius: 50%;
}

.core {
  width: 96px;
  height: 96px;
  background:
    radial-gradient(circle at 35% 28%, #ffffff, transparent 26%),
    linear-gradient(145deg, #dce7ef, #3c444f 45%, #0d0f13);
  box-shadow: 0 0 64px rgba(255, 255, 255, 0.18), inset 0 0 26px rgba(255, 255, 255, 0.14);
}

.ring {
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotateX(72deg) rotateZ(-18deg);
}

.ring-one {
  width: 310px;
  height: 310px;
  animation: drift 12s linear infinite;
}

.ring-two {
  width: 430px;
  height: 430px;
  border-color: rgba(118, 216, 255, 0.18);
  animation: drift 18s linear infinite reverse;
}

.node {
  width: 13px;
  height: 13px;
  background: #f5f5f7;
  box-shadow: 0 0 24px rgba(118, 216, 255, 0.54);
}

.node-a {
  transform: translate(155px, -62px);
}

.node-b {
  transform: translate(-204px, 76px);
  background: var(--green);
}

.node-c {
  transform: translate(82px, 188px);
  background: var(--violet);
}

.prompt-panel {
  min-height: 296px;
}

.prompt-lines {
  display: grid;
  gap: 13px;
  padding: 8px 16px 18px;
}

.prompt-lines span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035));
}

.prompt-lines span:nth-child(1) {
  width: 86%;
}

.prompt-lines span:nth-child(2) {
  width: 68%;
}

.prompt-lines span:nth-child(3) {
  width: 92%;
}

.prompt-lines span:nth-child(4) {
  width: 54%;
}

.agent-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.agent-row b {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.metric-panel {
  min-height: 220px;
}

.bars {
  position: absolute;
  inset: 64px 16px 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
}

.bars span {
  height: var(--h);
  min-height: 26px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(118, 216, 255, 0.14));
}

.review-panel {
  grid-column: span 2;
  min-height: 126px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.review-list span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.review-list i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(148, 240, 195, 0.55);
}

.section-band,
.closing {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y-closing) 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 740;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 232px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature p,
.closing p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, calc(100% - 40px));
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.signal-strip div {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip span {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.signal-strip strong {
  align-self: end;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 720;
}

/* ======================== CONTACT ======================== */
.contact-section .section-title {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.contact-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 168px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-card:hover {
  border-color: var(--line-bright);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.contact-card-label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card-value {
  color: var(--text);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 650;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.contact-card-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.closing {
  max-width: 900px;
  padding-bottom: calc(var(--section-y) * 2);
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 88px 0 var(--section-y-hero);
  }

  .hero + .section-band,
  #products.section-band {
    padding-top: var(--section-y-hero);
    padding-bottom: var(--section-y);
  }

  .console {
    min-height: 560px;
  }

  .hero-device {
    min-height: 520px;
  }

  .device-stack {
    grid-template-columns: 1fr;
  }

  .device-stack span {
    min-height: 44px;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 64px;
  }

  .gallery-tile--hero,
  .gallery-tile--wide {
    grid-column: span 6;
    grid-row: span 4;
  }

  .gallery-tile--tall,
  .gallery-tile--normal {
    grid-column: span 3;
    grid-row: span 3;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 500px;
  }

  .product-card--wide {
    grid-column: auto;
  }

  .feature-grid,
  .signal-strip {
    grid-template-columns: 1fr 1fr;
  }

  .review-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .art-gallery-section,
  .lab-section,
  .journal-section,
  .team-section,
  .connections-section,
  .section-band,
  .closing,
  .signal-strip {
    width: min(100% - 28px, 1120px);
  }

  .team-card {
    width: 168px;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 8px;
  }

  .gallery-tile--hero,
  .gallery-tile--wide,
  .gallery-tile--tall,
  .gallery-tile--normal {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-tile--normal:nth-child(3n) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-lightbox-nav--prev {
    left: 8px;
  }

  .gallery-lightbox-nav--next {
    right: 8px;
  }

  .lead {
    font-size: 16px;
  }

  .console-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .command-panel,
  .review-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-device-body {
    min-height: 492px;
  }

  .command-panel {
    min-height: 330px;
  }

  .orbital {
    inset: 52px 0 0;
    transform: scale(0.72);
  }

  .agent-row,
  .feature-grid,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }
}

/* ===== gallery/styles.css ===== */
.art-gallery-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

.art-gallery-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.art-gallery-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 220px;
  padding: 42px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.gallery-empty p {
  margin: 0;
  font-size: 16px;
}

.gallery-empty code {
  color: var(--text);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
}

.gallery-empty span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #14161d 0%, #2a3140 55%, #101218 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  animation: gallery-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.gallery-tile:focus-visible {
  outline: 2px solid rgba(118, 216, 255, 0.72);
  outline-offset: 3px;
}

.gallery-tile:hover {
  z-index: 2;
  border-color: var(--line-bright);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.gallery-tile--hero {
  grid-column: span 6;
  grid-row: span 5;
}

.gallery-tile--wide {
  grid-column: span 6;
  grid-row: span 3;
}

.gallery-tile--tall {
  grid-column: span 3;
  grid-row: span 4;
}

.gallery-tile--normal {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.gallery-tile.is-loaded img {
  opacity: 1;
}

.gallery-tile:hover img {
  transform: scale(1.08);
}

.gallery-tile.is-fallback img {
  opacity: 0;
}

.gallery-tile.is-fallback::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--tile-fallback, linear-gradient(145deg, #1a1d2e, #76d8ff));
}

.gallery-tile.is-fallback[style*="--fallback:0"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #1a1d2e 0%, #3d4f7c 42%, #76d8ff 100%);
}

.gallery-tile.is-fallback[style*="--fallback:1"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(160deg, #12141c 0%, #5b3f72 55%, #b9a8ff 100%);
}

.gallery-tile.is-fallback[style*="--fallback:2"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #0d1016 0%, #1f4d3a 48%, #94f0c3 100%);
}

.gallery-tile.is-fallback[style*="--fallback:3"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(155deg, #10131a 0%, #4a3058 40%, #e8edf7 100%);
}

.gallery-tile.is-fallback[style*="--fallback:4"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(140deg, #090b10 0%, #2a3a5c 50%, #76d8ff 100%);
}

.gallery-tile.is-fallback[style*="--fallback:5"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(150deg, #0f1118 0%, #3b2f4f 45%, #f5f5f7 100%);
}

.gallery-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  min-height: 46%;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 5, 0.82) 68%);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-tile:hover figcaption,
.gallery-tile:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tile figcaption span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1120px, calc(100% - 32px));
  height: calc(100% - 48px);
  margin: 24px auto;
}

.gallery-lightbox-figure {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: 100%;
  margin: 0;
}

.gallery-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.gallery-lightbox-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.gallery-lightbox-figure strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.12);
}

.gallery-lightbox-close {
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-lightbox-nav--prev {
  left: -6px;
}

.gallery-lightbox-nav--next {
  right: -6px;
}

@keyframes gallery-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .gallery-mosaic {
grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 64px;
  }

  .gallery-tile--hero,
  .gallery-tile--wide {
grid-column: span 6;
    grid-row: span 4;
  }

  .gallery-tile--tall,
  .gallery-tile--normal {
grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 640px) {
  .hero,
  .art-gallery-section,
  .team-section,
  .section-band,
  .closing,
  .signal-strip {
width: min(100% - 28px, 1120px);
  }

  .gallery-mosaic {
grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 8px;
  }

  .gallery-tile--hero,
  .gallery-tile--wide,
  .gallery-tile--tall,
  .gallery-tile--normal {
grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-tile--normal:nth-child(3n) {
grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-lightbox-nav--prev {
left: 8px;
  }

  .gallery-lightbox-nav--next {
right: 8px;
  }
}

/* ===== updates/styles.css ===== */
/* Section: #updates — 悬浮毛玻璃卡片,一排三个
   每张卡片:上 50% 图片 / 下 50% 标题+简介,整张卡是一块玻璃(不做内部分层)

   关键:毛玻璃 = 模糊「背后的东西」。所以卡片网格后面必须先有可模糊的
   有对比内容 —— 柔光由 updates/render.js 随机生成(颜色限定在站内令牌内)。
   没有它,backdrop-filter 在纯黑背景上等于没写。 */

.updates-section {
  position: relative;
  isolation: isolate;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

/* ── 卡片背后的柔光:由 updates/render.js 生成 ──────────
   位置/大小/透明度随机,颜色只从站内令牌里加权挑选。
   数量随卡片行数增加,所以一直加卡片也不会出现"某几行背后没光"。 */
.updates-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
  animation: updates-drift var(--dur, 26s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* 缓慢漂浮:只动 transform / scale,GPU 合成,不触发重排重绘 */
@keyframes updates-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(var(--s0, 1));
  }
  33% {
    transform: translate3d(var(--dx1, 40px), var(--dy1, 30px), 0) scale(var(--s1, 1.08));
  }
  66% {
    transform: translate3d(var(--dx2, -40px), var(--dy2, -30px), 0) scale(var(--s0, 1));
  }
  100% {
    transform: translate3d(0, 0, 0) scale(var(--s0, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .updates-glow {
    animation: none;
  }
}

.updates-header,
.updates-grid {
  position: relative;
  z-index: 1;
}

/* 一张卡都没有时整段收起(否则只剩标题,看起来像页面坏了) */
.updates-section[hidden] {
  display: none;
}

.updates-header {
  max-width: 760px;
  margin-bottom: 38px;
}

.updates-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ── 卡片:一整块悬浮的毛玻璃 ───────────────────────── */
.update-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* 固定比例锁住高度,上下两块才能各占 50% */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  /* 玻璃本体:上缘带一点白(反光),越往下越透,背后的柔光能透出来 */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.035) 42%,
    rgba(12, 12, 16, 0.34) 100%
  );
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.32),
    0 30px 70px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease;
}

.update-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 42%,
    rgba(12, 12, 16, 0.3) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.36),
    0 50px 110px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(118, 216, 255, 0.12);
}

/* ── 上 50%:图片(通铺到卡片边缘,和文字连成一体)────── */
.update-media {
  position: relative;
  flex: 0 0 50%;
  min-height: 0;
  overflow: hidden;
  background: #0e1015;
}

.update-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.update-card:hover .update-media img {
  transform: scale(1.08);
}

/* 没配图片的卡片:上半区给一个柔和占位渐变,避免整块死黑 */
.update-media.is-empty {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(118, 216, 255, 0.12) 0%, rgba(118, 216, 255, 0) 62%),
    linear-gradient(180deg, #14161d 0%, #0e1015 100%);
}

/* 图片下缘渐隐,融进玻璃底色 —— 保持图文一体,不做硬切换 */
.update-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(3, 3, 5, 0) 0%, rgba(10, 10, 14, 0.55) 100%);
  pointer-events: none;
}

/* ── 下 50%:标题 + 简介(和图片同属一张卡)───────────── */
.update-body {
  flex: 0 0 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 22px 22px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.update-date {
  color: var(--soft);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.update-title {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.update-text {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
  /* 简介最多 3 行,保证每张卡片下半个区域高度一致 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.update-link {
  margin-top: auto;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.update-link:hover {
  opacity: 1;
}

/* ── 详情浮层(卡片正文 / playground 共用)──────────────
   ★ 约定:浮动页面要"自适应",不要全屏硬铺 ——
        · 四周留白:这样能看到背后被虚化的页面(液态玻璃的手感)
        · 宽度有界:正文约 880px、playground 约 1180px(画布需要横向空间)
        · 高度用满:max-height 顶到视口减边距,内容按可用高度排布,尽量不出现滚动条
        · 内容要跟着可用空间长大(画布尺寸别写死) */
.reader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.reader[hidden] {
  display: none;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.66);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.reader-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 26, 32, 0.82) 0%, rgba(12, 12, 16, 0.9) 100%);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 40px 100px rgba(0, 0, 0, 0.6);
}

.reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.reader-meta {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.reader-meta span + span {
  color: var(--soft);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.reader-heading h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.reader-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.reader-close:hover {
  color: var(--text);
  border-color: var(--blue);
}

/* ── playground:全屏,把空间尽量给画布 ───────────────────
   两个 demo 的高度都是内容撑出来的(FSR 的正方形画布上限 280/320px、
   2DGS 的 min-height 380px),所以光加宽没用。这里做两件事:
     1) 面板铺满视口(全屏)
     2) 内容按可用高度自动缩放适配(inner 的 zoom,见 shared/detail.js)
   这样既不用上下滑动,可视面积也比原来的 1080px × 86vh 大得多。 */
/* playground 比正文宽一些(画布需要横向空间),但同样是"悬浮卡片"而不是全屏 */
.reader-panel.is-demo {
  width: min(1180px, 100%);
}

.reader-panel.is-demo .reader-head {
  padding: 14px 22px 12px;
}

.reader-panel.is-demo .reader-heading h2 {
  font-size: clamp(18px, 1.5vw, 24px);
}

/* 正文区 / playground 区都要能在面板内滚动 ——
   flex 子项默认 min-height:auto,不显式压住的话高内容会被裁掉(踩过)。 */
.doc,
.reader-demo {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.reader-demo {
  padding: 12px 18px 16px;
}

/* 缩放容器:zoom 由 detail.js 按可用高度设置(只在几乎放得下时轻微微调) */
.demo-inner {
  transform-origin: top left;
}

/* ── 全屏 playground:按视口高度给画布定尺寸 ────────────────
   两个 demo 的高度都由内容撑出来(FSR 正方形画布、2DGS 的 min-height),
   所以这里把"上限"交给视口:既不用滚动,画布又尽可能大。 */
.reader-panel.is-demo .az-2dgs-canvas-wrap {
  min-height: 0;
  height: min(53dvh, 580px);
}

.reader-panel.is-demo .az-fsr-frame,
.reader-panel.is-demo .az-fsr-frame--orig {
  min-height: 0;
  max-height: min(32dvh, 280px);
}

/* 宽屏:四个视图从 2×2 改成 1×4 —— 高度直接少一半,画布反而更大 */
@media (min-width: 1000px) {
  .reader-panel.is-demo .az-fsr-views {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 画布要跟着框架一起长大(原来它保持自己的固有尺寸,框架边上全是空的) */
.reader-panel.is-demo .az-fsr-frame canvas,
.reader-panel.is-demo .az-fsr-frame--orig canvas {
  width: 100%;
  height: 100%;
  max-height: none;
}

/* 正文:高度用满,但保持可读行宽(用 .reader-panel 提权,确保覆盖后面的基础规则) */
.reader-panel .doc {
  padding-left: max(26px, calc((100% - 820px) / 2));
  padding-right: max(26px, calc((100% - 820px) / 2));
}

/* 研究区也用同一套卡片 + 柔光 */
.products-section {
  position: relative;
  isolation: isolate;
}

.reader-status {
  color: var(--soft);
}

body.reader-open {
  overflow: hidden;
}

/* ── 正文排版(md 与 html 共用)──────────────────────── */
.doc {
  padding: 22px 28px 34px;
  overflow-y: auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.doc > *:first-child {
  margin-top: 0;
}

.doc h1,
.doc h2,
.doc h3,
.doc h4 {
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 1.5em 0 0.5em;
}

.doc h1 {
  font-size: 26px;
}

.doc h2 {
  font-size: 22px;
}

.doc h3 {
  font-size: 18px;
}

.doc p {
  margin: 0 0 1em;
}

.doc a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc strong {
  color: var(--text);
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 0.4em;
}

.doc code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
  color: var(--text);
}

.doc pre {
  margin: 0 0 1em;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.doc pre code {
  padding: 0;
  background: none;
}

.doc blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--line-bright);
  color: var(--soft);
}

.doc img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.doc table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: 14.5px;
}

.doc th,
.doc td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.doc th {
  color: var(--text);
  font-weight: 620;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6em 0;
}

@media (max-width: 640px) {
  .reader {
    padding: 0;
  }

  .reader-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .reader-head {
    padding: 18px 18px 14px;
  }

  .doc {
    padding: 18px 18px 40px;
  }
}

/* ── 断点:与全站一致(960 / 640)────────────────────── */
@media (max-width: 960px) {
  .updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .updates-section {
    width: min(100% - 28px, 1240px);
  }

  .updates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 窄屏不再用固定比例,改成图片定高 */
  .update-card {
    aspect-ratio: auto;
  }

  .update-media {
    flex: 0 0 200px;
  }

  .update-body {
    flex: 1 1 auto;
  }
}

/* ===== lab/styles.css ===== */
.lab-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

.lab-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.lab-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.lab-marquee-shell {
  position: relative;
}

.lab-marquee-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.lab-marquee-track {
  display: flex;
  width: max-content;
  animation: lab-marquee var(--lab-marquee-duration, 40s) linear infinite;
}

.lab-marquee-shell:hover .lab-marquee-track {
  animation-play-state: paused;
}

.lab-marquee-group {
  display: flex;
  gap: 14px;
  padding: 18px 12px;
}

.lab-card {
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 320px);
  animation: gallery-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
}

.lab-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 18%, rgba(118, 216, 255, 0.12), transparent 36%),
    linear-gradient(160deg, #12141a 0%, #1e2430 55%, #0e1016 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.lab-card:hover .lab-card-media {
  border-color: var(--line-bright);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

.lab-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-card:hover .lab-card-media img {
  transform: scale(1.07);
}

.lab-empty {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 220px;
  padding: 42px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.lab-empty p {
  margin: 0;
  font-size: 16px;
}

.lab-empty code {
  color: var(--text);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
}

.lab-empty span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes lab-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .lab-section {
    width: min(100% - 28px, 1120px);
  }

  .lab-card {
    width: 200px;
  }
}

/* ===== journal/styles.css ===== */
/* Our Journal — recent activity wall (Art Gallery mosaic) */

.journal-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

.journal-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.journal-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.journal-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 220px;
  padding: 42px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.journal-empty p {
  margin: 0;
  font-size: 16px;
}

.journal-empty code {
  color: var(--text);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
}

.journal-empty span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
  grid-auto-flow: dense;
  gap: 10px;
}

.journal-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #14161d 0%, #2a3140 55%, #101218 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  animation: gallery-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.journal-tile:focus-visible {
  outline: 2px solid rgba(118, 216, 255, 0.72);
  outline-offset: 3px;
}

.journal-tile:hover {
  z-index: 2;
  border-color: var(--line-bright);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.journal-tile--hero {
  grid-column: span 6;
  grid-row: span 5;
}

.journal-tile--wide {
  grid-column: span 6;
  grid-row: span 3;
}

.journal-tile--tall {
  grid-column: span 3;
  grid-row: span 4;
}

.journal-tile--normal {
  grid-column: span 3;
  grid-row: span 3;
}

.journal-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.journal-tile.is-loaded img {
  opacity: 1;
}

.journal-tile:hover img {
  transform: scale(1.08);
}

.journal-tile.is-fallback img {
  opacity: 0;
}

.journal-tile.is-fallback::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--tile-fallback, linear-gradient(145deg, #1a1d2e, #76d8ff));
}

.journal-tile.is-fallback[style*="--fallback:0"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #1a1d2e 0%, #3d4f7c 42%, #76d8ff 100%);
}

.journal-tile.is-fallback[style*="--fallback:1"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(160deg, #12141c 0%, #5b3f72 55%, #b9a8ff 100%);
}

.journal-tile.is-fallback[style*="--fallback:2"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #0d1016 0%, #1f4d3a 48%, #94f0c3 100%);
}

.journal-tile.is-fallback[style*="--fallback:3"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(155deg, #10131a 0%, #4a3058 40%, #e8edf7 100%);
}

.journal-tile.is-fallback[style*="--fallback:4"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(140deg, #090b10 0%, #2a3a5c 50%, #76d8ff 100%);
}

.journal-tile.is-fallback[style*="--fallback:5"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(150deg, #0f1118 0%, #3b2f4f 45%, #f5f5f7 100%);
}

.journal-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  min-height: 46%;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 5, 0.82) 68%);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.journal-tile:hover figcaption,
.journal-tile:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.journal-tile figcaption span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journal-lightbox-open {
  overflow: hidden;
}

.journal-lightbox[hidden] {
  display: none;
}

.journal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.journal-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
}

.journal-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1120px, calc(100% - 32px));
  height: calc(100% - 48px);
  margin: 24px auto;
}

.journal-lightbox-figure {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: 100%;
  margin: 0;
}

.journal-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.journal-lightbox-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.journal-lightbox-figure strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.journal-lightbox-close,
.journal-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.journal-lightbox-close:hover,
.journal-lightbox-nav:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.12);
}

.journal-lightbox-close {
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.journal-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.journal-lightbox-nav--prev {
  left: -6px;
}

.journal-lightbox-nav--next {
  right: -6px;
}

@keyframes gallery-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .journal-mosaic {
grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 64px;
  }

  .journal-tile--hero,
  .journal-tile--wide {
grid-column: span 6;
    grid-row: span 4;
  }

  .journal-tile--tall,
  .journal-tile--normal {
grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 640px) {
  .hero,
  .journal-section,
  .team-section,
  .section-band,
  .closing,
  .signal-strip {
width: min(100% - 28px, 1120px);
  }

  .journal-mosaic {
grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 8px;
  }

  .journal-tile--hero,
  .journal-tile--wide,
  .journal-tile--tall,
  .journal-tile--normal {
grid-column: span 2;
    grid-row: span 2;
  }

  .journal-tile--normal:nth-child(3n) {
grid-column: span 1;
    grid-row: span 2;
  }

  .journal-lightbox-nav--prev {
left: 8px;
  }

  .journal-lightbox-nav--next {
right: 8px;
  }
}

/* ===== products/styles.css ===== */
.products-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

/* Same lead style as Art Gallery / Lab / Journal description lines */
.products-section .section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.research-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--research-gap, 28px);
  padding: 0;
}

.loading-products {
  margin: 0;
  color: var(--muted);
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 520px;
  animation: rise 520ms ease both;
  animation-delay: var(--delay);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), transparent 34%),
    rgba(14, 14, 17, 0.86);
  box-shadow: var(--shadow);
}

.product-card--wide {
  grid-column: 1 / -1;
  min-height: auto;
  overflow: hidden;
}

.product-card--interactive {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-head--interactive {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.product-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-width: 0;
}

.product-head-main span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-head-main h2 {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-head-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.product-body--interactive {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
}

.product-body--interactive .product-summary-inline {
  order: 2;
  min-height: auto;
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-preview--interactive {
  order: 1;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-card:hover {
  border-color: var(--line-bright);
  background: var(--panel-strong);
}

.product-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.product-card--interactive > .product-head,
.product-head.product-head--interactive {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
}

.product-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 62px 18px 18px;
}

.product-card--interactive > .product-body,
.product-body.product-body--interactive {
  padding: 0;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.product-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
}

.product-metric {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 720;
}

.product-body p {
  min-height: 72px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.product-preview {
  position: relative;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.product-card--interactive .product-preview--interactive {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-card--interactive .product-summary-inline {
  min-height: 0;
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.product-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.product-controls button:hover,
.product-controls button.active {
  border-color: var(--line-bright);
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.product-insight {
  min-height: 22px;
  margin-top: 10px;
  color: var(--soft);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 500px;
  }

  .product-card--wide {
    grid-column: auto;
  }
}

/* ===== products/2dgs/styles.css ===== */
.az-2dgs-demo {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.az-2dgs-canvas-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 380px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(118, 216, 255, 0.12), transparent 42%),
    #06070a;
}

.az-2dgs-canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  image-rendering: auto;
}

.az-2dgs-canvas-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 3, 5, 0.62);
  backdrop-filter: blur(10px);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.az-2dgs-controls {
  display: grid;
  gap: 12px;
  align-content: start;
  width: 100%;
  padding: 14px 16px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.az-2dgs-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.az-2dgs-control-row--selector {
  justify-content: flex-start;
}

.az-2dgs-control-row--selector .az-2dgs-select {
  min-width: 110px;
}

.az-2dgs-control-row--blend {
  max-width: 360px;
}

.az-2dgs-label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.az-2dgs-select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 12px;
}

.az-2dgs-select--wide {
  flex: 1;
  min-width: 140px;
}

.az-2dgs-chip-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.az-2dgs-chip-button:hover {
  border-color: var(--line-bright);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.az-2dgs-slider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
}

.az-2dgs-slider {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.az-2dgs-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.az-2dgs-slider-head output {
  color: var(--text);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 10px;
  text-transform: none;
}

.az-2dgs-slider input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

.az-2dgs-insight {
  margin: 0;
  color: var(--soft);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .az-2dgs-slider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .az-2dgs-slider-grid {
    grid-template-columns: 1fr;
  }

  .az-2dgs-canvas-wrap {
    min-height: 260px;
  }
}

/* ===== products/fsr/styles.css ===== */
/* FSR (Frequency Super Resolution) — 50/50 top, 2×2 grid, insight footer */

.az-fsr-demo {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.az-fsr-error {
  margin: 0;
  padding: 12px 14px;
  color: #ffb4b4;
  font-size: 12px;
}

.az-fsr-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 12%, rgba(118, 216, 255, 0.08), transparent 38%),
    #06070a;
}

/* Original | Controls — half / half */
.az-fsr-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: center;
  padding: 14px 16px 10px;
  min-width: 0;
}

.az-fsr-view--orig {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.az-fsr-view--orig figcaption {
  text-align: left;
}

.az-fsr-controls {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
}

.az-fsr-control-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}

.az-fsr-label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.az-fsr-select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 12px;
}

.az-fsr-select--grow {
  width: 100%;
}

.az-fsr-budget {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 4px;
}

.az-fsr-budget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.az-fsr-budget-head output {
  color: var(--cyan);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.az-fsr-budget input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.az-fsr-hint {
  margin: 2px 0 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
}

/* 2×2 results */
.az-fsr-views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 16px 12px;
  min-width: 0;
}

.az-fsr-view {
  margin: 0;
  min-width: 0;
}

.az-fsr-view figcaption {
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.az-fsr-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 180px;
  max-height: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.az-fsr-frame--orig {
  min-height: 220px;
  max-height: 320px;
}

.az-fsr-frame canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 2px;
  image-rendering: auto;
}

/* Footer metrics — own row at bottom */
.az-fsr-insight {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  word-break: break-word;
}

.az-fsr-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 3, 5, 0.72);
  backdrop-filter: blur(8px);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (max-width: 720px) {
  .az-fsr-top {
    grid-template-columns: 1fr;
  }

  .az-fsr-frame,
  .az-fsr-frame--orig {
    min-height: 160px;
    max-height: 240px;
  }
}

/* ===== products/image-compression/styles.css ===== */
.compression-preview {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent var(--saved), rgba(0, 0, 0, 0.36) var(--saved)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(118, 216, 255, 0.08));
}

.compression-preview .image-before,
.compression-preview .image-after {
  position: absolute;
  top: 22%;
  bottom: 22%;
  width: 34%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.compression-preview .image-before {
  left: 11%;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 5px, transparent 5px 10px);
}

.compression-preview .image-after {
  right: 11%;
  background: linear-gradient(145deg, rgba(148, 240, 195, 0.26), rgba(255, 255, 255, 0.06));
}

.compression-preview i {
  position: absolute;
  top: 16%;
  bottom: 16%;
  left: var(--saved);
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.2);
}

/* ===== products/audio-localization/styles.css ===== */
.audio-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(185, 168, 255, 0.16), transparent 62%);
}

.radar-ring {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.radar-ring.small {
  width: 72px;
  height: 72px;
}

.audio-preview .beam {
  position: absolute;
  width: 42%;
  height: 2px;
  transform: rotate(var(--angle));
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, rgba(118, 216, 255, 0));
}

.audio-preview b {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(118, 216, 255, 0.68);
}

/* ===== team/styles.css ===== */
/* Our Team — mosaic wall (no marquee) */

.team-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

.team-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.team-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.team-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 220px;
  padding: 42px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.team-empty p {
  margin: 0;
  font-size: 16px;
}

.team-empty code {
  color: var(--text);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
}

.team-empty span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
  grid-auto-flow: dense;
  gap: 10px;
}

.team-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #14161d 0%, #2a3140 55%, #101218 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  animation: gallery-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.team-tile:focus-visible {
  outline: 2px solid rgba(118, 216, 255, 0.72);
  outline-offset: 3px;
}

.team-tile:hover {
  z-index: 2;
  border-color: var(--line-bright);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.team-tile--hero {
  grid-column: span 6;
  grid-row: span 5;
}

.team-tile--wide {
  grid-column: span 6;
  grid-row: span 3;
}

.team-tile--tall {
  grid-column: span 3;
  grid-row: span 4;
}

.team-tile--normal {
  grid-column: span 3;
  grid-row: span 3;
}

.team-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.team-tile.is-loaded img {
  opacity: 1;
}

.team-tile:hover img {
  transform: scale(1.08);
}

.team-tile.is-fallback img {
  opacity: 0;
}

.team-tile.is-fallback::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--tile-fallback, linear-gradient(145deg, #1a1d2e, #76d8ff));
}

.team-tile.is-fallback[style*="--fallback:0"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #1a1d2e 0%, #3d4f7c 42%, #76d8ff 100%);
}

.team-tile.is-fallback[style*="--fallback:1"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(160deg, #12141c 0%, #5b3f72 55%, #b9a8ff 100%);
}

.team-tile.is-fallback[style*="--fallback:2"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #0d1016 0%, #1f4d3a 48%, #94f0c3 100%);
}

.team-tile.is-fallback[style*="--fallback:3"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(155deg, #10131a 0%, #4a3058 40%, #e8edf7 100%);
}

.team-tile.is-fallback[style*="--fallback:4"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(140deg, #090b10 0%, #2a3a5c 50%, #76d8ff 100%);
}

.team-tile.is-fallback[style*="--fallback:5"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(150deg, #0f1118 0%, #3b2f4f 45%, #f5f5f7 100%);
}

.team-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  min-height: 46%;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 5, 0.82) 68%);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.team-tile:hover figcaption,
.team-tile:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.team-tile figcaption span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-lightbox-open {
  overflow: hidden;
}

.team-lightbox[hidden] {
  display: none;
}

.team-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.team-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
}

.team-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1120px, calc(100% - 32px));
  height: calc(100% - 48px);
  margin: 24px auto;
}

.team-lightbox-figure {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: 100%;
  margin: 0;
}

.team-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.team-lightbox-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.team-lightbox-figure strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.team-lightbox-close,
.team-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.team-lightbox-close:hover,
.team-lightbox-nav:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.12);
}

.team-lightbox-close {
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.team-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.team-lightbox-nav--prev {
  left: -6px;
}

.team-lightbox-nav--next {
  right: -6px;
}

@keyframes gallery-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .team-mosaic {
grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 64px;
  }

  .team-tile--hero,
  .team-tile--wide {
grid-column: span 6;
    grid-row: span 4;
  }

  .team-tile--tall,
  .team-tile--normal {
grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 640px) {
  .hero,
  .team-section,
  .team-section,
  .section-band,
  .closing,
  .signal-strip {
width: min(100% - 28px, 1120px);
  }

  .team-mosaic {
grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 8px;
  }

  .team-tile--hero,
  .team-tile--wide,
  .team-tile--tall,
  .team-tile--normal {
grid-column: span 2;
    grid-row: span 2;
  }

  .team-tile--normal:nth-child(3n) {
grid-column: span 1;
    grid-row: span 2;
  }

  .team-lightbox-nav--prev {
left: 8px;
  }

  .team-lightbox-nav--next {
right: 8px;
  }
}

/* ===== connections/styles.css ===== */
/* Our Connections — partner / network wall */

.connections-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

.connections-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.connections-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.connections-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 220px;
  padding: 42px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.connections-empty p {
  margin: 0;
  font-size: 16px;
}

.connections-empty code {
  color: var(--text);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
}

.connections-empty span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connections-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
  grid-auto-flow: dense;
  gap: 10px;
}

.connections-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #14161d 0%, #2a3140 55%, #101218 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  animation: gallery-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.connections-tile:focus-visible {
  outline: 2px solid rgba(118, 216, 255, 0.72);
  outline-offset: 3px;
}

.connections-tile:hover {
  z-index: 2;
  border-color: var(--line-bright);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.connections-tile--hero {
  grid-column: span 6;
  grid-row: span 5;
}

.connections-tile--wide {
  grid-column: span 6;
  grid-row: span 3;
}

.connections-tile--tall {
  grid-column: span 3;
  grid-row: span 4;
}

.connections-tile--normal {
  grid-column: span 3;
  grid-row: span 3;
}

.connections-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.connections-tile.is-loaded img {
  opacity: 1;
}

.connections-tile:hover img {
  transform: scale(1.08);
}

.connections-tile.is-fallback img {
  opacity: 0;
}

.connections-tile.is-fallback::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--tile-fallback, linear-gradient(145deg, #1a1d2e, #76d8ff));
}

.connections-tile.is-fallback[style*="--fallback:0"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #1a1d2e 0%, #3d4f7c 42%, #76d8ff 100%);
}

.connections-tile.is-fallback[style*="--fallback:1"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(160deg, #12141c 0%, #5b3f72 55%, #b9a8ff 100%);
}

.connections-tile.is-fallback[style*="--fallback:2"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #0d1016 0%, #1f4d3a 48%, #94f0c3 100%);
}

.connections-tile.is-fallback[style*="--fallback:3"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(155deg, #10131a 0%, #4a3058 40%, #e8edf7 100%);
}

.connections-tile.is-fallback[style*="--fallback:4"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(140deg, #090b10 0%, #2a3a5c 50%, #76d8ff 100%);
}

.connections-tile.is-fallback[style*="--fallback:5"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(150deg, #0f1118 0%, #3b2f4f 45%, #f5f5f7 100%);
}

.connections-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  min-height: 46%;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 5, 0.82) 68%);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.connections-tile:hover figcaption,
.connections-tile:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.connections-tile figcaption span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.connections-lightbox-open {
  overflow: hidden;
}

.connections-lightbox[hidden] {
  display: none;
}

.connections-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.connections-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
}

.connections-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1120px, calc(100% - 32px));
  height: calc(100% - 48px);
  margin: 24px auto;
}

.connections-lightbox-figure {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: 100%;
  margin: 0;
}

.connections-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.connections-lightbox-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.connections-lightbox-figure strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.connections-lightbox-close,
.connections-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.connections-lightbox-close:hover,
.connections-lightbox-nav:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.12);
}

.connections-lightbox-close {
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.connections-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.connections-lightbox-nav--prev {
  left: -6px;
}

.connections-lightbox-nav--next {
  right: -6px;
}

@keyframes gallery-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .connections-mosaic {
grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 64px;
  }

  .connections-tile--hero,
  .connections-tile--wide {
grid-column: span 6;
    grid-row: span 4;
  }

  .connections-tile--tall,
  .connections-tile--normal {
grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 640px) {
  .connections-section {
    width: min(100% - 28px, 1120px);
  }

  .connections-mosaic {
grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 8px;
  }

  .connections-tile--hero,
  .connections-tile--wide,
  .connections-tile--tall,
  .connections-tile--normal {
grid-column: span 2;
    grid-row: span 2;
  }

  .connections-tile--normal:nth-child(3n) {
grid-column: span 1;
    grid-row: span 2;
  }

  .connections-lightbox-nav--prev {
left: 8px;
  }

  .connections-lightbox-nav--next {
right: 8px;
  }
}
