:root {
  color-scheme: dark;
  --bg: #10100f;
  --panel: #1a1b18;
  --panel-strong: #20211d;
  --ink: #f4f1e8;
  --muted: #b9b4a7;
  --line: rgba(244, 241, 232, 0.14);
  --lime: #b9ff66;
  --cyan: #5ee7d6;
  --coral: #ff7d6e;
  --gold: #f5c45e;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(16, 16, 15, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.toolbar,
.segmented,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(185, 255, 102, 0.55);
  background: #17210f;
  color: var(--lime);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(12px, 2.4vw, 32px);
  color: var(--muted);
  font-size: 0.94rem;
}

.header-actions {
  gap: 22px;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.06);
}

.lang-button {
  min-width: 46px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.lang-button.active {
  background: var(--ink);
  color: #171812;
}

.nav-links a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--lime);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 7vw, 92px) 96px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.94) 0%, rgba(16, 16, 15, 0.74) 48%, rgba(16, 16, 15, 0.3) 100%),
    linear-gradient(180deg, rgba(16, 16, 15, 0.16), rgba(16, 16, 15, 0.92));
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.38;
  mix-blend-mode: screen;
}

.hero-gallery {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(62vw, 920px);
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  padding: 104px clamp(20px, 4vw, 58px) 58px 0;
  opacity: 0.86;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid rgba(244, 241, 232, 0.12);
  filter: saturate(0.9) contrast(1.08);
}

.hero-gallery img:nth-child(1),
.hero-gallery img:nth-child(4) {
  transform: translateY(36px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 9vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.22;
}

.hero-copy {
  max-width: 680px;
  color: #ded9cb;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.intro-label {
  margin: 18px 0 6px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 24px;
}

.role-strip span,
.profile-pill-grid span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  background: rgba(244, 241, 232, 0.06);
  color: #f4f1e8;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  background: var(--lime);
  color: #141812;
  border-color: var(--lime);
}

.button.ghost {
  background: rgba(244, 241, 232, 0.05);
  color: var(--ink);
}

.button,
.chip,
.segment,
.lang-button,
.text-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover,
.chip:hover,
.segment:hover,
.lang-button:hover {
  transform: translateY(-2px);
}

.section {
  padding: clamp(62px, 9vw, 116px) clamp(20px, 7vw, 92px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.metric {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px;
  background: #131411;
}

.metric strong {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.metric span,
.feature-copy p,
.timeline-item p,
.content-card p,
.game-card p,
.episode-card p,
.contact p {
  color: var(--muted);
}

.profile-section {
  background: #f4f1e8;
  color: #171812;
  border-bottom: 1px solid rgba(23, 24, 18, 0.13);
}

.profile-section .eyebrow {
  color: #b05c00;
}

.profile-section .section-copy {
  color: #4f4e46;
}

.profile-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
}

.profile-pill-grid span {
  border-color: rgba(23, 24, 18, 0.13);
  background: #ffffff;
  color: #171812;
}

.game-project-section {
  background: #171812;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.game-grid {
  display: grid;
  gap: 28px;
}

.game-group {
  display: grid;
  gap: 16px;
}

.game-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.game-group-head h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.45rem);
}

.game-group-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.game-group-head > span {
  color: var(--gold);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.game-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  overflow: hidden;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #20211d;
}

.game-thumb {
  display: block;
  overflow: hidden;
  background: #10100f;
  aspect-ratio: 1 / 1;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
  transition: transform 180ms ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.03);
}

.game-body {
  padding: 18px 18px 4px;
}

.game-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card h3 {
  color: var(--ink);
}

.game-card .chip-row {
  padding: 0 18px 18px;
}

.game-card .chip {
  border-color: var(--line);
  color: #d8d2c5;
}

.interactive-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
  will-change: transform;
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(94, 231, 214, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(185, 255, 102, 0.16), transparent 42%, rgba(255, 125, 110, 0.14));
  transition: opacity 220ms ease;
  pointer-events: none;
}

.interactive-card > * {
  position: relative;
  z-index: 2;
}

