/* All design tokens now live in tokens.css — loaded before this file.
   HTML reset and component styles follow. */
html {
  color-scheme: dark;
}

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

/* Light theme and TV mode token overrides now live in tokens.css. */

:focus-visible {
  outline: var(--tv-focus-outline-width) solid var(--accent-color);
  outline-offset: var(--tv-focus-outline-offset);
  transition: outline-offset 0.15s ease;
}

:target {
  scroll-margin-top: clamp(6rem, 12vh, 9rem);
}

img,
video,
canvas {
  content-visibility: auto;
}

@supports (container-type: inline-size) {
  .content,
  .home-shell,
  .launch-shell,
  .webtoy-container {
    container-type: inline-size;
  }
}

/* Light theme and TV mode token overrides now live in tokens.css. */
.sr-only {
  /* biome-ignore lint/complexity/noImportantStyles: a11y utility */
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: max(0.9rem, env(safe-area-inset-left));
  right: auto;
  top: -6rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--text-color);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
  transition:
    top 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  z-index: var(--z-dropdown);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.skip-link:focus-visible {
  top: max(4.2rem, calc(env(safe-area-inset-top) + 3.4rem));
  opacity: 1;
  outline: var(--tv-focus-outline-width) solid var(--accent-color);
  outline-offset: var(--tv-focus-outline-offset);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

@media (hover: none) and (pointer: coarse) {
  .skip-link {
    display: none;
  }
}

body,
html {
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: calc(16px * var(--tv-scale-multiplier));
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(95, 192, 181, 0.14),
      rgba(211, 137, 84, 0.16) 42%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg-color) 0%, var(--bg-color-secondary) 100%);
  color: var(--text-color);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  scroll-margin-top: 6rem;
  text-wrap: balance;
}

section,
footer {
  scroll-margin-top: 6rem;
}

.content {
  position: relative;
  z-index: var(--z-stage-root);
  --content-padding: var(--tv-content-padding);
  padding: var(--content-padding);
  padding-top: max(var(--content-padding), env(safe-area-inset-top));
  padding-right: max(var(--content-padding), env(safe-area-inset-right));
  padding-bottom: max(var(--content-padding), env(safe-area-inset-bottom));
  padding-left: max(var(--content-padding), env(safe-area-inset-left));
  max-width: var(--content-width);
  margin: 0 auto;
  width: min(var(--content-width), 100%);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.content > :is(.home-shell, .launch-shell, .home-footer),
.home-shell > *,
.launch-shell > *,
.section-shell,
.home-stage__grid > *,
.home-presets__intro > *,
.launch-panels .shell-panels,
.launch-panels .shell-panel,
.shell-header--launch .shell-panels,
.shell-header--launch .shell-panel {
  min-width: 0;
  max-width: 100%;
}

.content::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 248, 234, 0.04) calc(100% - 1px)
    ),
    linear-gradient(
      0deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 248, 234, 0.03) calc(100% - 1px)
    );
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 70%);
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: var(--z-panel);
  padding-top: 0.45rem;
  margin-bottom: clamp(0.6rem, 1.2vw, 1rem);
  backdrop-filter: blur(14px) saturate(130%);
  contain: layout style paint;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  position: sticky;
  top: clamp(0.5rem, 1vw, 1rem);
  z-index: var(--z-nav);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 90%, transparent),
      transparent 58%
    ),
    var(--panel-glass);
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 18%, var(--surface-border));
  backdrop-filter: blur(14px) saturate(125%);
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 248, 234, 0.06);
  pointer-events: none;
}

.top-nav--scrolled {
  box-shadow: var(--shadow-surface);
  border-color: var(--surface-border);
  transform: translateY(-1px);
}

@supports selector(:has(*)) {
  .top-nav:has(a:focus-visible, button:focus-visible) {
    border-color: color-mix(in srgb, var(--accent-color) 55%, transparent);
    box-shadow:
      var(--shadow-soft),
      0 0 0 3px color-mix(in srgb, var(--accent-color) 25%, transparent);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  border-radius: 12px;
  background: var(--accent-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  mix-blend-mode: normal;
  opacity: 0.3;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: none;
  filter: none;
  opacity: 0;
  animation: none;
  z-index: -1;
}

.brand-copy .eyebrow {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

.brand-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  row-gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.nav-actions::backdrop {
  background: rgba(6, 10, 14, 0.35);
  backdrop-filter: blur(4px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 38%, var(--surface-border));
  background: color-mix(in srgb, var(--card-bg) 86%, var(--accent-color));
  color: inherit;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--accent-color) 40%, transparent);
  box-shadow: var(--shadow-soft);
  background: color-mix(in srgb, var(--card-bg) 80%, var(--accent-color));
}

.nav-toggle:focus-visible {
  outline: var(--tv-focus-outline-width) solid var(--accent-color);
  outline-offset: var(--tv-focus-outline-offset);
}

.nav-toggle__icon {
  opacity: 0.9;
  color: color-mix(in srgb, var(--text-color) 92%, var(--accent-color));
}

.nav-toggle__icon > svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-section {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-section--jump {
  padding-right: 0.15rem;
  border-right: 1px solid var(--surface-border);
}

.nav-section--utilities {
  padding-left: 0.2rem;
}

.nav-link--section {
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-link--section.is-active,
.nav-link--section[aria-current="location"] {
  border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
  box-shadow: none;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-link--launch {
  background: color-mix(in srgb, var(--accent-color) 18%, var(--panel-solid));
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 34%, var(--surface-border));
}

.nav-link:hover {
  background: var(--hover-bg);
}

.nav-link:focus-visible {
  outline: var(--tv-focus-outline-width) solid var(--accent-color);
  outline-offset: var(--tv-focus-outline-offset);
  box-shadow: 0 0 20px var(--glow-color);
}

header {
  margin-bottom: 3rem;
  position: relative;
}

section.intro {
  position: relative;
  padding: clamp(2.6rem, 3vw + 1.5rem, 4.2rem);
  border-radius: calc(var(--radius-lg) + 10px);
  background: var(--panel-gradient);
  border: 1px solid
    color-mix(in srgb, var(--accent-magenta) 14%, var(--surface-border));
  box-shadow:
    var(--shadow-surface),
    inset 0 1px 0 rgba(255, 248, 234, 0.08);
  overflow: hidden;
}

section.intro::before,
section.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  z-index: var(--z-ambient);
}

section.intro::before {
  background:
    radial-gradient(
      circle at 14% 18%,
      color-mix(in srgb, var(--accent-color) 40%, transparent),
      transparent 44%
    ),
    radial-gradient(
      circle at 82% 0%,
      color-mix(in srgb, var(--accent-magenta) 28%, transparent),
      transparent 36%
    ),
    linear-gradient(135deg, rgba(255, 248, 234, 0.03), transparent 46%);
}

section.intro::after {
  background: linear-gradient(
    120deg,
    transparent 0%,
    var(--stims-white-08) 45%,
    transparent 100%
  );
  opacity: 0.35;
}

section.intro > * {
  position: relative;
  z-index: var(--z-stage-root);
}

header.hero {
  min-height: 55vh;
  padding: clamp(2.4rem, 2vw + 1.4rem, 3.2rem);
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--panel-highlight) 80%, transparent),
      transparent 45%
    ),
    var(--aurora-soft), var(--card-bg);
  box-shadow: var(--shadow-surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px) saturate(120%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  z-index: var(--z-ambient);
}

.hero::before {
  background:
    radial-gradient(
      circle at 80% 18%,
      color-mix(in srgb, var(--accent-magenta) 22%, transparent),
      transparent 48%
    ),
    radial-gradient(
      circle at 18% 78%,
      color-mix(in srgb, var(--accent-purple) 18%, transparent),
      transparent 52%
    );
  filter: blur(2px);
}

.hero::after {
  background: none;
  mix-blend-mode: normal;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.2rem);
  align-items: center;
  position: relative;
  z-index: var(--z-stage-root);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 0.85rem;
}

.hero-utility-row,
.experience-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-utility-row {
  margin-top: 0.8rem;
}

.experience-shortcuts {
  margin-top: 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 1.2rem + 2.5vw, 3.2rem);
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  text-shadow: none;
}

.intro .section-heading h1 {
  font-size: clamp(2.8rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.intro .section-heading .section-description {
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: 1.05rem;
  margin-top: 0;
  max-width: 640px;
  line-height: 1.6;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.1rem 0;
}

.hero-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.hero-cta-row .cta-button {
  width: 100%;
  justify-content: center;
}

.hero-cta-row .cta-button.primary {
  grid-column: 1 / -1;
}

.intro-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: -0.15rem;
}

.intro-secondary-link {
  margin-top: 0;
}

.section-helper {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cta-helper {
  margin: -0.5rem 0 1.5rem;
  max-width: 720px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.intro h1 {
  margin: 0;
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem);
  line-height: 1.2;
}

.intro .cta-helper {
  margin: 0;
}

html.light .cta-helper {
  color: color-mix(in srgb, var(--text-color) 85%, var(--accent-color));
}

.intro-focus {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.intro-meta {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  margin: -0.25rem 0;
  border-radius: 8px;
  touch-action: manipulation;
  color: color-mix(in srgb, var(--link-color) 88%, var(--text-color));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button.text-link {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

.text-link:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--stims-focus-ring-35);
}

.cta-button {
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  background: var(--interactive-bg);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--interactive-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--stims-white-04) inset;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    filter 0.35s ease;
  background-size: auto;
  animation: none;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.cta-button.primary {
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--accent-color) 74%, #4f86d9),
    color-mix(in srgb, var(--accent-purple) 58%, #1d4ed8)
  );
  color: var(--accent-contrast);
  border-color: color-mix(in srgb, #1d4ed8 52%, var(--surface-border));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.cta-button--accent {
  border-color: color-mix(
    in srgb,
    var(--accent-color) 45%,
    var(--surface-border)
  );
  background: color-mix(in srgb, var(--accent-color) 14%, var(--card-bg));
  color: var(--text-color);
}

.cta-button--muted {
  border-color: var(--interactive-border);
  background: color-mix(in srgb, var(--interactive-bg) 86%, transparent);
  color: color-mix(in srgb, var(--text-muted) 90%, var(--text-color));
}

.cta-button.ghost {
  background: color-mix(in srgb, var(--interactive-bg) 92%, transparent);
  border-color: var(--interactive-border);
  color: var(--text-color);
}

.cta-button:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 var(--stims-white-04) inset,
    var(--interactive-shadow);
  color: var(--text-color);
}

.cta-button.primary:hover {
  color: var(--accent-contrast);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .top-nav,
  header.hero,
  .cta-button {
    backdrop-filter: none;
    transition: none;
    transform: none;
  }

  .cta-button:hover {
    transform: none;
  }
}

.cta-button:focus-visible {
  outline: var(--tv-focus-outline-width) solid var(--accent-color);
  outline-offset: var(--tv-focus-outline-offset);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.cta-button::after {
  content: none;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.library {
  margin-top: clamp(1.5rem, 2.8vw, 2.6rem);
  padding-top: clamp(1.1rem, 1.8vw, 1.55rem);
  border-top: 1px solid
    color-mix(in srgb, var(--accent-color) 24%, var(--surface-border));
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.section-heading::after {
  content: "";
  width: 92px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-color) 34%, transparent);
  animation: headingBeam 4.8s ease-in-out infinite;
  transform-origin: left center;
}

.section-heading h2 {
  margin: 0.25rem 0;
  font-size: 2rem;
}

.section-description {
  margin: 0 0 0.65rem;
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }
}

.library-search {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.55rem;
  padding: clamp(1.25rem, 2.3vw, 1.8rem);
  border-radius: calc(var(--radius-lg) + 10px);
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 18%, var(--surface-border));
  background:
    var(--surface-highlight), var(--surface-texture),
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--accent-color) 22%, transparent),
      transparent 58%
    ),
    radial-gradient(
      circle at 95% 8%,
      color-mix(in srgb, var(--accent-magenta) 20%, transparent),
      transparent 22%
    ),
    var(--surface-gradient);
  box-shadow:
    var(--shadow-surface),
    inset 0 1px 0 rgba(255, 248, 234, 0.08);
  position: sticky;
  top: clamp(4.6rem, 9vh, 6rem);
  z-index: var(--z-search-sticky);
  contain: layout style paint;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.library-search:focus-within {
  border-color: color-mix(
    in srgb,
    var(--accent-color) 38%,
    var(--surface-border)
  );
  box-shadow:
    var(--shadow-strong),
    0 0 0 1px color-mix(in srgb, var(--accent-color) 24%, transparent);
  transform: translateY(-1px);
}

.search-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.search-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.search-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: stretch;
}

.search-meta {
  display: grid;
  gap: 0.3rem;
  align-content: center;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background:
    var(--surface-highlight), var(--surface-texture), rgba(15, 23, 42, 0.45);
  min-width: 220px;
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--stims-white-04);
  position: sticky;
  top: 0.5rem;
  z-index: var(--z-stage-hero);
}

html.light .search-meta {
  background:
    var(--surface-highlight), var(--surface-texture),
    color-mix(in srgb, var(--card-bg) 90%, var(--accent-color));
  border-color: color-mix(
    in srgb,
    var(--accent-color) 18%,
    var(--surface-border)
  );
  color: var(--text-color);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--accent-color) 12%, transparent);
}

html.light .search-meta__results,
html.light .search-meta__note {
  color: var(--text-color);
}

html.light .search-meta__tokens li {
  border-color: color-mix(
    in srgb,
    var(--accent-color) 24%,
    var(--surface-border)
  );
  color: var(--text-color);
  background: color-mix(in srgb, var(--card-bg) 92%, var(--accent-color));
}

.search-meta__results {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

.search-meta__note {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

.library-refine {
  margin-top: 0.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  padding: 0.35rem 0.55rem 0.55rem;
}

.library-refine > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.2rem;
  list-style: none;
  border-radius: 0.55rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.library-refine > summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-color) 75%, #60a5fa);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.library-refine > summary::-webkit-details-marker {
  display: none;
}

.library-refine > summary::after {
  content: "▾";
  margin-left: 0.5rem;
  font-size: 0.82em;
  opacity: 0.82;
}

.library-refine[open] > summary::after {
  content: "▴";
}

.search-meta__tokens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.search-meta__tokens li {
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 18%, var(--surface-border));
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  position: sticky;
  top: calc(env(safe-area-inset-top) + 4.4rem);
  z-index: var(--z-alert);
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 165, 180, 0.16);
  background: color-mix(in srgb, var(--card-bg) 94%, rgba(11, 15, 26, 0.72));
  backdrop-filter: blur(14px);
}

.active-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.active-filters__chips[hidden] {
  display: none;
}

.active-filter-chip {
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 26%, var(--surface-border));
  background: color-mix(in srgb, var(--accent-color) 18%, var(--card-bg));
  color: var(--text-color);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  min-height: 40px;
  min-width: 40px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.active-filter-chip::before {
  content: "×";
  margin-right: 0.45rem;
  opacity: 0.75;
}

.active-filter-chip:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--stims-focus-ring-35);
}

.active-filters[hidden] {
  display: none;
}

.active-filters__status {
  font-size: 0.8rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text-color) 94%, var(--accent-color));
}

.active-filters.is-empty {
  padding: 0.55rem 0.7rem;
}

html.light .active-filters__status {
  color: color-mix(in srgb, var(--text-color) 95%, #0f172a);
}

html.light .library-refine > summary,
html.light .more-filters > summary {
  color: color-mix(in srgb, var(--text-color) 90%, #0f172a);
}

html.light .search-meta__note {
  color: color-mix(in srgb, var(--text-color) 84%, #0f172a);
}

.active-filters.is-empty .active-filters__clear {
  display: inline-flex;
}

.active-filters__clear {
  border: 1px solid rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.16);
  color: var(--text-color);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.active-filters__clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.active-filters__clear:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(244, 63, 94, 0.75);
  background: rgba(244, 63, 94, 0.22);
  box-shadow: var(--shadow-soft);
}

.active-filters__clear:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--stims-focus-ring-35);
}

.search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  background:
    linear-gradient(145deg, rgba(12, 24, 29, 0.96), rgba(19, 29, 35, 0.96)),
    radial-gradient(
      circle at right center,
      rgba(233, 212, 155, 0.08),
      transparent 28%
    );
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 22%, var(--surface-border));
  border-radius: var(--radius-pill);
  padding: 0.62rem 1rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 234, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0.5rem;
  z-index: var(--z-stage-hero);
}

.search-field__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-color);
  font-size: 1rem;
}

.search-field:focus-within {
  border-color: rgba(129, 194, 255, 0.95);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.32),
    0 0 0 3px rgba(96, 165, 250, 0.4);
}

