/**
 * QXR homepage mock: self-contained studio stylesheet.
 * Deliberately does not load styles.css, home-editorial.css, or suite-card-art.css.
 * Those sheets size their own scene art and broke out of these containers.
 * Palette follows the logo: purple on dark grey, teal reserved for research status.
 *
 * QXR Display is self-hosted Sora (SIL OFL) at /assets/fonts/qxr-display/.
 * The splash Q and R stay custom drawings; this face sets the X, headings, and lead.
 */

@font-face {
  font-family: "QXR Display";
  src:
    url("/assets/fonts/qxr-display/Sora-Regular.woff2") format("woff2"),
    url("/assets/fonts/qxr-display/Sora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "QXR Display";
  src:
    url("/assets/fonts/qxr-display/Sora-SemiBold.woff2") format("woff2"),
    url("/assets/fonts/qxr-display/QXRDisplay.ttf") format("truetype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #15141b;
  --bg-sunken: #1a1922;
  --bg-raised: #1f1e29;
  --ink: #f3f2f7;
  --ink-secondary: #b8b5c7;
  --ink-meta: #8b879d;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.075);

  /**
   * Interactive boundaries only. --line resolves to about 1.5:1 against --bg, which fails
   * WCAG 2.2 1.4.11 for a control whose only visual edge is its border. This lands at 3.1:1.
   */
  --line-control: rgba(255, 255, 255, 0.34);

  --accent: #8b7ce8;
  --accent-ink: #14131a;
  --accent-quiet: rgba(139, 124, 232, 0.14);
  --accent-soft: rgba(139, 124, 232, 0.45);
  --signal: #35cbb0;

  --font-display: "QXR Display", "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --page-max: 78rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --head-h: 4.5rem;
  --radius: 4px;
  --motion: 0.22s ease;
  --tap-min: 44px;

  /* Live port: no preview bar. Keep the token so splash height math still resolves. */
  --mock-bar-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Crawler alias line: first node in the splash, clipped so it never paints. */
.splash > .u-sr-only {
  inset: 0 auto auto 0;
  pointer-events: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-meta);
  margin: 0;
}

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line-soft);
}

.section--sunken {
  background: var(--bg-sunken);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  margin: 0.75rem 0 0;
}

.section__lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--ink-secondary);
  max-width: 38rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color var(--motion), color var(--motion);
}

.link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform var(--motion);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/**
 * Buttons read as instrument controls: 2px radius, slight positive tracking, and a border
 * that meets non-text contrast on its own. The ghost variant fills to a faint accent wash on
 * hover rather than only brightening its edge, so the affordance is visible without colour alone.
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  border: 1px solid var(--line-control);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion), border-color var(--motion), color var(--motion);
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent-quiet);
  color: var(--ink);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn--solid:hover {
  background: var(--accent);
  filter: brightness(1.1);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/**
 * Banner. Transparent over the splash, then on scroll it gains a hairline, a denser panel, and
 * a thin accent rule so it reads as instrument chrome docking over the page rather than a bar
 * that was always there. rgba first, color-mix second, for engines without relative colour.
 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 20, 27, 0.72);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background var(--motion), border-color var(--motion);
}

.site-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--motion);
}

.site-head.is-scrolled {
  background: rgba(21, 20, 27, 0.92);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line-soft);
}

.site-head.is-scrolled::after {
  opacity: 0.5;
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--head-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  width: 32px;
  height: 32px;
  max-width: none;
  flex: 0 0 32px;
  border-radius: 6px;
}

.btn.nav-mobile-signin {
  display: none;
}

.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;
}

/* Heavier strokes than the splash instance, because at 17px the splash weights render sub-pixel. */
.brand__q {
  --q-ring: 15;
  --q-tail: 16;
  --q-index: 10;

  margin-right: -0.04em;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.85rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color var(--motion);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/**
 * Mobile menu. The nav used to be display:none under 720px with nothing in its place, which
 * left phones with no way to reach Audio, Research, Games, or About.
 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--tap-min);
  width: var(--tap-min);
  max-width: none;
  height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--line-control);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--motion), background var(--motion);
}

.nav-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-quiet);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  height: 1.5px;
  background: currentColor;
  transition: transform var(--motion), opacity var(--motion);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.splash {
  /**
   * --px and --py are pointer parallax offsets in the range -1 to 1, written by qxr-studio.js.
   * The defaults keep the layers centred when the script has not run.
   * --splash-h is the one source of truth for the panel height: min-height uses it, and the
   * scan line animates exactly that far so the sweep cannot overshoot the panel.
   */
  --px: 0;
  --py: 0;
  --splash-h: calc(100vh - var(--head-h) - var(--mock-bar-h));
  --splash-h: calc(100svh - var(--head-h) - var(--mock-bar-h));

  position: relative;
  min-height: var(--splash-h);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.splash__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  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);
}

