:root {
  --studio-bg: #080b0d;
  --studio-bg-soft: #0e1316;
  --studio-surface: #12181c;
  --studio-surface-strong: #182126;
  --studio-line: rgba(235, 241, 243, 0.14);
  --studio-line-strong: rgba(235, 241, 243, 0.26);
  --studio-text: #f2f4ef;
  --studio-muted: #a8b2b3;
  --studio-accent: #f4a340;
  --studio-accent-hot: #ef5b32;
  --studio-cyan: #56c8e8;
  --studio-green: #9edb8f;
  --studio-max: 1180px;
  --studio-radius: 18px;
  --studio-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.studio-site {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% -10%, rgba(86, 200, 232, 0.09), transparent 32rem),
    var(--studio-bg);
  color: var(--studio-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

.studio-site img {
  display: block;
  max-width: 100%;
}

.studio-site a {
  color: inherit;
}

.studio-site button,
.studio-site a {
  -webkit-tap-highlight-color: transparent;
}

.studio-site :focus-visible {
  outline: 3px solid var(--studio-cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--studio-text);
  color: var(--studio-bg);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.studio-shell {
  width: min(calc(100% - 40px), var(--studio-max));
  margin-inline: auto;
}

.studio-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--studio-line);
  background: rgba(8, 11, 13, 0.86);
  backdrop-filter: blur(16px);
}

.studio-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--studio-text);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 900;
}

.studio-brand-mark {
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--studio-line-strong);
  background:
    linear-gradient(135deg, transparent 45%, var(--studio-accent) 46% 54%, transparent 55%),
    var(--studio-surface);
  transform: rotate(45deg);
}

.studio-brand-mark::after {
  content: "S";
  transform: rotate(-45deg);
  color: var(--studio-text);
  font-size: 11px;
  line-height: 1;
}

.studio-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: var(--studio-surface);
  color: var(--studio-text);
  cursor: pointer;
}

.studio-menu-toggle span,
.studio-menu-toggle::before,
.studio-menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.studio-menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.studio-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.studio-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.studio-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.studio-links a {
  position: relative;
  color: var(--studio-muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.studio-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -10px;
  height: 2px;
  background: var(--studio-accent);
  transition: right 160ms ease;
}

.studio-links a:hover,
.studio-links a[aria-current="page"] {
  color: var(--studio-text);
}

.studio-links a:hover::after,
.studio-links a[aria-current="page"]::after {
  right: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--studio-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.display-title,
.page-title,
.section-title,
.game-title {
  margin: 0;
  max-width: 16ch;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", ui-sans-serif, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.display-title {
  font-size: clamp(3.7rem, 9vw, 8.4rem);
  text-transform: uppercase;
}

.page-title,
.game-title {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.35rem, 4.5vw, 4.4rem);
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--studio-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(820px, calc(100svh - 82px));
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--studio-line);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(0.84) contrast(1.07);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.96) 0%, rgba(8, 11, 13, 0.74) 42%, rgba(8, 11, 13, 0.22) 75%),
    linear-gradient(0deg, rgba(8, 11, 13, 0.95) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-block: clamp(80px, 13vw, 150px) 70px;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--studio-accent);
  border-radius: 10px;
  background: var(--studio-accent);
  color: #090b0c;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:not(.button-secondary):visited {
  color: #090b0c;
}

.button:hover {
  transform: translateY(-2px);
  background: #ffb457;
  border-color: #ffb457;
}

.button-secondary {
  border-color: var(--studio-line-strong);
  background: rgba(8, 11, 13, 0.56);
  color: var(--studio-text);
}

.button-secondary:hover {
  border-color: var(--studio-text);
  background: var(--studio-surface);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-text);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  color: var(--studio-accent);
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  color: var(--studio-muted);
  font-size: 13px;
}

.hero-note strong {
  color: var(--studio-text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--studio-green);
  box-shadow: 0 0 0 6px rgba(158, 219, 143, 0.1);
}

