@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #161719;
  --muted: #62666d;
  --paper: #f4f1eb;
  --paper-strong: #fffaf1;
  --line: rgba(22, 23, 25, 0.16);
  --night: #111418;
  --night-soft: #1c2428;
  --green: #6ca86f;
  --blue: #4d7fa8;
  --amber: #d6a648;
  --red: #b85242;
  --xone-yellow: #F8EF24;
  --xone-black: #050708;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(17, 20, 24, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("site_assets/studio-background.png") center / cover no-repeat;
  opacity: 0.24;
  filter: saturate(0.82) contrast(1.05);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 241, 235, 0.95), rgba(244, 241, 235, 0.82)),
    repeating-linear-gradient(90deg, rgba(22, 23, 25, 0.045) 0 1px, transparent 1px 96px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(244, 241, 235, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 22%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a,
.button,
.copy-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 250, 241, 0.72);
}

.nav a:hover,
.button:hover,
.copy-button:hover {
  border-color: rgba(22, 23, 25, 0.34);
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  color: var(--paper-strong);
  background: var(--ink);
  border-color: var(--ink);
}

.button.primary {
  color: var(--paper-strong);
  background: var(--ink);
  border-color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.75) contrast(1.08);
}

.hero-media.portrait {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.68;
}

.hero-media.portrait img {
  object-position: center center;
  filter: saturate(0.92) contrast(1.08);
  mask-image: linear-gradient(90deg, #000, #000);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 241, 235, 0.96), rgba(244, 241, 235, 0.74) 56%, rgba(244, 241, 235, 0.92)),
    repeating-linear-gradient(90deg, rgba(22, 23, 25, 0.055) 0 1px, transparent 1px 96px);
}

.merged-hero::after {
  background:
    linear-gradient(90deg, rgba(244, 241, 235, 0.96), rgba(244, 241, 235, 0.76) 52%, rgba(244, 241, 235, 0.34)),
    repeating-linear-gradient(90deg, rgba(22, 23, 25, 0.055) 0 1px, transparent 1px 96px);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.hero.tab-panel.is-active {
  display: grid;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: clamp(23px, 3vw, 38px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  color: #34383d;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(22, 23, 25, 0.1);
  border-radius: 6px;
}

.metric {
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.intro-band,
.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
  background-color: rgba(244, 241, 235, 0.88);
}

.intro-band {
  background: rgba(255, 250, 241, 0.9);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-grid > p,
.section-grid .copy-card {
  align-self: start;
}

.section-head {
  max-width: 900px;
  margin: 0 auto 34px;
}

.section-head p:not(.eyebrow),
.intro-band p {
  color: var(--muted);
  font-size: 18px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.case-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(17, 20, 24, 0.07);
}

.dark .case-card {
  color: #f3efe7;
  background: #181d21;
  border-color: rgba(255, 250, 241, 0.14);
}

.dark .case-card.featured {
  background: #202420;
}

.dark .case-subtitle,
.dark .case-card p,
.dark .spec-list dt,
.dark .problem {
  color: #bdc4c8;
}

.dark .problem {
  background: rgba(255, 250, 241, 0.055);
}

.dark .spec-list div {
  border-top-color: rgba(255, 250, 241, 0.13);
}

.dark .tag.shipped {
  color: #8fd99a;
}

.dark .tag.lab {
  color: #e8c374;
}

.case-card.featured {
  background: #fbf3e3;
}

.case-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #394047;
  background: rgba(22, 23, 25, 0.06);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.tag.shipped {
  color: #254b2a;
  background: rgba(108, 168, 111, 0.22);
}

.tag.lab {
  color: #6e4f16;
  background: rgba(214, 166, 72, 0.24);
}

.case-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.media-placeholder,
.audio-slots,
.ab-widget {
  min-height: 132px;
  border: 1px solid rgba(22, 23, 25, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(77, 127, 168, 0.16), transparent),
    repeating-linear-gradient(45deg, rgba(22, 23, 25, 0.06) 0 1px, transparent 1px 12px);
}

.media-placeholder {
  display: grid;
  place-items: center;
  color: #3d454c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.grid-like {
  background:
    linear-gradient(90deg, transparent 49%, rgba(22, 23, 25, 0.16) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(22, 23, 25, 0.16) 49% 51%, transparent 51%),
    linear-gradient(135deg, rgba(108, 168, 111, 0.16), rgba(214, 166, 72, 0.16));
}

.audio-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.audio-slots div,
.ab-widget > div {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #3d454c;
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid rgba(22, 23, 25, 0.12);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ab-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}

.ab-widget > div {
  gap: 10px;
  padding: 12px;
}

.wave {
  width: 100%;
  height: 38px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 13px);
  clip-path: polygon(0 48%, 8% 16%, 15% 62%, 24% 22%, 35% 70%, 46% 18%, 58% 62%, 70% 32%, 82% 75%, 100% 44%, 100% 100%, 0 100%);
}

.wave.dipped {
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 13px);
  clip-path: polygon(0 58%, 12% 45%, 24% 65%, 36% 50%, 48% 68%, 60% 48%, 72% 63%, 84% 52%, 100% 58%, 100% 100%, 0 100%);
}

.problem {
  padding: 14px;
  color: #30363b;
  background: rgba(22, 23, 25, 0.055);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(22, 23, 25, 0.11);
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  font-weight: 750;
}

.dark {
  color: #f3efe7;
  background: rgba(17, 20, 24, 0.94);
}

.dark .section-head p:not(.eyebrow) {
  color: #b9c0c5;
}



.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.case-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.case-links a:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.dark .case-links a {
  color: #f3efe7;
  background: rgba(255, 250, 241, 0.08);
  border-color: rgba(255, 250, 241, 0.18);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 250, 241, 0.16);
  border: 1px solid rgba(255, 250, 241, 0.16);
}

.map-grid article {
  min-height: 240px;
  padding: 24px;
  background: linear-gradient(145deg, var(--night), var(--night-soft));
}

.map-index {
  color: var(--amber-text);
  font-weight: 950;
}

.map-grid h3 {
  margin-top: 32px;
  font-size: 25px;
}

.map-grid p {
  color: #c3c8cc;
}

.story-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.story-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.story-list span {
  color: var(--red-text);
  font-weight: 950;
}

.story-list h3 {
  font-size: 22px;
}

.story-list p {
  color: var(--muted);
}



.production-overview {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  transition: transform 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.production-overview:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.production-overview[hidden] {
  display: none;
}

.dark .production-overview {
  color: #f3efe7;
  background: rgba(255, 250, 241, 0.08);
  border-color: rgba(255, 250, 241, 0.18);
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  transition: grid-template-columns 300ms ease-in-out;
}

.production-grid.has-active {
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  align-items: start;
}

.production-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  opacity: 1;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}

.production-group:first-child,
.production-group-archive {
  grid-column: auto;
}

.production-grid:not(.has-active) .production-group:first-child,
.production-grid:not(.has-active) .production-group-archive {
  grid-column: 1 / -1;
}

.production-grid.has-active .production-group.is-open {
  grid-column: 2;
  grid-row: 1 / span 12;
  order: 2;
}

.production-grid.has-active .production-group.is-compact {
  grid-column: 1;
  order: 1;
}

.production-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  min-height: 240px;
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(17, 20, 24, 0.07);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform 300ms ease-in-out, border-color 300ms ease-in-out, box-shadow 300ms ease-in-out, min-height 300ms ease-in-out, padding 300ms ease-in-out;
}