.splash__grid {
  position: absolute;
  inset: -4%;
  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);
}

.splash__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: splash-scan 7.5s linear infinite;
}

.splash__inner {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
  width: min(46rem, 100%);
  max-width: 46rem;
  margin-inline: auto;
}

.splash__mark {
  width: 48px;
  height: 48px;
  margin-bottom: clamp(1.35rem, 3.5vh, 2.25rem);
  opacity: 0.85;
}

.splash__title {
  display: grid;
  justify-items: center;
}

.splash__welcome {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.6vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--ink-meta);
  line-height: 1;
  margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
}

.splash__word {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.02em;
  font-family: var(--font-display);
  font-size: clamp(4.75rem, 17vw, 12.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.splash__software {
  display: block;
  margin-top: clamp(1.2rem, 3vh, 1.9rem);
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.7vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  line-height: 1;
  pointer-events: none;
}

.splash__letter {
  display: inline-block;
  color: var(--ink);
  animation: splash-letter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash__letter:nth-child(2) {
  animation-delay: 0.12s;
}

.splash__letter:nth-child(3) {
  animation-delay: 0.24s;
}

.splash__letter:nth-child(4) {
  animation-delay: 0.36s;
}

.splash__letter--accent {
  position: relative;
  color: #8b7ce8;
  animation:
    splash-letter 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both,
    splash-x-purple 11.5s ease-in-out 1.2s infinite,
    splash-x-glow 11.5s ease-in-out 1.2s infinite;
}

.splash__letter--accent::after {
  content: "X";
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  background-image: linear-gradient(
    105deg,
    transparent 32%,
    rgba(232, 226, 255, 0.14) 44%,
    rgba(232, 226, 255, 0.85) 50%,
    rgba(196, 182, 255, 0.33) 56%,
    transparent 68%
  );
  background-size: 240% 100%;
  background-position: 120% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  animation: splash-x-sheen 11.5s ease-in-out 1.2s infinite;
}

@keyframes splash-x-purple {
  0%,
  100% {
    color: #3e2c7e;
  }

  22% {
    color: #5e49c6;
  }

  45% {
    color: #8b7ce8;
  }

  68% {
    color: #c1b3fe;
  }

  84% {
    color: #8b7ce8;
  }
}

@keyframes splash-x-glow {
  0%,
  100% {
    text-shadow: 0 0 0.057em rgba(88, 70, 176, 0.19);
  }

  45% {
    text-shadow:
      0 0 0.11em rgba(139, 124, 232, 0.43),
      0 0 0.36em rgba(180, 168, 255, 0.33);
  }

  68% {
    text-shadow:
      0 0 0.15em rgba(196, 182, 255, 0.52),
      0 0 0.48em rgba(139, 124, 232, 0.38);
  }
}

@keyframes splash-x-sheen {
  0%,
  18% {
    background-position: 120% 50%;
  }

  52% {
    background-position: -20% 50%;
  }

  100% {
    background-position: -20% 50%;
  }
}

/**
 * Custom Q, shared by the splash wordmark and the header lockup. Drawn rather than set, so the
 * wordmark is not reducible to a licensed typeface: a squared aperture ring with an open
 * bottom-right corner, a chamfered 45 degree tail, and a purple index arc concentric with the
 * top-left corner.
 *
 * Stroke weights are custom properties because the glyph is used at 12rem and at 17px. Hairlines
 * that read correctly on the splash disappear in the header, so the small instance overrides them.
 * Everything else is in em or viewBox units and scales on its own.
 *
 * The 112 unit artboard puts the ring baseline at y 86, so translateY(0.232em) drops the box
 * bottom below the text baseline until the ring sits on it. Both callers align on baseline.
 */
.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(--accent);
  stroke-width: var(--q-index);
  stroke-linecap: round;
}

.splash__letter--q {
  margin-right: -0.05em;
  color: var(--ink);
}

.splash__letter--q .qmark {
  width: 1.12em;
  height: 1.12em;
  --q-ring: 15.5;
  --q-tail: 16.5;
  --q-index: 6.5;
  transform: translateY(0.12em);
}

/**
 * Custom R, splash only. Same 112 unit artboard and stroke language as the Q so the
 * wordmark is three designed glyphs, not a drawn Q, a living X, and a leftover letter.
 * The R stays a little smaller and its index arc is quieter so the Q still leads.
 */
.rmark {
  --r-stem: 13;
  --r-bowl: 13;
  --r-leg: 14;
  --r-index: 4;

  display: block;
  width: 1em;
  height: 1em;
  transform: translateY(0.232em);
  overflow: visible;
}

.rmark__stem,
.rmark__bowl,
.rmark__leg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.rmark__stem,
.rmark__bowl {
  stroke-width: var(--r-stem);
}

.rmark__leg {
  stroke-width: var(--r-leg);
}

.rmark__index {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--r-index);
  stroke-linecap: round;
}

.splash__letter--r {
  margin-left: -0.02em;
  color: var(--ink);
}

.splash__letter--r .rmark {
  transform: translateY(0.12em);
}

.splash__lead {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 500;
  color: var(--ink-secondary);
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
  line-height: 1.55;
  letter-spacing: -0.02em;
  word-spacing: 0.04em;
  text-align: center;
  text-wrap: pretty;
}

/**
 * Spectrum analyser, not a waveform. Bars read as audio metering; a single travelling
 * trace read as a heartbeat, which is the wrong industry entirely.
 */
.splash__spectrum {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 0.9vw, 7px);
  width: min(28rem, 82vw);
  height: clamp(2.5rem, 6vh, 3.5rem);
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 clamp(1.6rem, 3.5vh, 2.25rem);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.splash__spectrum span {
  width: clamp(3px, 0.45vw, 4px);
  height: var(--h, 50%);
  background: currentColor;
  opacity: 0.26;
  transform-origin: center bottom;
  animation: splash-bar 2.7s ease-in-out infinite alternate;
}

.splash__spectrum span:nth-child(3n + 2) {
  color: var(--accent);
  opacity: 0.6;
}

.splash__spectrum span:nth-child(8n + 5) {
  color: var(--signal);
  opacity: 0.5;
}

.splash__spectrum span:nth-child(3n + 1) {
  animation-duration: 2.2s;
}

.splash__spectrum span:nth-child(3n) {
  animation-duration: 3.4s;
}

.splash__spectrum span:nth-child(1) {
  --h: 88%;
  animation-delay: 0s;
}

.splash__spectrum span:nth-child(2) {
  --h: 62%;
  animation-delay: 0.09s;
}

.splash__spectrum span:nth-child(3) {
  --h: 100%;
  animation-delay: 0.18s;
}

.splash__spectrum span:nth-child(4) {
  --h: 54%;
  animation-delay: 0.27s;
}

.splash__spectrum span:nth-child(5) {
  --h: 76%;
  animation-delay: 0.36s;
}

.splash__spectrum span:nth-child(6) {
  --h: 40%;
  animation-delay: 0.45s;
}

.splash__spectrum span:nth-child(7) {
  --h: 66%;
  animation-delay: 0.54s;
}

.splash__spectrum span:nth-child(8) {
  --h: 92%;
  animation-delay: 0.63s;
}

.splash__spectrum span:nth-child(9) {
  --h: 48%;
  animation-delay: 0.72s;
}

.splash__spectrum span:nth-child(10) {
  --h: 70%;
  animation-delay: 0.81s;
}

.splash__spectrum span:nth-child(11) {
  --h: 34%;
  animation-delay: 0.9s;
}

.splash__spectrum span:nth-child(12) {
  --h: 58%;
  animation-delay: 0.99s;
}

.splash__spectrum span:nth-child(13) {
  --h: 82%;
  animation-delay: 1.08s;
}

.splash__spectrum span:nth-child(14) {
  --h: 44%;
  animation-delay: 1.17s;
}

.splash__spectrum span:nth-child(15) {
  --h: 64%;
  animation-delay: 1.26s;
}

.splash__spectrum span:nth-child(16) {
  --h: 30%;
  animation-delay: 1.35s;
}

.splash__spectrum span:nth-child(17) {
  --h: 52%;
  animation-delay: 1.44s;
}

.splash__spectrum span:nth-child(18) {
  --h: 74%;
  animation-delay: 1.53s;
}

.splash__spectrum span:nth-child(19) {
  --h: 38%;
  animation-delay: 1.62s;
}

.splash__spectrum span:nth-child(20) {
  --h: 56%;
  animation-delay: 1.71s;
}

.splash__spectrum span:nth-child(21) {
  --h: 26%;
  animation-delay: 1.8s;
}

.splash__spectrum span:nth-child(22) {
  --h: 46%;
  animation-delay: 1.89s;
}

.splash__spectrum span:nth-child(23) {
  --h: 62%;
  animation-delay: 1.98s;
}

.splash__spectrum span:nth-child(24) {
  --h: 32%;
  animation-delay: 2.07s;
}

/**
 * Full-bleed flex, not left:50% + translateX. splash-rise ends at transform:none,
 * which used to cancel the centering translate and leave SCROLL left of the line.
 */
.splash__scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--ink-meta);
  text-decoration: none;
  transition: color var(--motion);
  animation: splash-scroll-in 0.9s ease 1.5s both;
}

