:root {
  --bg: #07090e;
  --bg-raised: #0c1018;
  --panel: rgba(13, 17, 25, 0.88);
  --panel-solid: #0e131d;
  --panel-soft: rgba(255,255,255,.035);
  --text: #f5f3ef;
  --muted: #aeb5c2;
  --muted-2: #7f8795;
  --gold: #efbf67;
  --gold-light: #ffe0a0;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.17);
  --danger: #d45b68;
  --blue: #6fa9ff;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --shadow: 0 28px 80px rgba(0,0,0,.38);
  --shadow-soft: 0 16px 42px rgba(0,0,0,.24);
  --container: 1240px;
  --header-h: 78px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(239,191,103,.08), transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(96,72,164,.11), transparent 24%),
    linear-gradient(180deg, #090b11 0%, var(--bg) 42%, #05070b 100%);
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .23;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}
body.menu-open,
body.lightbox-open { overflow: hidden; }

::selection { background: rgba(239,191,103,.28); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(239,191,103,.8); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 10px;
  color: #111;
  background: var(--gold-light);
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.section { position: relative; padding: 104px 0; }
.section--compact { padding: 70px 0; }
.section--border { border-top: 1px solid var(--line); }
.section--soft {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
  border-top: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,520px);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}
.section-heading--single { grid-template-columns: 1fr; max-width: 820px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
.display-title,
.section-title,
.game-hero h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
}
.section-title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1.02;
}
.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.82;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(7,9,14,.76);
  border-bottom-color: var(--line);
  backdrop-filter: blur(22px) saturate(130%);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(239,191,103,.42);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(239,191,103,.16), rgba(89,69,150,.14));
  box-shadow: inset 0 0 24px rgba(239,191,103,.06);
  font-family: var(--font-display);
  font-weight: 900;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .98rem; }
.brand-copy small { color: var(--muted); font-size: .72rem; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #c8ced8;
  font-size: .9rem;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.055); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(11,14,21,.88);
  color: #fff;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
body.menu-open .menu-toggle span { opacity: 0; }
body.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 95;
  padding: 24px 20px 40px;
  background: rgba(7,9,14,.98);
  backdrop-filter: blur(20px);
}
.mobile-panel nav { display: grid; gap: 8px; }
.mobile-panel nav a {
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 750;
  background: rgba(255,255,255,.025);
}
.mobile-panel .mobile-socials { margin-top: 24px; display: grid; gap: 10px; }
body.menu-open .mobile-panel { display: block; }

/* Buttons */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .035em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--gold {
  color: #171108;
  background: linear-gradient(135deg, var(--gold-light), #e5ad50);
  box-shadow: 0 15px 38px rgba(239,191,103,.18);
}
.button--gold:hover { box-shadow: 0 18px 48px rgba(239,191,103,.26); }
.button--outline {
  color: #f3f4f7;
  border-color: var(--line-strong);
  background: rgba(8,11,17,.54);
}
.button--outline:hover { border-color: rgba(239,191,103,.46); background: rgba(239,191,103,.07); }
.button--text { min-height: auto; padding: 0; border-radius: 0; color: var(--gold-light); }
.button--small { min-height: 42px; padding: 0 15px; }
.icon-arrow { transition: transform .2s ease; }
.button:hover .icon-arrow { transform: translateX(4px); }

/* Hero */
.hero {
  position: relative;
  min-height: 900px;
  height: max(760px, 100svh);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero-slides,
.hero-slide,
.hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transform: scale(1.035);
  background-position: center;
  background-size: cover;
  transition: opacity 1s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,6,10,.95) 0%, rgba(4,6,10,.78) 38%, rgba(4,6,10,.22) 72%, rgba(4,6,10,.48) 100%),
    linear-gradient(180deg, rgba(4,6,10,.28) 0%, transparent 36%, rgba(4,6,10,.95) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-content {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 104px;
}
.hero-copy { max-width: 780px; }
.hero .eyebrow { margin-bottom: 20px; }
.display-title {
  margin: 0;
  max-width: 850px;
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: .88;
}
.display-title span { color: var(--gold-light); }
.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: #d4d8df;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stat {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 15px;
  background: rgba(9,12,18,.52);
  backdrop-filter: blur(16px);
}
.hero-stat strong { display: block; color: var(--gold-light); font-size: 1.16rem; }
.hero-stat span { color: var(--muted); font-size: .78rem; }
.hero-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-width: 300px;
}
.hero-caption { text-align: right; }
.hero-caption strong { display: block; }
.hero-caption span { color: var(--muted); font-size: .8rem; }
.hero-dots { display: flex; gap: 7px; }
.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 5px;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.hero-dot.is-active { width: 54px; background: var(--gold); }

