/**
 * Live studio look overlay. Tokens and chrome only. Does not change routes or copy.
 * Load after styles.css / home-editorial.css.
 * // _qxr.web
 */

:root {
  --studio-bg: #15141b;
  --studio-raised: #1f1e29;
  --studio-ink: #f3f2f7;
  --studio-muted: #8b879d;
  --studio-accent: #8b7ce8;
  --studio-accent-ink: #14131a;
  --studio-signal: #35cbb0;
  --studio-line: rgba(255, 255, 255, 0.13);
  --studio-line-soft: rgba(255, 255, 255, 0.075);
  --studio-line-control: rgba(255, 255, 255, 0.34);
  --studio-quiet: rgba(139, 124, 232, 0.14);
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--studio-bg);
  background-image: none;
  color: var(--studio-ink);
}

.site-header {
  background: rgba(21, 20, 27, 0.72);
  background: color-mix(in srgb, var(--studio-bg) 72%, transparent);
  border-bottom-color: transparent;
  height: auto;
  min-height: var(--nav-h);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--studio-accent), transparent);
  opacity: 0;
}

.site-header.is-scrolled {
  background: rgba(21, 20, 27, 0.92);
  background: color-mix(in srgb, var(--studio-bg) 92%, transparent);
  border-bottom-color: var(--studio-line-soft);
}

.site-header.is-scrolled::after {
  opacity: 0.5;
}

@media (min-width: 721px) {
  .logo {
    min-width: 12.25rem;
  }
}

.logo.is-studio {
  gap: 0.6rem;
}

.logo.is-studio .brand__name {
  margin-left: 0.6rem;
}

.logo.is-studio .logo__img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand__name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--studio-ink);
}

.brand__q {
  --q-ring: 15;
  --q-tail: 16;
  --q-index: 10;
  margin-right: -0.04em;
}

.qmark {
  --q-ring: 14;
  --q-tail: 15;
  --q-index: 5;
  display: block;
  width: 1.02em;
  height: 1.02em;
  transform: translateY(0.232em);
  overflow: visible;
}

.qmark__ring,
.qmark__tail {
  fill: none;
  stroke: currentColor;
  stroke-linecap: butt;
}

.qmark__ring {
  stroke-width: var(--q-ring);
}

.qmark__tail {
  stroke-width: var(--q-tail);
}

.qmark__index {
  fill: none;
  stroke: var(--studio-accent);
  stroke-width: var(--q-index);
  stroke-linecap: round;
}

.site-nav a {
  color: #b8b5c7;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--studio-ink);
  border-bottom-color: var(--studio-accent);
}

.btn {
  border-radius: 2px;
  border: 1px solid var(--studio-line-control);
  letter-spacing: 0.01em;
}

.btn--accent {
  background: var(--studio-accent);
  border-color: var(--studio-accent);
  color: var(--studio-accent-ink);
}

.btn--accent:hover {
  background: var(--studio-accent);
  filter: brightness(1.1);
  transform: none;
}

.btn--lime {
  background: #b8f045;
  border-color: #b8f045;
  color: #14131a;
}

.btn--lime:hover {
  background: #cdf057;
  border-color: #cdf057;
  color: #14131a;
  filter: none;
}

.btn--ghost {
  background: transparent;
  color: var(--studio-ink);
  border: 1px solid var(--studio-line-control);
}

.btn--ghost:hover {
  background: var(--studio-quiet);
  border-color: var(--studio-accent);
}

.btn--hsqi-daily {
  background: var(--studio-accent);
  border-color: var(--studio-accent);
  color: var(--studio-accent-ink);
}

.page-hero h1,
.section__title,
.home-title,
h1, h2, h3, h4 {
  font-family: var(--font-display);
}

.card,
.rail-card,
.game-card,
.spotlight,
.standard,
.fund-tier,
.auth-card,
.team-card,
.pillar {
  border-radius: 2px;
  background: var(--studio-raised);
  border: 1px solid var(--studio-line);
}

.home-welcome {
  --px: 0;
  --py: 0;
  min-height: 100vh;
  border-bottom: 1px solid var(--studio-line-soft);
}

.home-welcome--compact {
  min-height: 100vh;
}

@supports (min-height: 1svh) {
  .home-welcome,
  .home-welcome--compact {
    min-height: 100svh;
  }
}

.home-welcome__orb {
  display: none;
}

.home-welcome__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(139, 124, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 124, 232, 0.08) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px;
  mask-image: radial-gradient(ellipse 62% 58% at 50% 45%, #000 8%, transparent 76%);
  transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -8px), 0);
  opacity: 1;
}

.home-welcome__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  pointer-events: none;
  background:
    radial-gradient(42rem 26rem at 50% 40%, rgba(139, 124, 232, 0.16), transparent 72%),
    radial-gradient(26rem 18rem at 74% 76%, rgba(53, 203, 176, 0.06), transparent 74%);
  transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 14px), 0);
}

.home-welcome__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 124, 232, 0.55) 22%, rgba(53, 203, 176, 0.5) 78%, transparent);
  opacity: 0.5;
  animation: studio-scan 7.5s linear infinite;
}

.home-welcome__tag {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--studio-muted);
}

