:root {
  color-scheme: dark;
  --ground: #111310;
  --panel: #1b1e18;
  --line: #383d32;
  --soft: #b8bcb0;
  --white: #f5f5eb;
  --acid: #d8ff75;
  --font: Inter, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: var(--font);
  color: var(--white);
  background: var(--ground);
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; min-width: 280px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 98px; }
::selection { color: var(--ground); background: var(--acid); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }

.shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 5; top: 13px; left: 13px; padding: 14px; color: var(--ground); background: var(--acid); }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #111310f0;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 73px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; gap: 4px; width: 33px; height: 35px; transform: skew(-17deg); }
.brand-mark i { display: block; width: 8px; border-radius: 3px; background: var(--acid); }
.brand-mark i:nth-child(1) { height: 12px; align-self: end; margin-bottom: 5px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 23px; align-self: start; margin-top: 3px; }
.brand-type { display: grid; gap: 4px; font-size: .875rem; font-weight: 800; letter-spacing: .055em; line-height: 1; white-space: nowrap; }
.brand-type small { color: var(--soft); font-size: .75rem; letter-spacing: .32em; }
.header-inner nav { display: flex; gap: clamp(19px, 3vw, 48px); }
.header-inner nav a, .footer-inner > a:not(.brand) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--soft);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.header-inner nav a:hover, .footer-inner > a:hover { color: var(--acid); }

.button {
  display: inline-flex;
  min-height: 50px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}
.button-primary { color: var(--ground); background: var(--acid); }
.button-primary:hover { background: #ecffbd; }
.button-outline { color: var(--white); border-color: #545c4b; background: transparent; }
.button-outline:hover { color: var(--acid); border-color: var(--acid); }
.header-cta { justify-self: end; min-height: 44px; }
.play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 17% 35%, #29331c 0%, transparent 48%),
              radial-gradient(#b2cb7920 1px, transparent 1px), var(--ground);
  background-size: auto, 22px 22px, auto;
}
.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(25px, 4.8vw, 69px);
  align-items: center;
  padding-block: clamp(44px, 5.1vw, 82px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--acid);
  font: 600 .875rem/1.25 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.signal { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); }
.studio-intro h1 {
  margin: 19px 0 22px -.055em;
  font-size: clamp(4rem, 8.3vw, 8rem);
  font-weight: 900;
  letter-spacing: -.097em;
  line-height: .81;
  text-transform: uppercase;
}
.studio-intro h1 em { font-style: normal; color: var(--acid); }
.studio-intro h1 > span { color: var(--acid); }
.intro-tagline { font-size: clamp(1.28rem, 2vw, 1.85rem); font-weight: 700; line-height: 1.16; letter-spacing: -.045em; }
.intro-description { max-width: 35ch; margin-top: 12px; color: var(--soft); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.58; }
.intro-description strong { color: var(--white); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 23px; }
.intro-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 700; text-underline-offset: 4px; }
.intro-link:hover { color: var(--acid); }

.game-showcase { min-width: 0; border: 1px solid #414939; border-radius: 17px; background: #181b15; box-shadow: 0 23px 60px #03040365; }
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
}
.showcase-header .kicker { color: var(--soft); }
.showcase-header h2 { margin-top: 4px; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.04em; }
.showcase-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #ced6c3; font-size: .875rem; }
.showcase-status .signal { width: 6px; height: 6px; flex-basis: 6px; }
.showcase-panel { margin: 0 8px 8px; overflow: hidden; border-radius: 10px; background: #151611; }
.showcase-art { display: block; width: 100%; height: auto; }
.showcase-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; color: #faf8ed; font-size: .875rem; font-weight: 700; }
.showcase-expand {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #ffffff60;
  border-radius: 6px;
  background: #131511e8;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.showcase-expand:hover { color: var(--acid); border-color: var(--acid); }
.showcase-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 8px 8px;
}
.showcase-thumbnail {
  position: relative;
  display: grid;
  align-content: start;
  border: 1px solid #414939;
  border-radius: 8px;
  background: #20251c;
  overflow: hidden;
  text-decoration: none;
}
.showcase-thumbnail:hover { border-color: var(--acid); }
.showcase-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101210;
}
.showcase-thumbnail-caption { display: grid; gap: 2px; padding: 8px 28px 9px 9px; }
.showcase-thumbnail-caption strong { font-size: .9375rem; line-height: 1.2; }
.showcase-thumbnail-caption small { color: var(--soft); font-size: .8125rem; }
.showcase-thumbnail > .expand-icon { position: absolute; right: 9px; bottom: 10px; }

