/* The studio stays quiet; the games supply the colour. */
:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f2f2ed;
  --muted: #a0a3a1;
  --line: #292c2b;
  --header-height: 64px;
  --logo-w: min(780px, 80vw);
  --split-l: calc(var(--logo-w) * .5721);
  --split-r: calc(var(--logo-w) * .4279);
  --crop-h: calc(var(--logo-w) * .140426);
  --crop-t: calc(var(--logo-w) * -.048936);
  --refl-h: calc(var(--logo-w) * .104256);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Jost', system-ui, sans-serif; font-size: 18px; font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, iframe:focus-visible { outline: 2px solid #ebd094; outline-offset: 6px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: #e4d1a6; color: #151610; }
.wrap { width: min(1360px, calc(100% - 112px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 40; padding: 12px 20px; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.overline, .eyebrow, .languages, .footer-bottom, .game-facts dt, .media-note, .back-link { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 300; }
.overline { color: var(--muted); letter-spacing: .08em; }
.status { color: #dfcfaa; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 50px; min-height: 63px; }
.brand { margin-right: auto; display: flex; align-items: center; min-height: 44px; }
.brand > span { width: 180px; height: 26px; overflow: hidden; }
.brand img { width: 180px; height: auto; max-width: none; margin-top: -8.8px; }
.main-nav { display: flex; gap: 32px; align-items: center; font-size: 16px; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; color: #c0c4c0; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.languages { display: flex; gap: 16px; padding-left: 32px; border-left: 1px solid var(--line); }
.languages a { display: flex; align-items: center; min-height: 44px; color: #9b9f9c; padding-block: 6px; }
.languages a[aria-current], .languages a:hover { color: #fff; }
.studio-hero { display: flex; flex-direction: column; align-items: center; padding-top: 55px; padding-bottom: 48px; }
.eyebrow { margin-bottom: 24px; text-transform: uppercase; letter-spacing: .27em; color: var(--muted); text-align: center; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark { position: relative; display: flex; flex-direction: column; align-items: center; }
.mark-row { display: flex; justify-content: center; width: var(--logo-w); }
.half { height: var(--crop-h); overflow: hidden; }
.half img { width: var(--logo-w); max-width: none; margin-top: var(--crop-t); }
.half-l { width: var(--split-l); }
.half-r { width: var(--split-r); }
.half-r img { margin-left: calc(-1 * var(--split-l)); }
.waterline { width: var(--logo-w); height: 1px; background: linear-gradient(90deg, transparent, #5c6362 22%, #5c6362 78%, transparent); }
.reflection { width: var(--logo-w); height: var(--refl-h); overflow: hidden; opacity: .37; filter: blur(1.5px); }
.reflection-inner { transform: scaleY(-1); filter: url(#water); -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #0008 55%, #000f); mask-image: linear-gradient(to bottom, transparent 4%, #0008 55%, #000f); }
.statement { max-width: 610px; margin-top: 20px; text-align: center; font-size: clamp(20px, 2vw, 25px); line-height: 1.5; color: #c0c5c1; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(32px, 3.6vw, 50px); max-width: 760px; letter-spacing: -.025em; }
.section-heading > p { color: var(--muted); max-width: 290px; font-size: 16px; }
.games-section { padding-top: 30px; }
.game-featured { display: grid; grid-template-columns: 1.32fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.game-art { display: block; overflow: hidden; background: #101412; aspect-ratio: 16 / 9; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.game-art:hover img { transform: scale(1.025); }
.game-copy h3 { font-size: clamp(32px, 3.2vw, 45px); margin-top: 14px; letter-spacing: -.02em; }
.game-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 9px; }
.game-featured h3 { font-size: clamp(40px, 4.8vw, 68px); }
.game-genre { font-size: 16px; color: var(--muted); margin-top: 10px; }
.game-summary { color: #c6cac6; margin-top: 20px; max-width: 530px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 20px; border: 1px solid #626762; font-size: 16px; font-weight: 400; line-height: 1.4; text-align: center; transition: background .2s, border-color .2s, color .2s; }
.button:hover { background: #222623; border-color: #b6bdb4; }
.button--primary { background: #e3d2ac; border-color: #e3d2ac; color: #111510; }
.button--primary:hover { background: #f3e4c7; border-color: #f3e4c7; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; }
.game-grid .game-copy { padding-top: 26px; }
.game-tile--intro .game-art img, .intro-frame img { image-rendering: pixelated; }
.studio-section { padding-top: 128px; padding-bottom: 80px; }
.studio-section > .overline { margin-bottom: 32px; }
.studio-story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.studio-story h2 { font-size: clamp(34px, 3.8vw, 54px); max-width: 520px; letter-spacing: -.025em; }
.studio-story p { color: #c6cac6; font-size: 21px; }
.text-link { display: inline-block; margin-top: 24px; padding-bottom: 4px; border-bottom: 1px solid #8d958e; font-size: 16px; }
.text-link:hover { color: #e3d2ac; }
.careers-strip { margin-top: 90px; padding-block: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.careers-strip h3 { font-size: 27px; }
.careers-strip p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.careers-strip .button { flex-shrink: 0; }
.site-footer { padding-top: 32px; padding-bottom: 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-name { font-size: 25px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: var(--muted); padding-top: 25px; margin-top: 25px; border-top: 1px solid var(--line); }
.footer-bottom a:hover { color: #fff; }
.social { display: flex; align-items: center; gap: 8px; }
.social a { padding: 12px; opacity: .65; }
.social a:hover { opacity: 1; }
.share-popup { display: none; position: fixed; right: 32px; bottom: 32px; z-index: 20; flex-direction: column; padding: 8px; border: 1px solid #687268; background: #101310; }
.share-popup[data-open="true"] { display: flex; }
.share-popup button { color: var(--text); background: none; border: 0; padding: 10px 24px; text-align: left; font-size: 16px; }
.share-popup button:hover { background: #2b322b; }
/* Game pages share the shell, while their media carries their identity. */
.back-link { display: inline-block; margin-top: 36px; padding-block: 10px; color: var(--muted); border-bottom: 1px solid #59615b; }
.back-link:hover { color: #fff; }
.game-header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-block: 38px 48px; }
.game-header h1 { font-size: clamp(52px, 7.5vw, 104px); letter-spacing: -.04em; margin-top: 18px; }
.game-tagline { max-width: 760px; font-size: clamp(21px, 2vw, 28px); color: #c6cac6; margin-top: 20px; }
.game-header-side { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; padding-bottom: 5px; }
.game-header-side .button { max-width: 310px; }
.game-cover { overflow: hidden; }
.game-cover img { width: 100%; height: auto; }
.game-facts { display: flex; flex-wrap: wrap; gap: 30px 80px; padding-block: 28px; margin: 0; border-bottom: 1px solid var(--line); }
.game-facts dt { color: var(--muted); margin-bottom: 6px; }
.game-facts dd { margin: 0; font-size: 18px; }
.game-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-block: 90px 54px; }
.game-intro > p:last-child { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.5; max-width: 850px; }
.game-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: 24px 60px; }
.game-features > div { border-top: 1px solid var(--line); padding-top: 30px; }
.game-features h3 { font-size: 26px; }
.game-features p { color: var(--muted); margin-top: 18px; }
.media-section { padding-top: 50px; padding-bottom: 20px; }
.trailer-player { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.trailer-player iframe, .trailer-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-preview img { width: 100%; height: 100%; object-fit: cover; }
.trailer-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #0005; color: #fff; font-size: 18px; }
.trailer-play { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid #fff9; background: #0009; transition: background .2s, color .2s; }
.trailer-play::before { content: ''; width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid currentColor; }
.trailer-preview:hover .trailer-play { background: #fff; color: #000; }
.screenshots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.screenshots figure { margin: 0; }
.screenshots a { display: block; }
.screenshots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #121812; }
.screenshots figcaption { margin-top: 16px; color: #b6bdb6; font-size: 16px; }
.media-note { color: var(--muted); margin-top: 28px; }
.game-cta { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding-block: 58px; margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-cta h2 { font-size: clamp(30px, 3.2vw, 44px); }
.game-cta p { color: var(--muted); margin-top: 14px; max-width: 680px; }
.game-cta .button { flex-shrink: 0; max-width: 300px; }
.more-games { padding-top: 70px; padding-bottom: 70px; }
.more-games h2 { color: var(--muted); font-size: 20px; margin-bottom: 28px; }
.more-games > a { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 20px; border-top: 1px solid var(--line); }
.more-games > a span:first-child { font-size: 30px; }
.more-games > a span:last-child { font-size: 16px; color: var(--muted); }
.more-games > a:hover { color: #e3d2ac; }
.text-game { min-height: calc(100svh - 320px); padding-bottom: 100px; }
.text-game section { max-width: 950px; padding-top: 85px; }
.text-game h1 { font-family: 'JetBrains Mono', monospace; font-size: clamp(38px, 6.8vw, 86px); letter-spacing: -.05em; margin-top: 30px; }
.text-game-tagline { font-size: clamp(24px, 3vw, 38px); line-height: 1.4; color: #d4d9d5; margin-top: 36px; max-width: 840px; }
.text-game-description { font-size: 22px; color: var(--muted); margin-top: 28px; max-width: 760px; }
.intro-game section { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro-game h1 { font-size: clamp(32px, 4.8vw, 66px); }
.intro-frame { margin: 0; }
.intro-frame img { width: 100%; aspect-ratio: 16 / 9; }
.intro-frame figcaption { margin-top: 16px; color: var(--muted); font-size: 16px; }
.image-dialog { width: min(1520px, 96vw); max-width: none; max-height: 96svh; background: #0c100e; color: var(--text); padding: 20px; border: 1px solid #5d685f; }
.image-dialog::backdrop { background: #000e; }
.dialog-toolbar { display: flex; gap: 12px; padding-bottom: 18px; }
.dialog-toolbar button { background: transparent; border: 1px solid #647166; color: var(--text); padding: 10px 16px; font-size: 16px; }
.dialog-toolbar [data-close] { margin-left: auto; }
.image-dialog img { width: 100%; max-height: calc(92svh - 160px); object-fit: contain; }
.dialog-caption { font-size: 16px; color: #c8d0c9; padding-top: 16px; }
@media (min-width: 1700px) { .studio-hero { padding-top: 68px; padding-bottom: 64px; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 30px; }
  .main-nav { gap: 24px; }
  .languages { gap: 14px; padding-left: 24px; }
  .game-featured { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .game-featured h3 { font-size: 48px; }
  .game-grid { gap: 30px; }
  .studio-story { gap: 48px; }
  .game-header { grid-template-columns: 1fr; gap: 25px; }
  .game-header-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .game-intro { grid-template-columns: 1fr 2.5fr; gap: 30px; }
  .game-features { gap: 30px; }
  .game-facts { gap: 30px 50px; }
}
@media (max-width: 760px) {
  :root { --logo-w: 88vw; --header-height: 89px; }
  body { font-size: 18px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; min-height: 88px; }
  .brand > span { width: 150px; height: 22px; }
  .brand img { width: 150px; margin-top: -7.3px; }
  .languages { gap: 15px; border: 0; padding: 0; font-size: 14px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: 28px; justify-content: space-between; }
  .main-nav a { font-size: 16px; }
  .studio-hero { padding-top: 48px; padding-bottom: 40px; }
  .eyebrow { font-size: 12px; letter-spacing: .2em; margin-bottom: 30px; }
  .statement { font-size: 21px; margin-top: 20px; max-width: 410px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 36px; }
  .section-heading > p { max-width: none; }
  .games-section { padding-top: 24px; }
  .game-featured { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding-bottom: 36px; }
  .game-featured h3 { font-size: 46px; }
  .game-copy h3 { margin-top: 12px; }
  .game-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .game-grid .game-copy { padding-top: 24px; }
  .game-summary { margin-top: 16px; }
  .actions { gap: 10px; margin-top: 24px; }
  .studio-section { padding-top: 76px; padding-bottom: 36px; }
  .studio-story { grid-template-columns: 1fr; gap: 28px; }
  .studio-story h2 { font-size: 38px; }
  .studio-story p { font-size: 20px; }
  .careers-strip { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 55px; }
  .careers-strip h3 { font-size: 26px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .social { margin-left: -12px; gap: 9px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .back-link { margin-top: 25px; }
  .game-header { padding-top: 28px; padding-bottom: 32px; }
  .game-header h1 { font-size: clamp(48px, 10vw, 72px); }
  .game-tagline { font-size: 22px; }
  .game-header-side { align-items: flex-start; flex-direction: column; gap: 18px; }
  .game-facts { gap: 24px; justify-content: space-between; }
  .game-facts > div:first-child { flex-basis: 100%; }
  .game-facts dd { font-size: 16px; }
  .game-intro { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 30px; }
  .game-intro > p:last-child { font-size: 24px; }
  .game-features { grid-template-columns: 1fr; padding-bottom: 20px; gap: 30px; }
  .game-features > div { padding-top: 24px; }
  .game-features h3 { font-size: 25px; }
  .game-features p { margin-top: 12px; }
  .media-section { padding-top: 38px; }
  .screenshots { grid-template-columns: 1fr; gap: 28px; }
  .game-cta { flex-direction: column; align-items: flex-start; gap: 25px; margin-top: 36px; padding-block: 36px; }
  .more-games { padding-top: 46px; padding-bottom: 36px; }
  .more-games > a span:first-child { font-size: 24px; }
  .more-games > a span:last-child { font-size: 14px; }
  .text-game { padding-bottom: 64px; }
  .text-game section { padding-top: 50px; }
  .text-game h1 { font-size: clamp(32px, 8.5vw, 50px); }
  .text-game-tagline { font-size: 28px; }
  .text-game-description { font-size: 20px; }
  .intro-game section { grid-template-columns: 1fr; gap: 36px; }
  .image-dialog { padding: 12px; }
  .dialog-toolbar { flex-wrap: wrap; gap: 8px; }
  .dialog-toolbar button { font-size: 14px; padding: 10px 12px; }
  .dialog-toolbar [data-close] { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
