:root {
  color-scheme: dark;
  --ink: #101413;
  --ink-soft: #171b19;
  --cream: #f4ecd9;
  --muted: #a6a99e;
  --orange: #ef642f;
  --orange-light: #ff9b58;
  --line: rgba(244, 236, 217, .17);
  --display: 'Barlow Condensed', Impact, sans-serif;
  --body: 'Barlow', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--body); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 4px; }
.page-width { width: min(100% - 96px, 1440px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 15px; padding: 12px 18px; background: var(--orange); color: var(--ink); }
.skip-link:focus { top: 15px; }

.site-header { height: 78px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #0d1110; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 1px; background: var(--orange); color: #101413; font: 800 17px/1 var(--display); letter-spacing: -2px; transform: skew(-6deg); }
.brand-mark span { font-size: 12px; margin-top: -12px; }
.brand-name { font: 800 17px/.82 var(--display); letter-spacing: 1.5px; }
.site-nav { display: flex; align-items: center; height: 100%; gap: clamp(22px, 3vw, 50px); }
.site-nav a { height: 100%; display: flex; align-items: center; position: relative; color: #cbc9bc; font: 600 11px/1 var(--mono); letter-spacing: .09em; transition: color .2s; }
.site-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-nav a:hover { color: var(--cream); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-status { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(239,100,47,.48); padding: 12px 15px; color: var(--orange-light); font: 600 10px/1 var(--mono); letter-spacing: .08em; white-space: nowrap; }
.status-light { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: blink 2.5s ease-in-out infinite; }

.hero { min-height: 760px; min-height: min(790px, calc(100svh - 78px)); position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; background: #111a1b; }
.hero-city, .hero-glow, .hero-grid { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.hero-city { background: linear-gradient(90deg, rgba(8,15,17,.96) 0%, rgba(8,15,17,.88) 29%, rgba(8,15,17,.35) 62%, rgba(8,15,17,.68) 100%), linear-gradient(0deg, #101413 0%, transparent 25%, transparent 80%, rgba(11,15,15,.44) 100%), url('/assets/night-city.png') center center / cover; transform: scale(1.03); animation: city-enter 1.7s ease-out both; }
.hero-glow { z-index: -2; background: radial-gradient(ellipse at 72% 70%, rgba(218,82,35,.24), transparent 32%), linear-gradient(115deg, transparent 42%, rgba(242,113,50,.07) 65%, transparent 85%); }
.hero-grid { z-index: 0; inset: auto 0 0; height: 170px; opacity: .23; background-image: linear-gradient(to right, transparent calc(25% - 1px), rgba(255,255,255,.2) 25%), linear-gradient(to top, transparent calc(50% - 1px), rgba(255,255,255,.11) 50%); background-size: 25% 100%, 100% 50%; mask-image: linear-gradient(to top, black, transparent); }
.hero-runner { position: absolute; z-index: -1; width: min(70vw, 960px); height: min(94%, 760px); right: max(-2vw, calc((100vw - 1530px)/2)); bottom: -4%; object-fit: contain; object-position: bottom right; filter: drop-shadow(-20px 18px 42px rgba(0,0,0,.65)) saturate(.78); animation: runner-enter 1s .15s ease-out both; }
.hero::after { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10,15,15,.35), transparent 37%), repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px); }
.hero-content { position: relative; z-index: 1; padding: 48px 0 84px; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 11px/1.3 var(--mono); letter-spacing: .14em; color: var(--orange-light); }
.eyebrow-rule { width: 24px; height: 1px; background: currentColor; }
.eyebrow-muted { color: #8b9a98; }
.hero-kicker { margin: 47px 0 0; color: #c7c5b6; font: 600 15px/1 var(--display); letter-spacing: .24em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 9px 0 18px -5px; max-width: 920px; font: 900 clamp(100px, 12.2vw, 190px)/.77 var(--display); letter-spacing: -.032em; text-shadow: 0 5px 30px rgba(0,0,0,.15); }
.hero h1 span { color: var(--orange); }
.hero-copy { width: min(445px, 100%); margin-bottom: 30px; color: #d4d1c5; font-size: 17px; line-height: 1.52; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 18px; border: 1px solid transparent; cursor: pointer; font: 700 11px/1 var(--mono); letter-spacing: .045em; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--orange); color: #111413; }
.button-primary:hover { background: var(--orange-light); }
.button-outline { border-color: rgba(244,236,217,.4); background: rgba(7,10,10,.35); }
.button-outline:hover { border-color: var(--cream); background: rgba(244,236,217,.08); }
.button .play-icon { font-size: 10px; }
.button span:last-child { margin-left: 8px; font-size: 16px; font-weight: 400; }
.hero-bottom { z-index: 2; position: absolute; bottom: 25px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; color: #aab1aa; font: 500 10px/1 var(--mono); letter-spacing: .08em; }
.hero-scroll { color: var(--cream); }
.hero-scroll span { color: var(--orange); padding-left: 8px; }

.ticker { overflow: hidden; background: var(--orange); color: #161816; border-top: 1px solid #ff915f; border-bottom: 1px solid #b13f20; transform: skewY(-1deg); margin-top: -2px; position: relative; z-index: 3; }
.ticker-track { width: max-content; display: flex; animation: ticker-scroll 22s linear infinite; }
.ticker span { flex: none; padding: 10px 0; font: 800 21px/1 var(--display); letter-spacing: .15em; white-space: nowrap; }
.ticker b { margin: 0 24px; font-size: 15px; }

.section-pad { padding: 126px 0; }
.game-section { position: relative; overflow: hidden; background: radial-gradient(ellipse at 88% 23%, rgba(90,70,41,.12), transparent 35%), #141816; }
.game-section::after { content: 'ALR'; position: absolute; top: 78px; right: -32px; color: rgba(255,255,255,.018); font: 900 330px/.7 var(--display); letter-spacing: -.08em; pointer-events: none; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .6fr); gap: 80px; align-items: end; margin-bottom: 55px; }
h2 { font: 800 clamp(66px, 7.2vw, 112px)/.82 var(--display); letter-spacing: -.02em; }
h2 em { font-style: normal; color: var(--orange); }
.section-heading h2, .worlds-heading h2 { margin: 24px 0 0; }
.section-intro { max-width: 390px; margin: 0 0 4px; color: #b7b9ae; font-size: 18px; line-height: 1.5; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-card { min-height: 400px; padding: 25px 30px 30px; position: relative; isolation: isolate; overflow: hidden; background: #1b201d; display: flex; flex-direction: column; transition: background .3s; }
.feature-card:hover { background: #252b25; }
.feature-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 75% 45%, rgba(239,100,47,.1), transparent 50%); opacity: 0; transition: opacity .3s; }
.feature-card:hover::before { opacity: 1; }
.feature-top { display: flex; justify-content: space-between; color: var(--orange-light); font: 600 10px/1 var(--mono); letter-spacing: .12em; }
.feature-top span:last-child { font-size: 17px; font-weight: 400; }
.feature-icon { flex: 1; display: flex; align-items: center; justify-content: center; color: rgba(239,100,47,.72); font: 400 150px/1 var(--display); text-shadow: 0 0 35px rgba(239,100,47,.15); }
.feature-loot .feature-icon { font-size: 125px; }
.feature-card h3 { position: relative; z-index: 1; margin: 0 0 12px; font: 800 39px/.9 var(--display); letter-spacing: .01em; }
.feature-card p { position: relative; z-index: 1; max-width: 330px; margin: 0; color: #aeb1a7; font-size: 15px; line-height: 1.5; }
.feature-boss img { position: absolute; width: 82%; height: 75%; object-fit: contain; top: 12px; right: -25%; z-index: -1; filter: saturate(.7) brightness(.62); opacity: .75; }
.feature-boss::after { content: ''; position: absolute; z-index: -1; inset: 35% 0 0; background: linear-gradient(0deg, #1b201d 15%, transparent); }
.feature-boss h3 { margin-top: auto; }

.worlds-section { background: #101413; position: relative; }
.worlds-section::before { content: ''; position: absolute; inset: 0; opacity: .16; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent 99px, rgba(255,255,255,.045) 100px); }
.worlds-heading { margin-bottom: 52px; }
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.world-card { border: 1px solid var(--line); background: #1c211f; overflow: hidden; }
.world-image { height: clamp(300px, 30vw, 430px); background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; }
.world-card:hover .world-image { transform: scale(1.035); filter: saturate(1.17); }
.world-wastes .world-image { background-image: linear-gradient(0deg, rgba(26,15,9,.35), transparent 50%), url('/assets/dust-city.png'); }
.world-sewers .world-image { background-image: linear-gradient(0deg, rgba(3,24,18,.35), transparent 50%), url('/assets/sewers.png'); }
.world-caption { min-height: 88px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; gap: 6px; padding: 15px 22px; border-top: 1px solid var(--line); }
.world-caption span:first-child { grid-column: 1; color: var(--orange-light); font: 600 10px/1 var(--mono); letter-spacing: .1em; }
.world-caption strong { grid-column: 1; font: 700 28px/1 var(--display); letter-spacing: .04em; }
.world-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--orange); font-size: 24px; }
.worlds-note { margin: 24px 0 0; color: #6e7974; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-align: right; }
.worlds-note span { color: var(--orange); margin: 0 5px; }

.signal-section { position: relative; isolation: isolate; min-height: 600px; display: flex; align-items: center; background: #312316; overflow: hidden; }
.signal-art, .signal-overlay { position: absolute; z-index: -2; inset: 0; }
.signal-art { background: url('/assets/cover.png') 66% 52% / cover; filter: saturate(.8); }
.signal-overlay { z-index: -1; background: linear-gradient(90deg, rgba(13,17,15,.97) 0%, rgba(13,17,15,.91) 36%, rgba(13,17,15,.37) 72%, rgba(13,17,15,.48) 100%), linear-gradient(0deg, rgba(13,17,15,.5), transparent 30%); }
.signal-content { padding-block: 100px; }
.signal-content h2 { margin: 25px 0 22px; }
.signal-content p:not(.eyebrow) { max-width: 450px; margin-bottom: 25px; color: #d1cebf; font-size: 18px; line-height: 1.5; }
.steam-callout { max-width: 380px; min-height: 74px; padding: 13px 19px; display: flex; align-items: center; gap: 17px; background: rgba(15,20,18,.8); border: 1px solid rgba(239,100,47,.58); border-left: 3px solid var(--orange); }
.steam-callout-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #85877b; border-radius: 50%; color: var(--cream); font-size: 18px; }
.steam-callout strong, .steam-callout small { display: block; font-family: var(--mono); }
.steam-callout strong { font-size: 12px; letter-spacing: .06em; }
.steam-callout small { margin-top: 7px; color: var(--orange-light); font-size: 9px; letter-spacing: .11em; }
.callout-mark { margin-left: auto; align-self: flex-start; color: var(--orange); }

.site-footer { background: #0b0e0d; border-top: 1px solid var(--line); }
.footer-inner { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { font: 800 22px/1 var(--display); letter-spacing: .04em; }
.footer-brand span { color: var(--orange); }
.footer-inner > span, .footer-inner > a:last-child { color: #88918a; font: 500 10px/1.3 var(--mono); letter-spacing: .09em; }
.footer-inner > a:last-child:hover { color: var(--orange-light); }

.trailer-dialog { width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(239,100,47,.7); background: #0c1010; color: var(--cream); box-shadow: 0 30px 90px rgba(0,0,0,.75); }
.trailer-dialog::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(7px); }
.dialog-bar { height: 44px; padding-left: 16px; display: flex; align-items: center; justify-content: space-between; color: var(--orange-light); font: 600 10px/1 var(--mono); letter-spacing: .1em; }
.dialog-close { height: 44px; width: 48px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; }
.dialog-close:hover { background: var(--orange); color: var(--ink); }
.trailer-dialog video { width: 100%; max-height: calc(100vh - 80px); aspect-ratio: 16/9; background: black; }

@keyframes blink { 50% { opacity: .35; box-shadow: 0 0 2px var(--orange); } }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@keyframes city-enter { from { opacity: .55; transform: scale(1.09); } to { opacity: 1; transform: scale(1.03); } }
@keyframes runner-enter { from { opacity: 0; transform: translate(60px, 20px); } to { opacity: 1; transform: translate(0, 0); } }

@media (max-width: 1100px) {
  .site-header { padding-inline: 28px; }
  .page-width { width: min(100% - 56px, 1440px); }
  .hero h1 { font-size: clamp(94px, 13vw, 148px); }
  .hero-runner { width: 76vw; right: -10vw; opacity: .8; }
  .section-heading { gap: 30px; }
  .feature-card { padding-inline: 22px; }
}

@media (max-width: 760px) {
  .site-header { height: 68px; padding-inline: 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 15px; }
  .site-nav { display: none; }
  .header-status { font-size: 8px; padding: 10px; }
  .page-width { width: min(100% - 40px, 1440px); }
  .hero { min-height: 740px; min-height: calc(100svh - 68px); max-height: 860px; justify-content: flex-end; }
  .hero-city { background-position: 60% center; background-image: linear-gradient(0deg, rgba(8,15,17,.98) 0%, rgba(8,15,17,.85) 41%, rgba(8,15,17,.3) 100%), url('/assets/night-city.png'); }
  .hero::before { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8,15,17,.7) 0%, rgba(8,15,17,.42) 65%, rgba(8,15,17,.08) 100%); }
  .hero-runner { width: 120vw; height: 68%; right: -25vw; bottom: 22%; opacity: .7; }
  .hero-content { padding: 260px 0 105px; }
  .hero-kicker { margin-top: 25px; font-size: 13px; }
  .hero h1 { font-size: clamp(88px, 17vw, 145px); }
  .hero-copy { max-width: 400px; font-size: 16px; }
  .hero-bottom { bottom: 17px; font-size: 8px; }
  .hero-scroll { display: none; }
  .section-pad { padding: 85px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-intro { max-width: 580px; }
  .feature-grid { grid-template-columns: 1fr; gap: 1px; }
  .feature-card { min-height: 305px; }
  .feature-icon { position: absolute; right: 25px; top: 55px; font-size: 130px; opacity: .5; }
  .feature-card h3 { margin-top: auto; }
  .feature-boss img { width: 55%; height: 95%; right: -5%; top: -12%; }
  .world-grid { grid-template-columns: 1fr; }
  .world-image { height: 330px; }
  .signal-section { min-height: 560px; }
  .signal-art { background-position: 64% center; }
  .signal-overlay { background: linear-gradient(90deg, rgba(13,17,15,.94), rgba(13,17,15,.68)), linear-gradient(0deg, rgba(13,17,15,.4), transparent); }
  .footer-inner { flex-wrap: wrap; padding-block: 24px; }
  .footer-inner > span { order: 3; flex-basis: 100%; }
}

@media (max-width: 480px) {
  .header-status { max-width: 107px; white-space: normal; line-height: 1.25; }
  .hero { min-height: 730px; }
  .hero-content { padding-bottom: 78px; }
  .hero h1 { font-size: clamp(77px, 19vw, 103px); }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; justify-content: space-between; }
  .hero-bottom span:last-child { display: none; }
  h2 { font-size: clamp(58px, 13vw, 78px); }
  .section-heading h2, .worlds-heading h2 { margin-top: 19px; }
  .world-image { height: 255px; }
  .worlds-note { text-align: left; }
  .signal-content h2 { font-size: clamp(58px, 13vw, 76px); }
}

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