.production-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 82, 66, 0.45);
}

.production-card.wide {
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
}

.production-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: rgba(17, 20, 24, 0.06);
  border-radius: 10px;
  transition: transform 300ms ease-in-out, aspect-ratio 300ms ease-in-out, border-radius 300ms ease-in-out;
}

.production-card h3 {
  margin-top: 18px;
  transition: font-size 300ms ease-in-out;
}

.production-card p,
.open-link {
  transition: opacity 220ms ease-in-out, transform 220ms ease-in-out;
}

.production-card p {
  color: var(--muted);
}

.open-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--red-text);
  font-size: 13px;
  font-weight: 900;
}

.production-grid.has-active .production-group.is-open .production-card {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 24px;
}

.production-grid.has-active .production-group.is-open .production-card img {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.production-grid.has-active .production-group.is-open .production-card h3 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.96;
}

.production-grid.has-active .production-group.is-compact .production-card {
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 104px;
  gap: 12px;
  padding: 10px;
  align-items: center;
}

.production-grid.has-active .production-group.is-compact .production-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.production-grid.has-active .production-group.is-compact .production-card h3 {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.04;
}

.production-grid.has-active .production-group.is-compact .production-card p,
.production-grid.has-active .production-group.is-compact .open-link {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  position: absolute;
}

.production-grid.has-active .production-group.is-compact .tag {
  font-size: 11px;
}

.production-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: rgba(255, 250, 241, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: productionContentIn 300ms ease-in-out both;
}

.production-items-archive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.production-items[hidden] {
  display: none;
}

.production-group.is-open .production-items .production-item {
  animation: productionReferenceIn 300ms ease-in-out both;
}

.production-group.is-open .production-items .production-item:nth-child(2n) {
  animation-delay: 80ms;
}

.production-group.is-open .production-items .production-item:nth-child(3n) {
  animation-delay: 160ms;
}

@keyframes productionContentIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes productionReferenceIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.production-stage {
  max-width: min(980px, 100%);
  margin: 0 auto 18px;
  padding: 12px;
  background: rgba(17, 20, 24, 0.94);
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.production-stage[hidden] {
  display: none;
}

.production-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
  color: var(--paper-strong);
}

.production-stage-head > div {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.production-stage-head a,
.production-stage-head button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--paper-strong);
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.production-local-player,
.production-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #050607;
  border-radius: 6px;
}

.production-local-player {
  object-fit: contain;
  cursor: pointer;
}

.production-audio-player {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px;
  background: #050607;
  border-radius: 6px;
}

.production-embed {
  border: 0;
}

.production-local-player[hidden],
.production-audio-player[hidden],
.production-embed[hidden] {
  display: none;
}

.production-source-card {
  display: grid;
  gap: 8px;
  min-height: 180px;
  place-items: center;
  padding: 20px;
  color: var(--paper-strong);
  background: #050607;
  border-radius: 6px;
  text-align: center;
}

.production-source-card[hidden] {
  display: none;
}

.games-section {
  background: rgba(255, 250, 241, 0.92);
}

.games-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.production-grid.games-catalog:not(.has-active) .production-group:first-child {
  grid-column: auto;
}

.production-grid.games-catalog.has-active .production-group.is-open {
  grid-column: 2;
}

.production-grid.games-catalog.has-active .production-group.is-compact {
  grid-column: 1;
}

.game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.game-filters span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: #394047;
  background: rgba(22, 23, 25, 0.06);
  border: 1px solid rgba(22, 23, 25, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.game-filters .is-active {
  color: var(--paper-strong);
  background: var(--ink);
  border-color: var(--ink);
}

.game-card h3 {
  font-size: clamp(28px, 3vw, 42px);
}

.game-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-card p {
  color: var(--muted);
}

.game-items {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 14px;
  background: rgba(17, 20, 24, 0.08);
}

.game-items .production-item {
  min-height: 210px;
  justify-content: flex-end;
  padding: 14px;
  color: var(--paper-strong);
  background: #111418;
  border-color: rgba(255, 250, 241, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 20, 24, 0.14);
}

.game-items .production-item::before {
  inset: 0;
  opacity: 0.95;
  filter: saturate(1.08) contrast(1.02);
}

.game-items .production-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.05), rgba(5, 6, 7, 0.82));
  z-index: 0;
}

.game-items .production-item strong,
.game-items .production-item span {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  color: var(--paper-strong);
  background: rgba(5, 6, 7, 0.72);
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 6px;
}

.game-items .production-item strong {
  font-size: 15px;
}

.game-items .production-item span {
  color: rgba(255, 250, 241, 0.78);
  font-size: 12px;
}

.game-meta {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 23, 25, 0.11);
}

.game-meta span {
  color: #394047;
  font-size: 13px;
  font-weight: 850;
}

.game-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.game-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  color: var(--paper-strong);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.game-case {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(17, 20, 24, 0.1);
}

.game-visual {
  display: grid;
  align-content: start;
  gap: 12px;
}

.game-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(17, 20, 24, 0.08);
  border-radius: var(--radius);
}

.game-visual-actions,
.game-breakdown {
  display: grid;
  gap: 10px;
}

.game-visual-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-visual-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: var(--paper-strong);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.game-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.game-copy h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
}

.game-copy > p:not(.case-subtitle) {
  color: var(--muted);
}

.game-specs {
  margin-top: 4px;
}

.game-breakdown {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-breakdown article {
  min-height: 180px;
  padding: 18px;
  background: rgba(22, 23, 25, 0.045);
  border: 1px solid rgba(22, 23, 25, 0.1);
  border-radius: var(--radius);
}

.game-breakdown span {
  color: var(--red);
  font-weight: 950;
}

.game-breakdown h4 {
  margin: 26px 0 8px;
  font-size: 22px;
}

.game-breakdown p {
  margin-bottom: 0;
  color: var(--muted);
}

.production-item {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  color: #24282d;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(22, 23, 25, 0.12);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.production-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--production-thumb);
  background-position: center;
  background-size: cover;
  filter: blur(1px) saturate(1.05) contrast(1.03);
  opacity: 0.62;
  transform: scale(1.02);
}

.production-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.46), rgba(255, 250, 241, 0.7));
}



.production-item.featured-reference {
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.18);
}

.production-item.featured-reference::before {
  opacity: 0.82;
}

.production-item:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 82, 66, 0.45);
}

.production-item.local {
  border-color: rgba(108, 168, 111, 0.28);
}

.production-item.source-only {
  background: rgba(255, 250, 241, 0.58);
  border-style: dashed;
}

