:root {
  --bg: #080808;
  --panel: #101010;
  --text: #f5f5f1;
  --muted: #979797;
  --line: #2a2a2a;
  --red: #f02b2b;
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,43,43,.10), transparent 64%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  left: 50%; top: 50%;
}

.site-header {
  height: var(--header-height);
  padding: 0 clamp(24px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: rgba(8,8,8,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--text);
  font-weight: 900; font-size: 24px;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; width: 9px; height: 9px; right: -5px; top: -5px;
  background: var(--red); border-radius: 50%;
}
.brand-copy { display: grid; line-height: 1; gap: 4px; letter-spacing: .08em; }
.brand-copy strong { font-size: 13px; }
.brand-copy small { font-size: 8px; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 34px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.site-nav a { color: #b7b7b7; transition: .2s ease; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { color: #fff; border: 1px solid #3d3d3d; padding: 13px 18px; }
.site-nav .nav-cta:hover { border-color: var(--red); background: var(--red); }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 1px; background: #fff; margin: 7px 0; transition: .2s ease; }

main { padding-top: var(--header-height); }
.section-grid, .section { max-width: 1600px; margin: 0 auto; padding-left: clamp(24px, 4vw, 72px); padding-right: clamp(24px, 4vw, 72px); }

.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 8vw, 140px);
  position: relative;
  padding-top: 42px;
  padding-bottom: 48px;
  overflow: hidden;
}
.hero-kicker {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.hero-main { align-self: center; position: relative; z-index: 2; }
.hero h1 { margin: 0; font-size: clamp(56px, 8.5vw, 150px); line-height: .83; letter-spacing: -.065em; text-transform: uppercase; max-width: 1100px; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px #d8d8d8; }
.hero-lead { max-width: 720px; font-size: clamp(16px, 1.3vw, 22px); line-height: 1.55; color: #a9a9a9; margin: 38px 0 0; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #343434; transition: .25s ease; }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-primary:hover { background: #fff; border-color: #fff; color: #000; }
.button-ghost:hover { border-color: #fff; }
.hero-side { align-self: end; padding-bottom: 8px; position: relative; z-index: 2; }
.status-card { border-top: 1px solid #363636; border-bottom: 1px solid #363636; padding: 22px 0; display: flex; gap: 14px; align-items: flex-start; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 6px; box-shadow: 0 0 0 5px rgba(240,43,43,.12); }
.status-card div { display: grid; gap: 7px; }
.status-card small { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.status-card strong { font-size: 16px; letter-spacing: .04em; }
.hero-index { margin-top: 36px; text-align: right; color: #505050; font-size: 11px; letter-spacing: .15em; }
.hero-stamp { position: absolute; right: -2vw; top: 8%; font-size: min(36vw, 620px); line-height: .8; font-weight: 900; letter-spacing: -.12em; color: rgba(255,255,255,.018); user-select: none; }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0d0d; }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 30px; padding: 15px 0; animation: ticker 24s linear infinite; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.ticker-track b { color: var(--red); font-size: 8px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { min-height: 760px; padding-top: 120px; padding-bottom: 120px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(130px,.3fr) minmax(0,1fr) minmax(320px,.65fr); column-gap: clamp(36px, 6vw, 100px); align-content: center; }
.section-number { color: #777; font-size: 10px; letter-spacing: .16em; padding-top: 8px; }
.eyebrow { color: var(--red); font-size: 10px; letter-spacing: .18em; font-weight: 700; margin: 0 0 20px; }
.section h2 { margin: 0; font-size: clamp(48px, 6vw, 96px); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.section h2 span { color: var(--red); }
.section-description { align-self: end; color: #9c9c9c; line-height: 1.75; font-size: 15px; }
.section-description p + p { margin-top: 22px; }

.games { display: block; min-height: auto; }
.games > .section-number { margin-bottom: 70px; }
.games-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.games-header h2 { max-width: 900px; }
.featured-game { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 570px; border: 1px solid #292929; }
.game-art { min-height: 570px; position: relative; overflow: hidden; background: #0b0b0b; border-right: 1px solid #292929; }
.game-art-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(#555 1px, transparent 1px), linear-gradient(90deg, #555 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent); }
.game-art::after { content: ""; position: absolute; width: 44%; aspect-ratio: 1; left: 23%; top: 16%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 90px rgba(240,43,43,.17), inset 0 0 90px rgba(240,43,43,.05); }
.game-art-orbit { position: absolute; border: 1px solid #383838; border-radius: 50%; left: 38%; top: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 55%; aspect-ratio: 1; }
.orbit-two { width: 32%; aspect-ratio: 1; border-color: rgba(240,43,43,.7); }
.game-art-core { position: absolute; width: 36px; height: 36px; background: var(--red); border-radius: 50%; left: 38%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 38px rgba(240,43,43,.7); }
.game-art-title { position: absolute; left: 38px; bottom: 42px; font-size: clamp(44px, 5.2vw, 90px); line-height: .78; letter-spacing: -.06em; font-weight: 900; z-index: 2; }
.game-art-title::first-line { color: #fff; }
.game-art-code { position: absolute; top: 28px; right: 28px; color: #757575; font-size: 9px; letter-spacing: .15em; writing-mode: vertical-rl; }
.game-info { padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.game-meta span, .stack-list span { border: 1px solid #343434; padding: 8px 10px; color: #aaa; font-size: 9px; letter-spacing: .12em; }
.game-info > p { color: #aaa; line-height: 1.8; font-size: 15px; }
.progress-block { margin-top: 34px; }
.progress-label { display: flex; justify-content: space-between; gap: 20px; font-size: 9px; letter-spacing: .12em; }
.progress-label span { color: #777; }
.progress-label strong { color: #ddd; }
.progress-line { margin-top: 12px; height: 2px; background: #272727; }
.progress-line i { display: block; width: 62%; height: 100%; background: var(--red); }
.text-link { margin-top: 42px; padding-bottom: 12px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.text-link:hover { border-color: var(--red); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; gap: 22px; }
.project-card { min-height: 260px; padding: 30px; border: 1px solid #292929; background: #0d0d0d; transition: .25s ease; }
.project-card:hover { transform: translateY(-4px); border-color: #4a4a4a; }
.project-top { display: flex; justify-content: space-between; align-items: start; }
.project-top span { color: var(--red); font-size: 10px; letter-spacing: .14em; }
.project-top strong { color: #3f3f3f; font-size: 38px; font-weight: 400; }
.project-card h3 { margin: 78px 0 12px; font-size: 21px; }
.project-card p { margin: 0; color: #858585; line-height: 1.6; font-size: 13px; }

.about { grid-template-columns: minmax(130px,.3fr) minmax(380px,.85fr) minmax(320px,.75fr); }
.about-identity { display: flex; align-items: center; gap: 28px; }
.portrait-symbol { width: clamp(130px, 15vw, 220px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #333; font-size: clamp(80px, 10vw, 160px); font-weight: 900; color: #111; background: var(--red); letter-spacing: -.08em; }
.about-identity h2 { font-size: clamp(54px, 6vw, 90px); }
.about-copy { align-self: center; color: #969696; line-height: 1.7; }
.large-copy { color: #e1e1e1; font-size: 22px; line-height: 1.45; margin-top: 0; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.manifesto { min-height: 650px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; text-align: center; }
.manifesto-word { position: absolute; font-size: min(36vw, 560px); font-weight: 900; color: rgba(255,255,255,.022); line-height: .8; letter-spacing: -.08em; }
.manifesto-copy { position: relative; z-index: 2; }
.manifesto blockquote { margin: 0; font-size: clamp(32px, 5vw, 72px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.manifesto blockquote span { color: var(--red); }

.contact { grid-template-columns: minmax(130px,.3fr) minmax(0,.9fr) minmax(340px,.75fr); }
.contact-main p:not(.eyebrow) { max-width: 600px; color: #929292; line-height: 1.7; margin-top: 28px; }
.contact-links { display: grid; align-self: center; }
.contact-links a { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 20px 0; border-bottom: 1px solid #2e2e2e; }
.contact-links a:first-child { border-top: 1px solid #2e2e2e; }
.contact-links span { color: #666; font-size: 9px; letter-spacing: .14em; }
.contact-links strong { font-size: 13px; font-weight: 500; }
.contact-links b { color: var(--red); font-weight: 400; }
.contact-links a:hover strong { color: var(--red); }

footer { min-height: 180px; padding: 50px clamp(24px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #777; font-size: 10px; letter-spacing: .1em; max-width: 1600px; margin: auto; }
.footer-brand { filter: grayscale(1); opacity: .7; }
.to-top { color: #aaa; }
.to-top:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .site-nav { gap: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
  .status-card { min-width: 320px; }
  .section { grid-template-columns: 110px 1fr; }
  .section-description, .about-copy, .contact-links { grid-column: 2; margin-top: 48px; }
  .featured-game { grid-template-columns: 1fr; }
  .game-art { border-right: 0; border-bottom: 1px solid #292929; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 220px; }
  .project-card h3 { margin-top: 45px; }
  .about { grid-template-columns: 110px 1fr; }
  .contact { grid-template-columns: 110px 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; }
  .site-header { padding-inline: 20px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .brand-copy strong { font-size: 11px; }
  .menu-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; background: #080808; display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start; padding: 28px; gap: 26px;
    transform: translateY(-100%); transition: transform .35s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
  .site-nav .nav-cta { border: 0; padding: 0; color: var(--red); }
  .menu-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding-top: 24px; padding-bottom: 32px; min-height: calc(100svh - var(--header-height)); }
  .hero h1 { font-size: clamp(50px, 16vw, 88px); }
  .hero-lead { margin-top: 26px; font-size: 15px; }
  .hero-actions { margin-top: 24px; }
  .button { width: 100%; }
  .hero-side { align-self: end; display: block; margin-top: 40px; }
  .status-card { min-width: 0; }
  .hero-index { display: none; }

  .section { display: block; min-height: auto; padding-top: 86px; padding-bottom: 86px; }
  .section-number { margin-bottom: 52px; }
  .section h2 { font-size: clamp(46px, 14vw, 74px); }
  .section-description, .about-copy, .contact-links { margin-top: 42px; }
  .games > .section-number { margin-bottom: 52px; }
  .games-header { display: block; }
  .games-header .eyebrow { margin-bottom: 15px; }
  .featured-game { min-height: 0; }
  .game-art { min-height: 480px; }
  .game-art-title { left: 24px; bottom: 30px; font-size: 15vw; }
  .game-art-orbit { left: 52%; }
  .game-art-core { left: 52%; }
  .game-art::after { left: 30%; width: 58%; }
  .game-info { padding: 28px 24px 34px; }
  .project-grid { gap: 12px; }
  .about-identity { align-items: flex-start; flex-direction: column; }
  .portrait-symbol { width: 145px; }
  .about-copy .large-copy { font-size: 19px; }
  .manifesto { min-height: 500px; }
  .manifesto blockquote { font-size: clamp(30px, 9vw, 50px); }
  .contact-links a { grid-template-columns: 86px 1fr auto; }
  footer { min-height: 240px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