.search-field input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  padding: 0.55rem 0.15rem;
  min-height: 44px;
  touch-action: manipulation;
}

.search-field input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-color);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-clear.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .search-clear:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: var(--shadow-soft);
  }
}

.search-clear:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--stims-focus-ring-35);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-start;
  padding: 0.35rem 0.1rem 0.1rem;
  border-top: 1px solid
    color-mix(in srgb, var(--accent-color) 14%, var(--surface-border));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: relative;
  scroll-padding-inline: 0.25rem;
  overflow-x: auto;
  scrollbar-gutter: stable both-edges;
}

.filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.filter-actions--primary {
  margin-left: auto;
}

.filter-toggle {
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 30%, var(--surface-border));
  background: var(--stims-white-08);
  color: var(--text-color);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  min-width: 44px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .filter-toggle:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: var(--shadow-soft);
  }
}

.filter-toggle:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--stims-focus-ring-35);
}

.filter-chip {
  position: relative;
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 18%, var(--surface-border));
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  color: var(--text-color);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
  min-width: 44px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  touch-action: manipulation;
  white-space: nowrap;
}

.quick-filter-strip {
  display: none;
  gap: 0.5rem;
  margin-top: -0.1rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.filter-chip--quick {
  scroll-snap-align: start;
}

@media (hover: hover) and (pointer: fine) {
  .filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: var(--shadow-soft);
  }
}

.filter-chip.is-active {
  background: color-mix(in srgb, var(--accent-color) 56%, var(--card-bg));
  color: color-mix(in srgb, var(--text-color) 95%, #ffffff);
  border-color: rgba(96, 165, 250, 1);
  font-weight: 700;
  padding-left: 1.45rem;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent-color) 40%, transparent),
    var(--shadow-soft);
}

.filter-chip.is-active::before {
  content: "✓";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--text-color) 82%, var(--accent-color));
}

.filter-chip:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--stims-focus-ring-35);
}

.more-filters {
  margin-top: 0.45rem;
  border-top: 1px solid
    color-mix(in srgb, var(--accent-color) 14%, var(--surface-border));
  padding-top: 0.3rem;
}

.more-filters > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-muted);
  list-style: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.more-filters > summary::-webkit-details-marker {
  display: none;
}

.more-filters > summary::after {
  content: "▾";
  margin-left: 0.45rem;
  font-size: 0.84em;
  opacity: 0.75;
}

.more-filters[open] > summary::after {
  content: "▴";
}

.filter-reset {
  border: 1px solid rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.16);
  color: var(--text-color);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .filter-reset:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 63, 94, 0.75);
    background: rgba(244, 63, 94, 0.22);
    box-shadow: var(--shadow-soft);
  }
}

.filter-reset.is-active {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow-soft);
}

.filter-reset:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--stims-focus-ring-35);
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 18%, var(--surface-border));
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
  color: var(--text-color);
  box-shadow: var(--shadow-soft);
  min-height: 44px;
  margin-left: auto;
}

.sort-control:focus-within {
  border-color: var(--stims-focus-95);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(59, 130, 246, 0.4);
}

.sort-control select {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 700;
  touch-action: manipulation;
  font-size: 1rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
}

.sort-control select:focus-visible {
  outline: 2px solid var(--stims-focus-95);
  outline-offset: 2px;
}

.webtoy-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--section-gap) * 0.62);
  margin: 0 auto;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--surface-strong);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.empty-state__message {
  margin: 0;
  color: var(--text-muted);
}

.empty-state__suggestions {
  width: 100%;
  max-width: 420px;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  padding: 0.35rem 0.55rem 0.6rem;
}

.empty-state__suggestions summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 0.45rem;
}

.empty-state__suggestions summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-color) 75%, #60a5fa);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.empty-state__suggestions summary::-webkit-details-marker {
  display: none;
}

.empty-state__suggestions summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--text-muted);
  transition: transform 180ms ease;
}

.empty-state__suggestions[open] summary::after {
  transform: rotate(180deg);
}

.empty-state__suggestions .webtoy-card-actions {
  margin-top: 0.35rem;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.webtoy-card {
  background:
    var(--surface-highlight), var(--surface-texture), var(--surface-gradient);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft), var(--surface-emboss);
  backdrop-filter: none;
  border: 1px solid var(--surface-border);
  color: inherit;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-decoration: none;
  appearance: none;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  min-height: clamp(188px, 18vw, 224px);
  isolation: isolate;
}

@supports (content-visibility: auto) {
  .webtoy-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 320px;
  }
}

html:not(.light) .webtoy-card {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px var(--stims-white-04),
    var(--shadow-soft),
    var(--surface-emboss);
}

.webtoy-card__link {
  color: inherit;
  text-decoration: none;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  z-index: var(--z-stage-root);
}

.webtoy-card__link:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 12px 30px rgba(0, 0, 0, 0.3);
}

.webtoy-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  position: relative;
  z-index: var(--z-stage-root);
  pointer-events: none;
}

/* Gradient shimmer overlay */
.webtoy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--accent-color) 18%, transparent),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      color-mix(in srgb, var(--accent-magenta) 14%, transparent),
      transparent 60%
    );
  opacity: 0.14;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: var(--z-ambient);
}

.webtoy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--stims-white-05),
    transparent 40%,
    var(--stims-white-02) 70%,
    transparent
  );
  opacity: 0.3;
  pointer-events: none;
  z-index: var(--z-ambient);
}

@media (hover: hover) and (pointer: fine) {
  .webtoy-card:hover {
    background:
      var(--surface-highlight), var(--surface-texture), var(--surface-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    border-color: var(--stims-focus-ring-35);
  }

  .webtoy-card:hover::before {
    opacity: 0.25;
  }
}

.webtoy-card:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 12px 30px rgba(0, 0, 0, 0.3);
}

.webtoy-card:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.3);
}

.webtoy-card h3 {
  font-size: 1.08rem;
  margin: 0.1rem 0 0;
  color: var(--text-color);
}

html.light .top-nav,
html.light section.intro,
html.light .library-search,
html.light .webtoy-card {
  border-color: rgba(43, 56, 77, 0.16);
}

html.light .cta-button.ghost,
html.light .filter-chip,
html.light .sort-control,
html.light .filter-toggle {
  border-color: rgba(43, 56, 77, 0.2);
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
}

html.light .filter-chip {
  color: color-mix(in srgb, var(--text-color) 92%, #0f172a);
}

html.light .filter-chip.is-active {
  background: color-mix(in srgb, var(--accent-color) 38%, #e7eef8);
  border-color: rgba(29, 78, 216, 0.88);
  color: #102544;
  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.32),
    0 6px 16px rgba(15, 23, 42, 0.12);
}

html.light .library {
  border-top-color: rgba(63, 74, 90, 0.2);
}

html.light .filter-chip.is-active::before {
  color: #1d4ed8;
}

html.light .cta-button.primary {
  background: linear-gradient(130deg, #3f6ea8, #315f97);
  border-color: rgba(29, 78, 216, 0.54);
}

.webtoy-card p {
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--text-color) 90%, var(--text-muted));
  line-height: 1.4;
}

.webtoy-card-description {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.webtoy-card-guidance {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent-color) 58%, var(--text-color) 42%);
}

.webtoy-card-match {
  margin-top: -0.05rem;
  margin-bottom: 2px;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--text-color) 84%, var(--text-muted));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.webtoy-card-match strong {
  font-weight: 600;
}

.webtoy-card-match mark {
  background: rgba(99, 102, 241, 0.14);
  color: var(--text-color);
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-pill);
}

.webtoy-card-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.45rem;
  position: relative;
  z-index: var(--z-stage-hero);
}

.webtoy-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-top: 0.15rem;
  position: relative;
  z-index: var(--z-stage-hero);
}

.webtoy-card-signal {
  padding: 0.34rem 0.68rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--surface-border) 78%, transparent);
  background: color-mix(in srgb, var(--accent-color) 10%, transparent);
  color: color-mix(in srgb, var(--text-color) 92%, var(--text-muted));
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.webtoy-card-actions .cta-button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.78rem;
  font-size: 0.79rem;
}

@media (prefers-reduced-motion: reduce) {
  .active-filter-chip,
  .active-filters__clear,
  .filter-chip,
  .filter-toggle,
  .filter-reset,
  .search-clear,
  .webtoy-card {
    transition: none;
  }

  .webtoy-card {
    transform: none;
  }
}

.webtoy-card-signals::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--surface-border) 70%, transparent);
  opacity: 0.7;
}

footer {
  text-align: center;
  margin-top: calc(var(--section-gap) * 0.8);
  padding: 1.25rem;
  border-top: 1px solid var(--surface-border);
}

.footer-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0.1rem 0 0.35rem;
}

.footer-nav span[aria-hidden="true"] {
  opacity: 0.65;
}

.footer-cta-row {
  margin: 0.5rem 0 0;
  justify-content: center;
}

.footer-cta-row .cta-button {
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px var(--stims-white-08);
}

.footer-cta-row .cta-button.ghost {
  background:
    var(--surface-texture), color-mix(in srgb, var(--card-bg) 88%, transparent);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 25%,
    var(--surface-border)
  );
}

.footer-helper {
  margin: 0.25rem 0 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  touch-action: manipulation;
}

.theme-toggle:hover {
  background: var(--hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.theme-toggle:focus-visible {
  outline: var(--tv-focus-outline-width) solid var(--accent-color);
  outline-offset: var(--tv-focus-outline-offset);
  background: var(--hover-bg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-color) 16%, var(--card-bg));
  color: var(--text-color);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.12);
}

.theme-toggle__icon > svg {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-toggle__label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.launch-utility-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.launch-utility-row--compact {
  margin-top: 0;
  margin-bottom: -0.2rem;
}

.launch-utility-row__button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .content {
    --content-padding: clamp(1.25rem, 2.5vw, 2.4rem);
  }

  .hero-grid {
    align-items: start;
  }
}

@media (max-width: 900px) {
  :root {
    --radius-lg: 18px;
    --radius-md: 12px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .nav-section {
    flex: 1 1 240px;
  }

  .hero-cta-row {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-utility-row,
  .experience-shortcuts {
    width: 100%;
  }

  .hero-utility-row .cta-button,
  .experience-shortcuts .cta-button {
    flex: 1 1 100%;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 0.97rem;
  }

  section.intro {
    padding: 1.4rem 1.2rem;
    border-radius: 18px;
  }

  .hero-copy {
    gap: 0.5rem;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .library-search {
    position: static;
  }

  .quick-filter-strip {
    display: flex;
  }

  .search-row > * {
    min-width: 0;
  }

  .search-field {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.5rem 0.75rem;
  }

  .search-clear {
    grid-column: 1 / -1;
    justify-self: flex-end;
  }

  .search-field__hint {
    width: 100%;
    white-space: normal;
  }

  .search-meta {
    width: 100%;
  }

  .library-refine {
    margin-top: 0.5rem;
  }

  .active-filters {
    align-items: flex-start;
    top: calc(env(safe-area-inset-top) + 3.8rem);
  }

  .active-filters__status {
    width: 100%;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .chip-row,
  .filter-actions {
    width: 100%;
  }

  .filter-actions {
    justify-content: space-between;
  }

  .sort-control {
    width: 100%;
    justify-content: space-between;
  }

  .chip-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 1rem,
      #000 calc(100% - 1rem),
      transparent
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 1rem,
      #000 calc(100% - 1rem),
      transparent
    );
  }

  .chip-row > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .webtoy-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .webtoy-card-actions .cta-button {
    width: 100%;
    justify-content: center;
  }

  .cta-helper {
    margin: 0 0 1rem;
  }

  .section-helper[data-hero-flow-note] {
    display: none;
  }

  header.hero {
    min-height: auto;
  }
}

@media (min-width: 681px) {
  .library-refine {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
  }
}

@media (max-width: 920px) and (max-height: 520px) and (orientation: landscape) {
  .content {
    gap: 1rem;
  }

  .top-nav {
    padding: 0.4rem 0.55rem;
  }

  .library-search {
    top: calc(env(safe-area-inset-top) + 3.8rem);
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .search-meta {
    min-width: 0;
    position: relative;
    top: 0;
  }

  .filter-row {
    gap: 0.55rem;
  }

  .chip-row {
    gap: 0.5rem;
  }

  .filter-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .hero {
    padding-block: 0.8rem 0.6rem;
  }

  .hero-grid {
    gap: 0.75rem;
  }

  .hero-copy {
    gap: 0.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
  }

  .tagline,
  .cta-helper {
    margin-bottom: 0;
  }

  .hero-cta-row {
    gap: 0.5rem;
  }

  .active-filters {
    top: calc(env(safe-area-inset-top) + 3.2rem);
  }

  header.hero {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }

  h1 {
    font-size: 1.9rem;
  }

  .content {
    gap: 1.5rem;
  }

  .webtoy-container {
    grid-template-columns: 1fr;
  }

  .top-nav {
    position: sticky;
    top: calc(env(safe-area-inset-top) + 0.4rem);
    border-radius: 12px;
  }

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

  .hero-cta-row .cta-button.primary {
    letter-spacing: 0.04em;
  }
}

@media (max-width: 520px) {
  .skip-link:focus-visible {
    top: max(3.6rem, calc(env(safe-area-inset-top) + 3rem));
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 1.8rem);
  }

  .content {
    --content-padding: clamp(1rem, 4vw, 1.4rem);
    gap: 1rem;
  }

  .library {
    margin-top: 1.35rem;
    padding-top: 0.8rem;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: flex;
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .nav-actions[popover] {
    inset: auto;
    position: fixed;
    top: calc(env(safe-area-inset-top) + 5rem);
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid
      color-mix(in srgb, var(--accent-color) 20%, var(--surface-border));
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--panel-highlight) 82%, transparent),
        transparent 58%
      ),
      var(--panel-glass);
    box-shadow: var(--shadow-surface);
    backdrop-filter: blur(16px) saturate(130%);
  }

  .nav-actions[popover]:popover-open {
    display: flex;
  }

  .top-nav[data-nav-expanded="false"] .nav-actions:not([popover]) {
    display: none;
  }

  .nav-section {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-section--jump,
  .nav-section--utilities {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0;
    border: 0;
  }

  .top-nav {
    padding: 0.7rem;
    border-radius: 12px;
    gap: 0.5rem;
  }

  .shell-header {
    margin-inline: -0.2rem;
    padding-inline: 0.2rem;
    margin-bottom: 0.4rem;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
  }

  .nav-link--section {
    justify-content: flex-start;
  }

  .nav-link {
    width: 100%;
  }

  .nav-link--launch {
    justify-content: flex-start;
  }

  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  #site-footer {
    padding-inline: 0.95rem;
  }

  .footer-actions {
    justify-items: stretch;
    text-align: left;
    gap: 0.75rem;
  }

  .footer-nav {
    row-gap: 0.3rem;
    column-gap: 0.5rem;
    justify-content: flex-start;
  }

  .footer-nav span[aria-hidden="true"] {
    display: none;
  }

  .footer-cta-row {
    width: 100%;
    align-items: stretch;
  }

  .footer-cta-row .cta-button {
    width: 100%;
  }

  .theme-toggle__label {
    flex: 1;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hero-cta-row .cta-button {
    min-height: 50px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 0.92rem;
  }

  .search-field {
    padding: 0.4rem 0.6rem;
    gap: 0.4rem;
  }

  .search-field__icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.85rem;
  }

  .search-field input {
    font-size: 0.9rem;
    padding-right: 2.8rem;
    min-width: 0;
  }

  .search-clear {
    right: 0.35rem;
  }
  .hero-cta-row .cta-button.cta-button--muted,
  .hero-cta-row .cta-button.cta-button--accent {
    display: none;
  }

  .hero-cta-row .cta-button.primary,
  .hero-cta-row .cta-button.ghost {
    min-height: 52px;
  }

  .search-meta__tokens {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .library-search {
    transition: none;
  }

  section.intro::before,
  .intro-actions .cta-button.primary,
  .webtoy-card,
  .section-heading::after {
    animation: none;
  }

  .library-search:focus-within {
    transform: none;
  }

  .webtoy-card:hover {
    transform: none;
  }
}

/* Minimal home refresh */
.home-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

section.intro,
.library-search,
.github {
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-border) 72%, transparent);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px) saturate(110%);
}

.hero::before,
.hero::after {
  display: none;
}

section.intro::before {
  display: block;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-border) 30%, transparent),
    transparent 58%
  );
  opacity: 0.36;
}

section.intro::after {
  display: block;
  background: linear-gradient(
    115deg,
    transparent 0%,
    var(--stims-white-05) 44%,
    transparent 100%
  );
  opacity: 0.2;
}