.production-item.source-only::before {
  opacity: 0.28;
  filter: blur(2px) grayscale(0.35);
}

.production-item.local span::before {
  content: "Local - ";
  color: #254b2a;
}

.production-item.source-only span::before {
  content: "Source - ";
  color: #6e4f16;
}

.production-items strong {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  background: rgba(255, 250, 241, 0.78);
  border-radius: 5px;
  font-size: 17px;
  line-height: 1.14;
}

.production-items span {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  background: rgba(255, 250, 241, 0.72);
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1180px;
  margin: 18px auto 0;
}

.client-strip .production-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #30363b;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.client-strip .production-link:hover {
  border-color: rgba(184, 82, 66, 0.45);
  color: var(--red-text);
}

.reference-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 22px auto 0;
}

.reference-column {
  padding: 18px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reference-column h3 {
  margin-bottom: 14px;
  font-size: 21px;
}

.reference-column .production-link {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: #34383d;
  background: transparent;
  border-top: 1px solid rgba(22, 23, 25, 0.1);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
}

.reference-column .production-link:hover {
  color: var(--red-text);
}

.reels-section {
  background: rgba(239, 235, 227, 0.9);
  border-block: 1px solid var(--line);
}

.reel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto 16px;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.reel-stage {
  max-width: min(980px, 100%);
  margin: 0 auto 18px;
  padding: 12px;
  background: rgba(17, 20, 24, 0.94);
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.reel-stage[hidden] {
  display: none;
}

.reel-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
  color: var(--paper-strong);
}

.reel-stage-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-stage-head button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--paper-strong);
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.reel-stage-player {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 360px;
  background: #050607;
  border-radius: 6px;
  object-fit: contain;
  cursor: pointer;
}

.reel-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(17, 20, 24, 0.07);
}

.reel-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--paper-strong);
  background: #111418;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.reel-thumb img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.reel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
}

.reel-thumb span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px 0 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(255, 96, 24, 0.42), 0 2px 0 rgba(255, 255, 255, 0.18) inset;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.reel-thumb span::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.reel-thumb span::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 25px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--orange-strong);
}

.reel-thumb:hover img {
  transform: scale(1.04);
  filter: contrast(1.08);
}

.reel-thumb:hover span,
.reel-thumb:focus-visible span {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(255, 96, 24, 0.52), 0 0 0 4px rgba(255, 122, 0, 0.18);
}

.reel-card > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.reel-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.reel-card p {
  color: var(--muted);
  font-size: 14px;
}

