:root {
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #080c12;
  color: #e1e9f2;
}
main {
  max-width: 1600px;
  padding: 26px 5vw;
}
a {
  color: inherit;
}
.public-nav {
  border-color: #28313e;
  padding-bottom: 22px;
}
.public-nav .brand {
  text-decoration: none;
  font-size: 28px;
}
.brand span {
  color: #97b9f6;
}
.public-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.public-nav nav a {
  text-decoration: none;
  font-size: 11px;
  color: #a5b3c5;
}
.public-nav button {
  font-size: 10px;
  border-color: #334051;
  border-radius: 0;
}
.showcase-hero {
  min-height: 640px;
  height: min(800px, 88svh);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #28313e;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#89abdb0a 1px, transparent 1px),
    linear-gradient(90deg, #89abdb0a 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse, #000, transparent 70%);
}
.hero-orbit {
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  left: 12%;
  top: 6%;
  border: 1px solid #708bb02b;
  border-radius: 50%;
  transform: rotate(-28deg) scaleY(0.38);
  box-shadow:
    0 0 90px #345b9610,
    inset 0 0 70px #486ba010;
}
.hero-orbit:after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid #708bb02b;
  border-radius: 50%;
}
.hero-kicker,
.hero-coordinate,
.hero-note,
.showcase-heading,
.scene-meta,
.scene-caption span,
.playground-heading > span {
  font: 10px/1.6 monospace;
  letter-spacing: 1.6px;
}
.hero-kicker {
  position: relative;
  color: #8a9cb4;
  margin: 40px 0 0;
}
.hero-type {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 250px;
}
.hero-type h1 {
  font-size: clamp(60px, 10vw, 160px);
  font-weight: 500;
  letter-spacing: -0.075em;
  white-space: nowrap;
  color: #e8effa;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 1;
}
.hero-bottom p {
  font-size: 16px;
  line-height: 1.6;
  color: #92a3ba;
}
.hero-bottom a {
  text-decoration: none;
  font-size: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #51647d;
}
.hero-bottom a span {
  margin-left: 50px;
}
.hero-note {
  color: #677b96;
  text-align: right;
}
.hero-coordinate {
  position: absolute;
  bottom: 25px;
  color: #586d89;
  right: 0;
}
.hero-coordinate i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #8fbcf7;
  border-radius: 50%;
}
.showcase {
  padding: 80px 0 25px;
}
.showcase-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7186a1;
  margin-bottom: 24px;
}
.showcase-heading p {
  color: #c3cedd;
  font:
    20px "DM Sans",
    sans-serif;
  letter-spacing: -0.5px;
}
.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 36px;
  margin-bottom: 22px;
  border: 1px solid #253449;
}
.scene-meta,
.scene-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.scene-meta {
  color: #90a7c5;
}
.scene-caption {
  align-items: end;
}
.scene-caption p {
  font-size: 14px;
  line-height: 1.6;
}
.scene-caption span {
  font-size: 9px;
  text-align: right;
  opacity: 0.65;
}
.scene-title {
  position: absolute;
  inset: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.scene-title h2 {
  font-size: clamp(45px, 7.6vw, 118px);
  font-weight: 500;
  letter-spacing: -0.065em;
  margin: 0;
  text-align: center;
  max-width: 90%;
  line-height: 1.1;
  color: inherit;
}
.scene-orbit {
  background: radial-gradient(ellipse at 60% 40%, #152d50, #050b14 65%);
  color: #e1edff;
}
.planet {
  position: absolute;
  width: 480px;
  aspect-ratio: 1;
  left: calc(50% - 240px);
  top: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, #8db8dd44, transparent 44%),
    radial-gradient(
      circle at 65% 60%,
      #030911 44%,
      #0f2640 67%,
      #8bb9dc 70%,
      #182a43 72%
    );
  box-shadow:
    12px -7px 45px #8abaf329,
    -30px 35px 85px #000;
  transform: rotate(-35deg);
}
.orbit-line {
  position: absolute;
  width: 90%;
  height: 43%;
  left: 5%;
  top: 28%;
  border: 1px solid #91afd34d;
  border-radius: 50%;
  transform: rotate(-22deg);
}
.scene-print {
  background: #bac7d1;
  color: #101d2d;
}
.scene-print .scene-meta {
  color: #354b61;
}
.scene-print h2 {
  font-weight: 700;
  font-size: clamp(55px, 10vw, 150px);
  letter-spacing: -0.06em;
}
.print-art {
  position: absolute;
  inset: 10% 24%;
  display: flex;
  gap: 12px;
  transform: rotate(-19deg);
}
.print-art i {
  flex: 1;
  background: repeating-linear-gradient(
    0deg,
    #172d4a 0 2px,
    transparent 2px 5px
  );
  clip-path: polygon(0 0, 100% 12%, 100% 83%, 0 100%);
  opacity: 0.32;
}
.print-art i:nth-child(even) {
  transform: translateY(12%);
}
.scene-frequency {
  background:
    radial-gradient(ellipse at 50% 80%, #152a63, transparent 60%), #090d24;
  color: #c7cafa;
}
.frequency-art {
  position: absolute;
  inset: 20% -10% -35%;
  border-radius: 50%;
  transform: perspective(500px) rotateX(50deg) rotate(-12deg);
  background: repeating-radial-gradient(
    ellipse at center,
    transparent 0 14px,
    #758aea80 15px,
    #758aea10 17px,
    transparent 19px 27px
  );
  mask-image: linear-gradient(transparent, #000 30%, #000);
}
.scene-frequency h2 {
  max-width: 650px;
  font-weight: 500;
}
.scene-fold {
  background: #0e1820;
  color: #e1f0f2;
}
.fold-art {
  position: absolute;
  width: 600px;
  height: 600px;
  left: calc(50% - 300px);
  top: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 20deg,
    #83b9c92e 0deg,
    transparent 3deg 9deg
  );
  mask-image: radial-gradient(
    circle,
    transparent 27%,
    #000 28%,
    #000 58%,
    transparent 69%
  );
  transform: scaleX(1.3) rotate(-20deg);
}
.study-footnote {
  color: #768ba5;
  font-size: 12px;
  text-align: center;
  margin: 30px 0;
  line-height: 1.7;
}
.playground-heading {
  padding: 80px 0 40px;
  border-top: 1px solid #28313e;
  margin-top: 40px;
  scroll-margin-top: 30px;
}
.playground-heading > span {
  color: #8fa7c6;
}
.playground-heading h2 {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 18px 0;
}
.playground-heading p {
  color: #8c9cb1;
  font-size: 14px;
}
/* The research controls share the public page's cold palette. Specimen surfaces retain their material contrast. */
.toolbar,
header,
.catalog,
.catalog-top,
.composition-heading {
  border-color: #2b3a4d;
}
button {
  border-color: #39495d;
}
button[aria-pressed="true"] {
  background: #b5c9e3;
  border-color: #b5c9e3;
  color: #101b29;
}
button:hover {
  border-color: #aac1df;
}
input[type="text"] {
  border-color: #52647c;
}
input[type="range"] {
  accent-color: #99b9e5;
}
.catalog {
  background: #111b28;
}
.research-heading p,
.research-note,
.signal-controls span,
.composition-heading p,
.composition-description {
  color: #97a9bf;
}
select {
  color: #dbe7f7;
  background: #172434;
  border-color: #3b506a;
}
:focus-visible {
  outline: 2px solid #9fc9ff;
  outline-offset: 5px;
}
@media (max-width: 700px) {
  main {
    padding: 20px;
  }
  .public-nav nav {
    gap: 15px;
  }
  .public-nav nav a:first-child {
    display: none;
  }
  .showcase-hero {
    min-height: 580px;
    height: 80svh;
  }
  .hero-type {
    min-height: 180px;
  }
  .hero-type h1 {
    font-size: clamp(48px, 11.2vw, 78px);
  }
  .hero-kicker {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-bottom {
    align-items: start;
    gap: 25px;
    flex-direction: column;
  }
  .hero-bottom p {
    font-size: 14px;
  }
  .hero-note {
    display: none;
  }
  .showcase {
    padding-top: 45px;
  }
  .showcase-heading {
    align-items: start;
    flex-direction: column;
  }
  .scene {
    min-height: 520px;
    padding: 22px;
  }
  .scene-meta {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .scene-caption p {
    font-size: 12px;
  }
  .scene-caption span {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .scene-title h2 {
    max-width: 85%;
    font-size: clamp(46px, 12vw, 80px);
  }
  .planet {
    width: 380px;
    left: calc(50% - 190px);
    top: 16%;
  }
  .scene-print h2 {
    font-size: clamp(55px, 16vw, 90px);
  }
  .scene-caption {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Slow scenery follows the same visibility and pause contract as the type. */

.hero-orbit {
  animation: cinematic-orbit 28s ease-in-out infinite alternate;
}
.planet {
  animation: planet-drift 24s ease-in-out infinite alternate;
}
.orbit-line {
  animation: orbit-drift 32s ease-in-out infinite alternate;
}
.frequency-art {
  animation: frequency-breathe 12s ease-in-out infinite alternate;
}
.fold-art {
  animation: fold-rotation 70s linear infinite;
}
.print-art {
  animation: print-impact 8.5s ease-out infinite;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.scene-print::after {
  background: repeating-radial-gradient(
    circle at 46% 50%,
    transparent 0 35px,
    #30435b14 36px,
    transparent 37px 75px
  );
  opacity: 0.4;
}
.hero-orbit,
.planet,
.orbit-line,
.frequency-art,
.fold-art,
.print-art {
  animation-play-state: paused;
}
.scene-visible
  :is(
    .hero-orbit,
    .planet,
    .orbit-line,
    .frequency-art,
    .fold-art,
    .print-art
  ) {
  animation-play-state: running;
}
.showcase-paused
  :is(
    .hero-orbit,
    .planet,
    .orbit-line,
    .frequency-art,
    .fold-art,
    .print-art
  ) {
  animation-play-state: paused;
}
@keyframes cinematic-orbit {
  to {
    transform: rotate(-12deg) scaleY(0.5) translateY(-3%);
  }
}
@keyframes planet-drift {
  to {
    transform: rotate(-28deg) translate(8px, -12px);
  }
}
@keyframes orbit-drift {
  to {
    transform: rotate(-13deg) scale(0.96);
  }
}
@keyframes frequency-breathe {
  to {
    transform: perspective(500px) rotateX(55deg) rotate(-6deg) scale(1.08);
    opacity: 0.65;
  }
}
@keyframes fold-rotation {
  to {
    transform: scaleX(1.3) rotate(340deg);
  }
}
@keyframes print-impact {
  0%,
  68%,
  100% {
    transform: rotate(-19deg) scale(1);
  }
  72% {
    transform: rotate(-19deg) scale(1.035);
  }
  78% {
    transform: rotate(-19deg) scale(0.995);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .planet,
  .orbit-line,
  .frequency-art,
  .fold-art,
  .print-art {
    animation: none !important;
  }
}
.spatial-title {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 850px;
  perspective-origin: 50% 48%;
}
.spatial-glyph {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
  text-align: left;
}
.spatial-glyph > span {
  position: absolute;
  inset: 0;
  white-space: pre;
  backface-visibility: visible;
}
.glyph-face {
  color: #e6efff;
  text-shadow:
    0 -1px 0 #fff,
    1px 1px 0 #92b2d5;
}
.glyph-depth {
  color: #284665;
  transform: translateZ(-12px);
  opacity: var(--depth-opacity);
  text-shadow:
    1px 1px #33587d,
    2px 2px #33587d,
    3px 3px #2f5175,
    4px 4px #2f5175,
    5px 5px #294663,
    6px 6px #294663,
    7px 7px #243b54,
    8px 8px #243b54,
    9px 9px #1c3047,
    10px 10px #1c3047,
    11px 11px #15263a,
    12px 12px #15263a;
}
.glyph-red {
  color: #ff345e;
  opacity: var(--channel-opacity);
  transform: translateX(var(--split)) translateZ(1px);
  mix-blend-mode: screen;
}
.glyph-blue {
  color: #48d9ff;
  opacity: var(--channel-opacity);
  transform: translateX(calc(var(--split) * -1)) translateZ(2px);
  mix-blend-mode: screen;
}
.hero-type {
  isolation: isolate;
}
.scene-water {
  min-height: 740px;
  background: #07171e;
  color: #c4e5e9;
}
.reservoir-wall {
  position: absolute;
  inset: 0 0 30%;
  background:
    linear-gradient(90deg, #01090e 0%, transparent 18% 82%, #01090e),
    repeating-linear-gradient(90deg, #10252d 0 1px, #0b1d24 1px 90px);
  box-shadow:
    inset 0 80px 130px #02090e,
    inset 0 -60px 90px #020c12;
}
.reservoir-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, #a0ced342, transparent 65%);
}
.reservoir-pool {
  position: absolute;
  inset: 62% -20% -40%;
  transform: perspective(450px) rotateX(58deg);
  transform-origin: 50% 0;
  background:
    repeating-radial-gradient(
      ellipse at 50% 10%,
      transparent 0 19px,
      #79c8dc22 20px,
      #3a8fa411 22px,
      transparent 25px 38px
    ),
    linear-gradient(#0b2936, #041119);
  animation: reservoir-ripples 9s ease-in-out infinite alternate paused;
}
.reservoir-mist {
  position: absolute;
  inset: 48% -10% 15%;
  background: radial-gradient(ellipse, #9bdee51f, transparent 65%);
  filter: blur(22px);
  animation: reservoir-mist 13s ease-in-out infinite alternate paused;
}
.scene-water .scene-title {
  inset: 70px 0 110px;
  align-items: flex-start;
  padding-top: 85px;
}
.scene-water h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(65px, 9vw, 130px);
  font-weight: 600;
  letter-spacing: -0.045em;
}
.scene-water .scene-caption {
  margin-top: auto;
}
.scene-water .scene-meta {
  color: #80a9b7;
}
.scene-visible :is(.reservoir-pool, .reservoir-mist) {
  animation-play-state: running;
}
.showcase-paused :is(.reservoir-pool, .reservoir-mist) {
  animation-play-state: paused;
}
@keyframes reservoir-ripples {
  to {
    transform: perspective(450px) rotateX(58deg) scaleX(1.08);
    opacity: 0.7;
  }
}
@keyframes reservoir-mist {
  to {
    transform: translateX(7%) scaleY(1.2);
    opacity: 0.5;
  }
}
@media (max-width: 700px) {
  .spatial-title {
    perspective: 650px;
  }
  .scene-water {
    min-height: 640px;
  }
  .scene-water .scene-title {
    padding-top: 65px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reservoir-pool,
  .reservoir-mist {
    animation: none !important;
  }
}
.glyph-glitch {
  color: #bdf4ff;
  clip-path: inset(38% 0 43%);
  transform: translate3d(9px, 0, 3px);
  opacity: var(--glitch-opacity, 0);
  text-shadow: -5px 0 #ff456b;
}
.reservoir-wall {
  border-left: 32px solid #030d12;
  border-right: 32px solid #030d12;
}
.reservoir-wall::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  width: 56%;
  height: 4px;
  background: #c9eef0;
  box-shadow:
    0 4px 20px #b1e9f0aa,
    0 30px 85px 35px #83c3cd1c;
}
@media (max-width: 700px) {
  .reservoir-wall {
    border-left-width: 15px;
    border-right-width: 15px;
  }
}
/* Full-bleed editorial shell, with consistent inset spacing for controls. */
:root {
  --page-inset: clamp(22px, 4vw, 72px);
  --line: #263447;
  --muted: #91a4bc;
}
main {
  max-width: none;
  width: 100%;
  padding: 0;
}
.public-nav {
  padding: 24px var(--page-inset);
  background: #080c12e8;
}
.public-nav nav a {
  font-size: 12px;
}
.public-nav button {
  border-radius: 5px;
  padding: 10px 15px;
}
.showcase-hero {
  padding: 0 var(--page-inset);
  height: 88svh;
  min-height: 650px;
}
.hero-type {
  min-height: 280px;
}
.hero-coordinate {
  right: var(--page-inset);
}
.showcase {
  padding-top: 0;
}
.showcase-heading {
  padding: 46px var(--page-inset);
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.scene {
  margin: 0;
  border-width: 0 0 1px;
  padding: 34px var(--page-inset);
  min-height: min(850px, 88svh);
}
.scene-title {
  left: var(--page-inset);
  right: var(--page-inset);
}
.scene-water {
  min-height: 760px;
}
.study-footnote {
  margin: 0;
  padding: 30px var(--page-inset);
  border-bottom: 1px solid var(--line);
}
.playground-heading {
  margin: 0;
  padding: 96px var(--page-inset) 42px;
  border: 0;
}
.toolbar,
.lab-controls,
.research,
.composer,
.section-divider,
.grid,
#signal {
  margin-left: var(--page-inset);
  margin-right: var(--page-inset);
}
.toolbar {
  border: 1px solid var(--line);
  background: #101823;
  padding: 24px;
  border-radius: 10px 10px 0 0;
  gap: 24px;
  flex-wrap: wrap;
}
.toolbar .field:first-child {
  flex: 1;
  min-width: 200px;
}
.toolbar input[type="text"] {
  width: 100%;
  font-size: 18px;
  border-color: #42536a;
}
.lab-controls {
  background: #101823;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 16px 24px;
  margin-top: 0;
  color: var(--muted);
}
button {
  min-height: 36px;
  border-radius: 5px;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
button:hover {
  background: #ffffff0b;
}
button[aria-pressed="true"]:hover {
  background: #c6d8ef;
}
.family-tabs,
.recipe-tabs {
  gap: 8px;
  margin-bottom: 22px;
}
.family-tabs button,
.recipe-tabs button {
  padding: 10px 16px;
}
.research,
.composer {
  margin-top: 72px;
  margin-bottom: 80px;
}
.research-heading {
  margin-bottom: 32px;
}
.research-heading h2 {
  font-size: clamp(32px, 3.4vw, 54px);
  letter-spacing: -0.045em;
}
.research-heading p {
  max-width: 370px;
}
.bench-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}
.catalog,
.bench,
.mix-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101a27;
}
.catalog-top {
  color: var(--muted);
  border-color: var(--line);
}
.experiment-option {
  color: #afbed0;
  min-height: 43px;
}
.experiment-option[aria-pressed="true"] {
  color: #e4eeff;
  background: #263c56;
}
.bench-stage {
  min-height: 390px;
  background: radial-gradient(ellipse at 50% 40%, #1b2b403b, transparent 70%);
}
#bench-hint,
.bench-meta,
.mix-footer {
  color: var(--muted);
}
.bench-controls input {
  accent-color: #9abce9;
}
.bench-description,
.mix-story {
  padding-top: 28px;
  padding-bottom: 10px;
}
.research-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}
.research-note a {
  color: #b6cdec;
  margin-left: 0;
  text-underline-offset: 4px;
}
.composer-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}
.mix-panel {
  background: #101a27;
  padding: 26px;
  color: #c2d1e4;
}
.mix-panel select {
  background: #09131f;
  color: #e1ebf8;
  border: 1px solid #354a63;
  border-radius: 5px;
  min-height: 40px;
}
.mix-panel legend {
  color: #839cb9;
}
.mix-panel fieldset {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.mix-panel label {
  color: #9fb0c6;
}
.section-divider {
  border-color: var(--line);
  padding-top: 48px;
}
.section-divider h2 {
  font-size: clamp(32px, 3.4vw, 54px);
  letter-spacing: -0.04em;
}
.grid {
  gap: 16px;
}
.grid .card {
  background: #101b29;
  border-color: #2a3c51;
  color: #d2e0ef;
  border-radius: 8px;
}
.grid .card:nth-child(3n) {
  background: #111d29;
}
.grid .card:nth-child(3n + 1) {
  background: #111826;
}
.card-head,
.card-foot {
  border-color: #ffffff12;
}
.card-foot span {
  color: #9aafc7;
}
#signal {
  padding-top: 56px;
  margin-top: 70px;
  border-top: 1px solid var(--line);
}
footer {
  margin-top: 90px;
  padding: 35px var(--page-inset);
  border-color: var(--line);
  color: #a9bdd5;
  gap: 20px;
}
.note {
  margin: 0;
  padding: 0 var(--page-inset) 50px;
  color: #7389a3;
  line-height: 1.9;
  font-size: 12px;
}
.note a {
  display: block;
  color: #b8cde8;
  margin-top: 18px;
  text-underline-offset: 4px;
}
@media (max-width: 900px) {
  .composer-layout {
    grid-template-columns: 1fr;
  }
  .bench-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .lab-controls {
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .public-nav {
    padding: 20px var(--page-inset);
  }
  .showcase-hero {
    min-height: 620px;
    height: 85svh;
  }
  .hero-type {
    min-height: 210px;
  }
  .scene {
    min-height: 580px;
    padding: 24px var(--page-inset);
  }
  .scene-water {
    min-height: 660px;
  }
  .showcase-heading {
    padding: 30px var(--page-inset);
  }
  .showcase-heading p {
    margin-bottom: 0;
  }
  .playground-heading {
    padding-top: 65px;
  }
  .toolbar {
    padding: 20px;
    gap: 22px;
  }
  .toolbar .field {
    width: 100%;
  }
  .toolbar .intensity input {
    width: 100%;
  }
  .lab-controls {
    padding: 18px 20px;
  }
  .lab-controls > .mono {
    font-size: 9px;
    line-height: 1.8;
  }
  .bench-layout {
    grid-template-columns: 1fr;
  }
  .bench-stage {
    min-height: 300px;
  }
  .research,
  .composer {
    margin-top: 48px;
    margin-bottom: 55px;
  }
  .family-tabs,
  .recipe-tabs {
    gap: 6px;
  }
  .family-tabs button,
  .recipe-tabs button {
    padding: 9px 12px;
  }
  .mix-panel {
    padding: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card-foot {
    gap: 15px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.7;
    margin-top: 60px;
  }
}
/* One studio replaces the separate research, composition and signal sandboxes. */
.studio-presets {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: #101a27;
  border-radius: 8px;
}
.studio-presets select,
.studio-signal select {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #3b506a;
  font: inherit;
  font-size: 12px;
}
.studio-presets button {
  margin-left: auto;
}
.studio-signal {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #0d1724;
}
.studio-signal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.studio-signal fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.studio-signal label {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #a8bbd2;
}
.studio-signal label select,
.studio-signal label input {
  width: 100%;
}
.studio-signal output {
  margin-left: auto;
}
.studio-signal p {
  font-size: 12px;
  color: #8b9fb9;
  line-height: 1.6;
  margin: 18px 0 0;
}
.studio-signal fieldset:disabled {
  opacity: 0.35;
}
.studio-original canvas {
  visibility: hidden;
}
.studio-original h2 {
  color: #dbeaff !important;
}
#elements-intro {
  background: #132335 !important;
  border-color: #81b1d7 !important;
}
.toolbar {
  border-radius: 8px;
  align-items: center;
}
.toolbar .field:first-child {
  flex: 2;
}
#research {
  margin-top: 36px;
}
.scene-water {
  background: #061117 url("./assets/stillwater-bath.jpg") center / 100% 100%
    no-repeat;
  min-height: 760px;
}
.scene-water .reservoir-wall,
.scene-water .reservoir-pool {
  display: none;
}
.scene-water .scene-title {
  inset: 0;
  padding-top: 180px;
}
.scene-water .scene-title h2 {
  font-size: clamp(62px, 8vw, 120px);
}
.scene-water .scene-meta,
.scene-water .scene-caption {
  text-shadow: 0 2px 12px #000;
}
.scene-water .reservoir-mist {
  inset: 52% 10% 22%;
  opacity: 0.5;
}
.scene-water::after {
  background: linear-gradient(#02070b55, transparent 30% 75%, #02070b88);
  z-index: -1;
}
@media (max-width: 700px) {
  .studio-presets {
    gap: 12px;
  }
  .studio-presets label {
    width: 100%;
  }
  .studio-presets select {
    flex: 1;
    min-width: 0;
  }
  .studio-signal {
    padding: 20px 18px;
  }
  .studio-signal fieldset {
    grid-template-columns: 1fr 1fr;
  }
  .studio-signal label:first-child {
    grid-column: 1/-1;
  }
  .studio-signal-heading .mono {
    font-size: 9px;
  }
  .scene-water {
    min-height: 660px;
    background-size: auto 100%;
    background-position: 50% 0;
  }
  .scene-water .scene-title {
    padding-top: 170px;
  }
}

.public-nav a[aria-disabled="true"] {
  color: #7e8fa7;
  cursor: default;
}
.layer-editor {
  padding: 24px;
  border-top: 1px solid #29394d;
  background: #0b1420;
}
.layer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.layer-editor p {
  color: #93a8c3;
  font-size: 12px;
  line-height: 1.6;
}
.layer-editor ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.layer-row {
  padding: 18px;
  background: #141f2d;
  border: 1px solid #2c3d54;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.layer-title {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.layer-title strong {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}
.layer-title button {
  padding: 5px 10px;
}
.layer-row label {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #9db1cc;
  font-size: 11px;
}
.layer-row output {
  margin-left: auto;
}
.layer-row input[type="range"] {
  width: 100%;
}
.layer-add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.layer-add select {
  background: #192537;
  color: #dae6f6;
  border: 1px solid #3b4e66;
  border-radius: 5px;
  padding: 10px;
}
.layer-editor button:disabled {
  opacity: 0.3;
  cursor: default;
}
.has-stack #studio-signal-fields,
.has-stack #studio-signal-note,
.has-stack .bench-controls > label,
.has-stack #keep-study {
  display: none;
}
.has-stack .studio-signal {
  padding: 16px 24px;
}
.has-stack .studio-signal-heading {
  margin: 0;
}
.has-stack .studio-signal-heading .mono {
  font-size: 0;
}
.has-stack .studio-signal-heading .mono::after {
  content: "ORIGINAL / COMPOSITION";
  font-size: 10px;
}
@media (max-width: 600px) {
  .layer-editor {
    padding: 18px;
  }
  .layer-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 16px;
  }
  .layer-title {
    gap: 5px;
  }
  .layer-title strong {
    font-size: 11px;
  }
  .layer-title button {
    padding: 5px 8px;
  }
}
/* Each selected study is a complete, edge-to-edge viewport. */
.public-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  background: linear-gradient(#080c12e8, transparent);
  border: 0;
}
.showcase-hero {
  height: 100svh;
  min-height: 100svh;
  padding-top: 80px;
  padding-bottom: 40px;
}
.scene {
  height: 100svh;
  min-height: 100svh;
}
.scene-water .scene-title {
  padding-top: 24svh;
}
.showcase-hero::after {
  content: none;
}
.scene-threshold {
  background: #04070c;
  color: #edf6ff;
}
.threshold-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 55%, #26405755, transparent 58%),
    linear-gradient(90deg, #010305, #0c1420 49%, #010306);
}
.threshold-art::after {
  content: "";
  position: absolute;
  inset: 58% -20% -30%;
  background:
    repeating-linear-gradient(90deg, transparent 0 8%, #7298be18 8.1% 8.2%),
    linear-gradient(#b8dfff18, transparent);
  transform: perspective(400px) rotateX(60deg);
  transform-origin: center top;
  mask-image: linear-gradient(#000, transparent);
}
.threshold-art i {
  position: absolute;
  inset: 7% 22%;
  border: 1px solid #94b8de40;
  border-left: 3px solid #c5dcf888;
  border-right: 3px solid #7da1d377;
  box-shadow:
    inset 0 0 30px #779ed511,
    0 0 18px #7baff415;
  transform: scale(var(--depth));
  animation: threshold-breathe 10s ease-in-out infinite paused;
}
.threshold-art i:nth-child(1) {
  --depth: 1.65;
}
.threshold-art i:nth-child(2) {
  --depth: 1.3;
}
.threshold-art i:nth-child(3) {
  --depth: 1;
}
.threshold-art i:nth-child(4) {
  --depth: 0.73;
}
.threshold-art i:nth-child(5) {
  --depth: 0.49;
}
.threshold-art i:nth-child(6) {
  --depth: 0.26;
}
.threshold-light {
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 49.8%;
  width: 0.4%;
  background: #e6f5ff;
  box-shadow:
    0 0 24px 8px #a2d7ff88,
    0 0 100px 40px #6bafff33;
  animation: threshold-light 10s ease-in-out infinite paused;
}
.scene-threshold .scene-title h2 {
  max-width: min(850px, 75%);
  text-wrap: balance;
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.075em;
}
.scene-threshold .scene-meta,
.scene-threshold .scene-caption {
  text-shadow: 0 2px 20px #000;
  color: #c2d2e7;
}
.scene-visible .threshold-art i,
.scene-visible .threshold-light {
  animation-play-state: running;
}
.showcase-paused .threshold-art i,
.showcase-paused .threshold-light {
  animation-play-state: paused;
}
@keyframes threshold-breathe {
  0%,
  80%,
  100% {
    transform: scale(var(--depth));
    opacity: 0.55;
  }
  40% {
    transform: scale(calc(var(--depth) * 1.08));
    opacity: 1;
  }
}
@keyframes threshold-light {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.5);
  }
  40% {
    opacity: 0.9;
    transform: scaleX(2);
  }
}
@media (max-width: 700px) {
  .showcase-hero {
    padding-top: 100px;
    padding-bottom: 30px;
  }
  .scene {
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .scene-threshold .scene-title h2 {
    font-size: clamp(58px, 13vw, 90px);
  }
  .threshold-art i {
    inset: 12% 15%;
  }
  .scene-caption {
    gap: 16px;
  }
  .scene-caption p {
    max-width: 60%;
    font-size: 12px;
  }
  .scene-caption span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .threshold-art i,
  .threshold-light {
    animation: none;
  }
}
/* One editing surface: preview on the left, one effect list on the right. */
#effect-browser {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1622;
}
#effect-browser summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 13px;
  color: #d7e4f7;
}
#effect-browser summary span {
  font-size: 11px;
  color: #8298b5;
  margin-left: 16px;
}
#effect-browser .family-tabs {
  padding: 0 20px;
}
#effect-browser .catalog {
  margin: 18px;
  max-height: 320px;
  overflow: auto;
}
#effect-browser #experiment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  max-height: none;
}
#effect-browser .catalog-top {
  display: none;
}
.bench-layout {
  display: block;
}
.bench {
  overflow: visible;
}
.bench-top,
.bench-meta,
#bench-hint {
  display: none;
}
.bench.has-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  align-items: start;
}
.editor-preview {
  min-width: 0;
  position: sticky;
  top: 20px;
}
.has-stack .bench-description {
  display: none;
}
.bench-stage {
  height: 360px;
  min-height: 360px;
  border-radius: 10px 10px 0 0;
}
.bench-stage h2 {
  font-size: clamp(32px, 4vw, 64px);
  max-width: 90%;
}
.bench-controls {
  padding: 20px 24px;
  justify-content: center;
}
.preview-compare {
  padding: 0 24px 24px;
  text-align: center;
}
.has-stack .layer-editor {
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 20px;
  min-width: 0;
  border-radius: 0 10px 10px 0;
}
.layer-heading {
  margin-bottom: 16px;
}
.layer-heading p {
  margin-bottom: 0;
}
.layer-editor ol {
  max-height: 480px;
  overflow: auto;
  scrollbar-width: thin;
}
.layer-row {
  padding: 14px;
  gap: 12px;
}
.layer-title strong {
  font-size: 12px;
}
.layer-title button {
  padding: 4px 8px;
}
.layer-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}
.layer-add label {
  grid-column: 1/-1;
}
.layer-add select {
  width: 100%;
  min-width: 0;
}
#layer-tools > p:not([role="status"]) {
  display: none;
}
#layer-copy {
  width: 100%;
  margin-top: 18px;
}
.research-heading {
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .bench.has-stack {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    position: static;
  }
  .has-stack .layer-editor {
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
  }
  .bench-stage {
    height: 260px;
    min-height: 260px;
  }
  .layer-editor ol {
    max-height: 420px;
  }
  #effect-browser summary span {
    display: block;
    margin: 6px 0 0;
  }
  .layer-row {
    grid-template-columns: 1fr 1fr;
  }
}
.layer-title .layer-selector {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid #3a4c65;
  border-radius: 5px;
  background: #192638;
  color: #e0ebf9;
  font: 12px system-ui;
}
.has-stack .editor-preview {
  position: sticky;
  top: 16px;
  z-index: 3;
  background: #111b28;
  border-radius: 10px;
}
.has-stack .bench-stage {
  height: min(360px, 45svh);
  min-height: 0;
}
@media (max-width: 900px) {
  .has-stack .editor-preview {
    top: 0;
    border-bottom: 1px solid #34445b;
    border-radius: 10px 10px 0 0;
  }
  .has-stack .bench-stage {
    height: clamp(120px, 24svh, 210px);
    min-height: 0;
  }
  .has-stack .bench-stage h2 {
    font-size: clamp(28px, 5vw, 48px);
  }
  .has-stack .bench-controls {
    padding: 8px 12px;
    gap: 8px;
  }
  .has-stack .preview-compare {
    padding: 0 12px 10px;
  }
  .has-stack .layer-editor {
    scroll-margin-top: 38svh;
  }
  .layer-editor ol {
    scroll-padding: 8px;
  }
}
/* Keep content, typography, output and treatment in the same workspace. */
#research {
  padding-top: 0;
}
#research > .studio-presets {
  margin: 0;
  border-radius: 10px 10px 0 0;
  padding: 12px 20px;
  border-bottom: 0;
  gap: 12px;
}
#research .bench {
  border-radius: 0 0 10px 10px;
}
.editor-preview > .toolbar {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #121e2d;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}
.editor-preview .toolbar .field {
  min-width: 0;
}
.editor-preview .toolbar #text {
  width: 100%;
  font-size: 16px;
  padding: 8px 0;
}
.editor-preview .toolbar .choices {
  gap: 5px;
}
.editor-preview .toolbar .choices button {
  padding: 7px 9px;
  font-size: 11px;
}
.has-stack .bench-stage {
  height: clamp(180px, 34svh, 280px);
}
.has-stack .bench-controls {
  padding: 10px 16px;
}
.has-stack .preview-compare {
  padding: 0 16px 14px;
}
.has-stack .layer-editor {
  height: min(550px, 74svh);
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.layer-editor[hidden] {
  display: none !important;
}
.layer-heading {
  margin-bottom: 12px;
}
.layer-heading p {
  font-size: 11px;
}
.layer-editor ol {
  flex: 1;
  min-height: 100px;
  max-height: none;
  overflow: auto;
  gap: 8px;
}
.layer-row {
  display: block;
  padding: 12px;
}
.layer-title .layer-selector {
  font-size: 13px;
  padding: 8px;
}
.layer-adjustments {
  margin-top: 8px;
}
.layer-adjustments summary {
  font-size: 11px;
  color: #9eafc5;
  cursor: pointer;
  padding: 6px 0;
}
.layer-adjustments label {
  margin-top: 12px;
}
.layer-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}
.layer-actions button {
  padding: 4px 12px;
  font-size: 12px;
}
.layer-add {
  margin-top: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
#layer-copy {
  margin-top: 10px;
}
#layer-copy-status:empty {
  display: none;
}
#effect-browser {
  margin-top: 16px;
}
@media (max-width: 900px) {
  .editor-preview > .toolbar {
    padding: 12px 14px;
    gap: 12px;
  }
  .has-stack .editor-preview {
    top: 0;
  }
  .has-stack .bench-stage {
    height: clamp(100px, 20svh, 160px);
  }
  .has-stack .layer-editor {
    height: 46svh;
    min-height: 280px;
  }
  .has-stack .bench-controls {
    padding: 6px 12px;
  }
  .has-stack .preview-compare {
    padding-bottom: 8px;
  }
  #research > .studio-presets {
    padding: 10px 14px;
  }
}
@media (max-width: 500px) {
  .editor-preview > .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .editor-preview .toolbar .choices {
    flex-direction: column;
    gap: 2px;
  }
  .editor-preview .toolbar .choices button {
    padding: 3px 8px;
  }
  .editor-preview .toolbar .label,
  .editor-preview .toolbar label {
    font-size: 9px;
  }
  .editor-preview .toolbar #text {
    font-size: 14px;
  }
  .has-stack .bench-stage h2 {
    font-size: 28px;
  }
}
.layer-adjustments[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 14px;
}
.layer-adjustments > summary,
.layer-adjustments > .layer-actions {
  grid-column: 1/-1;
}
.layer-adjustments label {
  min-width: 0;
}
.layer-row {
  padding: 10px 8px;
}
.layer-title {
  gap: 5px;
}
.layer-title .layer-selector {
  padding-left: 6px;
  font-size: 12px;
}
.layer-title button {
  padding: 4px;
  min-width: 22px;
  background: transparent;
  border-color: transparent;
}
.layer-title .layer-settings {
  font-size: 17px;
  color: #aec6e7;
  min-width: 28px;
}
.layer-inline-actions {
  display: flex;
  gap: 0;
}
.layer-inline-actions button {
  color: #8292a9;
  font-size: 13px;
}
.layer-drag {
  touch-action: none;
  cursor: grab;
  color: #7287a3;
  font-size: 18px;
}
.layer-row.dragging {
  opacity: 0.55;
}
.layer-row.drop-target {
  box-shadow: 0 -2px #adcaff;
}
.layer-popup {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 240px;
  padding: 20px;
  border: 1px solid #536985;
  border-radius: 10px;
  background: #142134;
  color: #dbe7f7;
  box-shadow: 0 16px 50px #0008;
  z-index: 20;
}
.layer-popup::backdrop {
  background: transparent;
}
.layer-popup label {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: #a8bdd8;
}
.layer-popup label + label {
  margin-top: 20px;
}
.layer-popup output {
  margin-left: auto;
}
.layer-popup input {
  width: 100%;
}
.layer-editor ol {
  align-content: start;
}
.layer-add {
  display: block;
}
.layer-add button {
  width: 100%;
  border-style: dashed;
  background: transparent;
}
.has-stack .editor-preview {
  align-self: stretch;
}
.has-stack .bench-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 0;
  justify-content: flex-end;
}
.has-stack .bench-stage {
  height: calc(100% - 96px);
  min-height: 280px;
  padding-bottom: 60px;
}
.scene-copy {
  position: absolute;
  right: var(--page-inset);
  bottom: 94px;
  z-index: 5;
  padding: 6px 10px;
  border: 1px solid #a7bed32b;
  border-radius: 5px;
  background: #07101955;
  color: #b4c4d7;
  font: 10px system-ui;
  cursor: pointer;
  opacity: 0.65;
}
.scene-copy:hover,
.scene-copy:focus-visible {
  opacity: 1;
  background: #101d30;
}
.showcase-hero .scene-copy {
  bottom: 28px;
  right: auto;
  left: var(--page-inset);
}
@media (max-width: 900px) {
  .has-stack .editor-preview {
    align-self: start;
  }
  .has-stack .bench-stage {
    height: clamp(150px, 24svh, 220px);
    min-height: 0;
  }
  .scene-copy {
    bottom: 100px;
  }
  .layer-title .layer-selector {
    font-size: 12px;
  }
}