section.intro {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding-block: clamp(0.7rem, 1vw + 0.4rem, 1rem);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.intro-actions .cta-button {
  min-width: 8.75rem;
  border-radius: 10px;
  border-color: color-mix(
    in srgb,
    var(--accent-color) 30%,
    var(--surface-border)
  );
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
}

.intro-actions .cta-button.primary {
  background-size: auto;
  animation: homeHeroButtonPulse 5.4s ease-in-out infinite;
}

.intro-secondary-links {
  justify-content: center;
  gap: 0.8rem;
}

.section-heading,
.hero-copy,
.search-row {
  gap: 0.75rem;
}

.webtoy-card {
  border-color: color-mix(
    in srgb,
    var(--accent-color) 18%,
    var(--surface-border)
  );
  animation-duration: 620ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
  animation-delay: var(--card-enter-delay, 0ms);
}

.card-motion--rise {
  animation-name: cardRiseIn;
}

.card-motion--tilt {
  animation-name: cardTiltIn;
}

.card-motion--glide {
  animation-name: cardGlideIn;
}

.card-motion--bloom {
  animation-name: cardBloomIn;
}

.webtoy-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1100px) {
  .home-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .intro-actions {
    width: 100%;
    flex-direction: column;
  }

  .intro-actions .cta-button {
    width: 100%;
  }
}

body.tv-mode .top-nav {
  top: max(1.2rem, env(safe-area-inset-top));
  padding: 1rem 1.25rem;
}

body.tv-mode .nav-link,
body.tv-mode .cta-button,
body.tv-mode .filter-chip,
body.tv-mode .webtoy-card__link,
body.tv-mode .theme-toggle {
  min-height: 56px;
  padding-block: 0.8rem;
  padding-inline: 1rem;
  font-size: 1.02rem;
}

body.tv-mode .webtoy-card {
  width: clamp(300px, 34cqi, 420px);
}

body.tv-mode .content {
  max-width: min(1380px, calc(100vw - 2 * var(--tv-safe-padding, 0px)));
}

.stim-builder {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: calc(var(--radius-lg) + 6px);
}

.builder-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.builder-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.builder-form select {
  border-radius: 10px;
  border: 1px solid var(--interactive-border);
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
  color: var(--text-primary);
  min-height: 44px;
  padding: 0.5rem 0.65rem;
}

.builder-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.builder-chip {
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.62rem;
  font-size: 0.8rem;
  background: color-mix(in srgb, var(--accent-color) 18%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 36%, var(--surface-border));
}

.builder-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.builder-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--surface-border) 75%, transparent);
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  padding: 0.75rem 0.8rem;
}

.builder-result__title {
  margin: 0;
  font-weight: 700;
}

.builder-result__description,
.builder-result__reason {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.builder-result__link {
  align-self: start;
  border-radius: var(--radius-pill);
  border: 1px solid var(--interactive-border);
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.library-three-ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-ambient);
  opacity: 0.5;
}

.library {
  position: relative;
  z-index: var(--z-stage-root);
}

.webtoy-card-preview {
  width: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 0.8rem;
  background: rgba(4, 6, 16, 0.82);
}

.webtoy-card-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* UI polish v2: stronger hierarchy, better readability, and less cramped cards */
.shell-header {
  margin-bottom: clamp(1rem, 2.2vw, 1.7rem);
}

section.intro {
  padding: clamp(1.05rem, 1.2vw + 0.8rem, 1.55rem) clamp(1.05rem, 1.5vw, 1.6rem);
  border-radius: calc(var(--radius-lg) + 6px);
}

.intro h1 {
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.intro .cta-helper {
  max-width: 70ch;
  line-height: 1.68;
}

.library {
  margin-top: clamp(2.1rem, 4vw, 3.2rem);
  padding-top: clamp(1.2rem, 2.1vw, 1.8rem);
}

.section-heading {
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.section-description {
  max-width: 72ch;
}

.library-search {
  border-radius: calc(var(--radius-lg) + 12px);
  padding: clamp(1.35rem, 1.9vw, 1.9rem);
}

.search-field {
  min-height: 52px;
  border-radius: calc(var(--radius-pill) + 6px);
}

.webtoy-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 1.4vw, 1.3rem);
}

.webtoy-card {
  padding: 1.05rem;
  border-radius: var(--radius-lg);
  gap: 0.75rem;
}

.webtoy-card h3 {
  margin-top: 0.1rem;
  font-size: 1.02rem;
  line-height: 1.4;
}

.webtoy-card p {
  font-size: 0.9rem;
  line-height: 1.56;
}

.webtoy-card-description {
  -webkit-line-clamp: 3;
}

.webtoy-card-signals {
  gap: 0.45rem;
  padding-top: 0.7rem;
}

.webtoy-card-preview {
  aspect-ratio: 16 / 10;
  margin-bottom: 0.65rem;
}

.webtoy-card-preview canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 1280px) {
  .webtoy-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 760px) {
  section.intro {
    border-radius: calc(var(--radius-lg) + 2px);
  }

  .library-search {
    padding: 1rem;
  }

  .webtoy-container {
    grid-template-columns: 1fr;
  }
}

@keyframes homeHeroButtonPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px
      color-mix(in srgb, var(--accent-color) 28%, transparent);
  }
}

@keyframes headingBeam {
  0%,
  100% {
    transform: scaleX(0.9);
    filter: saturate(0.95);
  }
  50% {
    transform: scaleX(1.08);
    filter: saturate(1.2);
  }
}

@keyframes milkdropPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.66;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes milkdropMesh {
  0%,
  100% {
    transform: perspective(720px) rotateX(66deg) rotateZ(-6deg) scale(0.98);
  }

  50% {
    transform: perspective(720px) rotateX(66deg) rotateZ(4deg) scale(1.02);
  }
}

@keyframes milkdropWave {
  0%,
  100% {
    clip-path: polygon(
      0% 55%,
      10% 46%,
      22% 62%,
      35% 44%,
      50% 58%,
      64% 42%,
      78% 60%,
      90% 45%,
      100% 54%,
      100% 70%,
      0% 70%
    );
  }

  50% {
    clip-path: polygon(
      0% 48%,
      12% 61%,
      24% 43%,
      36% 58%,
      50% 40%,
      65% 63%,
      78% 46%,
      90% 57%,
      100% 46%,
      100% 70%,
      0% 70%
    );
  }
}

@keyframes milkdropCore {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.94);
    border-radius: 24px;
  }

  50% {
    transform: translate(-50%, -50%) rotate(14deg) scale(1.08);
    border-radius: 18px;
  }
}

@keyframes streakScan {
  0%,
  100% {
    transform: scaleX(0.35);
    transform-origin: left center;
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 1;
  }
}

@keyframes cardRiseIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardTiltIn {
  0% {
    opacity: 0;
    transform: translate3d(-14px, 18px, 0) rotate(-1.4deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes cardGlideIn {
  0% {
    opacity: 0;
    transform: translate3d(16px, 10px, 0) scale(0.97);
    filter: saturate(0.85);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
}

@keyframes cardBloomIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes quickCardBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes quickCardSway {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  35% {
    transform: translateX(2px) rotate(0.35deg);
  }
  70% {
    transform: translateX(-2px) rotate(-0.35deg);
  }
}

@keyframes quickCardLift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.01);
  }
}

@keyframes repoMetricPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }
  50% {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  }
}

@keyframes repoMetricFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes repoMetricTilt {
  0%,
  100% {
    transform: perspective(400px) rotateX(0deg);
  }
  50% {
    transform: perspective(400px) rotateX(4deg) translateY(-2px);
  }
}

/* Page-level panel tokens now in tokens.css */

.content {
  gap: clamp(2.1rem, 3.6vw, 3.5rem);
}

.content::before {
  background-size: 72px 72px;
  opacity: 0.4;
}

.shell-header {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.top-nav {
  padding: 0.85rem 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 78%, transparent),
      transparent 60%
    ),
    color-mix(in srgb, var(--panel-solid) 90%, transparent);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-panel);
}

.nav-link {
  padding-inline: 0.8rem;
  font-size: 0.94rem;
}

section.intro,
.library-search,
.github {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 82%, transparent),
      transparent 62%
    ),
    var(--panel-subtle);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(10px) saturate(112%);
}

section.intro {
  padding: clamp(1.15rem, 1.5vw + 0.8rem, 1.85rem);
}

.hero-grid {
  gap: clamp(1.35rem, 2.5vw, 2rem);
  align-items: start;
}

.hero-copy {
  gap: 0.95rem;
  max-width: 44rem;
}

.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--text-muted) 86%, var(--accent-color));
  margin-bottom: 0.35rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 1.6rem + 2.3vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.tagline,
.cta-helper,
.section-description,
.webtoy-card p {
  color: color-mix(in srgb, var(--text-color) 74%, var(--text-muted));
}

.tagline {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-cta-row {
  gap: 0.7rem;
}

.cta-button {
  border-radius: 14px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 var(--stims-white-04) inset;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cta-button.primary {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-color) 78%, #4f86d9),
    color-mix(in srgb, var(--accent-magenta) 42%, #315f97)
  );
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 var(--stims-white-05) inset,
    0 14px 24px rgba(0, 0, 0, 0.18);
}

.cta-button.primary:hover {
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.26);
}

.section-heading {
  gap: 0.5rem;
  padding-bottom: 0.9rem;
}

.section-heading::after {
  width: 72px;
  height: 3px;
  opacity: 0.9;
  animation: none;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-color) 24%, transparent);
}

.section-heading h2 {
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.library {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: clamp(1.3rem, 2vw, 1.9rem);
}

.library-search {
  gap: 1rem;
  padding: clamp(1.15rem, 1.5vw + 0.8rem, 1.65rem);
  border-radius: 24px;
  top: clamp(4.8rem, 10vh, 6.2rem);
}

.search-row {
  gap: 0.75rem;
}

.search-field,
.search-meta,
.library-refine {
  background: color-mix(in srgb, var(--panel-solid) 90%, transparent);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 22%,
    var(--surface-border)
  );
  box-shadow: none;
}

.search-field {
  padding-inline: 0.85rem;
}

.search-field__icon {
  width: 2rem;
  height: 2rem;
  background: color-mix(in srgb, var(--accent-color) 12%, var(--panel-solid));
}

.search-meta {
  min-width: 200px;
  padding: 0.8rem 0.95rem;
}

.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset {
  box-shadow: none;
}

.filter-chip,
.sort-control,
.active-filter-chip {
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
}

.webtoy-container {
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: clamp(1rem, 1.6vw, 1.35rem);
}

.webtoy-card {
  min-height: clamp(238px, 20vw, 282px);
  padding: 1.05rem;
  gap: 0.7rem;
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 78%, transparent),
      transparent 52%
    ),
    color-mix(in srgb, var(--panel-subtle) 96%, transparent);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 20%,
    var(--surface-border)
  );
  box-shadow: var(--shadow-panel);
}

.webtoy-card::before {
  opacity: 0.1;
}

.webtoy-card::after {
  opacity: 0.12;
}

.webtoy-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 34%,
    var(--surface-border)
  );
  box-shadow: var(--shadow-panel-hover);
}

.webtoy-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.webtoy-card-description {
  -webkit-line-clamp: 3;
}

.webtoy-card-guidance {
  font-size: 0.8rem;
}

.webtoy-card-signals {
  gap: 0.45rem;
  padding-top: 0.35rem;
}

.webtoy-card-signal {
  padding: 0.32rem 0.62rem;
  background: color-mix(in srgb, var(--accent-color) 8%, var(--panel-solid));
}

.webtoy-card-preview {
  margin-bottom: 0.05rem;
  border-radius: 16px;
  border-color: color-mix(
    in srgb,
    var(--accent-color) 18%,
    var(--surface-border)
  );
  box-shadow: inset 0 0 0 1px var(--stims-white-04);
}

.footer-cta-row {
  gap: 0.6rem;
}

footer {
  margin-top: calc(var(--section-gap) * 1.05);
  padding: 1.4rem 1.2rem 1.8rem;
}

@media (max-width: 900px) {
  .hero-copy h1 {
    max-width: none;
  }

  .library-search {
    position: static;
  }
}

@media (max-width: 760px) {
  .content {
    gap: 2rem;
  }

  .top-nav {
    border-radius: 18px;
  }

  section.intro,
  .library-search,
  .webtoy-card {
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 1.4rem + 4.5vw, 2.7rem);
  }

  .webtoy-container {
    grid-template-columns: 1fr;
  }

  .webtoy-card {
    min-height: 0;
  }
}

body[data-page="home"] .content {
  gap: clamp(1.75rem, 3vw, 2.8rem);
}

@supports (content-visibility: auto) {
  .home-shell > section:not(.home-hero),
  .launch-shell > section:not(.launch-intro):not(.shell-header--launch),
  .home-footer {
    content-visibility: auto;
  }

  .home-shell > section:not(.home-hero),
  .launch-shell > section:not(.launch-intro):not(.shell-header--launch),
  .home-footer {
    contain-intrinsic-size: 1px 720px;
  }
}

@supports (container-type: inline-size) {
  .home-shell {
    container-type: inline-size;
    container-name: home-shell;
  }

  .launch-shell {
    container-type: inline-size;
    container-name: launch-shell;
  }

  .home-hero__grid {
    container-type: inline-size;
    container-name: home-hero;
  }

  .home-showcase__frame {
    container-type: inline-size;
    container-name: showcase-frame;
  }
}

.home-shell {
  display: grid;
  gap: clamp(1.6rem, 2.8vw, 2.6rem);
}

.home-hero {
  min-height: auto;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

.home-hero__copy {
  display: grid;
  gap: 1rem;
}

.home-hero__copy h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.home-hero__aside h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.home-hero__support {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.home-hero__support code,
.home-hero__aside-label code {
  font-family: inherit;
}

.home-hero__visual {
  display: grid;
  gap: 1rem;
  align-self: stretch;
  align-content: start;
}

.home-lineage__grid,
.home-source__grid {
  display: grid;
  gap: 1rem;
}

.home-hero__focus,
.home-lineage__card,
.home-source__card,
.home-showcase__frame,
.home-footer,
.home-hero__aside {
  padding: 1.15rem 1.2rem;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 70%, transparent),
      transparent
    ),
    var(--panel-gradient);
  box-shadow: var(--shadow-soft);
}

.home-hero__focus,
.home-hero__aside {
  display: grid;
  gap: 0.75rem;
}

.home-hero__focus,
.home-lineage__card,
.home-source__card,
.home-showcase__frame,
.home-footer,
.home-hero__aside,
.launch-check {
  contain: layout style;
}

.home-hero__aside h2,
.home-lineage__card h3,
.home-source__card h3 {
  margin: 0;
}

.home-hero__focus p,
.home-hero__aside p,
.home-lineage__card p,
.home-source__card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-hero__checklist {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
}

.home-hero__checklist li {
  line-height: 1.55;
}

.home-hero__aside {
  align-content: start;
}

.home-hero__aside-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.home-showcase__frame {
  display: grid;
  gap: 0.85rem;
}

.home-lineage__grid,
.home-source__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
}

.home-list li {
  line-height: 1.55;
}

.home-source__card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.launch-intro {
  margin-bottom: 0;
}

.launch-shell {
  display: grid;
  gap: clamp(1.4rem, 2.4vw, 2.2rem);
}

.launch-shell--compact {
  gap: 1rem;
}

.launch-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.9fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: start;
}

.launch-intro__copy {
  display: grid;
  gap: 1rem;
}

.launch-intro__actions {
  margin: 0;
}

.launch-checklist {
  display: grid;
  gap: 0.85rem;
}

.launch-check {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 70%, transparent),
      transparent
    ),
    var(--panel-gradient);
  box-shadow: var(--shadow-soft);
}

.launch-check__step {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.launch-check h2,
.launch-check p {
  margin: 0;
}

.launch-check p:last-child {
  color: var(--text-muted);
  line-height: 1.55;
}

@supports (content-visibility: auto) {
  .home-lineage__card,
  .home-source__card,
  .home-showcase__frame,
  .launch-check {
    content-visibility: auto;
  }

  .home-lineage__card,
  .home-source__card {
    contain-intrinsic-size: 1px 220px;
  }

  .home-showcase__frame {
    contain-intrinsic-size: 1px 680px;
  }

  .launch-check {
    contain-intrinsic-size: 1px 180px;
  }
}

.launch-workspace__header {
  max-width: 52rem;
}

.shell-header--launch {
  position: static;
  padding-top: 0;
  margin-bottom: 0;
  backdrop-filter: none;
}

.shell-header--launch .shell-panels {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: 0;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.92fr);
  align-items: start;
  gap: 1rem;
  pointer-events: auto;
}

.shell-header--launch .shell-panel {
  min-width: 0;
}