.splash__scroll:hover {
  color: var(--accent);
}

.splash__scroll-line {
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(180deg, transparent, var(--accent));
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 100%);
  animation: splash-scroll-drop 2.4s ease-in-out infinite;
}

.splash__scroll-word {
  display: block;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  line-height: 1;
}

.splash__fade {
  animation: splash-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/**
 * Entrance order of .splash__inner children: 1 mark, 2 title, 3 spectrum, 4 lead.
 * The title's own delay is set on .splash__welcome, since the Q, X, and R stagger separately.
 */
.splash__welcome.splash__fade {
  animation-delay: 0.1s;
}

.splash__software.splash__fade {
  animation-delay: 0.5s;
}

.splash__inner > .splash__fade:nth-child(3) {
  animation-delay: 0.55s;
}

.splash__inner > .splash__fade:nth-child(4) {
  animation-delay: 0.95s;
}

@keyframes splash-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes splash-scroll-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splash-letter {
  from {
    opacity: 0;
    transform: translateY(0.16em) scale(0.98);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes splash-scan {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(var(--splash-h));
  }
}

@keyframes splash-bar {
  from {
    transform: scaleY(0.42);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes splash-underline {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes splash-scroll-drop {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(-30%);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  padding: clamp(5.25rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  scroll-margin-top: var(--head-h);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  margin: 1.15rem 0 0;
  max-width: 30ch;
}

.hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-secondary);
  max-width: 44ch;
}

.hero__facts {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.fact__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-meta);
}

.fact__value {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/**
 * Quick links to the two things that are actually live. Promoted from a flat divided strip to
 * two panels so they carry weight, but they stay inside the existing accent-rule language used
 * by .pillar and .motto-band rather than becoming loud cards.
 */
.access {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.access__head {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.access__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.access__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem 1.5rem;
  min-height: var(--tap-min);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-soft);
  border-radius: 2px;
  background: var(--bg);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--motion), background var(--motion);
}

/* Accent wash that wipes in from the left edge, so hover is not signalled by colour alone. */
.access__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-quiet), transparent 60%);
  opacity: 0;
  transition: opacity var(--motion);
}