.studio-section {
  padding-block: clamp(76px, 11vw, 138px);
}

.studio-section + .studio-section {
  border-top: 1px solid var(--studio-line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 50px;
  margin-bottom: 44px;
}

.section-copy {
  margin: 0;
  color: var(--studio-muted);
  font-size: 17px;
}

.featured-game {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-items: end;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  box-shadow: var(--studio-shadow);
}

.featured-game > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured-game::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 8, 10, 0.98) 2%, rgba(5, 8, 10, 0.3) 75%);
}

.featured-game:hover > img {
  transform: scale(1.025);
}

.featured-game-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding: clamp(26px, 5vw, 54px);
}

.featured-game h3 {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.featured-game p {
  max-width: 62ch;
  margin: 0;
  color: #c8d0d1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.status-label {
  padding: 6px 10px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 999px;
  color: #d7dddd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.software-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.software-card:hover {
  transform: translateY(-4px);
  border-color: var(--studio-line-strong);
}

.software-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--studio-line);
  background: var(--studio-bg-soft);
}

.software-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.software-card:hover .software-card-media img {
  transform: scale(1.025);
}

.software-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
}

.software-card-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--studio-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.software-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.software-card p {
  margin: 0;
  color: var(--studio-muted);
}

.software-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: auto;
  padding-top: 28px;
}

.software-card-actions .button {
  min-height: 44px;
  padding: 9px 14px;
}

.platform-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.platform-button {
  min-width: 0;
  min-height: 64px;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.platform-button strong {
  font-size: 14px;
  line-height: 1.25;
}

.platform-button small {
  color: currentColor;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  opacity: 0.78;
}

.platform-button--featured {
  grid-column: 1 / -1;
}

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

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  color: var(--studio-text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.game-card::before,
.concept-art::before {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.15;
}

.game-card::after,
.concept-art::after {
  content: "";
  position: absolute;
  inset: 18% auto auto -12%;
  width: 52%;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transform: rotate(-28deg);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--studio-line-strong);
}

.game-card--glow {
  color: #c8f485;
  background:
    radial-gradient(circle at 75% 60%, rgba(180, 240, 82, 0.2), transparent 28%),
    #11180e;
}

.game-card--mochi {
  color: #f7bdcd;
  background:
    radial-gradient(circle at 70% 70%, rgba(247, 189, 205, 0.18), transparent 32%),
    #1b1218;
}

.game-card-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-card-body {
  position: relative;
  z-index: 1;
}

.game-card h3 {
  margin: 0 0 14px;
  color: var(--studio-text);
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.game-card p {
  max-width: 46ch;
  margin: 0;
  color: var(--studio-muted);
}

.game-card .text-link {
  margin-top: 24px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 9vw, 110px);
  align-items: start;
}

.principles {
  display: grid;
  gap: 0;
  margin: 0;
}

.principle {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--studio-line);
}

.principle:last-child {
  border-bottom: 1px solid var(--studio-line);
}

.principle dt {
  color: var(--studio-accent);
  font-size: 12px;
  font-weight: 900;
}

.principle dd {
  margin: 0;
}

.principle h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.principle p {
  margin: 0;
  color: var(--studio-muted);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  padding: clamp(32px, 7vw, 72px);
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background:
    linear-gradient(120deg, rgba(244, 163, 64, 0.08), transparent 45%),
    var(--studio-surface);
}