.shell-header--launch .shell-panel--tune {
  position: sticky;
  top: clamp(1rem, 2vw, 1.4rem);
}

.shell-header--launch .shell-panel[data-audio-controls] > .control-panel,
.shell-header--launch .shell-panel[data-settings-panel] > .control-panel,
.shell-header--launch .shell-panel > [data-audio-controls] > .control-panel,
.shell-header--launch .shell-panel > [data-settings-panel] > .control-panel {
  max-height: none;
  overflow: visible;
}

.shell-header--launch .shell-panel[data-settings-panel] > .control-panel,
.shell-header--launch .shell-panel > [data-settings-panel] > .control-panel {
  min-height: 100%;
}

.home-footer {
  display: grid;
  gap: 0.45rem;
}

.home-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .home-hero__grid,
  .launch-intro__grid,
  .shell-header--launch .shell-panels,
  .home-lineage__grid,
  .home-source__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__copy h1 {
    max-width: 11ch;
  }
}

@media (max-width: 760px) {
  .launch-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .launch-workspace {
    order: 1;
  }

  .shell-header--launch {
    order: 2;
  }

  .launch-intro {
    order: 3;
  }

  .launch-intro__copy {
    gap: 0.8rem;
  }

  .launch-checklist {
    gap: 0.7rem;
  }

  .home-hero__copy h1 {
    max-width: none;
    font-size: clamp(2.5rem, 1.5rem + 6vw, 3.6rem);
  }

  .hero-cta-row.launch-intro__actions {
    grid-template-columns: 1fr;
  }

  .launch-utility-row {
    gap: 0.65rem;
  }

  .shell-header--launch .shell-panel--tune {
    position: static;
  }

  .home-hero__focus,
  .home-lineage__card,
  .home-source__card,
  .home-showcase__frame,
  .launch-check,
  .home-footer,
  .home-hero__aside {
    padding: 1rem;
  }
}

body,
html {
  font-family: var(--display-font);
  background:
    radial-gradient(
      circle at 12% 0%,
      color-mix(in srgb, var(--accent-purple) 20%, transparent),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 14%,
      color-mix(in srgb, var(--accent-magenta) 18%, transparent),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      var(--bg-color) 0%,
      color-mix(in srgb, var(--bg-color-secondary) 88%, #071112) 54%,
      #050a0b 100%
    );
}

.content::before {
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 248, 234, 0.07) calc(100% - 1px)
    ),
    linear-gradient(
      0deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 248, 234, 0.05) calc(100% - 1px)
    );
  background-size: 88px 88px;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 78%);
}

.top-nav,
header.hero,
section.intro,
.library-search,
.github,
.webtoy-card,
.home-stat,
.home-route-card,
.home-lineage__card,
.home-source__card,
.home-showcase__frame,
.home-footer,
.launch-check,
.control-panel,
.active-toy-nav,
.active-toy-status__content,
.toy-shell-escape__link {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 88%, transparent),
      transparent 58%
    ),
    var(--surface-texture), var(--panel-gradient);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-panel);
  backdrop-filter: none;
}

.top-nav {
  padding: 0.95rem 1rem 0.85rem;
  border-radius: 16px;
}

.top-nav::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--accent-magenta) 52%,
    var(--accent-purple)
  );
  opacity: 0.92;
}

.brand-title,
.nav-link,
.theme-toggle,
.cta-button,
.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset,
.control-panel__eyebrow,
.control-panel__stage-label,
.control-panel__label,
.eyebrow,
.home-stat__label,
.home-route-card__label,
.launch-check__step {
  font-family: var(--label-font);
}

.brand-title,
.nav-link,
.theme-toggle__label,
.cta-button,
.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 0.92rem;
}

.eyebrow,
.home-stat__label,
.home-route-card__label,
.launch-check__step,
.control-panel__eyebrow,
.control-panel__stage-label {
  letter-spacing: 0.15em;
  font-size: 0.72rem;
}

.section-heading::after {
  width: 92px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--accent-color) 0 28%,
    transparent 28% 34%,
    var(--accent-magenta) 34% 64%,
    transparent 64% 70%,
    var(--accent-purple) 70% 100%
  );
  box-shadow: none;
}

header.hero::before,
section.intro::before {
  background:
    radial-gradient(
      circle at 16% 18%,
      color-mix(in srgb, var(--accent-purple) 24%, transparent),
      transparent 32%
    ),
    radial-gradient(
      circle at 82% 0%,
      color-mix(in srgb, var(--accent-magenta) 24%, transparent),
      transparent 32%
    ),
    linear-gradient(135deg, var(--stims-white-04), transparent 42%);
  opacity: 0.5;
}

header.hero::after,
section.intro::after {
  background: linear-gradient(
    120deg,
    transparent 0%,
    var(--stims-white-06) 48%,
    transparent 100%
  );
  opacity: 0.12;
}

.cta-button {
  min-height: 46px;
  border-radius: 10px;
  padding: 0.82rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 26%,
    var(--surface-border)
  );
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 var(--stims-white-05);
}

.cta-button.primary {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-color) 92%, #d6fbe8),
    color-mix(in srgb, var(--accent-magenta) 74%, #ffd19f)
  );
  border-color: color-mix(in srgb, var(--accent-magenta) 42%, #ffffff);
  color: #071315;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px var(--stims-white-12) inset;
}

.cta-button.ghost {
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 var(--stims-white-06);
}

.cta-button.primary:hover {
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset {
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 20%,
    var(--surface-border)
  );
  box-shadow: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-purple) 68%, var(--accent-color))
  );
}

.brand-mark::before,
.brand-mark::after {
  border-radius: 2px;
}

.webtoy-card-preview,
.search-field,
.search-meta,
.library-refine {
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--panel-highlight) 72%, transparent),
      transparent 62%
    ),
    var(--surface-texture),
    color-mix(in srgb, var(--panel-solid) 96%, transparent);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 24%,
    var(--surface-border)
  );
  box-shadow: none;
}

.control-panel,
.active-toy-nav,
.active-toy-status__content {
  border-radius: 18px;
}

.active-toy-status__glow {
  opacity: 0.42;
  filter: blur(28px);
}

@supports selector(:has(*)) {
  .shell-header--launch .shell-panels:has(.shell-panel--tune > :not(:empty)) {
    align-items: stretch;
  }
}

@supports (container-type: inline-size) {
  @container home-hero (max-width: 900px) {
    .home-hero__copy h1 {
      max-width: none;
    }

    .hero-cta-row {
      grid-template-columns: 1fr;
    }

    .hero-cta-row .cta-button.primary {
      grid-column: auto;
    }
  }

  @container launch-shell (max-width: 920px) {
    .shell-header--launch .shell-panels {
      grid-template-columns: 1fr;
    }

    .shell-header--launch .shell-panel--tune {
      position: static;
    }
  }
}

@media (hover: none), (pointer: coarse) {
  .text-link:hover {
    color: var(--link-color);
  }

  .cta-button:hover {
    transform: none;
  }

  .cta-button:hover {
    color: inherit;
    box-shadow: 0 1px 0 var(--stims-white-04) inset;
  }

  .cta-button.primary:hover {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.24),
      0 0 0 1px var(--stims-white-12) inset;
  }
}

@media (max-width: 760px) {
  .top-nav::after {
    left: 0.8rem;
    right: 0.8rem;
  }

  .cta-button,
  .nav-link,
  .theme-toggle__label,
  .filter-chip,
  .sort-control,
  .active-filter-chip,
  .active-filters__clear,
  .search-clear,
  .filter-toggle,
  .filter-reset {
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .webtoy-card,
  .cta-button {
    animation: none;
    transition: none;
  }
}

.content::before {
  background:
    linear-gradient(90deg, var(--stims-white-06) 0 1px, transparent 1px 96px),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 96px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 32%);
  background-size:
    96px 96px,
    96px 96px,
    100% 100%;
  opacity: 0.38;
}

.top-nav,
header.hero,
section.intro,
.library-search,
.github,
.webtoy-card,
.home-stat,
.home-route-card,
.home-lineage__card,
.home-source__card,
.home-showcase__frame,
.home-footer,
.launch-check,
.control-panel,
.active-toy-nav,
.active-toy-status__content,
.toy-shell-escape__link,
.home-hero__focus,
.home-hero__aside {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16),
      var(--stims-white-02) 18%
    ),
    var(--surface-texture), var(--panel-gradient);
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--shadow-panel);
}

.top-nav,
.home-lineage__card,
.home-showcase__frame,
.home-footer,
.home-hero__focus,
.home-hero__aside,
.control-panel {
  position: relative;
}

.top-nav::before,
.home-lineage__card::before,
.home-showcase__frame::before,
.home-footer::before,
.home-hero__focus::before,
.home-hero__aside::before,
.control-panel::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #80d84f, #ffb347 50%, #6f7dff);
  opacity: 0.82;
  pointer-events: none;
}

.top-nav {
  padding-top: 1.1rem;
  border-radius: 10px;
}

.top-nav::after {
  left: 0.95rem;
  right: 0.95rem;
  top: 0.45rem;
  height: 3px;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.cta-button,
.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset,
.search-field,
.search-meta,
.library-refine {
  border-radius: 6px;
}

.cta-button {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.24),
      var(--stims-white-03) 28%
    ),
    linear-gradient(180deg, #47577a, #273654 52%, #1a2742);
  border-color: rgba(208, 220, 255, 0.34);
  color: var(--text-color);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(2, 5, 12, 0.45) inset,
    0 12px 24px rgba(4, 9, 18, 0.22);
}

.cta-button.primary {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.34),
      var(--stims-white-05) 26%
    ),
    linear-gradient(180deg, #b7ff7b, #7dd83f 54%, #4aa520);
  border-color: rgba(228, 255, 208, 0.62);
  color: #081108;
  text-shadow: none;
}

.cta-button.ghost {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      var(--stims-white-03) 30%
    ),
    linear-gradient(180deg, #4c5d80, #2e3a5d 58%, #1a2540);
}

.cta-button:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(2, 5, 12, 0.45) inset,
    0 16px 28px rgba(4, 9, 18, 0.26);
}

.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      var(--stims-white-02) 30%
    ),
    linear-gradient(180deg, #394766, #22304e 60%, #18233b);
  border-color: rgba(206, 220, 255, 0.28);
}

.home-shell {
  gap: clamp(1.8rem, 3vw, 2.9rem);
}

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.95fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: stretch;
}

.home-hero__copy {
  gap: 1.15rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: 10px;
  background:
    linear-gradient(180deg, var(--stims-white-08), transparent 28%),
    linear-gradient(180deg, rgba(18, 27, 48, 0.82), rgba(9, 15, 28, 0.52));
  border: 1px solid rgba(165, 181, 220, 0.18);
}

.home-hero__copy h1 {
  max-width: 12ch;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 18px rgba(8, 11, 23, 0.35);
}

.tagline {
  margin: 0;
  max-width: 55ch;
  color: var(--text-muted);
}

.home-hero__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-hero__visual {
  grid-template-rows: auto minmax(320px, 1fr) auto;
}

.home-lineage__grid {
  gap: 1.15rem;
}

.home-lineage__card,
.home-hero__focus,
.home-hero__aside,
.home-showcase__frame,
.home-footer {
  padding-top: 1.55rem;
}

.home-lineage__card h3,
.home-hero__aside h2 {
  color: #f5f8ff;
}

.home-hero__aside-label {
  color: rgba(222, 233, 255, 0.72);
}

.text-link {
  text-decoration-color: rgba(165, 213, 255, 0.38);
}

.home-footer {
  padding-bottom: 1.2rem;
}

.active-toy-container {
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(111, 125, 255, 0.16),
      transparent 24%
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(255, 179, 71, 0.13),
      transparent 22%
    ),
    linear-gradient(180deg, #09111f, #0b1322 54%, #070c16 100%);
}

@media (max-width: 1080px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__copy h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .home-hero__copy {
    padding: 1rem;
  }
}

.top-nav,
.home-lineage__card,
.home-showcase__frame,
.home-footer,
.home-hero__focus,
.home-hero__aside,
.control-panel,
.active-toy-status__content,
.active-toy-nav,
.toy-shell-escape__link {
  border-radius: 6px;
  box-shadow:
    0 16px 30px rgba(2, 4, 10, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(14, 19, 33, 0.7) inset,
    1px 0 0 var(--stims-white-08) inset,
    -1px 0 0 rgba(14, 19, 33, 0.4) inset;
}

.top-nav::before,
.home-lineage__card::before,
.home-showcase__frame::before,
.home-footer::before,
.home-hero__focus::before,
.home-hero__aside::before,
.control-panel::before {
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
}

.nav-link,
.theme-toggle__label,
.cta-button,
.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset {
  font-size: 0.72rem;
}

.cta-button,
.filter-chip,
.sort-control,
.active-filter-chip,
.active-filters__clear,
.search-clear,
.filter-toggle,
.filter-reset,
.search-field,
.search-meta,
.library-refine {
  border-radius: 4px;
}

.cta-button {
  padding: 0.72rem 0.95rem;
  letter-spacing: 0.11em;
}

.home-hero__copy {
  border-radius: 6px;
  background:
    linear-gradient(180deg, var(--stims-white-12), transparent 22%),
    linear-gradient(180deg, rgba(39, 50, 78, 0.92), rgba(17, 23, 40, 0.84));
  box-shadow:
    0 18px 34px rgba(2, 4, 10, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(14, 19, 33, 0.52) inset;
}

.home-lineage__card,
.home-hero__focus,
.home-hero__aside,
.home-showcase__frame,
.home-footer {
  padding-top: 1.35rem;
}

.home-route-grid,
.home-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-route-card,
.home-stat {
  position: relative;
  padding: 1.35rem 1.2rem 1.15rem;
  border: 1px solid var(--surface-border-strong);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      var(--stims-white-02) 18%
    ),
    var(--surface-texture), var(--panel-gradient);
  box-shadow: var(--shadow-panel);
}

.home-route-card::before,
.home-stat::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #80d84f, #ffb347 50%, #6f7dff);
  opacity: 0.82;
  pointer-events: none;
}

.home-route-card h3,
.home-stat h3 {
  margin: 0 0 0.5rem;
  color: #f5f8ff;
  font-size: 1.1rem;
}

.home-route-card p,
.home-stat p {
  margin: 0;
  color: var(--text-muted);
}

.home-route-card .text-link {
  display: inline-flex;
  margin-top: 0.9rem;
}

.home-route-card--accent {
  border-color: color-mix(in srgb, var(--accent-color) 44%, white);
  box-shadow:
    var(--shadow-panel),
    0 0 0 1px rgba(131, 222, 69, 0.16) inset;
}

.home-route-card__label,
.home-stat__label {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: rgba(222, 233, 255, 0.78);
}

.home-principles {
  display: grid;
  gap: 1rem;
}

.launch-check {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.launch-check h2 {
  margin: 0;
  font-size: 1.05rem;
}

.launch-check p {
  margin: 0;
}

@media (max-width: 1080px) {
  .home-route-grid,
  .home-stat-grid {
    grid-template-columns: 1fr;
  }
}

.section-shell {
  position: relative;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid
    color-mix(in srgb, var(--surface-border-strong) 72%, transparent);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 18%),
    var(--surface-texture), var(--panel-gradient);
  box-shadow: var(--shadow-panel);
  overflow: clip;
}

.section-shell::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #80d84f, #ffb347 50%, #6f7dff);
  opacity: 0.72;
  pointer-events: none;
}

.flow-strip {
  display: grid;
  gap: 1.1rem;
}

.flow-strip__heading {
  padding-bottom: 0.2rem;
}

.flow-strip__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-step {
  position: relative;
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.1rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(180deg, var(--stims-white-12), var(--stims-white-02) 18%),
    color-mix(in srgb, var(--panel-solid) 92%, transparent);
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.flow-step:hover,
.flow-step:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 44%,
    var(--surface-border)
  );
  box-shadow:
    0 18px 32px rgba(2, 4, 10, 0.26),
    0 0 0 1px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.flow-step--active {
  border-color: color-mix(in srgb, var(--accent-color) 52%, white);
  background:
    linear-gradient(
      180deg,
      rgba(139, 226, 199, 0.16),
      var(--stims-white-03) 24%
    ),
    color-mix(in srgb, var(--panel-solid) 90%, transparent);
}

.flow-step__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(222, 233, 255, 0.72);
}

.flow-step h3,
.flow-step p {
  margin: 0;
}

.flow-step h3 {
  color: #f5f8ff;
  font-size: 1.05rem;
}

.flow-step p:last-child {
  color: var(--text-muted);
  line-height: 1.55;
}

.home-proof,
.home-showcase,
.home-lineage,
.home-principles,
.launch-workspace,
.launch-panels,
.launch-intro {
  display: grid;
  gap: 1rem;
}

