:root {
  --ink: #0c0d0e;
  --ink-soft: #151719;
  --paper: #e8e3d7;
  --paper-soft: #f1eee6;
  --muted: #a9aaa4;
  --line: rgba(232, 227, 215, 0.18);
  --accent: #f16b4f;
  --accent-dark: #bf4b38;
  --blue: #94b9df;
  --display: "Arial Narrow", "Aptos Display", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; background: var(--accent); color: var(--ink);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: rgba(12, 13, 14, .86);
  border-bottom: 1px solid rgba(232, 227, 215, .12);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; letter-spacing: .08em; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  flex: 0 0 auto; overflow: hidden; padding: 2px;
  background: #fff; border: 1px solid rgba(232, 227, 215, .35); border-radius: 4px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: grid; font-weight: 900; font-size: .87rem; line-height: 1.1; }
.brand-text small { margin-top: .24rem; color: var(--muted); font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav a { color: var(--muted); font-size: .88rem; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); }
.nav-actions { display: flex; gap: .5rem; margin-left: .5rem; }
.nav-actions .button-solid { color: var(--ink); }
.nav-actions .button-outline { color: var(--paper); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--paper); padding: .65rem; cursor: pointer; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.05rem; border: 1px solid transparent;
  font-size: .88rem; font-weight: 800; letter-spacing: .01em; text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-solid { background: var(--accent); color: var(--ink); }
.button-solid:hover, .button-solid:focus-visible { background: #ff8a6c; }
.button-outline { border-color: rgba(232, 227, 215, .35); color: var(--paper); }
.button-outline:hover, .button-outline:focus-visible { border-color: var(--paper); background: rgba(232, 227, 215, .08); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover, .button-dark:focus-visible { background: var(--ink-soft); }
.button-small { min-height: 36px; padding: .45rem .72rem; font-size: .77rem; }

.studio-hero { position: relative; overflow: hidden; min-height: 760px; padding: 10.5rem 0 5rem; background: radial-gradient(circle at 85% 22%, rgba(148, 185, 223, .14), transparent 35%), var(--ink); }
.studio-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24;
  background-image: linear-gradient(rgba(232, 227, 215, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 227, 215, .06) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(2rem, 6vw, 6.5rem); }
.eyebrow, .section-kicker { margin: 0 0 1.3rem; color: var(--accent); font-family: var(--mono); font-size: .78rem; letter-spacing: .17em; text-transform: uppercase; }
.hero-copy h1 { max-width: 620px; margin: 0; color: var(--paper); font-family: var(--display); font-size: clamp(4.6rem, 9vw, 8.9rem); font-weight: 900; letter-spacing: -.055em; line-height: .81; text-transform: uppercase; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-lede { max-width: 530px; margin: 2rem 0 0; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(241, 107, 79, .75); }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; right: -3rem; top: -3rem; width: 9rem; height: 9rem; border: 1px solid rgba(148, 185, 223, .32); border-radius: 50%; }
.hero-frame { position: relative; overflow: hidden; min-height: 420px; border: 1px solid rgba(232, 227, 215, .22); background: #080b10; transform: rotate(1.1deg); box-shadow: 24px 28px 0 rgba(241, 107, 79, .09); }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(12, 13, 14, .03) 20%, rgba(12, 13, 14, .82) 100%); }
.hero-frame img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.hero-frame-label { position: absolute; z-index: 1; left: 1.2rem; bottom: 1rem; color: var(--paper); font-family: var(--mono); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.hero-frame-label strong { display: block; margin-top: .35rem; color: var(--accent); font-size: .82rem; }
.hero-coordinates { position: absolute; right: 1.1rem; top: 1rem; z-index: 1; color: var(--paper); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; writing-mode: vertical-rl; opacity: .78; }
.scroll-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; margin-top: 4.5rem; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.scroll-mark::before { content: ""; width: 4.5rem; height: 1px; background: var(--accent); }

.signal-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-soft); }
.signal-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal-item { min-height: 96px; display: flex; align-items: center; gap: .8rem; padding: 1.2rem 1.4rem; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.signal-item:last-child { border-right: 0; }
.signal-item b { color: var(--paper); font-size: .78rem; }
.signal-item span { color: var(--accent); }

.studio-section { padding: 8.5rem 0; background: var(--paper); color: var(--ink); }
.studio-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; }
.studio-section .section-kicker { color: var(--accent-dark); }
.section-heading { max-width: 770px; margin: 0; font-family: var(--display); font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 900; letter-spacing: -.045em; line-height: .92; text-transform: uppercase; }
.studio-intro { max-width: 680px; margin: 1.6rem 0 0; color: #4b4a45; font-size: 1.12rem; line-height: 1.7; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 5rem; background: rgba(12, 13, 14, .2); border: 1px solid rgba(12, 13, 14, .2); }
.principle { min-height: 230px; padding: 1.6rem; background: var(--paper); }
.principle-number { color: var(--accent-dark); font-family: var(--mono); font-size: .72rem; }
.principle h3 { margin: 3.6rem 0 .7rem; font-family: var(--display); font-size: 1.75rem; letter-spacing: -.02em; text-transform: uppercase; }
.principle p { margin: 0; color: #5f5d57; font-size: .96rem; }

.game-feature { position: relative; overflow: hidden; padding: 8.5rem 0; background: #111417; }
.game-feature::before { content: "CURRENT GAME // CH-01"; position: absolute; right: 2rem; top: 3rem; color: rgba(232, 227, 215, .22); font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; }
.game-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.game-visual { position: relative; border: 1px solid rgba(232, 227, 215, .2); }
.game-visual::after { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; z-index: -1; border: 1px solid var(--accent); }
.game-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.92) contrast(1.08); }
.game-visual figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; background: rgba(12, 13, 14, .94); color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.game-feature .section-kicker { color: var(--accent); }
.game-feature h2 { max-width: 560px; margin: 0; font-family: var(--display); font-size: clamp(3.25rem, 6vw, 6rem); font-weight: 900; letter-spacing: -.05em; line-height: .88; text-transform: uppercase; }
.game-feature h2 span { color: var(--accent); }
.game-copy { max-width: 510px; margin: 1.6rem 0 0; color: var(--muted); font-size: 1.05rem; }
.game-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.tag { padding: .4rem .65rem; border: 1px solid rgba(232, 227, 215, .23); color: var(--paper); font-family: var(--mono); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.game-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

.manifesto { padding: 7rem 0; background: var(--accent); color: var(--ink); }
.manifesto-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.manifesto h2 { max-width: 700px; margin: 0; font-family: var(--display); font-size: clamp(3.4rem, 7vw, 7rem); font-weight: 900; letter-spacing: -.06em; line-height: .85; text-transform: uppercase; }
.manifesto p { max-width: 270px; margin: 0 0 .5rem; color: var(--ink); }

.contact-section { padding: 8rem 0 6rem; background: var(--paper-soft); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-section .section-kicker { color: var(--accent-dark); }
.contact-section h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 6vw, 5.3rem); letter-spacing: -.045em; line-height: .9; text-transform: uppercase; }
.contact-section p { max-width: 520px; color: #5f5d57; font-size: 1.08rem; }
.contact-list { display: grid; gap: .8rem; align-content: end; }
.contact-list a { padding: 1rem 0; border-bottom: 1px solid rgba(12, 13, 14, .2); color: var(--ink); font-family: var(--mono); font-size: .84rem; text-decoration: none; }
.contact-list a:hover { color: var(--accent-dark); }
.contact-list span { display: block; margin-bottom: .3rem; color: #77746c; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer { padding: 2rem 0; background: var(--ink); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-inner p { margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); font-family: var(--mono); font-size: .68rem; text-decoration: none; text-transform: uppercase; }
.footer-links a:hover { color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 900px) {
  .site-nav { gap: .9rem; }
  .nav-actions { display: none; }
  .hero-grid, .game-grid, .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; }
  .hero-art { max-width: 760px; }
  .studio-grid { gap: 1rem; }
  .studio-grid > .section-kicker { margin-bottom: 0; }
  .game-copy { max-width: 680px; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; inset: 66px 0 auto; display: none; padding: 1rem; border-bottom: 1px solid var(--line); background: rgba(12, 13, 14, .98); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: .6rem 0; font-size: 1rem; }
  .studio-hero { min-height: auto; padding: 8.5rem 0 4rem; }
  .hero-copy h1 { font-size: clamp(4rem, 18vw, 6.2rem); }
  .hero-lede { font-size: 1rem; }
  .hero-frame, .hero-frame img { min-height: 260px; }
  .signal-inner { grid-template-columns: 1fr; }
  .signal-item { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-item:last-child { border-bottom: 0; }
  .studio-section, .game-feature, .contact-section { padding: 5.5rem 0; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: auto; }
  .principle h3 { margin-top: 2rem; }
  .game-feature::before { right: 1rem; top: 1.5rem; font-size: .56rem; }
  .game-visual::after { inset: .6rem -.6rem -.6rem .6rem; }
  .manifesto { padding: 5.5rem 0; }
  .manifesto-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .manifesto p { max-width: 420px; }
  .contact-grid { gap: 2rem; }
  .footer-links { gap: .7rem; }
}