.contact-panel::after {
  content: "S";
  position: absolute;
  right: -0.04em;
  bottom: -0.36em;
  color: rgba(255, 255, 255, 0.025);
  font-family: Impact, sans-serif;
  font-size: clamp(15rem, 42vw, 34rem);
  line-height: 1;
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel p {
  max-width: 58ch;
  color: var(--studio-muted);
}

.studio-footer {
  border-top: 1px solid var(--studio-line);
  color: var(--studio-muted);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-block: 52px 34px;
}

.footer-intro {
  max-width: 40ch;
}

.footer-intro p {
  margin: 14px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px 44px;
}

.footer-links a,
.footer-legal a {
  color: var(--studio-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--studio-text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--studio-line);
  font-size: 13px;
}

.page-hero {
  padding-block: clamp(80px, 12vw, 140px) clamp(64px, 9vw, 104px);
  border-bottom: 1px solid var(--studio-line);
}

.page-hero .lede {
  max-width: 68ch;
}

.portfolio-section {
  padding-block: 72px 120px;
}

.portfolio-feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 520px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
}

.portfolio-feature-media {
  min-height: 380px;
}

.portfolio-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.portfolio-feature-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.portfolio-feature-copy p {
  color: var(--studio-muted);
}

.portfolio-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 72px 0 26px;
}

.portfolio-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-transform: uppercase;
}

.portfolio-heading p {
  max-width: 46ch;
  margin: 0;
  color: var(--studio-muted);
}

.game-hero {
  padding-block: 34px 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.breadcrumb:hover {
  color: var(--studio-text);
}

.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(480px, 1.28fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
  padding-block: 30px 72px;
}

.game-hero-copy .lede {
  margin-top: 20px;
}

.game-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  border: 1px solid var(--studio-line);
  background: var(--studio-line);
}

.game-meta div {
  padding: 15px;
  background: var(--studio-bg-soft);
}