.launch-shell {
  gap: clamp(1.1rem, 2vw, 1.7rem);
}

.shell-header--launch-nav {
  position: static;
  padding-top: 0;
  margin-bottom: 0;
  backdrop-filter: none;
}

.shell-header--launch-nav [data-top-nav-container] {
  display: block;
}

.launch-intro__aside {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.3rem);
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      var(--stims-white-03) 22%
    ),
    color-mix(in srgb, var(--panel-solid) 92%, transparent);
}

.launch-intro__aside h2,
.launch-intro__aside p {
  margin: 0;
}

.launch-intro__aside h2 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  color: #f5f8ff;
}

.launch-intro__aside p:last-of-type {
  color: var(--text-muted);
  line-height: 1.6;
}

.launch-intro__pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.launch-panels__header {
  max-width: 52rem;
}

.launch-panels .shell-panels {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.92fr);
  align-items: start;
  gap: 1rem;
  pointer-events: auto;
}

.launch-panels .shell-panel {
  min-width: 0;
}

.launch-panels .shell-panel--tune {
  position: sticky;
  top: clamp(1rem, 2vw, 1.4rem);
}

.launch-panels .shell-panel[data-audio-controls] > .control-panel,
.launch-panels .shell-panel[data-settings-panel] > .control-panel,
.launch-panels .shell-panel > [data-audio-controls] > .control-panel,
.launch-panels .shell-panel > [data-settings-panel] > .control-panel {
  max-height: none;
  overflow: visible;
}

.launch-panels .shell-panel[data-settings-panel] > .control-panel,
.launch-panels .shell-panel > [data-settings-panel] > .control-panel {
  min-height: 100%;
}

@supports selector(:has(*)) {
  .launch-panels .shell-panels:has(.shell-panel--tune > :not(:empty)) {
    align-items: stretch;
  }
}

@supports (container-type: inline-size) {
  @container launch-shell (max-width: 920px) {
    .launch-panels .shell-panels {
      grid-template-columns: 1fr;
    }

    .launch-panels .shell-panel--tune {
      position: static;
    }
  }
}

@media (max-width: 1080px) {
  .flow-strip__grid,
  .launch-intro__grid,
  .launch-panels .shell-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section-shell {
    padding: 1rem;
  }

  .launch-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .shell-header--launch-nav {
    order: 0;
  }

  .launch-intro {
    order: 1;
  }

  .flow-strip--launch {
    order: 2;
  }

  .launch-workspace {
    order: 3;
  }

  .launch-panels {
    order: 4;
  }

  .launch-panels .shell-panel--tune {
    position: static;
  }
}

:root[data-focused-session="live"][data-session-display-mode="immersive"]
  .launch-intro,
:root[data-focused-session="live"][data-session-display-mode="immersive"]
  .launch-panels {
  display: none;
}

:root[data-focused-session="live"][data-session-display-mode="tools"]
  .launch-intro {
  display: none;
}

:root[data-focused-session="live"][data-session-display-mode="tools"]
  .launch-panels {
  display: block;
}

body[data-page="home"] {
  background:
    radial-gradient(
      circle at 12% 12%,
      color-mix(in srgb, var(--accent-color) 24%, transparent),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 8%,
      color-mix(in srgb, var(--accent-magenta) 22%, transparent),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 24%,
      rgba(255, 241, 208, 0.06),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, #071015 82%, var(--bg-color)),
      var(--bg-color-secondary) 100%
    );
}

body[data-page="home"] .content {
  gap: clamp(1.25rem, 2vw, 2rem);
}

body[data-page="home"] .shell-header {
  margin-bottom: 0;
}

body[data-page="home"] .content::before {
  opacity: 0.18;
}

body[data-page="home"] .section-heading::after {
  width: 72px;
  height: 3px;
  animation: none;
  box-shadow: none;
}

body[data-page="home"] .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

body[data-page="home"] .hero-cta-row .cta-button {
  width: auto;
  min-width: min(15rem, 100%);
}

body[data-page="home"] .hero-cta-row .cta-button.primary {
  grid-column: auto;
}

.home-shell {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.home-stage {
  position: relative;
  min-height: 0;
  padding: clamp(1.35rem, 1.8vw + 0.95rem, 2.25rem);
  background:
    radial-gradient(
      circle at 78% 16%,
      color-mix(in srgb, var(--accent-color) 14%, transparent),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--card-bg) 97%, transparent),
      color-mix(in srgb, #0c1419 74%, var(--card-bg))
    );
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 14%, var(--surface-border));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 248, 234, 0.06);
}

.home-stage::before,
.home-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-stage::before {
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 248, 234, 0.03) calc(100% - 1px)
    ),
    linear-gradient(
      0deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 248, 234, 0.02) calc(100% - 1px)
    );
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 82%);
  opacity: 0.22;
}

.home-stage::after {
  background: radial-gradient(
    circle at 75% 18%,
    var(--stims-white-08),
    transparent 30%
  );
  opacity: 0.26;
}

.home-stage__grid,
.home-presets__intro,
.home-system__grid {
  position: relative;
  z-index: var(--z-stage-root);
}

.home-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
}

.home-stage__copy {
  display: grid;
  gap: 0.9rem;
}

.home-stage__copy h1 {
  margin: 0;
  max-width: 8.5ch;
  font-size: clamp(2.85rem, 6vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.home-stage__copy .tagline {
  max-width: 33rem;
  margin: 0;
  font-size: clamp(1rem, 1vw + 0.88rem, 1.22rem);
  line-height: 1.58;
  color: color-mix(in srgb, var(--text-color) 92%, transparent);
}

.home-stage__support {
  max-width: 34rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.58;
}

.home-stage__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-stage__metric,
.home-stage__panel,
.launch-card,
.system-card,
.home-system__footer {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid
    color-mix(in srgb, var(--accent-color) 12%, var(--surface-border));
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.home-stage__metric {
  padding: 0.9rem 0.95rem;
}

.home-stage__metric-label,
.home-stage__metric-value,
.home-stage__panel p,
.launch-card p,
.system-card p,
.home-system__footer {
  margin: 0;
}

.home-stage__metric-label,
.home-stage__panel-label,
.launch-card__eyebrow,
.system-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--accent-color));
}

.home-stage__metric-value {
  margin-top: 0.38rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.home-stage__visual {
  display: grid;
  gap: 0.85rem;
}

.home-stage__viewport {
  position: relative;
  min-height: 26rem;
  padding: 1rem;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1px solid
    color-mix(in srgb, var(--accent-magenta) 14%, var(--surface-border));
  background:
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--accent-color) 22%, transparent),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(4, 10, 14, 0.84),
      color-mix(in srgb, #091116 82%, var(--card-bg))
    );
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 248, 234, 0.06);
  overflow: hidden;
}

.home-stage__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    var(--stims-white-05) 0 2px,
    transparent 2px 8px
  );
  mix-blend-mode: soft-light;
  opacity: 0.16;
  pointer-events: none;
}

.home-stage__viewport-header {
  position: relative;
  z-index: var(--z-stage-hero);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.66);
}

.home-stage__rings,
.home-stage__rings::before,
.home-stage__rings::after {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 234, 0.12);
  content: "";
}

.home-stage__rings {
  inset: 13% 20%;
  box-shadow:
    0 0 0 1px rgba(255, 248, 234, 0.04),
    0 0 56px rgba(95, 192, 181, 0.08);
}

.home-stage__rings::before {
  inset: 12%;
}

.home-stage__rings::after {
  inset: 24%;
}

.home-stage__orb {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 12rem;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(255, 255, 255, 0.82),
      transparent 18%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 232, 162, 0.9),
      rgba(95, 192, 181, 0.52) 48%,
      rgba(95, 192, 181, 0.04) 74%
    );
  filter: blur(0.4px);
  box-shadow:
    0 0 40px rgba(255, 232, 162, 0.24),
    0 0 110px rgba(95, 192, 181, 0.14);
  animation: home-orb-float 8s ease-in-out infinite;
}

.home-stage__beam {
  position: absolute;
  left: 50%;
  width: 52%;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 248, 234, 0.54),
    transparent
  );
  transform-origin: center;
  opacity: 0.46;
}

.home-stage__beam--one {
  top: 32%;
  transform: translateX(-50%) rotate(18deg);
}

.home-stage__beam--two {
  top: 43%;
  transform: translateX(-50%) rotate(-14deg);
}

.home-stage__beam--three {
  top: 55%;
  transform: translateX(-50%) rotate(4deg);
}

.home-stage__waveform {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 12%;
  height: 34%;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  align-items: end;
  gap: 0.45rem;
}

.home-stage__waveform span {
  --bar-height: 42%;
  height: var(--bar-height);
  border-radius: var(--radius-pill) 999px 0 0;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 234, 0.96),
    rgba(95, 192, 181, 0.58)
  );
  box-shadow: 0 0 18px rgba(255, 248, 234, 0.12);
  transform-origin: bottom center;
  animation: home-waveform-pulse 1.9s ease-in-out infinite;
}

.home-stage__waveform span:nth-child(1) {
  --bar-height: 18%;
  animation-delay: -0.4s;
}

.home-stage__waveform span:nth-child(2) {
  --bar-height: 34%;
  animation-delay: -1.2s;
}

.home-stage__waveform span:nth-child(3) {
  --bar-height: 22%;
  animation-delay: -0.6s;
}

.home-stage__waveform span:nth-child(4) {
  --bar-height: 58%;
  animation-delay: -1.5s;
}

.home-stage__waveform span:nth-child(5) {
  --bar-height: 28%;
  animation-delay: -0.8s;
}

.home-stage__waveform span:nth-child(6) {
  --bar-height: 72%;
  animation-delay: -1.1s;
}

.home-stage__waveform span:nth-child(7) {
  --bar-height: 38%;
  animation-delay: -0.2s;
}

.home-stage__waveform span:nth-child(8) {
  --bar-height: 92%;
  animation-delay: -1.8s;
}

.home-stage__waveform span:nth-child(9) {
  --bar-height: 44%;
  animation-delay: -0.5s;
}

.home-stage__waveform span:nth-child(10) {
  --bar-height: 78%;
  animation-delay: -1.3s;
}

.home-stage__waveform span:nth-child(11) {
  --bar-height: 26%;
  animation-delay: -0.3s;
}

.home-stage__waveform span:nth-child(12) {
  --bar-height: 64%;
  animation-delay: -1.7s;
}

.home-stage__waveform span:nth-child(13) {
  --bar-height: 22%;
  animation-delay: -0.9s;
}

.home-stage__waveform span:nth-child(14) {
  --bar-height: 48%;
  animation-delay: -1s;
}

.home-stage__waveform span:nth-child(15) {
  --bar-height: 30%;
  animation-delay: -0.1s;
}

.home-stage__waveform span:nth-child(16) {
  --bar-height: 55%;
  animation-delay: -1.4s;
}

.home-stage__panel-grid,
.home-launches__grid,
.home-system__cards {
  display: grid;
  gap: 0.85rem;
}

.home-stage__panel {
  padding: 1rem 1.05rem;
}

.home-stage__panel h2,
.launch-card h3,
.system-card h3 {
  margin: 0;
  line-height: 1.15;
}

.home-stage__panel p:last-child,
.launch-card p,
.system-card p:last-child {
  color: var(--text-muted);
  line-height: 1.55;
}

.home-launches__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.launch-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.15rem;
}

.launch-card--featured {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--accent-color) 12%, transparent),
      transparent 52%
    ),
    color-mix(in srgb, var(--card-bg) 92%, transparent);
  border-color: color-mix(
    in srgb,
    var(--accent-color) 22%,
    var(--surface-border)
  );
}

.home-presets__intro {
  display: block;
}

.home-presets__frame {
  position: relative;
  overflow: hidden;
  padding: 1.05rem;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid
    color-mix(in srgb, var(--accent-magenta) 14%, var(--surface-border));
  background: color-mix(in srgb, var(--card-bg) 95%, transparent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.home-presets__frame::before,
.home-presets__frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-presets__frame::before {
  inset: auto auto 0 -8%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color) 10%, transparent);
  filter: blur(14px);
  opacity: 0.5;
}

.home-presets__frame::after {
  inset: 0;
  background: linear-gradient(120deg, var(--stims-white-05), transparent 46%);
  opacity: 0.24;
}

.home-system__cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-card {
  padding: 1.1rem;
}

.home-system__footer {
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-footer {
  padding: 0.2rem 0 1.1rem;
  text-align: center;
  color: var(--text-muted);
}

.home-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

@keyframes home-orb-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(-10px) scale(1.04);
  }
}

@keyframes home-waveform-pulse {
  0%,
  100% {
    transform: scaleY(0.88);
    opacity: 0.7;
  }

  50% {
    transform: scaleY(1.12);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .home-stage__grid,
  .home-presets__intro {
    grid-template-columns: 1fr;
  }

  .home-stage__copy h1 {
    max-width: 12ch;
  }

  .home-system__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stage__viewport {
    min-height: 24rem;
  }
}

@media (max-width: 860px) {
  .home-stage__meta,
  .home-launches__grid,
  .home-system__cards {
    grid-template-columns: 1fr;
  }

  .home-stage__copy h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 12vw, 4.6rem);
  }
}

@media (max-width: 640px) {
  .home-stage {
    padding: 1.15rem;
  }

  body[data-page="home"] .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="home"] .hero-cta-row .cta-button {
    width: 100%;
    min-width: 0;
  }

  .home-stage__viewport {
    min-height: 20rem;
  }

  .home-stage__orb {
    width: 10rem;
  }

  .home-stage__waveform {
    gap: 0.28rem;
  }

  .home-presets__frame,
  .launch-card,
  .system-card,
  .home-system__footer {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-stage__orb,
  .home-stage__waveform span {
    animation: none;
    transition: none;
  }
}

/* UI hierarchy refresh: keep first-run messaging short and make setup feel secondary. */
body[data-page="home"] .content {
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.home-stage__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: start;
}

.home-stage__copy {
  gap: 0.75rem;
}