.access__item:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.access__item:hover::before {
  opacity: 1;
}

.access__label {
  position: relative;
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-meta);
}

.access__name {
  position: relative;
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color var(--motion);
}

.access__text {
  position: relative;
  grid-column: 1;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.access__go {
  position: relative;
  grid-column: 1 / -1;
  grid-row: auto;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.access__go::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}

.access__item:hover .access__name {
  color: var(--accent);
}

.access__item:hover .access__go {
  color: var(--bg);
  filter: brightness(1.08);
}

.access__item:hover .access__go::after {
  transform: translateX(3px);
}

.access__item--support {
  background: #1c1810;
  border-left-color: #e8c478;
}

.access__item--support .access__go {
  background: #e8c478;
  color: #1a1408;
}

.access__item--support:hover .access__go {
  color: #1a1408;
}

.home-thanks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 1.25rem;
  background: #e8c478;
  color: #1a1408;
}

.home-thanks p {
  margin: 0;
  font-weight: 700;
}

.home-thanks a {
  color: #1a1408;
  font-weight: 800;
  text-decoration: underline;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.35rem;
  border-top: 2px solid var(--accent);
}

.pillar__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ink-meta);
}

.pillar__title {
  font-size: 1.3125rem;
}

.pillar__text {
  color: var(--ink-secondary);
  font-size: 0.9688rem;
}