.interactive-card.is-tilting,
.interactive-card:hover {
  border-color: rgba(185, 255, 102, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(185, 255, 102, 0.08);
}

.interactive-card.is-tilting {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(-7px);
}

.interactive-card:hover::before,
.interactive-card.is-tilting::before {
  opacity: 1;
}

.ripple-dot {
  position: absolute;
  left: var(--ripple-x);
  top: var(--ripple-y);
  z-index: 4;
  width: var(--ripple-size);
  height: var(--ripple-size);
  border-radius: 50%;
  background: rgba(185, 255, 102, 0.34);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-burst 620ms ease-out forwards;
}

@keyframes ripple-burst {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 94px;
}

.section-heading.wide {
  position: static;
  max-width: 760px;
  margin-bottom: 32px;
}

.section-copy {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-visual {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: #171812;
}

.feature-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid rgba(244, 241, 232, 0.12);
}

.main-image {
  grid-row: span 2;
}

.feature-copy {
  display: grid;
  align-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.feature-copy h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.text-link {
  width: fit-content;
  color: var(--cyan);
  font-weight: 800;
}

.library {
  background: #f4f1e8;
  color: #171812;
}

.library .eyebrow {
  color: #b05c00;
}

.toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.segmented {
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(23, 24, 18, 0.14);
  background: #ffffff;
}

.segment {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #56564d;
  cursor: pointer;
}

.segment.active {
  background: #171812;
  color: #f4f1e8;
}

.search-box {
  flex: 0 1 340px;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(23, 24, 18, 0.16);
  background: #ffffff;
  color: #171812;
  outline: none;
}

.search-box input:focus {
  border-color: #171812;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  overflow: hidden;
  min-height: 410px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 0 0 20px;
  border: 1px solid rgba(23, 24, 18, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.content-card[data-kind="character"] {
  border-top: 5px solid #ff7d6e;
}

.content-card[data-kind="maya"] {
  border-top: 5px solid #127c72;
}

.content-card[data-kind="tech"] {
  border-top: 5px solid #8267d5;
}

.card-media-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  padding: 0;
  border: 0;
  background: #171812;
  cursor: pointer;
  overflow: hidden;
}

.card-media-button img {
  transition: transform 180ms ease;
}

.content-card:hover .card-media-button img {
  transform: scale(1.03);
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  color: #68685e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #171812;
}

.content-card div:not(.card-kicker):not(.chip-row) {
  padding: 0 20px;
}

.content-card h3 {
  color: #171812;
  font-size: 1.35rem;
}

.content-card p {
  margin-bottom: 0;
  color: #5e5d55;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px;
}

.chip {
  padding: 5px 9px;
  border: 1px solid rgba(23, 24, 18, 0.13);
  color: #4d4c45;
  font-size: 0.78rem;
  font-weight: 700;
}

.chip-button {
  background: #171812;
  color: #f4f1e8;
  cursor: pointer;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 1px solid rgba(23, 24, 18, 0.13);
  border-radius: 8px;
  background: #ffffff;
  color: #171812;
  text-align: center;
}

.empty-state span {
  color: #68685e;
}

.project-detail-section {
  background: #f4f1e8;
  color: #171812;
  border-top: 1px solid rgba(23, 24, 18, 0.13);
}

.project-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.project-detail-section .eyebrow {
  color: #b05c00;
}

.project-detail-section .section-copy {
  color: #4f4e46;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-detail-actions .button.ghost {
  color: #171812;
  border-color: rgba(23, 24, 18, 0.18);
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-detail-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(23, 24, 18, 0.13);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 18, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.project-gallery-item:hover img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.025);
}

.gallery-index {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: rgba(16, 16, 15, 0.78);
  color: #f4f1e8;
  font-size: 0.78rem;
  font-weight: 900;
}

.youtube-section {
  background: #171812;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.youtube-summary {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1px;
  margin-bottom: 24px;
  background: var(--line);
}

.youtube-summary > div,
.youtube-summary > a {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px;
  background: #10100f;
}

.youtube-summary strong {
  color: var(--coral);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.youtube-summary span {
  color: var(--muted);
}

.video-toolbar {
  justify-content: flex-start;
}

.dark-segmented {
  background: #10100f;
  border-color: var(--line);
}

.dark-segmented .segment {
  color: var(--muted);
}

.dark-segmented .segment.active {
  background: var(--lime);
  color: #141812;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #20211d;
}

.video-thumb-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #10100f;
  aspect-ratio: 16 / 9;
}

.video-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease;
}

.video-card:hover .video-thumb-link img {
  transform: scale(1.03);
}

.play-badge,
.duration-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  background: rgba(16, 16, 15, 0.86);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.play-badge {
  left: 12px;
  bottom: 12px;
  color: var(--lime);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
}

.video-meta,
.video-body,
.video-card .chip-row {
  padding-left: 18px;
  padding-right: 18px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-body h3 {
  color: var(--ink);
  font-size: 1.2rem;
}

.video-body p {
  color: var(--muted);
}

.video-card .chip-row {
  padding-bottom: 18px;
}

.video-card .chip {
  border-color: var(--line);
  color: #d8d2c5;
}

.podcast-section {
  background: #f4f1e8;
  color: #171812;
}

.podcast-section .eyebrow {
  color: #b05c00;
}

.podcast-section .section-copy {
  color: #4f4e46;
}

.podcast-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: 30px;
}

.podcast-cover-wrap {
  overflow: hidden;
  border: 1px solid rgba(23, 24, 18, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 24, 18, 0.12);
}

.podcast-cover {
  width: 100%;
  display: block;
}

.podcast-copy {
  max-width: 820px;
}

.podcast-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0;
  background: rgba(23, 24, 18, 0.13);
}