.home-stage__copy h1 {
  max-width: 9ch;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.home-stage__copy .tagline {
  max-width: 30rem;
  font-size: clamp(1rem, 0.8vw + 0.92rem, 1.15rem);
  line-height: 1.5;
}

.home-stage__support {
  max-width: 28rem;
  font-size: 0.96rem;
}

.home-stage__viewport {
  min-height: 23rem;
}

.home-launches__grid {
  gap: 0.75rem;
  align-items: stretch;
}

.launch-card {
  gap: 0.65rem;
  padding: 1rem;
}

.launch-card h3 {
  font-size: 1.15rem;
}

.launch-card p {
  font-size: 0.92rem;
}

.home-presets__frame {
  padding: 0.95rem;
}

.launch-intro__copy {
  max-width: 40rem;
  gap: 0.85rem;
}

.launch-intro__copy h1 {
  max-width: 13ch;
}

.launch-panels__header {
  max-width: 44rem;
}

.launch-panels .shell-panels {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 0.85rem;
}

.launch-panels .shell-panel--tune {
  opacity: 0.92;
}

@media (max-width: 1080px) {
  .home-stage__grid,
  .launch-panels .shell-panels {
    grid-template-columns: 1fr;
  }

  .home-stage__copy h1,
  .launch-intro__copy h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-cta-row {
    gap: 0.55rem;
  }

  .launch-intro__copy h1 {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
  }
}

@media (max-width: 640px) {
  .section-shell {
    padding: 0.85rem;
  }

  .shell-header {
    padding-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .top-nav {
    padding: 0.6rem 0.75rem;
    border-radius: 18px;
    top: 0.35rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .brand-copy .eyebrow {
    font-size: 0.68rem;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .nav-toggle {
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
  }

  .nav-link {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    font-size: 0.92rem;
  }

  body[data-page="home"] .content {
    gap: 0.9rem;
  }

  .home-shell,
  .launch-shell {
    gap: 0.85rem;
  }

  .home-stage {
    padding: 1rem;
  }

  .home-stage__copy {
    gap: 0.65rem;
  }

  .home-stage__copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
    max-width: 8ch;
  }

  .home-stage__copy .tagline,
  .home-stage__support {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .home-stage__visual {
    gap: 0.6rem;
  }

  .home-stage__viewport {
    min-height: 17rem;
    padding: 0.75rem;
  }

  .home-stage__viewport-header {
    font-size: 0.68rem;
  }

  .home-stage__orb {
    width: 8.5rem;
  }

  .home-stage__waveform {
    bottom: 10%;
    left: 8%;
    right: 8%;
    gap: 0.22rem;
  }

  .home-stage__meta {
    display: none;
  }

  .home-stage__metric,
  .home-stage__panel,
  .launch-card,
  .system-card,
  .home-system__footer,
  .home-presets__frame {
    padding: 0.9rem;
  }

  .home-stage__metric-value {
    font-size: 0.95rem;
  }

  .section-heading {
    gap: 0.35rem;
  }

  .section-heading h2 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .section-description {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .home-launches__grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .launch-card {
    gap: 0.5rem;
  }

  .launch-card h3 {
    font-size: 1.05rem;
  }

  .launch-card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  body[data-page="home"] .hero-cta-row {
    gap: 0.5rem;
  }

  body[data-page="home"] .hero-cta-row .cta-button {
    min-width: 0;
    width: 100%;
  }

  .launch-shell {
    gap: 0.75rem;
  }

  .launch-intro__copy {
    gap: 0.7rem;
  }

  .launch-intro__copy h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
    max-width: 10ch;
  }

  .launch-intro__copy .section-description {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .launch-intro__actions {
    display: grid;
    gap: 0.5rem;
  }

  .launch-intro__actions .cta-button {
    width: 100%;
    min-width: 0;
  }

  .launch-panels__header {
    gap: 0.35rem;
  }

  .launch-panels__header h2 {
    font-size: clamp(1.45rem, 7.5vw, 2.1rem);
  }

  .launch-panels .shell-panels {
    gap: 0.7rem;
  }

  .launch-panels .shell-panel--tune {
    opacity: 1;
  }

  .launch-panels .shell-panel[data-audio-controls] > .control-panel,
  .launch-panels .shell-panel[data-settings-panel] > .control-panel,
  .launch-panels .shell-panel > [data-audio-controls] > .control-panel,
  .launch-panels .shell-panel > [data-settings-panel] > .control-panel {
    border-radius: 20px;
  }
}

/* Mobile-first homepage revamp */
body[data-page="home"] {
  --label-font:
    "Space Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --home-lime: #c8ff74;
  --home-cyan: #7ce8ff;
  --home-ember: #ff9f68;
  --home-ink: #081018;
  --home-surface: rgba(8, 16, 24, 0.76);
  --home-border: rgba(225, 243, 255, 0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 232, 255, 0.2), transparent 26%),
    radial-gradient(
      circle at 84% 8%,
      rgba(255, 159, 104, 0.16),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 26%,
      rgba(200, 255, 116, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #071018 0%, #08131d 48%, #050a10 100%);
}

body[data-page="home"] .content {
  width: min(1180px, 100%);
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(calc(env(safe-area-inset-bottom) + 7.5rem), 7.5rem)
    max(1rem, env(safe-area-inset-left));
}

body[data-page="home"] .content::before {
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% - 1px),
      var(--stims-white-03) calc(100% - 1px)
    ),
    linear-gradient(
      0deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 255, 255, 0.025) calc(100% - 1px)
    );
  background-size: 32px 32px;
  opacity: 0.34;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 86%);
}

body[data-page="home"] .shell-header {
  margin-bottom: 0;
  padding-top: 0;
}

body[data-page="home"] .top-nav {
  padding: 0.75rem 0.8rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, var(--stims-white-08), transparent 52%),
    rgba(6, 11, 18, 0.84);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body[data-page="home"] .top-nav::after {
  left: 0.9rem;
  right: 0.9rem;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--home-lime),
    var(--home-cyan) 52%,
    var(--home-ember)
  );
}

body[data-page="home"] .brand-mark {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--home-lime) 78%, white),
    color-mix(in srgb, var(--home-cyan) 82%, #1d4ed8)
  );
}

body[data-page="home"] .brand-copy .eyebrow,
body[data-page="home"] .brand-title,
body[data-page="home"] .nav-link,
body[data-page="home"] .theme-toggle__label,
body[data-page="home"] .cta-button,
body[data-page="home"] .eyebrow {
  letter-spacing: 0.1em;
}

body[data-page="home"] .nav-link,
body[data-page="home"] .theme-toggle,
body[data-page="home"] .nav-toggle {
  border-radius: 14px;
}

body[data-page="home"] .nav-link--launch {
  background: linear-gradient(
    135deg,
    rgba(124, 232, 255, 0.2),
    rgba(255, 159, 104, 0.12)
  );
}

body[data-page="home"] .theme-toggle {
  background: var(--stims-white-04);
  box-shadow: none;
}

body[data-page="home"] .home-shell {
  display: grid;
  gap: 1rem;
}

body[data-page="home"] .content > .home-shell,
body[data-page="home"] .content > .home-footer {
  width: 100%;
  min-width: 0;
}

body[data-page="home"] .section-shell {
  padding: 1rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, var(--stims-white-05), transparent 52%),
    rgba(8, 16, 24, 0.74);
  border: 1px solid var(--home-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

body[data-page="home"] .section-heading {
  gap: 0.45rem;
  padding-bottom: 0.35rem;
}

body[data-page="home"] .section-heading::after {
  width: 78px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--home-lime) 0 30%,
    transparent 30% 38%,
    var(--home-cyan) 38% 72%,
    transparent 72% 80%,
    var(--home-ember) 80% 100%
  );
}

body[data-page="home"] .section-heading h2 {
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  line-height: 0.95;
}

body[data-page="home"] .section-description {
  max-width: 38rem;
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

body[data-page="home"] .home-stage {
  padding: 1rem;
  border-radius: 30px;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(124, 232, 255, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 84% 14%,
      rgba(255, 159, 104, 0.14),
      transparent 22%
    ),
    linear-gradient(180deg, rgba(13, 22, 33, 0.96), rgba(6, 12, 18, 0.96));
  border: 1px solid var(--home-border);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 var(--stims-white-06);
}

body[data-page="home"] .home-stage::before {
  background-size: 28px 28px;
  opacity: 0.2;
}

body[data-page="home"] .home-stage::after {
  background: radial-gradient(
    circle at 75% 24%,
    rgba(255, 255, 255, 0.1),
    transparent 24%
  );
  opacity: 0.42;
}

body[data-page="home"] .home-stage__grid {
  display: grid;
  gap: 1rem;
}

body[data-page="home"] .home-stage__copy,
body[data-page="home"] .home-stage__visual,
body[data-page="home"] .home-presets__intro,
body[data-page="home"] .home-presets__rail,
body[data-page="home"] .home-system__footer {
  display: grid;
  gap: 0.85rem;
}

body[data-page="home"] .home-stage__kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body[data-page="home"] .home-stage__copy h1 {
  margin: 0;
  max-width: 7ch;
  font-size: clamp(3rem, 14vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

body[data-page="home"] .home-stage__copy .tagline {
  margin: 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text-color) 92%, transparent);
}

body[data-page="home"] .home-stage__support {
  margin: 0;
  max-width: 34rem;
  color: color-mix(in srgb, var(--text-muted) 96%, white);
  font-size: 0.95rem;
  line-height: 1.55;
}

body[data-page="home"] .hero-cta-row {
  display: grid;
  gap: 0.7rem;
}

body[data-page="home"] .hero-cta-row .cta-button {
  width: 100%;
  min-width: 0;
  min-height: 54px;
}

body[data-page="home"] .cta-button.primary {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--home-lime) 74%, #90d945),
    color-mix(in srgb, var(--home-cyan) 34%, #1d4ed8)
  );
  color: #07120c;
  border-color: rgba(200, 255, 116, 0.52);
  box-shadow: 0 16px 28px rgba(140, 205, 65, 0.24);
}

body[data-page="home"] .cta-button.primary:hover {
  color: #07120c;
}

body[data-page="home"] .cta-button.ghost {
  background: var(--stims-white-04);
  border-color: var(--stims-white-12);
}

body[data-page="home"] .home-stage__proof-grid,
body[data-page="home"] .home-launches__grid,
body[data-page="home"] .home-system__cards,
body[data-page="home"] .home-stage__meta {
  display: grid;
  gap: 0.75rem;
}

body[data-page="home"] .home-stage__proof-card,
body[data-page="home"] .home-stage__metric,
body[data-page="home"] .launch-card,
body[data-page="home"] .system-card,
body[data-page="home"] .home-system__footer,
body[data-page="home"] .home-presets__frame {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, var(--stims-white-05), transparent 54%),
    var(--home-surface);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

body[data-page="home"] .home-stage__proof-card,
body[data-page="home"] .home-stage__metric,
body[data-page="home"] .launch-card,
body[data-page="home"] .system-card,
body[data-page="home"] .home-system__footer {
  padding: 1rem;
}

body[data-page="home"] .home-stage__panel-label,
body[data-page="home"] .home-stage__metric-label,
body[data-page="home"] .launch-card__eyebrow,
body[data-page="home"] .system-card__label,
body[data-page="home"] .home-stage__queue-label {
  margin: 0;
  color: color-mix(in srgb, var(--home-cyan) 58%, var(--text-muted));
  font-family: var(--label-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-page="home"] .home-stage__proof-card h2,
body[data-page="home"] .home-stage__proof-card h3,
body[data-page="home"] .launch-card h3,
body[data-page="home"] .system-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.08;
}

body[data-page="home"] .home-stage__proof-card p:last-child,
body[data-page="home"] .launch-card p,
body[data-page="home"] .system-card p:last-child,
body[data-page="home"] .home-stage__metric-value {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

body[data-page="home"] .home-stage__metric-value {
  font-size: 0.95rem;
}

body[data-page="home"] .home-stage__viewport {
  min-height: 24rem;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(124, 232, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(180deg, rgba(4, 10, 14, 0.92), rgba(7, 15, 24, 0.92));
  box-shadow:
    0 26px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 var(--stims-white-06);
}

body[data-page="home"] .home-stage__viewport::before {
  opacity: 0.18;
}

body[data-page="home"] .home-stage__viewport-header {
  font-family: var(--label-font);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(247, 244, 235, 0.72);
}

body[data-page="home"] .home-stage__hud {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 3.15rem;
  z-index: var(--z-stage-hero);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body[data-page="home"] .home-stage__hud-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 12, 18, 0.58);
  border: 1px solid var(--stims-white-12);
  backdrop-filter: blur(10px);
  font-family: var(--label-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="home"] .home-stage__rings {
  inset: 18% 18%;
}

body[data-page="home"] .home-stage__orb {
  top: 24%;
  width: 9.75rem;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(255, 255, 255, 0.84),
      transparent 18%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(200, 255, 116, 0.82),
      rgba(124, 232, 255, 0.5) 46%,
      rgba(124, 232, 255, 0.02) 74%
    );
  box-shadow:
    0 0 42px rgba(200, 255, 116, 0.22),
    0 0 118px rgba(124, 232, 255, 0.14);
}

body[data-page="home"] .home-stage__beam {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
}

body[data-page="home"] .home-stage__waveform {
  left: 8%;
  right: 8%;
  bottom: 7rem;
  height: 28%;
  gap: 0.24rem;
}

body[data-page="home"] .home-stage__waveform span {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(124, 232, 255, 0.56)
  );
}

body[data-page="home"] .home-stage__queue {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-stage-hero);
  display: grid;
  gap: 0.45rem;
}

body[data-page="home"] .home-stage__queue-card {
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: rgba(6, 12, 18, 0.58);
  border: 1px solid var(--stims-white-08);
  backdrop-filter: blur(12px);
}

body[data-page="home"] .home-stage__queue-value {
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

body[data-page="home"] .launch-card {
  display: grid;
  gap: 0.75rem;
}

body[data-page="home"] .launch-card--featured {
  border-color: rgba(200, 255, 116, 0.24);
  background:
    linear-gradient(135deg, rgba(200, 255, 116, 0.08), transparent 45%),
    var(--home-surface);
}

body[data-page="home"] .home-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

body[data-page="home"] .home-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  line-height: 1.45;
}

body[data-page="home"] .home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--home-lime), var(--home-cyan));
  box-shadow: 0 0 12px rgba(124, 232, 255, 0.28);
}

body[data-page="home"] .home-presets__frame {
  padding: 0.9rem;
}

body[data-page="home"] .home-system__footer {
  align-items: start;
}

body[data-page="home"] .home-system__footer p {
  margin: 0;
  color: var(--text-muted);
}

body[data-page="home"] .home-footer {
  padding: 0.2rem 0 0;
  text-align: left;
  color: var(--text-muted);
}

body[data-page="home"] .home-footer p {
  margin: 0;
}

body[data-page="home"] .footer-nav {
  justify-content: flex-start;
  row-gap: 0.3rem;
  column-gap: 0.55rem;
  margin-top: 0.55rem;
}

body[data-page="home"] .home-mobile-dock {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: var(--z-overlay);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, var(--stims-white-08), transparent 48%),
    rgba(6, 11, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(140%);
}

body[data-page="home"] .home-mobile-dock .cta-button {
  min-height: 52px;
}

@media (min-width: 700px) {
  body[data-page="home"] .content {
    gap: 1.15rem;
    padding: max(1.25rem, env(safe-area-inset-top))
      max(1.25rem, env(safe-area-inset-right))
      max(calc(env(safe-area-inset-bottom) + 8rem), 8rem)
      max(1.25rem, env(safe-area-inset-left));
  }

  body[data-page="home"] .top-nav {
    padding: 0.8rem 0.9rem;
  }

  body[data-page="home"] .section-shell,
  body[data-page="home"] .home-stage {
    padding: 1.15rem;
  }

  body[data-page="home"] .hero-cta-row,
  body[data-page="home"] .home-stage__proof-grid,
  body[data-page="home"] .home-launches__grid,
  body[data-page="home"] .home-system__cards,
  body[data-page="home"] .home-stage__meta,
  body[data-page="home"] .home-presets__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .hero-cta-row .cta-button:last-child {
    width: auto;
  }
}

@media (min-width: 960px) {
  body[data-page="home"] .content {
    gap: 1.25rem;
    padding: max(1.4rem, env(safe-area-inset-top))
      max(1.4rem, env(safe-area-inset-right)) 1.4rem
      max(1.4rem, env(safe-area-inset-left));
  }

  body[data-page="home"] .home-stage__grid,
  body[data-page="home"] .home-presets__intro {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: start;
  }

  body[data-page="home"] .hero-cta-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  body[data-page="home"] .hero-cta-row .cta-button:first-child {
    width: 100%;
  }

  body[data-page="home"] .home-stage__viewport {
    min-height: 28rem;
    padding: 1.15rem;
  }

  body[data-page="home"] .home-stage__orb {
    width: 12rem;
  }

  body[data-page="home"] .home-stage__waveform {
    bottom: 6.3rem;
    gap: 0.36rem;
  }

  body[data-page="home"] .home-stage__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="home"] .home-system__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  body[data-page="home"] .home-mobile-dock {
    display: none;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .top-nav {
    padding: 0.65rem 0.7rem;
    gap: 0.45rem;
  }

  body[data-page="home"] .nav-actions {
    margin-top: 0.7rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(6, 11, 18, 0.94);
    border: 1px solid var(--stims-white-08);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  }

  body[data-page="home"] .nav-link,
  body[data-page="home"] .theme-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-page="home"] .home-stage__copy h1 {
    max-width: 6.5ch;
  }

  body[data-page="home"] .home-stage__proof-grid,
  body[data-page="home"] .home-stage__meta,
  body[data-page="home"] .home-stage__support {
    display: none;
  }

  body[data-page="home"] .home-stage__viewport {
    min-height: 22rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .shell-header {
    margin-bottom: 0.35rem;
  }

  .top-nav {
    gap: 0.45rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    max-height: min(48vh, 15rem);
    overflow: auto;
    margin-top: 0.45rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
    border: 1px solid
      color-mix(in srgb, var(--accent-color) 18%, var(--surface-border));
  }

  .nav-section,
  .nav-section--jump,
  .nav-section--utilities {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    border: 0;
  }

  .nav-section--jump,
  .nav-section--utilities {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .nav-link,
  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-page="home"] .content {
    gap: 0.75rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  body[data-page="home"] .home-mobile-dock {
    display: none;
  }

  body[data-page="home"] .home-stage {
    padding: 0.9rem;
  }

  body[data-page="home"] .home-stage__copy h1 {
    max-width: none;
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  body[data-page="home"] .home-stage__proof-grid,
  body[data-page="home"] .home-stage__meta,
  body[data-page="home"] .home-stage__support {
    display: none;
  }

  body[data-page="home"] .hero-cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  body[data-page="home"] .hero-cta-row .cta-button {
    min-height: 48px;
  }

  body[data-page="home"] .home-stage__viewport {
    min-height: 15rem;
    padding: 0.8rem;
  }

  body[data-page="home"] .home-stage__orb {
    width: 7.5rem;
  }

  body[data-page="home"] .home-stage__waveform {
    bottom: 4.8rem;
    height: 22%;
  }

  .launch-shell {
    gap: 0.85rem;
  }

  .launch-intro,
  .launch-panels {
    gap: 0.75rem;
  }

  .launch-intro__copy {
    gap: 0.55rem;
    max-width: 32rem;
  }

  .launch-intro__copy h1 {
    max-width: none;
    font-size: clamp(1.9rem, 4.8vw, 2.5rem);
  }

  .launch-intro__actions .cta-button {
    min-height: 48px;
  }

  .launch-panels .shell-panels {
    gap: 0.75rem;
  }

  .launch-panels .shell-panel--tune {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-mobile-dock,
  body[data-page="home"] .home-stage__hud-pill,
  body[data-page="home"] .home-stage__queue-card {
    backdrop-filter: none;
  }
}

/* Aggressive screen redesign: reduce repeated chrome and strengthen stage hierarchy. */
body[data-page="home"] .home-stage__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.6rem);
}

body[data-page="home"] .home-stage__copy {
  align-content: start;
  gap: 0.8rem;
}

body[data-page="home"] .home-stage__copy h1 {
  max-width: 6.25ch;
  font-size: clamp(3.2rem, 10vw, 6.6rem);
}

body[data-page="home"] .home-stage__copy .tagline {
  max-width: 31rem;
  font-size: clamp(1rem, 0.7vw + 0.96rem, 1.18rem);
}

body[data-page="home"] .home-stage__support {
  max-width: 26rem;
  color: color-mix(in srgb, var(--text-muted) 88%, white);
}

body[data-page="home"] .hero-cta-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

body[data-page="home"] .hero-cta-row .cta-button {
  min-height: 58px;
}

body[data-page="home"] .hero-cta-row .cta-button.ghost {
  min-width: 11rem;
}

body[data-page="home"] .home-stage__visual {
  position: relative;
  align-content: stretch;
}

body[data-page="home"] .home-stage__visual::after {
  content: "";
  position: absolute;
  inset: 6% -4% -8% 12%;
  border-radius: 32px;
  background:
    radial-gradient(
      circle at 25% 30%,
      rgba(124, 232, 255, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 159, 104, 0.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 52% 72%,
      rgba(200, 255, 116, 0.08),
      transparent 30%
    );
  filter: blur(18px);
  pointer-events: none;
  z-index: var(--z-ambient);
}

body[data-page="home"] .home-stage__viewport,
body[data-page="home"] .home-stage__queue,
body[data-page="home"] .home-stage__meta {
  position: relative;
  z-index: var(--z-stage-root);
}

body[data-page="home"] .home-stage__viewport {
  min-height: clamp(26rem, 58vh, 40rem);
  padding: 1.15rem;
  border-radius: 32px;
}

body[data-page="home"] .home-stage__hud {
  top: 1.15rem;
  left: auto;
  right: 1.15rem;
  justify-content: flex-end;
}

body[data-page="home"] .home-stage__queue {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

body[data-page="home"] .home-stage__queue-card {
  min-height: 0;
}

body[data-page="home"] .home-stage__proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body[data-page="home"] .home-stage__proof-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--stims-white-04), transparent 48%),
    rgba(9, 17, 26, 0.56);
  border-color: var(--stims-white-08);
  box-shadow: none;
}