.field-section { padding-block: clamp(60px, 8vw, 114px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 23px; margin-bottom: 24px; }
.section-heading h2, .studio-copy h2, .follow-section h2 {
  margin-top: 10px;
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  font-weight: 750;
  letter-spacing: -.079em;
  line-height: .95;
}
.section-heading h2 span, .studio-copy h2 span { color: var(--acid); }
.tab-list { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #171a15; }
.tab-list button {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--soft);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.tab-list button:hover { color: var(--white); border-color: var(--line); }
.tab-list button[aria-selected="true"] { color: var(--ground); background: var(--acid); border-color: var(--acid); }
.field-panels { display: grid; gap: 15px; }
.field-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
@keyframes panel-entry { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.field-panel.is-entering { animation: panel-entry 230ms ease-out both; }
.field-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(24px, 5vw, 64px); padding: clamp(24px, 4.4vw, 65px); }
.field-copy h3 { margin-top: 10px; font-size: clamp(1.95rem, 3.45vw, 3.5rem); font-weight: 750; line-height: .99; letter-spacing: -.07em; }
.field-copy > p { max-width: 39ch; color: var(--soft); font-size: 1.0625rem; line-height: 1.55; }
.expand-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.studio-section { color-scheme: light; color: #14190e; background: #dbe3cf; }
.studio-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(20px, 5vw, 70px); padding-block: clamp(30px, 5.5vw, 82px); }
.studio-copy .kicker, .studio-copy h2 span { color: #425d21; }
.studio-copy .signal { background: #425d21; }
.studio-copy > p:not(.kicker) { max-width: 43ch; margin-top: 16px; color: #323c2a; font-size: 1.08rem; line-height: 1.58; }
.studio-image { min-width: 0; align-self: stretch; min-height: 330px; overflow: hidden; border-radius: 11px; background: #151914; }
.studio-image img { width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.studio-section :focus-visible { outline-color: #425d21; }
.contact-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 18px; margin-top: 28px; }
.contact-row > div { display: grid; gap: 4px; }
.contact-row > div span { color: #4d5945; font-size: .875rem; }
.contact-row strong { font-size: 1.125rem; }
.contact-row .button { min-height: 44px; padding-inline: 13px; color: #14190e; border-color: #626b59; }
.contact-row .button:hover { color: #22330e; border-color: #425d21; background: #d8ff75; }

.follow-section { display: flex; justify-content: space-between; align-items: center; gap: 23px; padding-block: clamp(49px, 7vw, 92px); }
.follow-section h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 4.1rem); }
.follow-actions { display: grid; flex: 0 0 auto; gap: 8px; max-width: 100%; }
.follow-social { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-social .button { flex: 1 0 auto; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 25px; padding-block: 23px; }

body:has(.media-dialog[open]) { overflow: hidden; }
.media-dialog {
  width: min(960px, calc(100% - 30px));
  max-height: calc(100% - 30px);
  padding: clamp(13px, 2vw, 22px);
  color: var(--white);
  border: 1px solid #585f51;
  border-radius: 12px;
  background: var(--ground);
}
.media-dialog::backdrop { background: #060706d9; backdrop-filter: blur(5px); }
.media-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.media-top h2 { font-size: clamp(1.1rem, 2.4vw, 1.65rem); }
.media-top .button { min-height: 44px; }
.media-view { display: grid; place-items: center; background: #090a09; }
.media-view img, .media-view video { max-height: 72vh; width: auto; height: auto; }
#media-caption { margin-top: 12px; color: var(--soft); font-size: .9375rem; line-height: 1.45; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
}

@media (max-width: 850px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 67px; gap: 13px; }
  .masthead-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 31px 28px; }
  .studio-intro h1 { font-size: clamp(4.1rem, 12vw, 7rem); }
  .field-copy { padding: 21px; }
  .studio-inner { gap: 19px; }
}

@media (max-width: 590px) {
  [id] { scroll-margin-top: 116px; }
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 9px; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 20px; }
  .header-cta { padding-inline: 10px; }
  .brand { gap: 8px; }
  .brand-type { font-size: .8125rem; }
  .brand-mark { transform: skew(-17deg) scale(.84); transform-origin: left; margin-right: -4px; }
  .studio-intro h1 { font-size: clamp(3.1rem, 14vw, 5.5rem); margin-top: 15px; margin-bottom: 17px; }
  .intro-actions { margin-top: 16px; }
  .showcase-header { padding: 12px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 14px; }
  .tab-list { padding: 3px; }
  .tab-list button { padding-inline: 11px; font-size: .9375rem; }
  .field-copy { padding: 21px 17px; }
  .studio-inner { grid-template-columns: 1fr; gap: 22px; }
  .studio-image { min-height: 210px; aspect-ratio: 1.3; }
  .follow-section { flex-direction: column; align-items: start; gap: 17px; }
  .follow-actions { width: 100%; }
}

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