.pillar .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--motion), transform var(--motion);
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.work-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line-soft);
}

.work-card__media > svg,
.work-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  flex: 1;
}

.work-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-meta);
}

.work-card__title {
  font-size: 1.25rem;
}

.work-card__text {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.work-card__go {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}

.work-card__go::after {
  content: " →";
  display: inline-block;
  transition: transform var(--motion);
}

.work-card:hover .work-card__go::after {
  transform: translateX(3px);
}

.research-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.research-row {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr) minmax(0, 14rem);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line-soft);
}

.research-row__title {
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
}

.research-row__text {
  color: var(--ink-secondary);
  font-size: 0.9688rem;
}

.research-row__meta {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-meta);
}

.research-row__status {
  color: var(--signal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-row__ref {
  overflow-wrap: anywhere;
}

.disclosure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-quiet);
}

.disclosure__text {
  color: var(--ink-secondary);
  font-size: 0.9688rem;
  max-width: 52ch;
}

.standards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.standard__title {
  font-size: 1.1875rem;
  margin-bottom: 0.6rem;
}

.standard__text {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.standard--motto {
  padding-top: 1.35rem;
  border-top: 2px solid var(--accent);
}

.standard--motto .standard__title {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: var(--accent);
}

.motto-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-quiet);
}

.motto-band__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-meta);
  margin-bottom: 0.85rem;
}

.motto-band__title {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
}

.motto-band__title em {
  font-style: normal;
  position: relative;
  color: var(--accent);
}

.motto-band__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

[data-reveal].is-visible .motto-band__title em::after {
  animation: splash-underline 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.motto-band__text {
  margin-top: 0.75rem;
  color: var(--ink-secondary);
  max-width: 56ch;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.closing__title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.closing__text {
  margin-top: 0.85rem;
  color: var(--ink-secondary);
  max-width: 40ch;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--ink-meta);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-foot a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ink);
}

.viz {
  color: var(--ink);
}

.viz__grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.viz__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.26;
}

.viz__accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.viz__dot {
  fill: var(--accent);
}

.viz__block {
  fill: currentColor;
  opacity: 0.12;
}

.mock-bar {
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-meta);
  padding: 0.55rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
}

.mock-bar a {
  color: var(--accent);
  text-decoration: none;
}

.mock-bar a:hover {
  text-decoration: underline;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .pillars,
  .work-grid,
  .standards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .research-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 12rem);
  }

  .research-row__text {
    grid-column: 1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--line);
  }

  .site-head.is-nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line-soft);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: var(--tap-min);
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--ink);
  }

  .site-nav a::after {
    display: none;
  }

  .head-actions {
    order: 2;
    margin-left: auto;
    flex-wrap: nowrap;
  }

  .head-actions .btn {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .pillars,
  .work-grid,
  .standards,
  .access__grid,
  .research-row {
    grid-template-columns: 1fr;
  }

  .research-row__meta {
    grid-column: 1;
  }

  .access__go {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.85rem;
  }

  .btn--sm {
    min-height: var(--tap-min);
  }

  .disclosure,
  .closing,
  .motto-band {
    grid-template-columns: 1fr;
  }
}