body[data-page="home"] .home-stage__proof-card h2,
body[data-page="home"] .home-stage__proof-card h3 {
  font-size: 1rem;
}

body[data-page="home"] .home-stage__proof-card p:last-child {
  font-size: 0.88rem;
}

body[data-page="home"] .home-stage__meta {
  display: none;
}

body[data-page="home"] .section-shell:not(.home-stage) {
  border-radius: 30px;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    rgba(8, 16, 24, 0.66);
}

body[data-page="home"] .home-launches__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.85rem;
}

body[data-page="home"] .launch-card,
body[data-page="home"] .system-card {
  border-radius: 24px;
}

body[data-page="home"] .launch-card:not(.launch-card--featured),
body[data-page="home"] .system-card {
  background:
    linear-gradient(180deg, var(--stims-white-04), transparent 54%),
    rgba(7, 13, 21, 0.48);
}

body[data-page="home"] .launch-card--featured {
  background:
    radial-gradient(
      circle at top left,
      rgba(200, 255, 116, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, var(--stims-white-05), transparent 54%),
    rgba(8, 16, 24, 0.82);
}

body[data-page="home"] .home-presets__intro {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
}

body[data-page="home"] .home-presets__rail {
  align-content: start;
}

body[data-page="home"] .home-system__cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

body[data-page="home"] .home-mobile-dock {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.65rem;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

body[data-page="home"] .home-mobile-dock .cta-button.ghost {
  display: none;
}

body[data-page="home"][data-home-dock-state="hidden"] .home-mobile-dock {
  opacity: 0;
  transform: translateY(calc(100% + 1rem));
  pointer-events: none;
}

body[data-page="experience"] .launch-shell {
  gap: clamp(1rem, 2vw, 1.6rem);
}

body[data-page="experience"] .launch-intro {
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-radius: 32px;
  background:
    linear-gradient(125deg, rgba(200, 255, 116, 0.08), transparent 28%),
    radial-gradient(
      circle at 12% 18%,
      rgba(124, 232, 255, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 84% 12%,
      rgba(255, 159, 104, 0.1),
      transparent 24%
    ),
    linear-gradient(180deg, rgba(16, 25, 39, 0.98), rgba(10, 15, 24, 0.96));
  border-color: rgba(208, 226, 255, 0.14);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 var(--stims-white-05);
}

body[data-page="experience"] .launch-intro__grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

body[data-page="experience"] .launch-intro__copy {
  align-content: start;
  gap: 0.95rem;
  max-width: 38rem;
}

body[data-page="experience"] .launch-intro__copy h1 {
  margin: 0;
  max-width: 7ch;
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

body[data-page="experience"] .launch-intro__copy .section-description {
  max-width: 26rem;
  font-size: 1.06rem;
  line-height: 1.55;
  color: color-mix(in srgb, #f5f8ff 84%, transparent);
}

body[data-page="experience"] .launch-intro__actions .cta-button {
  min-width: min(21rem, 100%);
  min-height: 58px;
  box-shadow: 0 18px 36px rgba(144, 217, 69, 0.18);
}

body[data-page="experience"] .launch-intro__aside {
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 28px;
  border-color: var(--stims-white-05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 44%),
    rgba(4, 8, 14, 0.9);
  box-shadow: none;
}

body[data-page="experience"] .launch-intro__aside h2 {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  line-height: 1;
}

body[data-page="experience"] .launch-checklist {
  gap: 0.7rem;
}

body[data-page="experience"] .launch-check {
  gap: 0.5rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border-color: var(--stims-white-05);
  background:
    linear-gradient(180deg, var(--stims-white-02), transparent 40%),
    rgba(7, 11, 18, 0.8);
  box-shadow: none;
}

body[data-page="experience"] .launch-check h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.15;
  color: #f5f8ff;
}

body[data-page="experience"] .launch-check p:last-child {
  font-size: 0.9rem;
}

body[data-page="experience"] .launch-panels {
  border-radius: 32px;
  background:
    linear-gradient(180deg, var(--stims-white-02), transparent 42%),
    rgba(4, 8, 13, 0.62);
  border-color: var(--stims-white-05);
}

body[data-page="experience"] .launch-panels__header {
  max-width: 34rem;
}

body[data-page="experience"] .launch-panels .shell-panels {
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 1rem;
}

body[data-page="experience"]
  .launch-panels
  .shell-panel[data-audio-controls]
  > .control-panel,
body[data-page="experience"]
  .launch-panels
  .shell-panel[data-settings-panel]
  > .control-panel,
body[data-page="experience"]
  .launch-panels
  .shell-panel
  > [data-audio-controls]
  > .control-panel,
body[data-page="experience"]
  .launch-panels
  .shell-panel
  > [data-settings-panel]
  > .control-panel {
  min-height: 100%;
  max-height: none;
  overflow: visible;
}

body[data-page="experience"] .launch-panels .control-panel {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(7, 12, 20, 0.82);
  border-color: rgba(214, 230, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

body[data-page="experience"] .launch-panels .control-panel::after {
  inset: 10px;
  border-radius: 20px;
}

body[data-page="experience"] .launch-panels .shell-panel--tune .control-panel {
  background:
    linear-gradient(180deg, var(--stims-white-02), transparent 36%),
    rgba(5, 9, 15, 0.68);
}

body[data-page="experience"] .launch-panels .control-panel__row--primary {
  background:
    linear-gradient(
      135deg,
      rgba(200, 255, 116, 0.09),
      rgba(124, 232, 255, 0.06)
    ),
    rgba(12, 20, 28, 0.78);
  border-color: rgba(200, 255, 116, 0.16);
}

body[data-page="experience"] .launch-panels .control-panel__gesture-hints,
body[data-page="experience"] .launch-panels .control-panel__first-steps,
body[data-page="experience"] .launch-panels .control-panel__quickstart,
body[data-page="experience"] .launch-panels .control-panel__source-shortcuts {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-focused-session="live"]
  body[data-page="experience"]
  .shell-header--launch-nav {
  display: none;
}

:root[data-focused-session="live"] body[data-page="experience"] .content {
  padding-top: max(0.85rem, env(safe-area-inset-top));
}

@media (max-width: 1080px) {
  body[data-page="home"] .home-stage__grid,
  body[data-page="home"] .home-presets__intro,
  body[data-page="experience"] .launch-intro__grid,
  body[data-page="experience"] .launch-panels .shell-panels {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-system__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-page="home"] .hero-cta-row {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero-cta-row .cta-button.ghost {
    min-width: 0;
  }

  body[data-page="home"] .home-stage__queue {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-stage__proof-grid,
  body[data-page="home"] .home-launches__grid,
  body[data-page="home"] .home-system__cards {
    grid-template-columns: 1fr;
  }

  body[data-page="experience"] .launch-intro__copy h1 {
    max-width: 6ch;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-stage {
    padding: 1rem;
  }

  body[data-page="home"] .home-stage__kicker-row {
    display: none;
  }

  body[data-page="home"] .home-stage__copy {
    gap: 0.7rem;
  }

  body[data-page="home"] .home-stage__proof-grid {
    display: none;
  }

  body[data-page="home"] .home-stage__copy h1 {
    max-width: 5.8ch;
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  body[data-page="home"] .home-stage__viewport {
    min-height: 24rem;
  }

  body[data-page="home"] .home-stage__hud {
    left: 1rem;
    right: 1rem;
    justify-content: flex-start;
  }

  body[data-page="experience"] .launch-intro,
  body[data-page="experience"] .launch-panels {
    padding: 1rem;
    border-radius: 28px;
  }

  body[data-page="experience"] .launch-intro__copy {
    gap: 0.8rem;
  }

  body[data-page="experience"] .launch-intro__copy .section-description {
    font-size: 0.96rem;
  }

  body[data-page="experience"] .launch-intro__aside {
    padding: 1rem;
    border-radius: 24px;
  }

  body[data-page="experience"] .launch-check {
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
  }
}

body[data-page="home"] {
  background:
    radial-gradient(circle at 16% 8%, rgba(95, 192, 181, 0.12), transparent 24%),
    linear-gradient(180deg, #081114 0%, #101a1f 48%, #132228 100%);
}

body[data-page="home"] .content {
  gap: clamp(1rem, 2vw, 1.5rem);
}

body[data-page="home"] .top-nav {
  border-radius: var(--radius-pill);
  padding: 0.7rem 0.95rem;
}

body[data-page="home"] .home-shell {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

body[data-page="home"] .home-stage {
  min-height: auto;
  padding: clamp(4rem, 6vw, 5rem) clamp(1.3rem, 2vw, 1.9rem)
    clamp(1.3rem, 2vw, 1.9rem);
  border-radius: 36px;
  border-color: rgba(255, 248, 234, 0.12);
  background: rgba(13, 20, 24, 0.88);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 248, 234, 0.07);
}

body[data-page="home"] .home-stage::before,
body[data-page="home"] .home-stage::after {
  display: none;
}

body[data-page="home"] .home-stage__grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: start;
}

body[data-page="home"] .home-stage__copy {
  gap: 1rem;
  align-content: start;
}

body[data-page="home"] .home-stage__copy h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

body[data-page="home"] .home-stage__copy .tagline {
  max-width: 31rem;
  margin: 0;
  font-size: clamp(1rem, 0.8vw + 0.76rem, 1.12rem);
  line-height: 1.6;
  color: rgba(247, 244, 235, 0.82);
}

body[data-page="home"] .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body[data-page="home"] .hero-cta-row .cta-button {
  min-width: clamp(12rem, 24vw, 15rem);
}

body[data-page="home"] .home-stage__support {
  max-width: 30rem;
  margin: 0;
  color: rgba(247, 244, 235, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}

body[data-page="home"] .home-start-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: rgba(247, 244, 235, 0.76);
}

body[data-page="home"] .home-start-list li {
  margin: 0;
}

body[data-page="home"] .home-start-list strong {
  color: var(--text-color);
}

body[data-page="home"] .home-stage__start-panel,
body[data-page="home"] .home-footer {
  border: 1px solid rgba(255, 248, 234, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.05), transparent 42%),
    rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

body[data-page="home"] .home-stage__visual {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  align-content: start;
}

body[data-page="home"] .home-stage__start-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: 24px;
}

body[data-page="home"] .home-stage__start-label,
body[data-page="home"] .home-stage__route-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.52);
}

body[data-page="home"] .home-stage__start-panel h2,
body[data-page="home"] .home-stage__route-item h3 {
  margin: 0;
}

body[data-page="home"] .home-stage__start-copy,
body[data-page="home"] .home-stage__route-item p:last-child {
  margin: 0;
  color: rgba(247, 244, 235, 0.72);
  line-height: 1.55;
}

body[data-page="home"] .home-stage__route-list {
  display: grid;
  gap: 0.75rem;
}

body[data-page="home"] .home-stage__route-item {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 248, 234, 0.08);
}

body[data-page="home"] .section-shell {
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-radius: 30px;
}

body[data-page="home"] .home-presets {
  display: grid;
  gap: 1rem;
}

body[data-page="home"] .home-presets__intro {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

body[data-page="home"] .home-presets__support {
  margin: 0;
}

body[data-page="home"] .home-presets__frame {
  padding: 1rem;
  border-radius: 26px;
}

body[data-page="home"] .home-footer {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
}

body[data-page="home"] .home-footer p {
  margin: 0;
}

body[data-page="home"] .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: rgba(247, 244, 235, 0.72);
}

body[data-page="home"] .home-mobile-dock {
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.06), transparent),
    rgba(7, 13, 18, 0.88);
  border: 1px solid rgba(255, 248, 234, 0.12);
  backdrop-filter: blur(18px) saturate(135%);
}

@media (max-width: 1080px) {
  body[data-page="home"] .home-stage__grid,
  body[data-page="home"] .home-presets__intro {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-stage__copy h1 {
    max-width: 11ch;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .top-nav {
    border-radius: 24px;
  }

  body[data-page="home"] .home-stage {
    padding: 4.2rem 1rem 1rem;
    border-radius: 28px;
  }

  body[data-page="home"] .home-stage__copy h1 {
    max-width: 7ch;
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  body[data-page="home"] .hero-cta-row .cta-button {
    width: 100%;
    min-width: 0;
  }

  body[data-page="home"] .home-presets__frame,
  body[data-page="home"] .home-footer {
    padding: 0.9rem;
  }
}

body[data-page="experience"] .launch-shell {
  gap: clamp(1rem, 2vw, 1.5rem);
}

body[data-page="experience"] .launch-intro {
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  border-radius: 36px;
  border-color: rgba(248, 241, 224, 0.12);
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(244, 181, 98, 0.18),
      transparent 24%
    ),
    radial-gradient(circle at 85% 16%, rgba(76, 179, 167, 0.2), transparent 22%),
    radial-gradient(circle at 60% 72%, rgba(67, 96, 214, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 11, 18, 0.98), rgba(16, 23, 34, 0.96));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 var(--stims-white-06);
  overflow: hidden;
  position: relative;
}

body[data-page="experience"] .launch-intro::before {
  content: "";
  position: absolute;
  inset: auto auto -5rem -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(238, 209, 135, 0.24),
    transparent 70%
  );
  pointer-events: none;
}

body[data-page="experience"] .launch-intro::after {
  content: "";
  position: absolute;
  inset: 1.25rem 1.25rem auto auto;
  width: clamp(10rem, 20vw, 14rem);
  height: clamp(10rem, 20vw, 14rem);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 241, 224, 0.08);
  opacity: 0.5;
  pointer-events: none;
}

body[data-page="experience"] .launch-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 42rem;
  position: relative;
  z-index: var(--z-stage-root);
}

body[data-page="experience"] .launch-stage__copy {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  padding: clamp(0.4rem, 0.8vw, 0.7rem);
}

body[data-page="experience"] .launch-stage__copy h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

body[data-page="experience"] .launch-stage__copy .section-description {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.1rem);
  line-height: 1.65;
  color: rgba(245, 248, 255, 0.82);
}

body[data-page="experience"] .launch-stage__actions .cta-button {
  min-width: clamp(12rem, 19vw, 15rem);
}

body[data-page="experience"] .launch-stage__screen {
  position: relative;
  display: grid;
  gap: 1.1rem;
  min-height: 33rem;
  padding: clamp(1rem, 1.8vw, 1.4rem);
  border-radius: 30px;
  border: 1px solid rgba(248, 241, 224, 0.1);
  background:
    radial-gradient(circle at center, rgba(93, 199, 189, 0.18), transparent 24%),
    radial-gradient(
      circle at 25% 82%,
      rgba(243, 177, 90, 0.16),
      transparent 22%
    ),
    linear-gradient(180deg, var(--stims-white-04), transparent 34%),
    rgba(5, 10, 18, 0.82);
  overflow: hidden;
}

body[data-page="experience"] .launch-stage__screen::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  border-radius: 28px;
  border: 1px solid rgba(248, 241, 224, 0.06);
  background: linear-gradient(180deg, var(--stims-white-02), transparent 45%);
  pointer-events: none;
}

body[data-page="experience"] .launch-stage__screen-head,
body[data-page="experience"] .launch-stage__rail-item {
  position: relative;
  z-index: var(--z-stage-root);
}

body[data-page="experience"] .launch-stage__screen-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

body[data-page="experience"] .launch-stage__screen-label,
body[data-page="experience"] .launch-stage__screen-status,
body[data-page="experience"] .launch-stage__rail-label,
body[data-page="experience"] .launch-stage__rail-step,
body[data-page="experience"] .launch-stage__feature-label,
body[data-page="experience"] .launch-stage__legend-title {
  margin: 0;
  font-family: var(--font-family-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 243, 217, 0.66);
}

body[data-page="experience"] .launch-stage__screen-status {
  color: rgba(102, 215, 203, 0.82);
}

body[data-page="experience"] .launch-stage__screen-core {
  position: relative;
  min-height: 17rem;
  display: grid;
  place-items: center;
}

body[data-page="experience"] .launch-stage__ring,
body[data-page="experience"] .launch-stage__pulse,
body[data-page="experience"] .launch-stage__screen-node {
  position: absolute;
  border-radius: 50%;
}

body[data-page="experience"] .launch-stage__ring {
  border: 1px solid rgba(248, 241, 224, 0.14);
  box-shadow: inset 0 0 40px var(--stims-white-02);
}

body[data-page="experience"] .launch-stage__ring--outer {
  width: min(24rem, 82%);
  aspect-ratio: 1;
}

body[data-page="experience"] .launch-stage__ring--mid {
  width: min(17rem, 60%);
  aspect-ratio: 1;
}

body[data-page="experience"] .launch-stage__ring--inner {
  width: min(9rem, 32%);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 243, 217, 0.16),
    transparent 66%
  );
}