.reel-card a {
  margin-top: auto;
  color: var(--red-text);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.reel-card a:hover {
  text-decoration: underline;
}

.resume-section {
  background: rgba(255, 250, 241, 0.9);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline div,
.contact-card a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgba(22, 23, 25, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline strong {
  color: var(--red-text);
}

.timeline span {
  font-weight: 750;
}

.contact-section {
  color: #f3efe7;
  background: rgba(17, 20, 24, 0.94);
}

.contact-section .eyebrow {
  color: var(--amber-text);
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card a {
  grid-template-columns: 1fr;
  color: #f3efe7;
  background: rgba(255, 250, 241, 0.07);
  border-color: rgba(255, 250, 241, 0.15);
  font-weight: 850;
  text-decoration: none;
}

.evidence {
  background: #e8e5df;
  border-block: 1px solid var(--line);
}

.evidence-section {
  background: rgba(232, 229, 223, 0.9);
  border-block: 1px solid var(--line);
}

.usage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.usage-graph {
  margin: 0;
  padding: 12px;
  background: #111923;
  border: 1px solid rgba(22, 23, 25, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.usage-graph img {
  width: 100%;
  border-radius: 6px;
}

.usage-graph figcaption {
  margin-top: 10px;
  color: #c7ced5;
  font-size: 13px;
}

.usage-stats {
  display: grid;
  gap: 10px;
}

.usage-stats div {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-stats span:last-child {
  color: var(--muted);
  font-weight: 800;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.proof-grid div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-grid strong {
  font-size: 18px;
}

.proof-grid span {
  color: var(--muted);
  font-size: 14px;
}

.cv-section {
  background: var(--paper-strong);
}

.copy-card {
  position: relative;
}

.copy-button {
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
}

pre {
  min-height: 440px;
  margin: 0;
  padding: 62px 18px 18px;
  overflow: auto;
  white-space: pre-wrap;
  color: #f6f0e6;
  background: #17191c;
  border-radius: var(--radius);
  font: 14px/1.6 "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: #f3efe7;
  background: var(--ink);
}

.footer strong,
.footer span {
  display: block;
}

.footer span {
  color: #bec4c8;
}



@media (max-width: 980px) {
  .production-grid,
  .production-grid.has-active {
    grid-template-columns: 1fr;
  }

  .production-grid.has-active .production-group.is-open,
  .production-grid.has-active .production-group.is-compact {
    grid-column: 1;
    grid-row: auto;
  }

  .production-grid.has-active .production-group.is-compact .production-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .production-items,
  .production-items-archive {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .case-grid,
  .map-grid,
  .games-catalog,
  .game-case,
  .game-breakdown,
  .production-grid,
  .production-card,
  .production-card.wide,
  .reference-library,
  .reel-grid,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .production-card.wide {
    grid-column: auto;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-list article {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .story-list p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-media.portrait {
    width: 100%;
    height: 420px;
    opacity: 0.26;
  }

  .hero-panel div,
  .spec-list div,
  .audio-slots,
  .ab-widget,
  .game-actions,
  .game-visual-actions,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}


/* Design Bible shared motion rules */
:root { --motion-fast: 200ms; --motion-max: 300ms; }
body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, .metric, .brand strong { font-family: "Space Grotesk", Inter, ui-sans-serif, sans-serif; letter-spacing: 0; }
.site-header, .button, .copy-button, .production-item, .production-card, .reel-card, .case-card, .proof-card, .story-list article { transition-duration: var(--motion-fast); }
.production-item:hover, .reel-card:hover, .case-card:hover, .proof-card:hover { transform: translateY(-8px) scale(1.02); }


/* Theme A: WC26 Creative */
:root {
  --ink: #111111;
  --muted: #555b64;
  --paper: #f7f6f2;
  --paper-strong: #ffffff;
  --line: rgba(17,17,17,0.12);
  --night: #14121f;
  --night-soft: #241a42;
  --green: #00d97e;
  --blue: #005bff;
  --amber: #ff6a00;
  --red: #f72585;
  --purple: #6a00ff;
  --red-text: #c51d6a;
  --amber-text: #a54400;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(22, 21, 45, 0.16);
}
body { background: #f7f6f2; }
body::before {
  opacity: 1;
  filter: none;
  background:
    linear-gradient(135deg, transparent 0 56%, rgba(106,0,255,.22) 56% 66%, transparent 66%),
    radial-gradient(circle at 84% 14%, rgba(247,37,133,.22), transparent 23%),
    radial-gradient(circle at 12% 22%, rgba(0,91,255,.22), transparent 25%),
    linear-gradient(90deg, rgba(0,217,126,.16), transparent 42%);
}
body::after {
  background:
    linear-gradient(90deg, rgba(247,246,242,.94), rgba(247,246,242,.82)),
    repeating-linear-gradient(90deg, rgba(17,17,17,.05) 0 1px, transparent 1px 112px);
}
.site-header { background: #f7f6f2; border-bottom: 1px solid var(--line); box-shadow: none; }
.brand-mark { border-radius: 999px; outline: 3px solid #00d97e; outline-offset: 3px; }
.nav a { border-radius: 999px; border-color: rgba(17,17,17,.12); background: #fff; }
.nav a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #6a00ff, #005bff 50%, #f72585); border-color: transparent; }
.hero { min-height: calc(100vh - 64px); padding-inline: clamp(24px, 6vw, 92px); }
.hero::before { content:""; position:absolute; inset: 9% 5% auto auto; width:min(560px,44vw); aspect-ratio:1.4; border-radius:48px; background: linear-gradient(135deg,#6a00ff,#005bff 40%,#00d97e 70%,#ff6a00); transform: rotate(-6deg); z-index:0; }
.hero-media { width:min(520px,42vw); height:min(420px,46vh); inset:auto 8vw 11vh auto; border-radius:34px; overflow:hidden; box-shadow: var(--shadow); }
.merged-hero::after { background: linear-gradient(90deg, rgba(247,246,242,.98), rgba(247,246,242,.75) 55%, rgba(247,246,242,.32)); }
.hero h1 { max-width: 980px; font-size: clamp(54px, 8vw, 124px); line-height: .88; text-transform: uppercase; }
.eyebrow { color: #6a00ff; font-weight: 900; letter-spacing: .08em; }
.button, .copy-button { min-height:44px; border-radius:999px; border-color: rgba(17,17,17,.14); background:#fff; }
.button.primary { background: #111; color:#fff; border-color:#111; }
.hero-panel, .copy-card, .case-card, .proof-card, .story-list article, .reel-card, .production-card, .production-items { background:#fff; border-radius:18px; border:1px solid rgba(17,17,17,.11); box-shadow:none; }
.production-card:hover, .reel-card:hover, .case-card:hover { box-shadow: 0 24px 60px rgba(106,0,255,.14); border-color:#6a00ff; }
.production-item { min-height:150px; border-radius:18px; border-color: rgba(17,17,17,.13); }
.production-item::before { opacity:.76; filter:saturate(1.18) contrast(1.06); }
.production-item::after { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.7)); }
.production-items strong, .production-items span { background: rgba(255,255,255,.82); border-radius: 12px; }
.footer { background:#111; color:#fff; border-top:0; }

/* Game soundtrack gallery: Wendy-style project tiles */
.game-items {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 14px;
  background: rgba(17, 20, 24, 0.08);
}
.game-items .production-item {
  min-height: 210px;
  justify-content: flex-end;
  padding: 14px;
  color: var(--paper-strong);
  background: #111418;
  border-color: rgba(255, 250, 241, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 20, 24, 0.14);
}
.game-items .production-item::before {
  opacity: 0.95;
  filter: saturate(1.08) contrast(1.02);
}
.game-items .production-item::after {
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.05), rgba(5, 6, 7, 0.82));
}
.game-items .production-item strong,
.game-items .production-item span {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  color: var(--paper-strong);
  background: rgba(5, 6, 7, 0.72);
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 6px;
}
.game-items .production-item span {
  color: rgba(255, 250, 241, 0.78);
}

/* Wendy-style soundtrack rows */
.game-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 24px 10px;
  background: var(--paper-strong);
  border-color: var(--line);
}
.game-demo-link {
  justify-self: start;
  margin: 18px 0 8px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.soundtrack-list {
  display: grid;
  width: 100%;
  border-top: 1px solid rgba(22, 23, 25, 0.14);
}
.soundtrack-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 26px;
  width: 100%;
  min-height: 80px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22, 23, 25, 0.14);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.track-play {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(22, 23, 25, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.track-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--ink);
}
.soundtrack-row.is-playing .track-play::before {
  width: 12px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, var(--ink) 0 35%, transparent 35% 65%, var(--ink) 65% 100%);
}
.track-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.track-duration {
  justify-self: end;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.soundtrack-missing {
  margin: 18px 0;
  color: var(--muted);
  font-weight: 750;
}
.soundcloud-reference {
  margin-top: 14px;
}
@media (max-width: 680px) {
  .game-items { padding-inline: 14px; }
  .soundtrack-row { grid-template-columns: 46px minmax(0, 1fr) 52px; gap: 14px; min-height: 72px; }
  .track-play { width: 44px; height: 44px; }
}

/* Strong game demo CTA */
.game-demo-link {
  justify-self: stretch;
  min-height: 74px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px;
  padding: 12px 16px;
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--ink), #2c3036);
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(17, 20, 24, 0.18);
  text-decoration: none;
}
.game-demo-link:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}
.demo-icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  background: var(--paper-strong);
  border-radius: 50%;
}
.demo-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--ink);
}
.game-demo-link strong,
.game-demo-link small {
  display: block;
}
.game-demo-link strong {
  font-size: 18px;
  line-height: 1.1;
}
.game-demo-link small {
  margin-top: 3px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* White/orange + dark/orange theme pass */
:root,
:root[data-theme="light"] {
  --orange: #ff6a1a;
  --orange-strong: #f0521b;
  --orange-soft: rgba(255, 106, 26, 0.14);
  --paper: #f8f6f1;
  --paper-strong: #ffffff;
  --ink: #101114;
  --muted: #5e636b;
  --line: rgba(16, 17, 20, 0.12);
  --shadow: 0 22px 56px rgba(16, 17, 20, 0.08);
}

:root[data-theme="dark"] {
  --paper: #111111;
  --paper-strong: #191919;
  --ink: #fff8ef;
  --muted: #c6bbb0;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

body {
  background: var(--paper);
  color: var(--ink);
}

body::before {
  opacity: 0;
}

body::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 96%, transparent), color-mix(in srgb, var(--paper) 86%, transparent)),
    linear-gradient(135deg, rgba(255, 106, 26, 0.09), transparent 44%, rgba(255, 106, 26, 0.08));
}

.site-header {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--line);
}

.theme-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange-strong);
}

[data-theme-icon] {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset -6px -4px 0 rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] [data-theme-icon] {
  background: #fff8ef;
  box-shadow: inset -7px -4px 0 var(--orange);
}

.nav a,
.hero-panel,
.copy-card,
.case-card,
.proof-card,
.story-list article,
.reel-card,
.production-card,
.production-items,
.reference-card,
.soundtrack-row,
.tag {
  background-color: var(--paper-strong);
  border-color: var(--line);
  color: var(--ink);
}

.nav a[aria-current="page"],
.nav a:hover,
.button.primary,
.game-card-demo,
.copy-button {
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  border-color: transparent;
  color: #ffffff;
}

.production-card:hover,
.reel-card:hover,
.case-card:hover,
.proof-card:hover,
.soundtrack-row:hover {
  border-color: var(--orange);
  box-shadow: 0 20px 48px rgba(255, 106, 26, 0.16);
}

.game-card {
  cursor: default;
}

.game-card-body {
  min-width: 0;
}

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.game-card-demo {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(255, 106, 26, 0.25);
}

.game-card-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255, 106, 26, 0.34);
}

.game-card-demo .demo-icon {
  width: 28px;
  height: 28px;
  background: #ffffff;
}

.game-card-demo .demo-icon::before {
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 10px;
  border-left-color: var(--orange);
}

.game-card-references {
  min-height: 48px;
  padding: 0 16px;
  color: var(--orange-strong);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 106, 26, 0.25);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.game-card-references:hover {
  background: rgba(255, 106, 26, 0.2);
}

.game-items .game-demo-link {
  display: none;
}

:root[data-theme="dark"] .production-card,
:root[data-theme="dark"] .production-items,
:root[data-theme="dark"] .hero-panel,
:root[data-theme="dark"] .copy-card,
:root[data-theme="dark"] .case-card,
:root[data-theme="dark"] .proof-card,
:root[data-theme="dark"] .story-list article,
:root[data-theme="dark"] .reel-card,
:root[data-theme="dark"] .soundtrack-row,
:root[data-theme="dark"] .reference-card {
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .tag.shipped {
  background: rgba(255, 106, 26, 0.2);
  color: #ffd5bf;
}

:root[data-theme="dark"] .track-play {
  background: #fff8ef;
}

:root[data-theme="dark"] .track-play::before {
  border-left-color: #111111;
}

@media (max-width: 680px) {
  .theme-toggle {
    align-self: stretch;
    justify-content: center;
  }

  .game-card-actions {
    gap: 8px;
  }

  .game-card-demo,
  .game-card-references {
    flex: 1 1 150px;
    justify-content: center;
  }
}

/* Production premium dark layout */
:root[data-theme="dark"] {
  --paper: #07090a;
  --paper-strong: #0d0f10;
  --surface-soft: #121415;
  --ink: #f5f5f3;
  --muted: #a5a7aa;
  --line: rgba(255, 255, 255, 0.1);
  --orange: #ff5a0a;
  --orange-strong: #ff3d00;
  --green: #28e879;
}

:root[data-theme="dark"] body {
  background: #07090a;
}

:root[data-theme="dark"] body::before {
  opacity: 0;
}

:root[data-theme="dark"] body::after {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 90, 10, 0.18), transparent 30%),
    radial-gradient(circle at 16% 86%, rgba(40, 232, 121, 0.08), transparent 26%),
    linear-gradient(180deg, #07090a, #080a0b 46%, #060707);
}

:root[data-theme="dark"] .section,
:root[data-theme="dark"] .tab-panel.is-active {
  background-color: transparent;
}

:root[data-theme="dark"] .site-header {
  min-height: 76px;
  padding-block: 14px;
  background: rgba(7, 9, 10, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .brand-mark {
  outline-color: var(--green);
  box-shadow: 0 0 22px rgba(40, 232, 121, 0.26);
}

:root[data-theme="dark"] .nav a,
:root[data-theme="dark"] .theme-toggle {
  background: rgba(13, 15, 16, 0.82);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f5f3;
}

:root[data-theme="dark"] .nav a[aria-current="page"] {
  background: linear-gradient(135deg, #ff6a00, #ff3d00);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(255, 90, 10, 0.34);
}

:root[data-theme="dark"] #production {
  width: 100%;
  max-width: none;
  padding-top: 58px;
  color: #f5f5f3;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 90, 10, 0.15), transparent 32%),
    linear-gradient(180deg, #07090a, #080a0b 58%, #060707);
}

.production-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  width: min(100%, 1400px);
  margin: 0 auto 24px;
}

.production-hero-copy .eyebrow {
  color: var(--orange);
  letter-spacing: 0.1em;
}

.production-hero-copy h2 {
  max-width: 720px;
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.98;
}

.production-hero-copy h2 span {
  color: var(--orange);
}

.xone-highlight {
  color: var(--xone-yellow);
  background: var(--xone-black);
  padding: 0 0.16em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.production-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.production-wave {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  opacity: 0.95;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.production-wave::before {
  content: "";
  position: absolute;
  width: min(560px, 42vw);
  height: 230px;
  background: radial-gradient(circle, rgba(255, 90, 10, 0.22), transparent 66%);
  filter: blur(20px);
}

.production-wave span {
  position: relative;
  width: 8px;
  height: calc(34px + (var(--i, 1) * 9px));
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.18), #ff5a0a 45%, rgba(255, 90, 10, 0.18));
  box-shadow: 0 0 22px rgba(255, 90, 10, 0.32);
}

.production-wave span:nth-child(1) { --i: 5; }
.production-wave span:nth-child(2) { --i: 11; }
.production-wave span:nth-child(3) { --i: 7; }
.production-wave span:nth-child(4) { --i: 16; }
.production-wave span:nth-child(5) { --i: 9; }
.production-wave span:nth-child(6) { --i: 20; }
.production-wave span:nth-child(7) { --i: 13; }
.production-wave span:nth-child(8) { --i: 8; }
.production-wave span:nth-child(9) { --i: 19; }
.production-wave span:nth-child(10) { --i: 10; }
.production-wave span:nth-child(11) { --i: 17; }
.production-wave span:nth-child(12) { --i: 6; }
.production-wave span:nth-child(13) { --i: 14; }
.production-wave span:nth-child(14) { --i: 21; }
.production-wave span:nth-child(15) { --i: 12; }
.production-wave span:nth-child(16) { --i: 18; }
.production-wave span:nth-child(17) { --i: 7; }
.production-wave span:nth-child(18) { --i: 15; }
.production-wave span:nth-child(19) { --i: 9; }
.production-wave span:nth-child(20) { --i: 22; }
.production-wave span:nth-child(21) { --i: 11; }
.production-wave span:nth-child(22) { --i: 16; }
.production-wave span:nth-child(23) { --i: 8; }
.production-wave span:nth-child(24) { --i: 13; }

.production-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: min(100%, 1400px);
  margin: 0 auto 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(18, 20, 21, 0.92), rgba(9, 11, 12, 0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.production-stats div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.production-stats div:last-child {
  border-right: 0;
}

.production-stats i,
.quick-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  box-shadow: inset 0 0 0 5px rgba(255, 90, 10, 0.16);
}

.production-stats strong {
  color: #f5f5f3;
  font-size: 26px;
  line-height: 1;
}

.production-stats span {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.production-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  width: min(100%, 1400px);
  margin: 0 auto;
  gap: 24px;
  align-items: start;
}

:root[data-theme="dark"] #production .production-grid:not(.has-active) {
  grid-template-columns: 1.08fr 0.86fr;
  gap: 22px;
}

:root[data-theme="dark"] #production .production-grid:not(.has-active) .production-group:first-child {
  grid-column: 1;
  grid-row: span 1;
}

:root[data-theme="dark"] #production .production-card {
  min-height: 216px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(18, 20, 21, 0.96), rgba(9, 11, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] #production .production-group:first-child .production-card {
  border-left: 4px solid var(--green);
}

:root[data-theme="dark"] #production .production-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 10, 0.58);
  box-shadow: 0 26px 70px rgba(255, 90, 10, 0.13);
}

:root[data-theme="dark"] #production .production-card img {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 220ms ease, filter 220ms ease;
}

:root[data-theme="dark"] #production .production-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.05);
}

:root[data-theme="dark"] #production .production-card h3 {
  margin: 14px 0 10px;
  color: #f5f5f3;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.02;
}

:root[data-theme="dark"] #production .production-card p {
  color: #aeb0b2;
  line-height: 1.5;
}

:root[data-theme="dark"] #production .tag.shipped {
  background: rgba(255, 90, 10, 0.16);
  color: #ff9a61;
  border-color: rgba(255, 90, 10, 0.22);
}

:root[data-theme="dark"] #production .open-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--orange);
  font-weight: 900;
}

