:root {
  color-scheme: dark;
  --ink: #f5f0e5;
  --muted: #bbb9b0;
  --night: #06100d;
  --night-soft: #0b1814;
  --ember: #e6a24b;
  --ember-bright: #ffc46c;
  --line: rgba(245, 240, 229, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  background: var(--night);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--night); }
body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 80% 18%, rgba(94, 111, 81, .13), transparent 32rem), var(--night);
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 2px;
  color: var(--night);
  background: var(--ember-bright);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(22px, 4vw, 74px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(to bottom, rgba(3, 8, 7, .78), transparent);
}
.wordmark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark .mark,
.footer-brand strong {
  color: var(--ember-bright);
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: .08em;
}
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 46px); }
.site-header nav a {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:not(.nav-cta) { color: rgba(255, 255, 255, .78); }
.site-header nav a:hover,
.site-header nav a:focus-visible { color: var(--ember-bright); }
.nav-cta { padding: 11px 16px; border: 1px solid rgba(255, 196, 108, .55); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #111a14;
}
.hero-art,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -3; object-fit: cover; object-position: 50% 50%; }
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 8, 7, .84) 0%, rgba(3, 8, 7, .38) 44%, transparent 70%),
    linear-gradient(0deg, rgba(3, 8, 7, .94) 0%, transparent 44%),
    linear-gradient(180deg, rgba(3, 8, 7, .18), transparent 30%);
}
.hero-content { width: min(720px, 90vw); margin: 0 0 clamp(92px, 12vh, 150px) clamp(22px, 7vw, 118px); }
.eyebrow,
.status {
  margin: 0 0 18px;
  color: var(--ember-bright);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .27em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.studio-copy h2,
.game-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .94;
}
.hero h1 { max-width: 680px; font-size: clamp(3.7rem, 8vw, 8rem); text-shadow: 0 4px 38px rgba(0, 0, 0, .52); }
.hero-copy { max-width: 610px; margin: 24px 0 30px; color: #e2dfd7; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button-primary { color: #17130d; background: var(--ember-bright); }
.button-primary:hover,
.button-primary:focus-visible { background: #ffd99e; }
.button-ghost { border-color: rgba(255, 255, 255, .42); color: white; background: rgba(6, 16, 13, .16); }
.button-ghost:hover,
.button-ghost:focus-visible { border-color: var(--ember-bright); color: var(--ember-bright); }

.scroll-cue {
  position: absolute;
  right: clamp(22px, 4vw, 74px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, .7);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-cue::after { width: 52px; height: 1px; content: ""; background: var(--ember-bright); }

.games-section { padding: clamp(78px, 10vw, 150px) clamp(18px, 4vw, 72px); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 32px;
  align-items: end;
  max-width: 1420px;
  margin: 0 auto clamp(42px, 6vw, 80px);
}
.section-heading h2,
.studio-copy h2 { font-size: clamp(3rem, 6vw, 6.4rem); }
.section-heading > p { max-width: 510px; margin: 0 0 4px auto; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.game-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  grid-template-rows: repeat(2, minmax(330px, 39vw));
  gap: clamp(12px, 1.5vw, 24px);
  max-width: 1500px;
  margin: 0 auto;
}
.game-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 108, .25);
  background: #0d1511;
}
.game-card--portrait { grid-row: 1 / 3; }
.game-card > img,
.game-card-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-card > img { object-fit: cover; transition: transform 800ms cubic-bezier(.2, .8, .2, 1), filter 400ms ease; }
.game-card--portrait > img { object-position: center; }
.game-card-shade { background: linear-gradient(0deg, rgba(3, 8, 7, .95), rgba(3, 8, 7, .04) 60%); }
.game-card-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: clamp(22px, 3vw, 42px); }
.game-card-copy .status { margin-bottom: 8px; }
.game-card-copy h3,
.featured-strip h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}
.game-card-copy > p:not(.status) { max-width: 440px; margin: 12px 0 18px; color: rgba(255, 255, 255, .78); font-size: .98rem; line-height: 1.5; }
.game-card:hover > img,
.game-card:focus-within > img { transform: scale(1.025); filter: saturate(1.08); }
.text-link {
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--ember-bright);
  color: var(--ink);
  background: transparent;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  cursor: pointer;
  text-transform: uppercase;
}
.text-link:hover,
.text-link:focus-visible { color: var(--ember-bright); }