/* Featured */
.featured-project {
  display: grid;
  grid-template-columns: minmax(0,1.32fr) minmax(340px,.68fr);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}
.featured-media { position: relative; min-height: 540px; overflow: hidden; display:block; aspect-ratio: 16/9; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.featured-project:hover .featured-media img { transform: scale(1.025); }
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 64%, var(--panel-solid) 100%), linear-gradient(180deg, transparent 65%, rgba(7,9,14,.6));
}
.featured-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 44px 50px 18px;
}
.project-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(111,169,255,.26);
  border-radius: 999px;
  color: #bcd6ff;
  background: rgba(65,111,185,.10);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.project-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7db1ff; box-shadow: 0 0 14px #7db1ff; }
.featured-content h3 {
  margin: 22px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: .98;
}
.featured-subtitle { color: var(--gold); font-size: 1.05rem; font-weight: 750; }
.featured-content p { color: var(--muted); margin: 22px 0 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c5cad4;
  background: rgba(255,255,255,.025);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.media-title-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(6,8,12,.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}
.media-title-badge strong { display:block; font-size: 1rem; line-height: 1.15; }
.media-title-badge em { display:block; font-style: normal; color: var(--gold-light); font-size: .78rem; line-height: 1.2; }
.media-title-badge--small { left: 14px; right: auto; bottom: 14px; padding: 9px 11px; border-radius: 12px; }
.media-title-badge--small strong { font-size: .92rem; }
.media-title-badge--small em { font-size: .72rem; }


/* Editorial portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 20px;
}
.project-card {
  --card-accent: var(--gold);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14,18,27,.96), rgba(9,12,18,.98));
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--card-accent) 42%, rgba(255,255,255,.12));
  box-shadow: 0 28px 70px rgba(0,0,0,.42);
}
.project-card--wide { grid-column: span 7; }
.project-card--narrow { grid-column: span 5; }
.project-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #080b11; display:block; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease, filter .3s ease; }
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,9,14,.88) 100%);
}
.project-number {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  background: rgba(7,9,14,.62);
  backdrop-filter: blur(10px);
  color: var(--card-accent);
  font-size: .8rem;
  font-weight: 850;
}
.project-card-status {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(7,9,14,.64);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.project-card-body { padding: 24px; }
.project-card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.project-card h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1; }
.project-card-subtitle { margin-top: 5px; color: var(--card-accent); font-weight: 750; }
.project-card-type { color: var(--muted-2); font-size: .74rem; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.project-card-description { margin: 18px 0 0; color: var(--muted); }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.project-card-footer .tag-list { margin-top: 0; flex: 1 1 auto; }
.project-card-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.button--mini { min-height: 42px; padding: 11px 16px; font-size: .78rem; }

.project-link {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 52%, transparent);
  border-radius: 14px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
  transition: transform .2s ease, background .2s ease;
}
.project-link:hover { transform: translate(2px,-2px); background: color-mix(in srgb, var(--card-accent) 14%, transparent); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(320px,.72fr) minmax(0,1.28fr);
  gap: 68px;
  align-items: center;
}
.about-portrait { position: relative; }
.about-portrait::before {
  content: "QH";
  position: absolute;
  right: -10px;
  bottom: -12px;
  z-index: 0;
  color: rgba(239,191,103,.045);
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  line-height: .8;
}
.about-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid rgba(239,191,103,.2);
  border-radius: 28px;
  background: #0a0d14;
  box-shadow: var(--shadow);
}
.about-copy h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.8rem,5vw,5rem); line-height: .96; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; line-height: 1.82; }
.about-copy .lead { color: #e2e5eb !important; font-size: 1.22rem !important; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.skill-cloud span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: #d7dbe3;
  font-size: .86rem;
}
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; counter-reset: process; }
.process-card {
  position: relative;
  min-height: 270px;
  padding: 24px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13,17,25,.72);
}
.process-card::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 36px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .1em;
}
.process-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -70px;
  bottom: -70px;
  border: 1px solid rgba(239,191,103,.11);
  border-radius: 50%;
}
.process-card h3 { margin: 0; font-size: 1.18rem; }
.process-card p { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

/* Contact */
.contact-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 54px;
  border: 1px solid rgba(239,191,103,.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 30%, rgba(103,78,173,.18), transparent 28%),
    linear-gradient(125deg, rgba(239,191,103,.11), rgba(13,17,25,.94) 45%);
  box-shadow: var(--shadow);
}
.contact-shell::after {
  content: "QH";
  position: absolute;
  right: 26px;
  bottom: -55px;
  color: rgba(255,255,255,.035);
  font-family: var(--font-display);
  font-size: 12rem;
  line-height: 1;
  pointer-events: none;
}
.contact-shell h2 { margin: 0; max-width: 760px; font-family: var(--font-display); font-size: clamp(2.4rem,5vw,4.8rem); line-height: .98; }
.contact-shell p { margin: 18px 0 0; max-width: 650px; color: var(--muted); }
.contact-actions { position: relative; z-index: 2; display: grid; gap: 10px; min-width: 230px; }