/* Quiet motion control; retain a comfortable pointer and keyboard target. */
#showcase-motion {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8190a3;
}
#showcase-motion:hover {
  color: #e0e8f2;
  background: #ffffff08;
}
#showcase-motion:focus-visible {
  outline: 2px solid #9abce5;
  outline-offset: 3px;
}
#showcase-motion .motion-play,
#showcase-motion[aria-pressed="true"] .motion-pause {
  display: none;
}
#showcase-motion[aria-pressed="true"] .motion-play {
  display: block;
}

@media (min-width: 901px) {
  .bench.has-stack {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 44%);
  }
}
.layer-title .layer-inline-actions button,
.layer-title .layer-drag {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  min-width: 28px;
  padding: 5px;
  color: #95aac4;
}
.layer-title .layer-inline-actions button:hover {
  color: #e4edf8;
  background: #ffffff08;
}
.layer-hidden .layer-selector { opacity: .5; }
.layer-visibility[aria-pressed="false"] { opacity: .6; }
.bench .layer-title button.layer-visibility[aria-pressed] {
  background: transparent;
  border-color: transparent;
  color: #95aac4;
}
.bench .layer-title button.layer-visibility:hover {
  background: #ffffff08;
  color: #e4edf8;
}
.layer-drag svg { stroke-width: 3; }