/**
 * Small phones. The mark plus two buttons plus the toggle no longer fit beside the wordmark, so
 * the wordmark is dropped and the mark carries the brand. The link keeps its accessible name from
 * the sibling .u-sr-only span, which is why this can be a plain display: none.
 */
@media (max-width: 560px) {
  .brand__name {
    display: none;
  }

  .site-head__inner {
    gap: 0.4rem;
  }

  .head-actions {
    gap: 0.3rem;
  }

  .head-actions .btn {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .splash__fade,
  .splash__letter,
  .splash__letter--accent,
  .splash__letter--accent::after,
  .splash__scan,
  .splash__spectrum span,
  .splash__scroll,
  .splash__scroll-line,
  .motto-band__title em::after {
    animation: none;
  }

  .splash__letter--accent {
    color: var(--accent);
    text-shadow: none;
  }

  .splash__letter--accent::after {
    content: none;
    animation: none;
  }

  .motto-band__title em::after {
    transform: scaleX(1);
  }

  .splash__glow,
  .splash__grid {
    transform: none;
  }

  .btn,
  .link-arrow,
  .link-arrow::after,
  .site-head,
  .site-head::after,
  .splash__scroll,
  .site-nav a,
  .site-nav a::after,
  .nav-toggle,
  .nav-toggle__bars span,
  .access__item,
  .access__item::before,
  .access__name,
  .access__go,
  .access__go::after,
  .work-card,
  .work-card__go::after,
  [data-reveal] {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .work-card:hover {
    transform: none;
  }
}

/**
 * Inner public pages. Same tokens and chrome as the splash home, so the mock site
 * navigates as one studio rather than a splash plus leftover production sheets.
 */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-top: 0.85rem;
  max-width: 22ch;
}

.page-hero__lead {
  margin-top: 1.15rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-secondary);
  max-width: 44ch;
}

.page-hero .page-follow {
  margin-top: 1.25rem;
}

.page-body {
  padding: var(--section-y) 0;
}

.page-body--narrow {
  max-width: 46rem;
}

.page-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 2.25rem 0 0.75rem;
}

.page-copy h2:first-child {
  margin-top: 0;
}

.page-copy p,
.page-copy li {
  color: var(--ink-secondary);
}

.page-copy p + p {
  margin-top: 0.85rem;
}

.page-copy a {
  color: var(--accent);
  text-decoration: none;
}

.page-copy a:hover {
  text-decoration: underline;
}

.page-copy ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
}

.page-copy__fine {
  font-size: 0.875rem;
  color: var(--ink-meta);
  line-height: 1.55;
}

.page-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.error-hero .eyebrow {
  color: var(--accent);
}

.error-hero .page-hero__title {
  max-width: 16ch;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-soft);
  border-radius: 2px;
  background: var(--bg-sunken);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-meta);
}

.prog-outer {
  height: 6px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.prog-inner {
  height: 100%;
  width: 0;
  background: var(--accent);
}

.prog-inner--sample {
  width: 7.5%;
}

.hub-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hub-switch button,
.hub-switch a {
  min-height: var(--tap-min);
}

.hub-panel[hidden] {
  display: none;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.catalog--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-meta);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-control);
  border-radius: 2px;
  background: var(--bg-sunken);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field--check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.field--check label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.auth-shell {
  min-height: calc(100svh - var(--head-h) - var(--mock-bar-h));
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 5rem) var(--gutter);
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--bg-raised);
}

.auth-card--wide {
  max-width: 32rem;
}

.auth-card__title {
  font-size: 1.5rem;
  margin: 0.35rem 0 0.5rem;
}

.auth-card__lead {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.35rem;
}

.form-err {
  color: #e07070;
  font-size: 0.875rem;
}

.form-ok {
  color: var(--signal);
  font-size: 0.875rem;
}