.home-welcome__title {
  font-family: var(--font-display);
  font-weight: 600;
}

.home-welcome__main {
  display: inline-flex;
  align-items: baseline;
  font-size: 3.4rem;
  font-size: clamp(3.4rem, 12vw, 8rem);
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.home-welcome__main .qmark {
  --q-ring: 14;
  --q-tail: 15;
  --q-index: 5;
  margin-right: -0.07em;
}

.home-welcome__lead {
  color: #b8b5c7;
  max-width: 42ch;
}

.splash__spectrum {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  gap: clamp(4px, 0.9vw, 7px);
  width: 82%;
  max-width: 28rem;
  height: 2.75rem;
  height: clamp(2.5rem, 6vh, 3.5rem);
  margin: 1.5rem auto 1.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--studio-line-soft);
}

.splash__spectrum span {
  width: 3px;
  width: clamp(3px, 0.45vw, 4px);
  height: var(--h, 50%);
  margin: 0 2px;
  background: currentColor;
  opacity: 0.26;
  transform-origin: center bottom;
  animation: studio-bar 2.7s ease-in-out infinite alternate;
}

@supports (gap: 5px) {
  .splash__spectrum span {
    margin: 0;
  }
}

.splash__spectrum span:nth-child(3n + 2) {
  color: var(--studio-accent);
  opacity: 0.6;
}

.splash__spectrum span:nth-child(8n + 5) {
  color: var(--studio-signal);
  opacity: 0.5;
}

.splash__spectrum span:nth-child(1) { --h: 88%; }
.splash__spectrum span:nth-child(2) { --h: 62%; }
.splash__spectrum span:nth-child(3) { --h: 100%; }
.splash__spectrum span:nth-child(4) { --h: 54%; }
.splash__spectrum span:nth-child(5) { --h: 76%; }
.splash__spectrum span:nth-child(6) { --h: 40%; }
.splash__spectrum span:nth-child(7) { --h: 66%; }
.splash__spectrum span:nth-child(8) { --h: 92%; }
.splash__spectrum span:nth-child(9) { --h: 48%; }
.splash__spectrum span:nth-child(10) { --h: 70%; }
.splash__spectrum span:nth-child(11) { --h: 34%; }
.splash__spectrum span:nth-child(12) { --h: 58%; }
.splash__spectrum span:nth-child(13) { --h: 82%; }
.splash__spectrum span:nth-child(14) { --h: 44%; }
.splash__spectrum span:nth-child(15) { --h: 64%; }
.splash__spectrum span:nth-child(16) { --h: 30%; }
.splash__spectrum span:nth-child(17) { --h: 52%; }
.splash__spectrum span:nth-child(18) { --h: 74%; }
.splash__spectrum span:nth-child(19) { --h: 38%; }
.splash__spectrum span:nth-child(20) { --h: 56%; }
.splash__spectrum span:nth-child(21) { --h: 26%; }
.splash__spectrum span:nth-child(22) { --h: 46%; }
.splash__spectrum span:nth-child(23) { --h: 62%; }
.splash__spectrum span:nth-child(24) { --h: 32%; }

.home-section,
.rail-card,
.spotlight,
.cta-band,
.discipline {
  border-color: var(--studio-line-soft);
}

.auth-card {
  background: var(--studio-raised);
  border: 1px solid var(--studio-line);
  border-left: 2px solid var(--studio-accent);
}

.auth-title,
.auth-card h1 {
  font-family: var(--font-display);
}

.btn-full {
  background: var(--studio-accent);
  color: var(--studio-accent-ink);
  border-radius: 2px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--studio-accent);
  outline: 2px solid var(--studio-accent);
  outline-offset: 2px;
}

body.exec-portal {
  --bg: #15141b;
  --surface: #1f1e29;
  --surface2: #1a1922;
  --border: rgba(255, 255, 255, 0.13);
  --accent: #8b7ce8;
  --silver: #f3f2f7;
  --text: #f3f2f7;
  --muted: #8b879d;
  --ok: #35cbb0;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-lg: 4px;
  background: var(--studio-bg);
}

body.exec-portal nav {
  background: var(--studio-raised);
  border-bottom: 1px solid var(--studio-line-soft);
}

body.exec-portal .staff-tab.is-active {
  background: var(--studio-accent);
  color: var(--studio-accent-ink);
  border-color: var(--studio-accent);
  border-radius: 2px;
}

body.exec-portal .btn {
  border-radius: 2px;
}

@keyframes studio-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

@keyframes studio-bar {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .home-welcome__scan,
  .splash__spectrum span,
  .home-welcome__grid,
  .home-welcome__glow {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .site-nav {
    z-index: 210;
  }

  .site-nav.is-open {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(21, 20, 27, 0.98);
  }

  .btn.nav-mobile-signin {
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  .brand__name {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .brand__name {
    display: none;
  }

  .logo {
    min-width: 0;
  }

  .home-welcome__main {
    font-size: 2.6rem;
  }

  .home-welcome__lead {
    font-size: 1rem;
    max-width: 36ch;
  }

  .splash__spectrum {
    width: 88%;
    margin-left: auto;
    margin-right: auto;
  }
}