.game-meta dt {
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-meta dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.game-hero-art {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
}

.game-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.game-hero-art button {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.concept-art {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 40px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
}

.concept-art--glow {
  color: #c8f485;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 244, 133, 0.22), transparent 18%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 48px, rgba(200, 244, 133, 0.07) 49px 50px),
    #11180e;
}

.concept-art--mochi {
  color: #f7bdcd;
  background:
    radial-gradient(ellipse at 50% 74%, rgba(247, 189, 205, 0.18), transparent 30%),
    linear-gradient(155deg, transparent 46%, rgba(247, 189, 205, 0.09) 47% 53%, transparent 54%),
    #1b1218;
}

.concept-wordmark {
  position: relative;
  z-index: 1;
  color: var(--studio-text);
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.concept-wordmark small {
  display: block;
  margin-top: 18px;
  color: currentColor;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.game-content {
  padding-block: 82px 120px;
  border-top: 1px solid var(--studio-line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.content-grid > * {
  min-width: 0;
}

.content-grid h2 {
  position: sticky;
  top: 32px;
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 3.75rem);
  line-height: 1;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-transform: uppercase;
}

.prose {
  color: var(--studio-muted);
  font-size: 17px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 38px 0 10px;
  color: var(--studio-text);
  font-size: 22px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--studio-line);
  background: var(--studio-bg-soft);
  color: var(--studio-text);
  font-weight: 750;
}

.screenshots {
  padding-block: 82px 120px;
  border-top: 1px solid var(--studio-line);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.screenshot-grid button {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  padding: 0;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: var(--studio-surface);
  cursor: zoom-in;
}

.screenshot-grid button:first-child {
  grid-row: span 2;
}

.screenshot-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.screenshot-grid button:hover img {
  transform: scale(1.025);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 4, 5, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  border: 1px solid var(--studio-line-strong);
  box-shadow: var(--studio-shadow);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 50%;
  background: var(--studio-surface);
  color: var(--studio-text);
  font-size: 24px;
  cursor: pointer;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-block: 72px 120px;
}

.contact-card {
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.contact-card p {
  color: var(--studio-muted);
}

.contact-card a:not(.button) {
  color: var(--studio-accent);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: start;
  padding-block: 72px 120px;
}

.legal-toc {
  position: sticky;
  top: 28px;
  padding: 24px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: var(--studio-bg-soft);
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--studio-text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--studio-muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--studio-accent);
}

.legal-article {
  max-width: 780px;
  color: var(--studio-muted);
  font-size: 17px;
}

.legal-article section {
  padding-block: 8px 34px;
  scroll-margin-top: 24px;
}

.legal-article section + section {
  padding-top: 34px;
  border-top: 1px solid var(--studio-line);
}

.legal-article h2 {
  margin: 0 0 16px;
  color: var(--studio-text);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.legal-article p,
.legal-article ul {
  margin: 0 0 16px;
}

.legal-article li + li {
  margin-top: 8px;
}

.legal-article a {
  color: var(--studio-accent);
  font-weight: 750;
  text-underline-offset: 4px;
}

.legal-note {
  padding: 18px 20px;
  border-left: 3px solid var(--studio-accent);
  background: var(--studio-surface);
  color: #d8dede;
}

@media (max-width: 900px) {
  .studio-menu-toggle {
    display: block;
  }

  .studio-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--studio-line);
    background: rgba(8, 11, 13, 0.98);
  }

  .studio-links.is-open {
    display: grid;
  }

  .studio-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0;
  }

  .studio-links a::after {
    display: none;
  }

  .section-heading,
  .featured-game-content,
  .contact-panel,
  .footer-main,
  .portfolio-feature,
  .game-hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 22px;
  }

  .featured-game-content {
    align-items: start;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .software-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .footer-links {
    justify-self: start;
  }

  .portfolio-feature-media {
    min-height: 320px;
  }

  .game-hero-grid {
    padding-top: 0;
  }

  .game-hero-art,
  .concept-art {
    min-height: 440px;
  }

  .content-grid h2 {
    position: static;
  }
}

@media (max-width: 680px) {
  .studio-shell {
    width: min(calc(100% - 28px), var(--studio-max));
  }

  .studio-nav {
    min-height: 70px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(8, 11, 13, 0.94), rgba(8, 11, 13, 0.42)),
      linear-gradient(0deg, rgba(8, 11, 13, 0.98), transparent 68%);
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .display-title {
    font-size: clamp(3.25rem, 17vw, 5.5rem);
  }

  .page-title,
  .game-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .game-grid,
  .software-grid,
  .contact-options,
  .feature-list,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 370px;
  }

  .featured-game {
    min-height: 610px;
  }

  .featured-game > img {
    object-position: 55% center;
  }

  .portfolio-heading {
    align-items: start;
    flex-direction: column;
  }

  .game-meta {
    grid-template-columns: 1fr;
  }

  .game-hero-art,
  .game-hero-art img,
  .concept-art {
    min-height: 330px;
  }

  .screenshot-grid button,
  .screenshot-grid button:first-child {
    min-height: 220px;
    grid-row: auto;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    flex-direction: column;
  }

  .platform-actions {
    grid-template-columns: 1fr;
  }

  .platform-button--featured {
    grid-column: auto;
  }
}

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

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

/* Publisher-facing mobile game portfolio */
.mobile-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mobile-game-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-radius);
  background: var(--studio-surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mobile-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--studio-line-strong);
  box-shadow: var(--studio-shadow);
}

.mobile-game-card-media {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1794 / 876;
  border-bottom: 1px solid var(--studio-line);
  background: var(--studio-bg-soft);
}

.mobile-game-card-media > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1794 / 876;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mobile-game-card:hover .mobile-game-card-media > img:first-child {
  transform: scale(1.025);
}

.mobile-game-card-media .mobile-game-card-icon {
  position: absolute;
  left: clamp(16px, 3vw, 26px);
  bottom: clamp(16px, 3vw, 26px);
  width: clamp(68px, 7vw, 92px);
  height: clamp(68px, 7vw, 92px);
  max-width: none;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 22%;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  object-fit: contain;
  object-position: center;
}

.mobile-game-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
}

