@font-face {
  font-family: "Cinzel Decorative";
  src: url("fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0905;
  --bark: #1a120b;
  --bark-2: #281b10;
  --line: #4a3520;
  --cream: #f6e8c8;
  --muted: #cdbd9d;
  --gold: #fabe5e;
  --gold-deep: #e69b32;
  --sky: #cbcfbd;
  --head: "Cinzel Decorative", Georgia, serif;
  --body: "Alegreya Sans", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --bar: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(18px, 1.25vw, 20px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, .wordmark { font-kerning: none; font-variant-ligatures: none; font-feature-settings: "kern" 0, "liga" 0, "dlig" 0, "clig" 0, "calt" 0; }
h1, h2 { font-family: var(--head); font-weight: 700; line-height: 1.12; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 4px;
  font-weight: 700;
}
.skip:focus { top: 10px; }

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(11, 9, 5, .86);
  border-bottom: 1px solid rgba(250, 190, 94, .22);
  backdrop-filter: blur(8px);
}
.wordmark {
  font-family: var(--head);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-steam { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 #9a6217; }
.btn-steam:hover { background: #ffd488; }
.btn-ghost { background: rgba(11, 9, 5, .62); color: var(--cream); }
.btn-ghost:hover { background: var(--bark-2); }
.bar .btn { min-height: 40px; padding: 7px 16px; font-size: 16px; box-shadow: none; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero-art {
  position: absolute;
  inset: var(--bar) 0 0;
  z-index: -2;
  width: 100%;
  height: calc(100% - var(--bar));
  object-fit: cover;
  object-position: 50% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 44%;
  background: linear-gradient(to bottom, rgba(11, 9, 5, 0), rgba(11, 9, 5, .86) 52%, var(--ink));
}
.hero-logo {
  position: absolute;
  top: calc(var(--bar) + clamp(6px, 1.5vh, 18px));
  right: clamp(24px, 6vw, 110px);
  width: clamp(220px, 23vw, 410px);
  max-height: 31svh;
  object-fit: contain;
  object-position: right top;
}
.hero-copy {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 0 var(--gutter) clamp(24px, 5vh, 48px);
}
.eyebrow {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: .86em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 { max-width: 15em; font-size: clamp(32px, 4vw, 60px); text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
.hero-sub { max-width: 34em; margin-top: 10px; color: var(--cream); font-size: 1.08em; text-shadow: 0 1px 6px #000; }
.hero .actions { flex: none; justify-content: flex-end; }

.section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section-alt { background: var(--bark); border-block: 1px solid var(--bark-2); }
.wrap { width: min(100%, 1180px); margin-inline: auto; }
.section h2 { font-size: clamp(27px, 3vw, 42px); color: var(--gold); }
.lede { max-width: 38em; margin-top: 10px; color: var(--muted); font-size: 1.08em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(24px, 3vw, 40px); }

.trailer {
  width: min(100%, 1040px);
  aspect-ratio: 16 / 9;
  margin-top: clamp(24px, 3vw, 40px);
  background: #000;
  border: 2px solid var(--line);
  border-radius: 6px;
}

.tile { min-width: 0; }
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.tile h3 { margin-top: 13px; font-size: 1.22em; line-height: 1.2; color: var(--cream); }
.tile p { margin-top: 3px; color: var(--muted); }
.clip-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 62px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid rgba(250, 190, 94, .65);
  border-radius: 4px;
  background: rgba(11, 9, 5, .82);
  color: var(--cream);
  font: 700 15px/1 var(--body);
  cursor: pointer;
}
.clip-toggle:hover { background: var(--bark-2); }

.hero-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--bark-2);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.hero-card img { width: 112px; height: 112px; background: #120c08; border: 2px solid var(--gold-deep); border-radius: 50%; object-fit: cover; }
.hero-card h3 { font-size: 1.24em; line-height: 1.15; color: var(--gold); }
.fury { margin-top: 3px; color: var(--cream); font-size: .9em; font-weight: 700; }
.hero-card p:last-child { margin-top: 6px; color: var(--muted); font-size: .94em; line-height: 1.38; }

.closer { text-align: center; }
.closer .logo-small { width: min(62vw, 300px); margin: 0 auto 18px; }
.closer h2 { color: var(--cream); }
.closer .actions { justify-content: center; margin-top: 24px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--bark-2);
  color: var(--muted);
  font-size: 16px;
}
.foot a { text-underline-offset: 3px; }

/* Studio home */
.studio .hero-copy { align-items: flex-end; }
.studio .hero h1 { font-size: clamp(30px, 3.5vw, 52px); }
.studio .foot { position: relative; }

@media (min-width: 981px) and (max-width: 1240px) {
  .hero-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .hero-card img { width: 76px; height: 76px; }
}

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .play-grid, .run-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-grid .tile:last-child, .run-grid .tile:last-child { grid-column: 1 / -1; }
  .hero-copy { display: block; }
  .hero .actions { justify-content: flex-start; margin-top: 16px; }
}

@media (max-width: 700px), (max-aspect-ratio: 1 / 1) {
  :root { --bar: 58px; }
  .hero {
    min-height: 0;
    padding-top: var(--bar);
    background: var(--sky);
  }
  .hero::after { display: none; }
  .hero-logo {
    position: static;
    width: min(66vw, 340px);
    max-height: none;
    margin: 12px auto 8px;
    object-position: center;
  }
  .hero-art {
    position: static;
    z-index: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }
  .hero-copy { position: static; padding: 18px var(--gutter) 32px; background: var(--ink); }
  .hero h1 { font-size: clamp(29px, 8.4vw, 42px); }
  .hero .actions .btn { flex: 1 1 100%; }
  .play-grid, .run-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 88px minmax(0, 1fr); padding: 14px; }
  .hero-card img { width: 88px; height: 88px; }
  .wordmark { font-size: 16px; }
  .bar .btn { padding: 7px 11px; font-size: 15px; }
}

@media (min-width: 701px) and (max-height: 560px) {
  .hero { min-height: 560px; }
  .hero-logo { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