.featured-strip {
  position: relative;
  max-width: 1500px;
  margin: clamp(12px, 1.5vw, 24px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 108, .25);
  background: #0d1511;
}
.featured-strip > img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.featured-strip-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: end;
  padding: clamp(26px, 4vw, 52px);
  background: linear-gradient(0deg, rgba(3, 8, 7, .96), transparent);
}
.featured-strip-copy .status { margin-bottom: 8px; }
.featured-strip-copy > p { margin: 0 0 5px; color: rgba(255, 255, 255, .78); line-height: 1.6; }

.studio-section {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(36px, 8vw, 130px);
  align-items: center;
  min-height: 76svh;
  padding: clamp(78px, 10vw, 150px) clamp(22px, 8vw, 140px);
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at 18% 50%, rgba(230, 162, 75, .12), transparent 34rem), linear-gradient(135deg, #07110e, #0b1915);
}
.studio-mark {
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(9rem, 24vw, 25rem);
  font-weight: 700;
  letter-spacing: -.12em;
  line-height: .7;
  -webkit-text-stroke: 1px rgba(255, 196, 108, .28);
  user-select: none;
}
.studio-copy { max-width: 760px; }
.studio-copy > p:not(.eyebrow) { max-width: 660px; margin: 28px 0 34px; color: var(--muted); font-size: 1.07rem; line-height: 1.75; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px clamp(22px, 4vw, 72px);
  border-top: 1px solid var(--line);
  color: #a8aaa3;
  font-size: .78rem;
}
footer p { margin: 0; text-align: center; }
footer > a:last-child { justify-self: end; color: #caccc4; text-decoration: none; }
footer > a:last-child:hover,
footer > a:last-child:focus-visible { color: var(--ember-bright); }

.game-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 196, 108, .46);
  border-radius: 0;
  color: var(--ink);
  background: #07110e;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .75);
}
.game-dialog::backdrop { background: rgba(1, 5, 4, .88); backdrop-filter: blur(12px); }
.dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  min-width: 72px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .42);
  color: white;
  background: rgba(3, 8, 7, .68);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dialog-media { max-height: 60svh; overflow: hidden; background: #030807; }
.dialog-media img { width: 100%; max-height: 60svh; object-fit: cover; }
.dialog-copy { padding: clamp(28px, 5vw, 64px); }
.dialog-copy .status { margin-bottom: 12px; }
.game-dialog h2 { font-size: clamp(2.8rem, 7vw, 6rem); }
.dialog-copy > p:not(.status) { max-width: 720px; margin: 22px 0 30px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; padding: 20px 18px; }
  .wordmark { gap: 8px; font-size: .68rem; letter-spacing: .2em; }
  .wordmark .mark { font-size: 1.18rem; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 9px 11px !important; font-size: .64rem !important; }
  .hero { min-height: 92svh; }
  .hero-art {
    object-position: 62% center;
    transform: scale(1.38);
    transform-origin: center bottom;
  }
  .hero-shade { background: linear-gradient(0deg, rgba(3, 8, 7, .98) 0%, rgba(3, 8, 7, .25) 68%, rgba(3, 8, 7, .45)); }
  .hero-content { width: auto; margin: 0 20px 78px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 5.6rem); }
  .hero-copy { font-size: 1rem; line-height: 1.58; }
  .hero-actions .button { flex: 1 1 180px; }
  .scroll-cue { display: none; }
  .games-section { padding-right: 14px; padding-left: 14px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; padding: 0 8px; }
  .section-heading > p { margin-left: 0; }
  .game-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .game-card { min-height: auto; }
  .game-card--portrait { grid-row: auto; }
  .game-card > img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .game-card--portrait > img { aspect-ratio: 9 / 16; }
  .game-card-shade { display: none; }
  .game-card-copy {
    position: static;
    padding: 22px;
    border-top: 1px solid rgba(255, 196, 108, .2);
    background: #0b1713;
  }
  .game-card-copy h3,
  .featured-strip h3 { font-size: clamp(2.3rem, 11vw, 4rem); }
  .featured-strip > img { aspect-ratio: 16 / 9; }
  .featured-strip-copy {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
    border-top: 1px solid rgba(255, 196, 108, .2);
    background: #0b1713;
  }
  .featured-strip-copy > p { margin: 0; }
  .featured-strip-copy .button { justify-self: start; }
  .studio-section { grid-template-columns: 1fr; min-height: auto; overflow: hidden; }
  .studio-mark { margin-left: -4vw; font-size: 44vw; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .footer-brand,
  footer > a:last-child { justify-self: center; }
}

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