.podcast-stats div {
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #ffffff;
}

.podcast-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.podcast-stats span {
  color: #5e5d55;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.episode-card {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(23, 24, 18, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.episode-card h3 {
  color: #171812;
}

.episode-card p {
  color: #5e5d55;
}

.episode-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #b05c00;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 86px);
}

.timeline-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item span {
  color: var(--gold);
  font-weight: 900;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #171812;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact > div {
  max-width: 760px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 7vw, 92px);
  color: var(--muted);
  font-size: 0.94rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 58px);
  background: rgba(5, 6, 5, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-frame {
  width: min(1180px, 100%);
  max-height: 86vh;
  display: grid;
  place-items: center;
  gap: 12px;
  margin: 0;
  transform: scale(0.96);
  transition: transform 220ms ease;
}

.lightbox.is-open .lightbox-frame {
  transform: scale(1);
}

.lightbox-frame img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 8px;
  background: #10100f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

#lightbox-caption {
  color: #f4f1e8;
  font-size: 0.9rem;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.22);
  background: rgba(244, 241, 232, 0.08);
  color: #f4f1e8;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: scale(1.06);
  border-color: rgba(185, 255, 102, 0.72);
  background: rgba(185, 255, 102, 0.16);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 72px;
  font-size: 3rem;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .interactive-card.is-tilting {
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 88vh;
    padding-top: 150px;
  }

  .hero-gallery {
    width: 100%;
    opacity: 0.32;
    padding: 132px 18px 38px;
  }

  .intro-band,
  .split,
  .timeline,
  .feature-panel,
  .podcast-layout,
  .project-detail-head {
    grid-template-columns: 1fr;
  }

  .intro-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    position: static;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    flex-basis: auto;
  }

  .card-grid,
  .game-group-grid,
  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youtube-summary,
  .video-grid,
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youtube-summary > a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-links {
    flex: 1;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.8rem);
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 74px;
  }

  .intro-band,
  .card-grid,
  .game-group-grid,
  .episode-grid,
  .project-gallery,
  .video-grid,
  .youtube-summary {
    grid-template-columns: 1fr;
  }

  .youtube-summary > a {
    grid-column: auto;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .feature-visual {
    min-height: 520px;
    grid-template-columns: 1fr;
  }

  .main-image {
    grid-row: span 1;
  }

  .metric {
    min-height: 112px;
  }

  .timeline-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .lightbox {
    padding: 72px 14px 28px;
  }

  .lightbox-frame img {
    max-height: 70vh;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 2.2rem;
    transform: none;
  }

  .lightbox-nav:hover {
    transform: scale(1.06);
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }
}
