:root {
  --ink: #090c12;
  --surface: #11151d;
  --paper: #f1eee7;
  --muted: #a9abb0;
  --line: #2a2f38;
  --accent: #ff6b22;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { line-height: 1.65; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: .94; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: auto;
  padding: 1.5rem 2rem;
}
.brand { width: 220px; height: auto; overflow: hidden; }
.brand img { width: 100%; height: auto; }
nav { display: flex; gap: 2rem; }
nav a { text-shadow: 0 1px 8px rgba(0,0,0,.8); }
nav a, .text-link {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
nav a::after, .text-link::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: .3rem;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
nav a:hover::after, nav a:focus-visible::after, .text-link:hover::after, .text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu-button { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #05080d;
}
.hero-art {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: 62% center;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.02);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,7,12,.72), rgba(4,7,12,.38) 72px, transparent 145px), linear-gradient(90deg, rgba(4,7,12,.97) 0%, rgba(4,7,12,.78) 34%, rgba(4,7,12,.12) 72%), linear-gradient(0deg, rgba(4,7,12,.7), transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  max-width: var(--max);
  margin: auto;
  padding: 7rem 2rem 3rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.eyebrow, .section-label, .status {
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 { margin-bottom: 1.2rem; font-size: clamp(4.8rem, 11.5vw, 9.5rem); line-height: .86; text-transform: uppercase; }
.hero-line { margin-bottom: 1rem; font-size: clamp(1.45rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; }
.hero-copy { max-width: 34rem; margin-bottom: 2.3rem; color: #c9cbd0; font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; gap: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.2rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #080a0e;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s, transform .2s;
}
.button:hover, .button:focus-visible { background: transparent; color: var(--paper); transform: translateY(-2px); }
.hero-caption {
  position: absolute;
  z-index: 2;
  right: 2rem;
  bottom: 1.5rem;
  margin: 0;
  color: #d5d6d9;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.intro, .games, .history, .contact, footer { padding-inline: max(2rem, calc((100vw - var(--max)) / 2)); }
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding-block: clamp(6rem, 12vw, 11rem); }
.intro-copy h2, .section-heading h2, .history h2, .contact h2 { font-size: clamp(3.3rem, 7vw, 7rem); }
.intro-copy > p { max-width: 46rem; color: #c6c8cc; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.studio-facts { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 4rem 0 0; background: var(--line); }
.studio-facts div { padding: 1.5rem 0; background: var(--ink); }
.studio-facts dt { margin-bottom: .4rem; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; }
.studio-facts dd { margin: 0; color: var(--muted); font-size: .82rem; }

.games { padding-bottom: clamp(6rem, 12vw, 11rem); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: clamp(5rem, 10vw, 9rem); }
.section-heading h2 { max-width: 850px; }
.featured-game {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) .65fr;
  min-height: 650px;
  margin-bottom: clamp(7rem, 14vw, 13rem);
  overflow: hidden;
  background: #0d131a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-copy { align-self: center; max-width: 680px; padding: clamp(3rem, 7vw, 6rem); padding-left: 0; }
.game-logo { width: min(100%, 530px); height: auto; margin-bottom: 2.5rem; }
.cbm-logo { filter: saturate(.9); }
.feature-copy > p:not(.status) { max-width: 38rem; color: #c1c5ca; font-size: 1.1rem; }
.feature-mark { align-self: center; color: #141c25; font-size: clamp(8rem, 18vw, 16rem); font-weight: 900; letter-spacing: -.1em; line-height: .62; text-align: right; text-transform: uppercase; transform: rotate(-90deg); }
.release-window { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2.5rem 0; padding: 1.6rem 0; border-block: 1px solid var(--line); }
.release-window p { margin: 0; }
.release-window strong, .release-window span { display: block; }
.release-window strong { margin-bottom: .3rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.release-window span { color: var(--muted); font-size: .9rem; }

.game-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; margin-bottom: clamp(7rem, 14vw, 13rem); }
.game-row:nth-of-type(even) .game-media { order: 2; }
.game-media { position: relative; overflow: hidden; aspect-ratio: 1.45; background: var(--surface); }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.game-media:hover img { transform: scale(1.025); }
.game-copy h3 { margin-bottom: 1.5rem; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.game-copy > p:not(.status) { margin-bottom: 2rem; color: #bfc2c7; }
.status { display: flex; align-items: center; gap: .65rem; margin-bottom: 2.5rem; }
.status::before { content: ""; width: .5rem; height: .5rem; background: currentColor; border-radius: 50%; box-shadow: 0 0 14px currentColor; }
.status.live { color: #78d897; }
.status.archive { color: #91959c; }
.ad-logo { width: min(100%, 430px); }
.ad2460 .game-media { aspect-ratio: 1.65; }

.history { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 10vw, 10rem); padding-block: clamp(6rem, 12vw, 11rem); background: var(--paper); color: var(--ink); }
.history .section-label { color: #bb450d; }
.history-copy { padding-top: 7rem; }
.history-copy p { max-width: 40rem; }
.history-copy .lead { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }

.contact { padding-block: clamp(6rem, 12vw, 10rem); background: var(--accent); color: var(--ink); }
.contact .section-label { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.contact-details a { display: inline-block; margin-bottom: 3rem; font-size: clamp(1.05rem, 2.2vw, 1.7rem); font-weight: 750; text-underline-offset: .25em; }
.contact-details address { margin-bottom: 2rem; font-size: 1.05rem; font-style: normal; line-height: 1.7; }
.contact-details p { max-width: 31rem; margin-bottom: 0; font-size: .82rem; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 180px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
footer img { width: 210px; height: auto; }
footer p { margin: 0; }
footer a { text-underline-offset: .3em; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

@media (max-width: 800px) {
  .site-header { padding: 1.2rem; }
  .brand { width: 185px; }
  .brand img { width: 100%; }
  .menu-button { position: relative; z-index: 2; display: grid; width: 44px; height: 44px; padding: 12px 8px; border: 0; background: transparent; gap: 5px; }
  .menu-button span:not(.sr-only) { height: 2px; background: var(--paper); transition: transform .2s, opacity .2s; }
  .menu-open .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-button span:nth-child(2) { opacity: 0; }
  .menu-open .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav { position: fixed; inset: 0; display: flex; padding: 7rem 2rem 3rem; background: rgba(9,12,18,.98); flex-direction: column; justify-content: center; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  nav a { font-size: clamp(2rem, 12vw, 4rem); letter-spacing: -.04em; text-transform: none; }
  .menu-open nav { visibility: visible; opacity: 1; }
  .hero-art { object-position: 68% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,7,12,.94), rgba(4,7,12,.3)), linear-gradient(0deg, rgba(4,7,12,.85), transparent 60%); }
  .hero-content { padding: 8rem 1.25rem 4rem; justify-content: flex-end; }
  h1 { font-size: clamp(4.7rem, 24vw, 7.2rem); }
  .hero-copy { max-width: 28rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
  .hero-caption { display: none; }
  .intro, .section-heading, .history, .contact-grid { grid-template-columns: 1fr; }
  .intro, .games, .history, .contact, footer { padding-inline: 1.25rem; }
  .studio-facts { grid-column: 1; grid-template-columns: 1fr; margin-top: 2rem; }
  .section-heading { margin-bottom: 5rem; }
  .featured-game, .game-row { grid-template-columns: 1fr; }
  .featured-game { min-height: 0; }
  .feature-copy { padding: 4rem 0; }
  .feature-mark { display: none; }
  .release-window { grid-template-columns: 1fr; gap: 1.2rem; }
  .game-row, .game-row:nth-of-type(even) .game-media { order: initial; }
  .game-media { aspect-ratio: 1.2; }
  .ad2460 .game-media { aspect-ratio: 1.45; }
  .game-copy { padding-inline: .25rem; }
  .history-copy { padding-top: 0; }
  footer { padding-block: 3rem; align-items: flex-start; flex-direction: column; }
}

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