body[data-page="experience"] .launch-stage__pulse {
  inset: 50% auto auto 50%;
  width: min(30rem, 96%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(102, 215, 203, 0.14);
  opacity: 0;
  animation: launch-stage-pulse 8s ease-out infinite;
}

body[data-page="experience"] .launch-stage__pulse--two {
  animation-delay: 3.6s;
}

body[data-page="experience"] .launch-stage__screen-node {
  width: 0.9rem;
  height: 0.9rem;
  background: rgba(255, 243, 217, 0.9);
  box-shadow: 0 0 20px rgba(255, 243, 217, 0.55);
}

body[data-page="experience"] .launch-stage__screen-node--input {
  top: 26%;
  left: 23%;
}

body[data-page="experience"] .launch-stage__screen-node--mix {
  top: 48%;
  left: calc(50% - 0.45rem);
  background: rgba(102, 215, 203, 0.95);
  box-shadow: 0 0 24px rgba(102, 215, 203, 0.6);
}

body[data-page="experience"] .launch-stage__screen-node--output {
  right: 24%;
  bottom: 26%;
}

body[data-page="experience"] .launch-stage__screen-legend {
  position: relative;
  z-index: var(--z-stage-root);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

body[data-page="experience"] .launch-stage__legend-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 241, 224, 0.08);
  background: var(--stims-white-03);
}

body[data-page="experience"] .launch-stage__legend-item p:last-child {
  margin: 0;
  color: rgba(245, 248, 255, 0.72);
  line-height: 1.55;
}

body[data-page="experience"] .launch-panels {
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 32px;
  border-color: rgba(248, 241, 224, 0.08);
  background:
    radial-gradient(
      circle at top left,
      rgba(244, 181, 98, 0.12),
      transparent 20%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(6, 10, 18, 0.72);
}

body[data-page="experience"] .launch-panels__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
  gap: 1rem 1.4rem;
  align-items: end;
  max-width: none;
  padding-bottom: 0.45rem;
}

body[data-page="experience"] .launch-panels__header h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

body[data-page="experience"] .launch-panels__header .section-description {
  max-width: 28rem;
  margin: 0;
  color: rgba(245, 248, 255, 0.72);
}

body[data-page="experience"] .launch-panels .shell-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  align-items: stretch;
  gap: 1rem;
}

body[data-page="experience"] .launch-panels .shell-panel {
  position: relative;
}

body[data-page="experience"] .launch-panels .shell-panel--tune:empty {
  display: none;
}

@supports selector(:has(*)) {
  body[data-page="experience"]
    .launch-panels
    .shell-panels:not(:has(.shell-panel--tune > :not(:empty))) {
    grid-template-columns: minmax(0, 1fr);
  }
}

body[data-page="experience"] .launch-panels .control-panel {
  min-height: 100%;
  border-radius: 28px;
  border-color: rgba(248, 241, 224, 0.08);
  background:
    linear-gradient(180deg, var(--stims-white-06), transparent 34%),
    rgba(8, 13, 21, 0.9);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 var(--stims-white-04);
}

body[data-page="experience"] .launch-panels .control-panel::after {
  background: linear-gradient(
    90deg,
    rgba(102, 215, 203, 0.18),
    transparent 60%
  );
  opacity: 0.9;
}

body[data-page="experience"]
  .launch-panels
  .shell-panel--tune
  .control-panel::after {
  background: linear-gradient(90deg, rgba(244, 181, 98, 0.2), transparent 60%);
}

body[data-page="experience"] .launch-panels .control-panel__row--primary {
  align-items: start;
}

body[data-page="experience"] .launch-panels .control-panel__gesture-hints,
body[data-page="experience"] .launch-panels .control-panel__first-steps,
body[data-page="experience"] .launch-panels .control-panel__quickstart,
body[data-page="experience"] .launch-panels .control-panel__source-shortcuts {
  border-color: rgba(248, 241, 224, 0.08);
  background: var(--stims-white-03);
}

@keyframes launch-stage-pulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  18% {
    opacity: 0.4;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@media (max-width: 1080px) {
  body[data-page="experience"] .launch-panels .shell-panels {
    grid-template-columns: 1fr;
  }

  body[data-page="experience"] .launch-stage__screen-legend,
  body[data-page="experience"] .launch-panels__header {
    grid-template-columns: 1fr;
  }

  body[data-page="experience"] .launch-stage__screen {
    min-height: 30rem;
  }
}

@media (max-width: 860px) {
  body[data-page="experience"] .launch-stage__screen {
    min-height: 28rem;
  }
}

@media (max-width: 640px) {
  body[data-page="experience"] .launch-intro {
    padding: 1rem;
    border-radius: 28px;
  }

  body[data-page="experience"] .launch-stage__copy h1 {
    max-width: 7ch;
    font-size: clamp(2.9rem, 14vw, 4.6rem);
  }

  body[data-page="experience"] .launch-stage__actions .cta-button {
    width: 100%;
    min-width: 0;
  }

  body[data-page="experience"] .launch-panels {
    padding: 0.95rem;
    border-radius: 26px;
  }

  body[data-page="experience"] .launch-panels__header {
    gap: 0.75rem;
  }

  body[data-page="experience"] .launch-panels__header h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-stage {
    padding-top: 3.6rem;
  }

  body[data-page="home"] .home-stage__support {
    display: none;
  }
}

/* Homepage redesign pass */
body[data-page="home"] .home-shell {
  gap: 0.9rem;
}

body[data-page="home"] .home-stage {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-radius: 30px;
  border-color: rgba(255, 248, 234, 0.1);
  background:
    radial-gradient(
      circle at top right,
      rgba(95, 192, 181, 0.16),
      transparent 26%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(233, 212, 155, 0.14),
      transparent 32%
    ),
    linear-gradient(145deg, rgba(12, 18, 22, 0.96), rgba(18, 28, 33, 0.9));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 248, 234, 0.08);
  overflow: hidden;
  position: relative;
}

body[data-page="home"] .home-stage::before {
  content: "";
  position: absolute;
  inset: auto auto 2rem -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(211, 137, 84, 0.22),
    transparent 68%
  );
  pointer-events: none;
}

body[data-page="home"] .home-stage__grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  position: relative;
  z-index: var(--z-stage-root);
}

body[data-page="home"] .home-stage__copy {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(0.4rem, 1vw, 0.8rem);
  border: 0;
  background: transparent;
}

body[data-page="home"] .home-footer {
  border: 1px solid rgba(255, 248, 234, 0.08);
  background: var(--stims-white-02);
  box-shadow: none;
}

body[data-page="home"] .eyebrow {
  margin: 0;
  font-family: var(--font-family-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(247, 244, 235, 0.62);
}

body[data-page="home"] .home-stage__copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

body[data-page="home"] .home-stage__copy .tagline {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.12rem);
  line-height: 1.65;
  color: rgba(247, 244, 235, 0.8);
}

body[data-page="home"] .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

body[data-page="home"] .hero-cta-row .cta-button {
  min-width: clamp(12rem, 18vw, 14rem);
}

body[data-page="home"] .home-stage__aux-link,
body[data-page="home"] .home-footer {
  margin: 0;
  color: rgba(247, 244, 235, 0.72);
  line-height: 1.55;
}

body[data-page="home"] .home-stage__aux-link {
  font-size: 0.92rem;
  font-family: var(--font-family-mono);
  color: rgba(247, 244, 235, 0.58);
}

body[data-page="home"] .home-stage__rail {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(0.9rem, 1.4vw, 1.1rem);
  border-radius: 22px;
  border: 1px solid rgba(255, 248, 234, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.05), transparent 44%),
    var(--stims-white-04);
}

body[data-page="home"] .home-stage__rail-label,
body[data-page="home"] .home-stage__route-step {
  margin: 0;
  font-family: var(--font-family-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.55);
}

body[data-page="home"] .home-stage__route-card,
body[data-page="home"] .home-stage__route-note {
  display: grid;
  gap: 0.35rem;
}

body[data-page="home"] .home-stage__route-card {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 248, 234, 0.08);
}

body[data-page="home"] .home-stage__route-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

body[data-page="home"] .home-stage__route-card p:last-child,
body[data-page="home"] .home-stage__route-note p:last-child {
  margin: 0;
  color: rgba(247, 244, 235, 0.72);
  line-height: 1.55;
}

body[data-page="home"] .home-footer {
  display: flex;
  justify-content: center;
  max-width: 70rem;
  margin: 0 auto;
  gap: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 18px;
}

body[data-page="home"] .home-footer p {
  margin: 0;
}

body[data-page="home"] .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1080px) {
  body[data-page="home"] .home-stage__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .home-stage__copy h1 {
    max-width: 9ch;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-stage {
    padding: 1rem;
    border-radius: 22px;
  }

  body[data-page="home"] .home-footer {
    padding: 0.35rem 0.6rem;
  }

  body[data-page="home"] .home-stage__copy h1 {
    max-width: 8ch;
    font-size: clamp(2.8rem, 13vw, 4.1rem);
  }

  body[data-page="home"] .hero-cta-row .cta-button {
    width: 100%;
    min-width: 0;
  }

  body[data-page="home"] .home-stage__rail {
    padding: 0.9rem;
    border-radius: 18px;
  }
}

body[data-page="experience"] .launch-shell--streamlined {
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

body[data-page="experience"] .launch-intro {
  padding: clamp(1.25rem, 2vw, 1.8rem);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(9, 13, 21, 0.97),
    rgba(11, 16, 24, 0.97)
  );
  border: 1px solid rgba(198, 219, 214, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body[data-page="experience"] .launch-intro::before,
body[data-page="experience"] .launch-intro::after {
  display: none;
}

body[data-page="experience"] .launch-stage__grid {
  display: grid;
  gap: clamp(0.95rem, 1.8vw, 1.25rem);
  max-width: 44rem;
  margin-inline: auto;
}

body[data-page="experience"] .launch-stage__copy {
  display: grid;
  gap: 0.65rem;
  max-width: 35rem;
}

body[data-page="experience"] .launch-stage__copy h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

body[data-page="experience"] .launch-stage__copy .section-description {
  margin: 0;
  max-width: 31rem;
  color: rgba(247, 244, 235, 0.76);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.55;
}

body[data-page="experience"] .launch-stage__panel-shell {
  scroll-margin-top: calc(env(safe-area-inset-top) + 5.5rem);
}

body[data-page="experience"] .launch-stage__panel-shell > .control-panel {
  position: relative;
  inset: auto;
  width: 100%;
  max-height: none;
  max-width: none;
  margin: 0;
  border-radius: 24px;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, var(--stims-white-04), transparent),
    rgba(15, 22, 33, 0.88);
  border: 1px solid rgba(207, 222, 219, 0.12);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 var(--stims-white-04);
  clip-path: none;
  overflow: visible;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__heading {
  margin-bottom: 0.45rem;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__description {
  margin-bottom: 0.9rem;
  color: rgba(247, 244, 235, 0.64);
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: var(--stims-white-03);
  border: 1px solid rgba(207, 222, 219, 0.1);
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__row
  + .control-panel__row {
  margin-top: 0.65rem;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__row--primary {
  border-color: rgba(179, 255, 94, 0.26);
  box-shadow: none;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__text {
  min-width: 0;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__subtext {
  display: block;
  color: rgba(247, 244, 235, 0.84);
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__microcopy {
  color: rgba(247, 244, 235, 0.58);
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__pill {
  border: 1px solid rgba(179, 255, 94, 0.24);
  background: rgba(179, 255, 94, 0.12);
  color: #d7ff9f;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__details {
  margin-top: 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(207, 222, 219, 0.1);
  background: var(--stims-white-02);
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__details
  > summary {
  padding: 0.85rem 0.95rem;
  list-style: none;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__advanced-helper {
  margin: 0;
  padding: 0 0.95rem 0.7rem;
  color: rgba(247, 244, 235, 0.62);
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__advanced {
  padding: 0 0.7rem 0.75rem;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel--embedded {
  margin-top: 0.85rem;
  padding: 0.85rem 0 0;
  border: 0;
  border-top: 1px solid rgba(207, 222, 219, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel--embedded::before {
  display: none;
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__post-start {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(207, 222, 219, 0.08);
}

body[data-page="experience"]
  .launch-stage__panel-shell
  > .control-panel
  .control-panel__post-start[hidden] {
  display: none;
}

body[data-page="experience"] .launch-stage__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(207, 222, 219, 0.08);
}

body[data-page="experience"] .launch-stage__footer-note {
  display: none;
}

body[data-page="experience"] .launch-stage__source-link {
  white-space: nowrap;
}

@media (max-width: 720px) {
  body[data-page="experience"] .launch-intro {
    padding: 0.95rem;
    border-radius: 22px;
  }

  body[data-page="experience"] .launch-stage__copy h1 {
    max-width: 7ch;
    font-size: clamp(2.2rem, 14vw, 3.6rem);
  }

  body[data-page="experience"] .launch-stage__copy .section-description {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  body[data-page="experience"] .shell-header--launch-nav {
    margin-bottom: 0.15rem;
  }

  body[data-page="experience"] .top-nav {
    padding: 0.58rem 0.68rem;
    border-radius: 18px;
  }

  body[data-page="experience"] .brand {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  body[data-page="experience"] .nav-toggle {
    width: auto;
    margin-left: auto;
    min-width: 7.25rem;
  }

  body[data-page="experience"] .launch-stage__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.75rem;
  }

  body[data-page="experience"] .launch-stage__panel-shell > .control-panel {
    padding: 0.95rem;
    border-radius: 20px;
  }

  body[data-page="experience"]
    .launch-stage__panel-shell
    > .control-panel
    .control-panel__row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
  }

  body[data-page="experience"]
    .launch-stage__panel-shell
    > .control-panel
    .control-panel__row
    .cta-button {
    width: 100%;
  }
}