.help-box {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  background: var(--accent-quiet);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .stat-row,
  .catalog,
  .catalog--3 {
    grid-template-columns: 1fr;
  }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.game-card__swatch {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(28rem 16rem at 30% 20%, rgba(139, 124, 232, 0.28), transparent 70%),
    var(--bg-sunken);
  border-bottom: 1px solid var(--line-soft);
}

.game-card__swatch--hsqi {
  background: linear-gradient(180deg, #0095da, #34b5e8 60%, #ffd90f 110%);
}

.game-card__swatch--vaios {
  background:
    radial-gradient(20rem 12rem at 70% 30%, rgba(53, 203, 176, 0.28), transparent 70%),
    #0a0c12;
}

.game-card__swatch--worlds {
  background:
    radial-gradient(12rem 12rem at 25% 40%, rgba(150, 230, 110, 0.35), transparent 55%),
    radial-gradient(12rem 12rem at 70% 35%, rgba(110, 180, 255, 0.3), transparent 55%),
    #0a0814;
}

.game-card__swatch--forest {
  background: linear-gradient(180deg, #0a1826 0%, #0d2818 62%, #143220 100%);
}

.game-card__swatch--sysorus {
  background:
    radial-gradient(circle at 40% 35%, rgba(180, 120, 255, 0.28), transparent 50%),
    #0a0818;
}

.game-card__swatch--racer {
  background: linear-gradient(180deg, #0b0e18 0%, #1a2238 100%);
}

.game-card__swatch--keep {
  background: linear-gradient(180deg, #1a2840 0%, #3d5a7a 40%, #8b7355 100%);
}

.game-card__swatch--pickers {
  background: radial-gradient(ellipse 130% 70% at 50% 100%, #1c5b2a 0%, #06150a 100%);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-soft);
  border-radius: 2px;
  background: var(--bg-raised);
  text-align: left;
}

.tier__amt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.exec-shell {
  min-height: calc(100svh - var(--mock-bar-h));
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.exec-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--head-h);
}

.exec-nav__mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.exec-nav__badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-control);
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
}

.exec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 1.5rem;
}

.exec-tabs button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.exec-panel[hidden] {
  display: none;
}

.exec-mail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.exec-mail button {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.exec-mail button.is-unread {
  color: var(--ink);
}

.exec-mail button.is-unread .exec-mail__sub {
  color: var(--accent);
}

.exec-mail__when,
.exec-mail__from {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-meta);
}

.exec-dialog {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 9, 14, 0.72);
}

.exec-dialog[hidden] {
  display: none;
}

.exec-dialog__card {
  width: min(36rem, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--bg-raised);
}

@media (max-width: 860px) {
  .game-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }
}

.exec-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-left: auto;
}

.exec-who__name {
  font-weight: 600;
}

.exec-who__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-control);
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
}

.exec-who__mail {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-meta);
}

.exec-card {
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-soft);
  border-radius: 2px;
  background: var(--bg-raised);
}

.exec-card h2,
.exec-card h3 {
  margin: 0 0 0.65rem;
}

.exec-card p {
  color: var(--ink-secondary);
  margin: 0 0 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-meta);
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-control);
  border-radius: 2px;
  color: var(--ink-secondary);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.file-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-meta);
}

.exec-compose {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.exec-compose select,
.exec-compose input,
.exec-compose textarea {
  width: 100%;
}

.game-detail__swatch {
  aspect-ratio: 21 / 8;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}

.checkout {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
}

@media (max-width: 860px) {
  .exec-mail button {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .exec-who {
    margin-left: 0;
  }
}

.qxr-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  padding: 0.9rem 1.15rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  background: rgba(21, 20, 27, 0.96);
  color: var(--ink-secondary);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.qxr-cookie-bar p {
  margin: 0;
  flex: 1 1 16rem;
  max-width: 40rem;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.015em;
  word-spacing: 0.08em;
  text-align: left;
}

.qxr-cookie-bar a {
  color: var(--signal);
  text-decoration: underline;
}

.qxr-cookie-bar button {
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .qxr-cookie-bar {
    justify-content: stretch;
  }

  .qxr-cookie-bar button {
    width: 100%;
  }
}