:root[data-theme="dark"] #production .open-link::after {
  content: " ->";
  margin-left: 4px;
}

.production-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0;
}

.quick-panel,
.connect-panel {
  padding: 22px;
  background: linear-gradient(145deg, rgba(18, 20, 21, 0.96), rgba(8, 10, 11, 0.98));
  border: 1px solid var(--line);
}

.quick-panel {
  border-radius: 18px 18px 0 0;
}

.connect-panel {
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.quick-panel h3,
.connect-panel h3 {
  margin: 0 0 16px;
  color: var(--ink);
}

.quick-panel a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.quick-panel a + a {
  margin-top: 8px;
}

.quick-panel a:hover {
  background: rgba(255, 255, 255, 0.045);
}

.quick-panel a:hover b {
  transform: translateX(4px);
}

.quick-panel strong,
.quick-panel small {
  grid-column: 2;
}

.quick-panel strong {
  font-size: 14px;
}

.quick-panel small,
.connect-panel p {
  color: var(--muted);
}

.quick-panel b {
  color: var(--orange);
  transition: transform 200ms ease;
}

.connect-actions {
  display: flex;
  gap: 10px;
}

.connect-actions a {
  min-width: 46px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  color: #dffff0;
  background: rgba(40, 232, 121, 0.1);
  border: 1px solid rgba(40, 232, 121, 0.28);
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.footer {
  justify-content: center;
  align-items: center;
  gap: 28px;
  background: #07090a;
  color: #9b9d9f;
}

.footer i {
  width: 1px;
  height: 22px;
  background: var(--orange);
}

@media (max-width: 1100px) {
  .production-shell,
  .production-hero {
    grid-template-columns: 1fr;
  }

  .production-sidebar {
    position: static;
  }

  .production-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .production-stats div {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  :root[data-theme="dark"] #production {
    padding-top: 36px;
  }

  .production-hero-copy h2 {
    font-size: clamp(40px, 12vw, 48px);
  }

  .production-wave {
    min-height: 170px;
  }

  .production-stats,
  :root[data-theme="dark"] #production .production-grid:not(.has-active) {
    grid-template-columns: 1fr;
  }
}

/* Contrast and layout correction pass */
.production-shell {
  grid-template-columns: 1fr;
}

.production-sidebar,
.quick-panel,
.connect-panel {
  display: none;
}

:root[data-theme="dark"] #production .production-grid:not(.has-active) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:root[data-theme="dark"] #production .production-grid.has-active {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
}