/* Reserve six rows on taller screens; compact viewports keep list scrolling. */
@media (min-width: 901px) {
  .has-stack .layer-editor {
    height: min(620px, calc(100svh - 130px));
    min-height: 360px;
  }
}
@media (max-width: 900px) and (min-height: 1000px) {
  .has-stack .layer-editor { height: 620px; }
}

.layer-title .layer-drag {
  color: #b7c9df;
  background: #ffffff06;
  border: 1px solid #ffffff12;
  border-radius: 4px;
}
.layer-title .layer-drag:hover { background: #ffffff12; color: white; }
.layer-row.dragging { opacity: .55; transform: scale(.98); border-color: #a5c7ef; }
.layer-row.drop-target { position: relative; box-shadow: inset 0 3px #b9d6ff; background: #233449; }
.layer-row.drop-target::after { content: 'Drop here'; position: absolute; top: -9px; right: 12px; padding: 2px 7px; border-radius: 3px; background: #b9d6ff; color: #101a28; font-size: 10px; pointer-events: none; }
.performance-section { padding: 90px var(--page-inset) 30px; border-top: 1px solid var(--line); margin-top: 70px; }
.performance-heading h2 { font-size: clamp(30px,4vw,52px); letter-spacing: -.045em; font-weight: 500; margin: 20px 0; }
.performance-heading p,.performance-metrics p { color: #91a3ba; font-size: 13px; }
.performance-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin: 48px 0; }
.performance-metrics article { border-top: 1px solid #314052; padding-top: 24px; }
.performance-metrics strong { font-size: clamp(40px,5vw,64px); font-weight: 500; letter-spacing: -.05em; }
.performance-metrics small { font-size: 20px; color: #9eb6d1; }
.performance-metrics h3 { font-size: 13px; font-weight: 500; margin-top: 20px; }
.performance-details { color: #9cafc7; font-size: 12px; line-height: 1.8; }
.performance-details summary { cursor: pointer; padding: 16px 0; border-top: 1px solid #28384c; }
.performance-details p { max-width: 900px; }
.performance-details a { color: #c5daf4; }
.performance-table { overflow-x: auto; }
.performance-table table { border-collapse: collapse; width: 100%; text-align: left; }
.performance-table caption { text-align: left; padding: 12px 0; }
.performance-table th,.performance-table td { padding: 12px; border-bottom: 1px solid #28384c; white-space: nowrap; }
@media(max-width:700px){ .performance-metrics { grid-template-columns: repeat(2,1fr); gap: 24px; } }

.hero-bottom { justify-content: flex-start; align-items: center; }
.hero-bottom .hero-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  border: 1px solid #53687f;
  border-radius: 6px;
  background: #152130b3;
  color: #e2edfa;
  font-size: 13px;
  transition: background .2s, border-color .2s;
}
.hero-demo-link:hover { background: #233449; border-color: #9bb9db; }
.hero-demo-link:focus-visible { outline: 2px solid #b9d6ff; outline-offset: 5px; }
.hero-demo-link svg { transition: transform .2s; }
.hero-demo-link:hover svg { transform: translateY(3px); }
.showcase-heading { gap: 20px; }
@media (prefers-reduced-motion: reduce) { .hero-demo-link svg { transition: none; } }

/* A bright intermission: cut-paper geometry and elastic typography. */
.scene-play { background: #f5e9ba; color: #233ccb; }
.scene-play .scene-meta,.scene-play .scene-caption,.scene-play .scene-caption span { color: #233ccb; }
.scene-play .scene-title { z-index: 2; }
.scene-play .scene-title h2 { color: #233ccb; font-weight: 800; font-size: clamp(64px,10vw,152px); max-width: 850px; line-height: .94; letter-spacing: -.065em; text-wrap: balance; }
.play-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.play-shapes i { position: absolute; display: block; animation: play-drift 9s ease-in-out infinite alternate; animation-play-state: paused; }
.play-disc { width: 36vw; height: 36vw; min-width: 280px; min-height: 280px; border-radius: 50%; background: #ff735e; left: -12%; top: 7%; }
.play-arch { width: 24vw; height: 36vw; border: clamp(30px,6vw,90px) solid #98cbb0; border-bottom: 0; border-radius: 50% 50% 0 0; right: -4%; bottom: -8%; transform: rotate(-22deg); }
.play-tile { width: 16vw; height: 16vw; background: #ed9bbd; top: 9%; right: 12%; transform: rotate(20deg); border-radius: 10%; }
.play-dot { width: 7vw; height: 7vw; border-radius: 50%; background: #233ccb; left: 22%; bottom: 12%; }
.play-stripes { width: 18vw; height: 11vw; background: repeating-linear-gradient(90deg,#233ccb 0 3px,transparent 3px 13px); left: 4%; bottom: -3%; transform: rotate(-18deg); }
.play-shapes i:nth-child(2n) { animation-delay: -4s; animation-duration: 12s; }
.scene-play.scene-visible .play-shapes i { animation-play-state: running; }
.showcase-paused .scene-play .play-shapes i { animation-play-state: paused; }
.scene-play .scene-copy { color: #233ccb; background: #f5e9baaa; border-color: #233ccb55; }
@keyframes play-drift { from { translate: 0 -8px; } to { translate: 12px 18px; } }
@media(max-width:700px){ .scene-play .scene-title h2 { font-size: clamp(58px,13vw,90px); } .play-tile { top: 18%; width: 30vw; height: 30vw; } .play-arch { width: 45vw; height: 65vw; } }
@media(prefers-reduced-motion:reduce){ .scene-play .play-shapes i { animation: none; } }
.scene-play .play-stripes { left: 34%; bottom: -9%; }

.hero-bottom { align-items: center; justify-content: center; }
.hero-bottom .hero-demo-link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #51647d;
  border-radius: 0;
  padding: 10px 0;
  gap: 48px;
  font-size: 12px;
}
.hero-bottom .hero-demo-link:hover { background: transparent; border-color: #aec9e9; }

.scene-play .play-shapes { translate: var(--play-x,0px) var(--play-y,0px); transition: translate .6s cubic-bezier(.2,1.5,.4,1); inset: -40px; }
.scene-play .play-shapes i { rotate: var(--play-turn,0deg); transition: rotate .7s cubic-bezier(.2,1.6,.4,1); }
.scene-play .play-shapes i:nth-child(2n) { rotate: calc(var(--play-turn,0deg) * -1.5); }
@media(prefers-reduced-motion:reduce){ .scene-play .play-shapes,.scene-play .play-shapes i { transition: none; translate: none; rotate: none; } }
.scene-play .scene-title { user-select: none; -webkit-user-select: none; }

.scene-orbit .scene-title {
  translate: 0 clamp(-72px, -7svh, -32px);
}

.scene-threshold .threshold-art i {
  transform: scale(calc(var(--depth) * var(--portal-scale, 1.08)));
  opacity: var(--portal-opacity, .55);
}
.scene-threshold .threshold-light {
  opacity: var(--portal-opacity, .55);
}

.scene-water {
  background-size: 100% calc(100% + 100px);
  background-position: center calc(50% + var(--water-parallax, 0px));
}

.showcase-hero .hero-bottom {
  position: absolute;
  right: var(--page-inset);
  bottom: 28px;
  margin: 0;
}
.scene-water { background-size: 100% calc(100% + 160px); }
.scene-water .scene-title { translate: 0 var(--water-entry, 0px); }

.maker-section { padding: 70px var(--page-inset) 0; max-width: 1000px; }
.maker-section h2 { font-size: clamp(28px,4vw,44px); font-weight: 500; letter-spacing: -.04em; }
.maker-section > p:not(.hero-kicker) { color: #9cafc7; max-width: 620px; line-height: 1.8; }
.maker-section nav { display:flex; flex-wrap:wrap; gap: 20px 32px; margin-top:28px; }
.maker-section a { color:#c5daf4; font-size:13px; text-underline-offset:5px; }

/* Explain the static mobile fallback without interrupting the scene. */
.element-experiment-note { position: absolute; z-index: 4; top: 28px; left: var(--page-gutter, 4vw); margin: 0; color: #c3dce6; font: 11px/1.6 monospace; letter-spacing: .04em; }
.element-experiment-note span { display: none; font: 12px/1.5 system-ui; letter-spacing: 0; }
#element-mobile-note { position: absolute; bottom: 70px; left: 24px; right: 24px; text-align: center; color: #9fb1c5; font: 13px/1.5 system-ui; }
@media (pointer: coarse), (max-width: 767px) {
  .element-experiment-note span { display: block; }
  .scene-water *, .scene-water::before, .scene-water::after { animation: none !important; }
}

@media (pointer: coarse), (max-width: 767px) {
  .scene-water, #elements-intro { display: none !important; }
}
/* Shared family previews remain reachable on narrow screens. */
@media(max-width:700px){.public-nav{flex-wrap:wrap;gap:16px}.public-nav>nav{width:100%;justify-content:space-between;gap:12px}}