/* Footer */
.site-footer { padding: 34px 0 42px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: .82rem; }
.footer-links a:hover { color: var(--gold-light); }

/* Game pages */
.game-page { --game-accent: var(--gold); --game-accent-soft: rgba(239,191,103,.12); }
.game-hero {
  position: relative;
  min-height: 820px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.game-hero-media,
.game-hero-shade { position: absolute; inset: 0; }
.game-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.game-hero-shade {
  background:
    linear-gradient(90deg, rgba(5,7,11,.97) 0%, rgba(5,7,11,.73) 42%, rgba(5,7,11,.22) 78%),
    linear-gradient(180deg, rgba(5,7,11,.26), transparent 44%, var(--bg) 100%);
}
.game-hero::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 150px; background: linear-gradient(transparent,var(--bg)); }
.game-hero-content { position: relative; z-index: 3; padding: calc(var(--header-h) + 96px) 0 94px; max-width: 780px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #c0c6d1; font-size: .78rem; margin-bottom: 34px; }
.breadcrumbs a:hover { color: var(--game-accent); }
.game-kicker { color: var(--game-accent); font-weight: 850; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.game-hero h1 { margin: 15px 0 0; font-size: clamp(4rem,8vw,7.6rem); line-height: .86; }
.game-subtitle { display: block; margin-top: 18px; color: var(--game-accent); font-family: var(--font-sans); font-size: clamp(1.1rem,2vw,1.55rem); font-weight: 800; letter-spacing: .01em; }
.game-hero-description { max-width: 690px; margin: 28px 0 0; color: #d1d6df; font-size: 1.12rem; line-height: 1.78; }
.game-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.game-hero .button--gold { background: linear-gradient(135deg, color-mix(in srgb, var(--game-accent) 72%, white), var(--game-accent)); }
.metadata-strip {
  position: relative;
  z-index: 4;
  margin-top: -36px;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(11,14,21,.94);
  box-shadow: var(--shadow-soft);
}
.metadata-item { padding: 20px; border-right: 1px solid var(--line); }
.metadata-item:last-child { border-right: 0; }
.metadata-item span { display: block; color: var(--muted-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.metadata-item strong { display: block; margin-top: 6px; font-size: .95rem; }
.game-intro-grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 62px; align-items: start; }
.game-intro-grid h2,
.game-section-title { margin: 0; font-family: var(--font-display); font-size: clamp(2.45rem,4.5vw,4.4rem); line-height: 1; }
.game-intro-grid p { color: var(--muted); font-size: 1.06rem; line-height: 1.82; }
.game-quote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 2px solid var(--game-accent);
  border-radius: 0 16px 16px 0;
  background: var(--game-accent-soft);
  color: #dfe3ea;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.loop-list { display: grid; gap: 12px; }
.loop-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  align-items: start;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.022);
}
.loop-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--game-accent); background: var(--game-accent-soft); font-weight: 850; }
.loop-item h3 { margin: 0; font-size: 1.02rem; }
.loop-item p { margin: 6px 0 0; font-size: .9rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.feature-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15,19,28,.90), rgba(10,13,20,.96));
}
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--game-accent); background: var(--game-accent-soft); font-weight: 900; }
.feature-card h3 { margin: 36px 0 0; font-size: 1.12rem; }
.feature-card p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.controls-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.controls-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13,17,25,.78);
}
.controls-panel h3 { margin: 0 0 20px; font-size: 1.2rem; }
.controls-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.controls-list li { display: grid; grid-template-columns: minmax(120px,170px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.controls-list li:last-child { border-bottom: 0; }
.controls-list strong { color: #fff; }
.controls-list span { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; align-items: stretch; }
.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16/10;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #080b11;
  cursor: zoom-in;
}
.gallery-item--wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item--portrait { aspect-ratio: 4/5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item--contain img { object-fit: contain; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(6,8,12,.72);
  backdrop-filter: blur(12px);
  font-size: .74rem;
  font-weight: 750;
  max-width: calc(100% - 28px);
}
.developer-note {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,.46fr);
  gap: 50px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, var(--game-accent-soft), rgba(13,17,25,.94) 45%);
}
.developer-note h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.9rem); line-height: 1; }
.developer-note p { color: var(--muted); }
.developer-note-side { display: grid; gap: 10px; }
.developer-note-side div { padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.022); }
.developer-note-side span { display: block; color: var(--muted-2); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.developer-note-side strong { display: block; margin-top: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.related-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(13,17,25,.88); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card div { padding: 18px; }
.related-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.related-card p { margin: 5px 0 0; color: var(--muted); font-size: .84rem; }
.related-card:hover { border-color: color-mix(in srgb, var(--game-accent) 42%, var(--line)); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3,4,7,.94);
  backdrop-filter: blur(18px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw,1500px); max-height: 88vh; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: #fff;
  background: rgba(11,14,21,.86);
  cursor: pointer;
  font-size: 1.4rem;
}

/* Legal / 404 */
.simple-page { padding: calc(var(--header-h) + 80px) 0 100px; min-height: 100svh; }
.simple-page-inner { max-width: 900px; }
.simple-page h1 { margin: 0; font-family: var(--font-display); font-size: clamp(3rem,7vw,6rem); line-height: .92; }
.simple-page h2 { margin-top: 50px; }
.simple-page p, .simple-page li { color: var(--muted); }
.simple-page ul { padding-left: 20px; }
.not-found { display: grid; place-items: center; text-align: center; }
.not-found .code { color: var(--gold); font-family: var(--font-display); font-size: clamp(7rem,18vw,16rem); line-height: .75; opacity: .22; }
.not-found h1 { margin-top: -20px; }
.not-found p { max-width: 600px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .header-actions .button { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 800px; }
  .hero-controls { min-width: 0; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-media { min-height: 480px; }
  .media-title-badge { left: 16px; right: 16px; bottom: 16px; }
  .featured-media::after { background: linear-gradient(180deg, transparent 60%, var(--panel-solid) 100%); }
  .featured-content { padding: 36px; }
  .project-card--wide, .project-card--narrow { grid-column: span 6; }
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 42px; }
  .process-grid { grid-template-columns: repeat(3,1fr); }
  .metadata-strip { grid-template-columns: repeat(3,1fr); }
  .metadata-item:nth-child(3) { border-right: 0; }
  .metadata-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .game-intro-grid { gap: 38px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item--wide,
  .gallery-item--portrait { grid-column: auto; aspect-ratio: auto; }
  .gallery-item img { width: 100%; height: auto; }
  .gallery-item--contain img,
  .gallery-item--portrait img { width: 100%; height: auto; object-fit: contain; }
}

@media (max-width: 820px) {
  :root { --header-h: 70px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .brand-copy small { display: none; }
  .brand { min-width: 0; }
  .hero { min-height: 760px; height: auto; }
  .hero-content { padding-bottom: 72px; }
  .display-title { font-size: clamp(3.55rem,16vw,6rem); }
  .hero-bottom { align-items: start; flex-direction: column; margin-top: 48px; }
  .hero-caption { text-align: left; }
  .hero-controls { grid-template-columns: 1fr; }
  .project-card--wide, .project-card--narrow { grid-column: span 12; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait img { max-width: 360px; }
  .media-title-badge--small { max-width: calc(100% - 28px); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .contact-shell { grid-template-columns: 1fr; padding: 36px; }
  .contact-actions { min-width: 0; display: flex; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .game-hero { min-height: 760px; }
  .game-hero h1 { font-size: clamp(3.45rem,15vw,6rem); }
  .metadata-strip { grid-template-columns: repeat(2,1fr); }
  .metadata-item { border-top: 1px solid var(--line); }
  .metadata-item:nth-child(-n+2) { border-top: 0; }
  .metadata-item:nth-child(2n) { border-right: 0; }
  .game-intro-grid { grid-template-columns: 1fr; }
  .controls-grid { grid-template-columns: 1fr; }
  .developer-note { grid-template-columns: 1fr; padding: 32px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { background: rgba(7,9,14,.74); backdrop-filter: blur(18px); }
  .header-inner { gap: 12px; }
  .brand-copy strong { font-size: .88rem; }
  .display-title { font-size: clamp(3.1rem,18vw,4.8rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions, .game-hero-actions, .project-actions, .about-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button, .game-hero-actions .button, .project-actions .button, .contact-actions .button { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(2,1fr); width: 100%; }
  .hero-stat { min-width: 0; }
  .featured-media { min-height: 360px; }
  .featured-content { padding: 27px 22px 30px; }
  .project-card-body { padding: 20px; }
  .project-card-heading { flex-direction: column; }
  .project-card-type { text-align: left; }
  .project-card-footer { align-items: start; }
  .project-card-actions { width: 100%; justify-content: flex-start; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 220px; }
  .contact-shell { padding: 28px 22px; }
  .metadata-strip { grid-template-columns: 1fr; margin-top: -20px; }
  .metadata-item, .metadata-item:nth-child(n) { border-right: 0; border-top: 1px solid var(--line); }
  .metadata-item:first-child { border-top: 0; }
  .game-hero-content { padding-bottom: 74px; }
  .feature-grid { grid-template-columns: 1fr; }
  .controls-panel { padding: 22px; }
  .controls-list li { grid-template-columns: 1fr; gap: 4px; }
  .gallery-item { border-radius: 16px; }
  .developer-note { padding: 26px 20px; }
  .lightbox { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Premium v4 refinements
   ========================================================= */

/* Home: cleaner project presentation */
.featured-project {
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr);
  align-items: stretch;
}
.featured-media {
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.featured-media::after {
  background: linear-gradient(90deg, transparent 74%, rgba(7,9,14,.56));
}
.featured-kicker {
  margin: 20px 0 0 !important;
  color: var(--muted-2) !important;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.featured-content h3 { margin-top: 12px; }
.featured-content .featured-subtitle { margin: 0; }

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.project-card,
.project-card--wide,
.project-card--narrow {
  grid-column: auto;
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.project-card-media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}
.project-card-media::after {
  background: linear-gradient(180deg, transparent 72%, rgba(7,9,14,.34));
}
.project-card-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 310px;
  flex-direction: column;
}
.project-card-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
}
.project-card-subtitle {
  margin: 7px 0 0;
  color: var(--card-accent);
}
.project-card-description {
  max-width: 58ch;
  font-size: .98rem;
  line-height: 1.75;
}
.project-card-footer {
  margin-top: auto;
  padding-top: 28px;
  align-items: center;
  justify-content: flex-start;
}
.project-card-actions { justify-content: flex-start; }
.project-card-status,
.project-number { z-index: 3; }

/* Remove historical title labels from card imagery. */
.media-title-badge { display: none !important; }

/* Universe editorial list */
.universe-list {
  border-top: 1px solid var(--line);
}
.universe-row {
  display: grid;
  grid-template-columns: 72px minmax(220px,.72fr) minmax(0,1.3fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .22s ease, padding .22s ease;
}
.universe-row:hover {
  padding-inline: 18px;
  background: rgba(255,255,255,.018);
}
.universe-index {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.universe-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem,2.4vw,2.2rem);
  line-height: 1;
}
.universe-subtitle {
  margin: 7px 0 0 !important;
  color: var(--gold) !important;
  font-size: .86rem !important;
  font-weight: 750;
}
.universe-row > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.universe-row > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}
.universe-row > a span { transition: transform .2s ease; }
.universe-row > a:hover span { transform: translateX(4px); }

/* Developer portrait: preserve the actual square source without letterboxing. */
.about-grid {
  grid-template-columns: minmax(300px,.65fr) minmax(0,1.35fr);
  gap: 72px;
}
.about-portrait {
  width: min(100%, 440px);
  margin-inline: auto;
}
.about-portrait::before {
  right: -14px;
  bottom: -16px;
  font-size: 7rem;
}
.about-portrait img {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
}
.about-copy > p:not(.eyebrow) { max-width: 70ch; }

/* Game pages */
.game-hero-media img {
  object-position: center;
}
.game-hero-description { max-width: 760px; }
.game-intro-grid {
  grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr);
}
.game-intro-grid > div:first-child > p {
  max-width: 72ch;
}
.feature-card { min-height: 280px; }
.controls-panel { min-width: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  min-width: 0;
  aspect-ratio: 4 / 3;
}
.gallery-item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.gallery-item--portrait {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  max-height: 720px;
}
.gallery-item--portrait img,
.gallery-item--contain img {
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.045), transparent 45%),
    #080b11;
}
.gallery-item span {
  z-index: 2;
  max-width: calc(100% - 28px);
}

.related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.related-card img { flex: 0 0 auto; }
.related-card > div { padding: 18px; }
.related-card h3 { margin: 0; }
.related-card p { margin: 5px 0 0; color: var(--muted); }

.mobile-playbar { display: none; }

/* Make reveal content visible even before JS, then animate only when JS marks it. */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .featured-project { grid-template-columns: 1fr; }
  .featured-media::after { background: linear-gradient(180deg, transparent 74%, rgba(7,9,14,.45)); }
  .featured-content { padding: 36px; }
  .universe-row { grid-template-columns: 56px minmax(200px,.7fr) minmax(0,1.3fr); }
  .universe-row > a { grid-column: 2 / -1; justify-self: start; }
  .game-intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card-body { min-height: 0; }
  .project-card-heading { grid-template-columns: 1fr; }
  .project-card-type { margin-top: 10px; text-align: left; }
  .universe-row {
    grid-template-columns: 48px 1fr;
    gap: 16px 20px;
    padding-block: 26px;
  }
  .universe-row > p,
  .universe-row > a { grid-column: 2; }
  .about-grid { grid-template-columns: 1fr; gap: 46px; }
  .about-portrait { width: min(100%, 400px); }
  .metadata-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metadata-item:nth-child(n) { border-right: 1px solid var(--line); }
  .metadata-item:nth-child(2n) { border-right: 0; }
  .metadata-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item--wide,
  .gallery-item--portrait {
    grid-column: auto;
    aspect-ratio: auto;
    max-height: none;
  }
  .gallery-item img { width: 100%; height: auto; }
  .gallery-item--contain img,
  .gallery-item--portrait img { object-fit: contain; }
}

@media (max-width: 820px) {
  .hero { min-height: 720px; }
  .hero-content { padding-bottom: 64px; }
  .display-title { font-size: clamp(3.3rem,15vw,5.6rem); }
  .hero-bottom { margin-top: 44px; }
  .hero-dots { align-self: flex-start; }
  .featured-content { padding: 30px 24px; }
  .project-card-footer { flex-wrap: wrap; }
  .game-hero { min-height: 700px; }
  .game-hero-content { padding-bottom: 76px; }
  .mobile-playbar {
    position: fixed;
    z-index: 120;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px 12px 16px;
    border: 1px solid rgba(239,191,103,.35);
    border-radius: 17px;
    color: #171108;
    background: linear-gradient(135deg, var(--gold-light), #e5ad50);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    font-size: .82rem;
  }
  .mobile-playbar span {
    overflow: hidden;
    color: rgba(23,17,8,.76);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-playbar strong { flex: 0 0 auto; text-transform: uppercase; letter-spacing: .08em; }
  .game-page .site-footer { padding-bottom: 100px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 68px 0; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: 12px 14px; }
  .section-title { font-size: clamp(2.35rem,12vw,3.5rem); }
  .project-card-media { aspect-ratio: 16 / 10; }
  .project-card-body { padding: 22px 20px 24px; }
  .project-card-footer,
  .project-card-actions,
  .project-card-footer .button { width: 100%; }
  .project-card-actions { display: grid; grid-template-columns: 1fr; }
  .universe-row { grid-template-columns: 38px 1fr; }
  .universe-row:hover { padding-inline: 4px; }
  .about-portrait { width: min(100%, 340px); }
  .about-portrait::before { display: none; }
  .metadata-strip { grid-template-columns: 1fr; }
  .metadata-item:nth-child(n) { border-right: 0; border-top: 1px solid var(--line); }
  .metadata-item:first-child { border-top: 0; }
  .game-hero h1 { font-size: clamp(3.2rem,16vw,4.8rem); }
  .game-hero-description { font-size: 1rem; }
  .feature-card { min-height: 230px; }
  .developer-note { padding: 26px 20px; }
  .contact-shell { padding: 28px 22px; }
}