:root[data-theme="dark"] #production .production-grid.has-active .production-group.is-open {
  grid-column: 2;
}

:root[data-theme="dark"] #production .production-grid.has-active .production-group.is-compact {
  grid-column: 1;
}

:root[data-theme="light"] .hero-content h1 {
  color: #111316;
  text-shadow: none;
}

:root[data-theme="light"] .hero-copy {
  color: #24282d;
}

:root[data-theme="light"] .merged-hero::after {
  background: linear-gradient(90deg, rgba(248, 246, 241, 0.92), rgba(248, 246, 241, 0.68), rgba(248, 246, 241, 0.2));
}

:root[data-theme="light"] .hero-panel {
  color: #f7f7f2;
  background: rgba(8, 10, 11, 0.92);
}

:root[data-theme="dark"] .hero-content h1,
:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .hero-panel,
:root[data-theme="dark"] .intro-band,
:root[data-theme="dark"] .section,
:root[data-theme="dark"] .case-card,
:root[data-theme="dark"] .proof-card,
:root[data-theme="dark"] .reel-card,
:root[data-theme="dark"] .copy-card,
:root[data-theme="dark"] .story-list article {
  color: #f5f5f3;
}

:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .section p,
:root[data-theme="dark"] .case-card p,
:root[data-theme="dark"] .proof-card p,
:root[data-theme="dark"] .reel-card p,
:root[data-theme="dark"] .copy-card p,
:root[data-theme="dark"] .story-list p {
  color: #c9cbd0;
}

:root[data-theme="dark"] .production-items strong,
:root[data-theme="dark"] .production-items span {
  color: #f5f5f3;
  background: rgba(7, 9, 10, 0.72);
}

:root[data-theme="dark"] .game-items .track-title,
:root[data-theme="dark"] .game-items .track-duration {
  color: #f5f5f3;
  background: transparent;
}

:root[data-theme="dark"] .game-items .track-duration {
  color: #d8dadd;
}

:root[data-theme="dark"] .soundtrack-row {
  color: #f5f5f3;
  background: rgba(255, 255, 255, 0.015);
}

:root[data-theme="dark"] .soundtrack-row:hover {
  background: rgba(255, 90, 10, 0.07);
}

:root[data-theme="dark"] .soundtrack-row.is-playing .track-title {
  color: #ffb287;
}

:root[data-theme="dark"] .game-card p,
:root[data-theme="dark"] .soundtrack-missing {
  color: #c9cbd0;
}

:root[data-theme="dark"] .tag:not(.shipped) {
  color: #f1d7c9;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  :root[data-theme="dark"] #production .production-grid.has-active,
  :root[data-theme="dark"] #production .production-grid:not(.has-active) {
    grid-template-columns: 1fr;
  }

  :root[data-theme="dark"] #production .production-grid.has-active .production-group.is-open,
  :root[data-theme="dark"] #production .production-grid.has-active .production-group.is-compact {
    grid-column: 1;
  }
}

/* Final parity/audio interaction pass */
:root[data-theme="light"] .site-header {
  min-height: 76px;
  padding-block: 14px;
}

:root[data-theme="light"] .hero,
:root[data-theme="dark"] .hero {
  min-height: calc(100vh - 76px);
  padding-inline: clamp(24px, 6vw, 92px);
}

:root[data-theme="light"] .hero h1,
:root[data-theme="dark"] .hero h1 {
  max-width: 980px;
  font-size: clamp(54px, 8vw, 124px);
  line-height: 0.88;
  text-transform: uppercase;
}