.mobile-game-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  color: var(--studio-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-game-card h3 {
  margin: 22px 0 12px;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 0.98;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

.mobile-game-card p {
  margin: 0;
  color: var(--studio-muted);
}

.mobile-game-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: auto;
  padding-top: 28px;
}

.mobile-game-card-actions .button {
  max-width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  text-align: center;
  white-space: normal;
}

.game-page {
  --game-accent: var(--studio-accent);
  --game-accent-rgb: 244, 163, 64;
}

.game-page--glow {
  --game-accent: #c8f485;
  --game-accent-rgb: 200, 244, 133;
}

.game-page--mochi {
  --game-accent: #f7bdcd;
  --game-accent-rgb: 247, 189, 205;
}

.game-page .game-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(var(--game-accent-rgb), 0.12), transparent 34rem),
    linear-gradient(180deg, rgba(var(--game-accent-rgb), 0.035), transparent 70%);
}

.game-page .game-hero-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(58px, 8vw, 92px);
}

.game-hero-copy,
.game-hero-art {
  min-width: 0;
}

.game-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin-bottom: 24px;
}

.game-identity .eyebrow {
  min-width: 0;
  margin: 0;
  color: var(--game-accent);
  overflow-wrap: break-word;
}

.game-icon {
  width: 92px;
  height: 92px;
  max-width: none;
  aspect-ratio: 1 / 1;
  flex: 0 0 92px;
  align-self: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 22%;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  object-fit: contain;
  object-position: center;
}

.game-page .game-title {
  max-width: 10ch;
}

.game-page .button:not(.button-secondary) {
  border-color: var(--game-accent);
  background: var(--game-accent);
}

.game-page .button:not(.button-secondary):hover {
  border-color: #fff;
  background: #fff;
}

.game-page .game-meta {
  margin-top: 36px;
}

.game-hero-art {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  aspect-ratio: 1794 / 876;
  box-shadow: var(--studio-shadow);
}

.game-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1794 / 876;
  object-fit: cover;
}

.game-page .game-content {
  background: linear-gradient(180deg, rgba(var(--game-accent-rgb), 0.025), transparent 26rem);
}

.release-note {
  margin: 34px 0 26px;
  padding: 22px 24px;
  border: 1px solid rgba(var(--game-accent-rgb), 0.32);
  border-left: 3px solid var(--game-accent);
  border-radius: 0 12px 12px 0;
  background: rgba(var(--game-accent-rgb), 0.055);
}

.release-note strong {
  color: var(--studio-text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-note p {
  margin: 8px 0 0;
}

.screenshot-grid--portrait {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.screenshot-grid--portrait button,
.screenshot-grid--portrait button:first-child {
  min-height: 0;
  grid-row: auto;
  aspect-ratio: 941 / 1672;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.screenshot-grid--portrait img {
  aspect-ratio: 941 / 1672;
  object-fit: cover;
}

.game-page .screenshots .eyebrow {
  color: var(--game-accent);
}

.game-page .contact-panel {
  background:
    linear-gradient(120deg, rgba(var(--game-accent-rgb), 0.1), transparent 48%),
    var(--studio-surface);
}

.game-page .contact-panel .button-row {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1023px) {
  .game-page .game-hero-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid h2 {
    position: static;
  }

  .game-hero-art {
    min-height: 0;
  }

  .screenshot-grid--portrait {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-page .contact-panel .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .mobile-game-card-media .mobile-game-card-icon {
    width: 72px;
    height: 72px;
  }

  .game-identity {
    align-items: flex-start;
  }

  .game-icon {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .game-identity .eyebrow {
    padding-top: 6px;
  }

  .screenshot-grid--portrait {
    display: flex;
    gap: 12px;
    margin-inline: -14px;
    padding: 2px 14px 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .screenshot-grid--portrait button,
  .screenshot-grid--portrait button:first-child {
    flex: 0 0 min(74vw, 300px);
    scroll-snap-align: center;
  }
}

@media (max-width: 767px) {
  .mobile-game-grid {
    grid-template-columns: 1fr;
  }
}