:root[data-theme="dark"] .merged-hero::after {
  background: linear-gradient(90deg, rgba(248, 246, 241, 0.92), rgba(248, 246, 241, 0.7), rgba(248, 246, 241, 0.26));
}

:root[data-theme="dark"] .hero-content h1 {
  color: #111316;
  text-shadow: none;
}

:root[data-theme="dark"] .hero-copy {
  color: #24282d;
}

:root[data-theme="dark"] .hero-content .eyebrow {
  color: #5b2cff;
}

:root[data-theme="dark"] .hero-actions .button:not(.primary) {
  color: #111316;
  background: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] .hero-panel {
  color: #f7f7f2;
  background: rgba(8, 10, 11, 0.92);
}

:root[data-theme="dark"] #production .production-group:nth-child(1) .production-card {
  border-left: 4px solid var(--green);
}

:root[data-theme="dark"] #production .production-group:nth-child(2) .production-card {
  border-left: 4px solid #ff7a00;
}

:root[data-theme="dark"] #production .production-group:nth-child(3) .production-card {
  border-left: 4px solid #168bff;
}

:root[data-theme="dark"] #production .production-group:nth-child(4) .production-card {
  border-left: 4px solid #d948ff;
}

.soundtrack-row {
  grid-template-columns: 54px minmax(180px, 0.9fr) minmax(180px, 1.1fr) 64px;
}

.track-progress {
  width: 100%;
  accent-color: var(--orange);
  cursor: pointer;
}

.track-progress::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 90, 10, 0.9), rgba(255, 90, 10, 0.32));
}

.track-progress::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--orange);
  box-shadow: 0 0 18px rgba(255, 90, 10, 0.35);
  -webkit-appearance: none;
  appearance: none;
}

.track-progress::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 90, 10, 0.45);
}

.track-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--orange);
}

:root[data-theme="dark"] .track-play {
  background: linear-gradient(135deg, #ff6a1a, #ff3d00);
  box-shadow: 0 10px 24px rgba(255, 90, 10, 0.28);
}

:root[data-theme="dark"] .track-play::before {
  border-left-color: #ffffff;
}

:root[data-theme="dark"] .soundtrack-row.is-playing .track-play {
  background: #07090a;
  border: 1px solid rgba(255, 90, 10, 0.45);
}

:root[data-theme="dark"] .soundtrack-row.is-playing .track-play::before {
  background: linear-gradient(90deg, #ffffff 0 35%, transparent 35% 65%, #ffffff 65% 100%);
}

:root[data-theme="dark"] .game-items .track-title,
:root[data-theme="dark"] .game-items .track-duration {
  color: #f5f5f3;
  font-weight: 850;
}

:root[data-theme="dark"] .soundtrack-row.is-playing .track-title {
  color: #ffb287;
}

@media (max-width: 680px) {
  .soundtrack-row {
    grid-template-columns: 46px minmax(0, 1fr) 54px;
  }

  .track-progress {
    grid-column: 2 / -1;
  }
}

:root[data-theme="light"] #production .production-grid:not(.has-active),
:root[data-theme="dark"] #production .production-grid:not(.has-active) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:root[data-theme="light"] #production .production-grid:not(.has-active) .production-group:first-child,
:root[data-theme="dark"] #production .production-grid:not(.has-active) .production-group:first-child {
  grid-column: auto;
}

:root[data-theme="light"] #production .production-card {
  min-height: 216px;
}

:root[data-theme="light"] #production .production-group:nth-child(1) .production-card {
  border-left: 4px solid #28e879;
}

:root[data-theme="light"] #production .production-group:nth-child(2) .production-card {
  border-left: 4px solid #ff7a00;
}

:root[data-theme="light"] #production .production-group:nth-child(3) .production-card {
  border-left: 4px solid #168bff;
}

:root[data-theme="light"] #production .production-group:nth-child(4) .production-card {
  border-left: 4px solid #d948ff;
}

:root[data-theme="dark"] .game-items .track-play {
  background: linear-gradient(135deg, #ff6a1a, #ff3d00) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 24px rgba(255, 90, 10, 0.28) !important;
}

:root[data-theme="dark"] .game-items .track-play::before {
  background: transparent !important;
  border-left-color: #ffffff !important;
}

:root[data-theme="dark"] .game-items .soundtrack-row.is-playing .track-play {
  background: #07090a !important;
  border-color: rgba(255, 90, 10, 0.5) !important;
}

:root[data-theme="dark"] .game-items .soundtrack-row.is-playing .track-play::before {
  width: 12px;
  height: 16px;
  margin-left: 0;
  border: 0 !important;
  background: linear-gradient(90deg, #ffffff 0 35%, transparent 35% 65%, #ffffff 65% 100%) !important;
}

/* Production reference item typography cleanup */
#production .production-items {
  gap: 14px;
  padding: 14px;
}

#production .production-item {
  min-height: 132px;
  padding: 14px;
  justify-content: flex-end;
  gap: 8px;
  border-radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

#production .production-item::before {
  opacity: 0.72;
  filter: saturate(1.02) contrast(0.98);
}

#production .production-item::after {
  background: linear-gradient(180deg, rgba(6, 8, 9, 0.08), rgba(6, 8, 9, 0.68));
}

#production .production-item.source-only::before {
  opacity: 0.18;
  filter: blur(1px) grayscale(0.45);
}

#production .production-items strong,
#production .production-items span {
  width: auto;
  max-width: 100%;
  display: block;
  padding: 0;
  color: #f7f7f2;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

#production .production-items strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.24;
  letter-spacing: 0;
}

#production .production-items span {
  color: rgba(247, 247, 242, 0.78);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

#production .production-item.local span::before,
#production .production-item.source-only span::before {
  font-weight: 800;
  text-shadow: none;
}

#production .production-item.local span::before {
  color: #8df0a9;
}

#production .production-item.source-only span::before {
  color: #ffb36d;
}

:root[data-theme="light"] #production .production-item::after {
  background: linear-gradient(180deg, rgba(8, 10, 11, 0.05), rgba(8, 10, 11, 0.62));
}

:root[data-theme="dark"] #production .production-items strong,
:root[data-theme="dark"] #production .production-items span {
  color: #f7f7f2;
  background: transparent;
}

/* Client-facing soundtrack player */
.game-items {
  padding: 0;
  overflow: hidden;
  background: #07090a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.soundtrack-list {
  gap: 0;
  padding: 16px;
  background: radial-gradient(circle at 18% 20%, rgba(255, 90, 10, 0.12), transparent 34%), #07090a;
  border: 0;
}

.soundtrack-row {
  position: relative;
  grid-template-columns: 88px minmax(0, 1fr) 150px 28px;
  gap: 22px;
  min-height: 132px;
  padding: 24px 34px 24px 48px;
  color: #f8f7f3;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.soundtrack-row + .soundtrack-row {
  margin-top: -1px;
}

.soundtrack-row::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  bottom: 18px;
  width: 5px;
  background: var(--track-accent, var(--orange));
  border-radius: 999px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--track-accent, var(--orange)) 42%, transparent);
}

.soundtrack-row:nth-child(5n + 1) { --track-accent: #28e879; }
.soundtrack-row:nth-child(5n + 2) { --track-accent: #ff7a00; }
.soundtrack-row:nth-child(5n + 3) { --track-accent: #168bff; }
.soundtrack-row:nth-child(5n + 4) { --track-accent: #d948ff; }
.soundtrack-row:nth-child(5n + 5) { --track-accent: #ffd21f; }

.track-play {
  width: 66px;
  height: 66px;
  background: linear-gradient(135deg, #ff7a1a, #ff3d00) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(255, 90, 10, 0.36), 0 2px 0 rgba(255, 255, 255, 0.16) inset;
}

/* .production-items span (generic reference-label styling) otherwise collapses
   .track-play to width:fit-content since it's also a <span>. #games rescues this
   with an ID-scoped rule; this generic version fixes every other soundtrack-list
   context (e.g. #radio) without depending on that ID. */
.production-items span.track-play {
  width: 66px;
  min-width: 66px;
}

@media (max-width: 760px) {
  .production-items span.track-play {
    width: 54px;
    min-width: 54px;
  }
}

.track-play::before {
  margin-left: 5px;
  border-top-width: 13px;
  border-bottom-width: 13px;
  border-left: 20px solid #ffffff !important;
}

.soundtrack-row.is-playing .track-play::before {
  width: 18px;
  height: 24px;
  margin-left: 0;
  border: 0 !important;
  background: linear-gradient(90deg, #ffffff 0 36%, transparent 36% 64%, #ffffff 64% 100%) !important;
}

.track-title {
  align-self: end;
  color: #f8f7f3 !important;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
}

.track-progress {
  grid-column: 2 / 3;
  align-self: start;
  width: 100%;
  height: 18px;
  margin-top: 14px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  --track-progress: 0%;
}

.track-progress::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a1a 0 var(--track-progress), rgba(255, 255, 255, 0.14) var(--track-progress) 100%);
  box-shadow: 0 0 20px rgba(255, 90, 10, 0.28);
}

.track-progress::-webkit-slider-thumb {
  width: 0;
  height: 0;
  margin-top: 0;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

.track-progress::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.track-progress::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #ff6a1a;
}

.track-progress::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
}

.track-duration {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: #f8f7f3 !important;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.track-duration span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.42);
}

.track-total {
  color: #ff6a1a;
}

.soundtrack-row::after {
  content: "";
  justify-self: end;
  width: 5px;
  height: 24px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px);
  background-size: 5px 8px;
}

.soundtrack-row:hover,
.soundtrack-row.is-playing {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 90, 10, 0.04));
  border-color: rgba(255, 90, 10, 0.24);
}

:root[data-theme="light"] .game-items {
  background: #07090a;
}

@media (max-width: 760px) {
  .soundtrack-list {
    padding: 10px;
  }

  .soundtrack-row {
    grid-template-columns: 62px minmax(0, 1fr) 76px;
    gap: 14px;
    min-height: 112px;
    padding: 18px 16px 18px 30px;
  }

  .soundtrack-row::before {
    left: 10px;
  }

  .track-play {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .track-title,
  .track-duration {
    font-size: 15px;
  }

  .track-progress {
    grid-column: 2 / 4;
    margin-top: 8px;
  }

  .soundtrack-row::after {
    display: none;
  }
}

#games .game-items .soundtrack-row {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)) !important;
}

#games .game-items .track-play {
  width: 66px !important;
  min-width: 66px !important;
  height: 66px !important;
  display: inline-grid !important;
}

#games .game-items .track-title {
  color: #f8f7f3 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

#games .game-items .track-duration {
  color: #f8f7f3 !important;
  font-size: 22px !important;
}

#games .game-items .track-total {
  color: #ff6a1a !important;
}

@media (max-width: 760px) {
  #games .game-items .track-play {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
  }

  #games .game-items .track-title,
  #games .game-items .track-duration {
    font-size: 15px !important;
  }
}

/* Prevent stale fade states when production cards are clicked rapidly. */
#production .production-grid.has-active .production-group.is-compact .production-card p,
#production .production-grid.has-active .production-group.is-compact .open-link {
  display: none !important;
  opacity: 0 !important;
  transform: none !important;
  transition: none !important;
}

#production .production-grid.has-active .production-group.is-compact .production-card img {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

#production .production-grid.has-active .production-group:not(.is-open) .production-items {
  display: none !important;
}

#production .production-grid.has-active .production-group.is-open .production-card,
#production .production-grid.has-active .production-group.is-compact .production-card {
  transition-property: transform, border-color, box-shadow, background-color !important;
}

.video-scrubber {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr) 54px 36px;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  color: #f8f7f3;
  background: rgba(7, 9, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-play-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(255, 90, 10, 0.28);
  cursor: pointer;
}

.video-fullscreen-toggle {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  cursor: pointer;
}

.video-fullscreen-toggle::before,
.video-fullscreen-toggle::after {
  content: "";
  width: 17px;
  height: 17px;
  position: absolute;
  border-color: #ffffff;
  border-style: solid;
}

.video-fullscreen-toggle::before {
  border-width: 2px 0 0 2px;
  transform: translate(-3px, -3px);
}

.video-fullscreen-toggle::after {
  border-width: 0 2px 2px 0;
  transform: translate(3px, 3px);
}

.video-play-toggle:hover,
.video-fullscreen-toggle:hover,
.video-play-toggle:focus-visible,
.video-fullscreen-toggle:focus-visible {
  border-color: rgba(255, 122, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.16);
}

.video-play-toggle::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
}

.video-play-toggle.is-playing::before {
  width: 12px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, #ffffff 0 35%, transparent 35% 65%, #ffffff 65% 100%);
}

.video-scrubber[hidden] {
  display: none;
}

.video-scrubber.is-idle {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.video-scrubber span {
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.video-scrubber span:last-child {
  color: var(--orange);
  text-align: right;
}

.video-scrubber input {
  width: 100%;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  --video-progress: 0%;
}

.video-scrubber input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0 var(--video-progress), rgba(255, 255, 255, 0.16) var(--video-progress) 100%);
  box-shadow: 0 0 18px rgba(255, 90, 10, 0.22);
}

.video-scrubber input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 90, 10, 0.34);
  -webkit-appearance: none;
  appearance: none;
}

.video-scrubber input::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.video-scrubber input::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
}

.video-scrubber input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: #ffffff;
}

.production-stage:fullscreen,
.reel-stage:fullscreen {
  display: grid;
  align-content: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 20px;
  background: #000000;
}

.production-stage:fullscreen .production-stage-head,
.reel-stage:fullscreen .reel-stage-head {
  display: none;
}

.production-stage:fullscreen .production-local-player,
.reel-stage:fullscreen .reel-stage-player {
  width: 100%;
  height: calc(100vh - 94px);
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.production-stage:fullscreen .video-scrubber,
.reel-stage:fullscreen .video-scrubber {
  align-self: end;
  margin-top: 12px;
}
