:root {
  --bg: #070707;
  --bg-soft: #0d0b0c;
  --panel: rgba(19, 14, 15, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f2f0;
  --muted: #989aa5;
  --purple: #b0000d;
  --purple-light: #ff3542;
  --cyan: #8a0b13;
  --font-display: "Oxanium", "Arial Narrow", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 12%, rgba(176, 0, 13, .15), transparent 28%),
    linear-gradient(180deg, #090707 0%, #050505 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .026;
  z-index: 99;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.orb { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(130px); opacity: .08; pointer-events: none; z-index: -2; }
.orb-one { background: var(--purple); top: 30%; left: -250px; }
.orb-two { background: var(--cyan); bottom: 5%; right: -300px; }

.site-header {
  width: min(1400px, calc(100% - 64px));
  height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(255,53,66,.55); filter: drop-shadow(0 0 14px rgba(176,0,13,.42)); }
.brand span { display: flex; flex-direction: column; }
.brand strong { font: 700 16px/1 var(--font-display); letter-spacing: .17em; }
.brand small { color: var(--purple-light); font: 700 8px/1.8 var(--font-display); letter-spacing: .48em; }
.desktop-nav { display: flex; gap: 42px; }
.desktop-nav a { color: #a7a8b0; font: 600 12px var(--font-display); letter-spacing: .09em; transition: color .2s; }
.desktop-nav a:hover { color: white; }
.header-cta { border: 1px solid rgba(255,53,66,.55); padding: 12px 18px; color: #ffd8da; font: 700 10px var(--font-display); letter-spacing: .14em; text-transform: uppercase; transition: .25s; }
.header-cta:hover { background: var(--purple); border-color: var(--purple); color: white; box-shadow: 0 0 25px rgba(210,11,25,.3); }

.hero {
  min-height: calc(100vh - 104px);
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  position: relative;
  padding: 80px 4vw 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.83) 42%, rgba(5,5,5,.24) 72%, rgba(5,5,5,.72) 100%), linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.9)), url("assets/morgrave-banner.png") center / cover no-repeat; opacity: .72; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 73% 48%, rgba(190,0,15,.14), transparent 27%); pointer-events: none; }
.eyebrow, .section-label { color: #a3a4ad; font: 600 10px var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.eyebrow > span { width: 32px; height: 1px; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
h1, h2 { margin: 0; font-family: var(--font-display); letter-spacing: -.045em; line-height: .91; }
h1 { font-size: clamp(55px, 6.7vw, 112px); font-weight: 800; }
h1 em, h2 em { color: var(--purple-light); font-style: normal; text-shadow: 0 0 35px rgba(210,11,25,.24); }
.hero-copy > p { max-width: 610px; color: #a9abb5; font-size: 15px; line-height: 1.8; margin: 28px 0 34px; }
.hero-actions { display: flex; gap: 14px; }
.button { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font: 700 11px var(--font-display); letter-spacing: .08em; text-transform: uppercase; transition: transform .22s, box-shadow .22s, border-color .22s; }
.button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #82000a, #d10b19); color: white; border: 1px solid rgba(255,112,120,.35); box-shadow: 0 8px 30px rgba(176,0,13,.28); }
.button-primary:hover { box-shadow: 0 12px 36px rgba(210,11,25,.46); }
.button-ghost { border: 1px solid var(--line); color: #bbbcc5; }
.button-ghost:hover { border-color: rgba(255,255,255,.3); }
.status-row { display: flex; gap: 0; margin-top: 52px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 670px; }
.status-row > div { min-width: 155px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.status-row > div:last-child { border: 0; }
.status-row strong { font: 700 8px var(--font-display); letter-spacing: .13em; color: #696b75; }
.status-row small { grid-column: 2; color: #cccdd3; font-size: 10px; margin-top: 4px; white-space: nowrap; }
.pulse { grid-row: 1/3; width: 7px; height: 7px; border-radius: 50%; background: #69e1a4; box-shadow: 0 0 10px #69e1a4; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero-emblem { position: relative; aspect-ratio: 1/1; max-width: 610px; justify-self: end; display: grid; place-items: center; }
.emblem { width: 72%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; z-index: 2; border: 1px solid rgba(255,60,72,.52); box-shadow: 0 0 55px rgba(176,0,13,.2), inset 0 0 30px rgba(0,0,0,.55); filter: drop-shadow(0 0 34px rgba(176,0,13,.28)); }
.emblem-back { fill: #12131a; stroke: url(#none); stroke: #9471e8; stroke-width: 4; }
.emblem-edge { fill: #221a34; stroke: #b99cff; stroke-width: 2; }
.emblem-crown { fill: #14121d; stroke: #a984ff; stroke-width: 4; }
.emblem-scar { fill: #9870f8; filter: drop-shadow(0 0 12px #7446e0); }
.emblem-glow { position: absolute; width: 42%; height: 42%; background: var(--purple); filter: blur(90px); opacity: .22; }
.rune-ring { position: absolute; border: 1px solid rgba(255,80,90,.2); border-radius: 50%; }
.ring-a { inset: 8%; border-style: dashed; animation: rotate 38s linear infinite; }
.ring-b { inset: 19%; border-color: rgba(255,255,255,.07); animation: rotate 24s linear infinite reverse; }
.ring-a::after, .ring-b::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--purple-light); box-shadow: 0 0 15px var(--purple); border-radius: 50%; top: 10%; left: 20%; }
@keyframes rotate { to { transform: rotate(360deg); } }
.coordinate { position: absolute; color: #4e4a5c; font: 600 8px var(--font-display); letter-spacing: .2em; }
.coord-one { left: 7%; top: 49%; transform: rotate(-90deg); }
.coord-two { right: 0; bottom: 22%; }
.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; color: #555762; font: 600 8px var(--font-display); letter-spacing: .18em; }
.scroll-hint i { width: 42px; height: 1px; background: #494b55; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; right: 0; top: -2px; border-left: 4px solid #7d7f88; border-top: 2px solid transparent; border-bottom: 2px solid transparent; }

.section { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 140px 0; position: relative; }
.section::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.section-label { display: flex; align-items: center; gap: 13px; margin-bottom: 80px; }
.section-label span { color: var(--purple-light); }
.section-label::after { content: ""; width: 44px; height: 1px; background: rgba(255,80,90,.5); }
.overline { color: var(--purple-light); font: 700 10px var(--font-display); letter-spacing: .24em; margin: 0 0 20px; }
h2 { font-size: clamp(46px, 5.3vw, 84px); font-weight: 800; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12vw; align-items: start; }
.about-copy { padding-top: 10px; }
.about-copy p { color: #91939d; font-size: 14px; line-height: 1.85; }
.about-copy .lead { color: #dedee2; font: 500 20px/1.55 var(--font-display); margin-top: 0; }
.values { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.values span { border: 1px solid var(--line); color: #b1b2ba; padding: 9px 12px; font: 600 8px var(--font-display); letter-spacing: .12em; text-transform: uppercase; }

.games-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12vw; align-items: end; margin-bottom: 70px; }
.games-intro > p { color: #91939d; font-size: 14px; line-height: 1.85; max-width: 480px; margin: 0 0 5px; }
.game-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.game-card { min-height: 390px; position: relative; padding: 42px 36px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(22,24,32,.86), rgba(12,13,18,.86)); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.game-card::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%; background: var(--purple); filter: blur(90px); opacity: 0; transition: opacity .3s; }
.game-card:hover { transform: translateY(-6px); border-color: rgba(255,80,90,.45); box-shadow: 0 22px 60px rgba(0,0,0,.3); }
.game-card:hover::before { opacity: .08; }
.card-number { position: absolute; top: 26px; right: 28px; color: #3e404a; font: 700 10px var(--font-display); }
.game-card svg { width: 70px; height: 70px; margin: 48px 0 38px; fill: none; stroke: #ff6570; stroke-width: 1.3; filter: drop-shadow(0 0 13px rgba(210,11,25,.25)); }
.game-card h3 { font: 700 22px var(--font-display); letter-spacing: .03em; margin: 0 0 14px; }
.game-card p { color: #858791; font-size: 13px; line-height: 1.7; max-width: 290px; }
.game-card small { position: absolute; left: 36px; bottom: 28px; color: #555762; font: 700 8px var(--font-display); letter-spacing: .2em; }
.influences { margin-top: 45px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }
.influences > span { color: #555762; font: 700 8px var(--font-display); letter-spacing: .2em; }
.influences div { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px 20px; max-width: 980px; }
.influences b { color: #777985; font: 600 10px var(--font-display); letter-spacing: .06em; }
.influences i { width: 3px; height: 3px; background: #4d4f59; border-radius: 50%; }

.connect-heading { text-align: center; max-width: 760px; margin: 0 auto 75px; }
.connect-heading > p:last-child { color: #8e909a; font-size: 14px; margin-top: 28px; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.social-card { min-height: 164px; border: 1px solid var(--line); background: rgba(19,14,15,.82); display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 18px; padding: 26px 24px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s, background .25s; }
.social-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--card-color); filter: blur(70px); opacity: 0; right: -70px; top: -70px; transition: opacity .25s; }
.social-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--card-color), transparent 45%); background: rgba(21,23,31,.95); }
.social-card:hover::after { opacity: .1; }
.social-icon { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--card-color), transparent 65%); background: color-mix(in srgb, var(--card-color), transparent 93%); }
.social-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--card-color); stroke-width: 1.7; }
.twitch { --card-color: #a970ff; }
.twitch .social-icon svg { fill: var(--card-color); stroke: none; }
.discord { --card-color: #8b7cff; }
.discord .social-icon svg { fill: var(--card-color); stroke: none; }
.youtube { --card-color: #ff4d5f; }
.youtube .social-icon svg { fill: var(--card-color); stroke: none; }
.youtube .social-icon .play { fill: #101117; }
.tiktok { --card-color: #55e5ed; }
.instagram { --card-color: #e86ec7; }
.instagram .dot { fill: var(--card-color); }
.facebook { --card-color: #6e9cff; }
.facebook .social-icon svg { fill: var(--card-color); stroke: none; }
.social-card small { color: #5e606a; font: 700 8px var(--font-display); letter-spacing: .18em; }
.social-card h3 { font: 700 22px var(--font-display); margin: 6px 0 4px; }
.social-card span { color: #858791; font-size: 11px; }
.social-card > i { color: #5a5c66; font-style: normal; font-size: 22px; z-index: 1; transition: color .25s, transform .25s; }
.social-card:hover > i { color: var(--card-color); transform: translate(3px, -3px); }

.final-cta { min-height: 650px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.final-cta::before { content: ""; position: absolute; width: 550px; height: 550px; border: 1px solid rgba(176,0,13,.12); border-radius: 50%; box-shadow: 0 0 100px rgba(176,0,13,.08), inset 0 0 100px rgba(176,0,13,.04); }
.final-cta p { color: var(--purple-light); font: 700 9px var(--font-display); letter-spacing: .3em; z-index: 1; }
.final-cta h2 { font-size: clamp(52px, 7vw, 100px); z-index: 1; margin: 16px 0 36px; }
.final-cta .button { z-index: 1; }
.final-rune { position: absolute; color: rgba(176,0,13,.035); font: 800 500px/1 var(--font-display); }
footer { min-height: 120px; width: min(1400px, calc(100% - 64px)); margin: 0 auto; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #585a64; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand { transform: scale(.85); transform-origin: left; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.game-card:nth-child(2), .social-card:nth-child(2) { transition-delay: .1s; }
.game-card:nth-child(3), .social-card:nth-child(3) { transition-delay: .2s; }
.social-card:nth-child(4) { transition-delay: .3s; }
.social-card:nth-child(5) { transition-delay: .4s; }
.social-card:nth-child(6) { transition-delay: .5s; }

@media (max-width: 980px) {
  .site-header, .hero, footer { width: min(100% - 40px, 1400px); }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 90px 3vw 130px; }
  .hero-copy { z-index: 2; }
  .hero-emblem { position: absolute; width: 62vw; right: -17vw; opacity: .26; }
  .section { width: min(100% - 40px, 1240px); padding: 110px 0; }
  .about-grid, .games-intro { grid-template-columns: 1fr; gap: 55px; }
  .game-cards { grid-template-columns: 1fr; }
  .game-card { min-height: 330px; }
  .influences { align-items: flex-start; gap: 25px; }
  .influences div { flex-wrap: wrap; justify-content: flex-end; }
  .social-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 84px; }
  .header-cta { display: none; }
  .hero { min-height: calc(100svh - 84px); padding: 70px 0 115px; align-items: start; }
  h1 { font-size: clamp(46px, 14vw, 72px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .status-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .status-row > div { border: 0; padding: 0; margin: 0; min-width: 0; grid-template-columns: 12px auto 1fr; column-gap: 10px; }
  .status-row strong { grid-column: 2; }
  .status-row small { grid-column: 3; margin-top: 0; white-space: normal; }
  .status-row > div:last-child { display: none; }
  .hero-emblem { width: 90vw; right: -43vw; top: 22%; opacity: .16; }
  .scroll-hint { left: 0; transform: none; }
  .section-label { margin-bottom: 58px; }
  h2 { font-size: clamp(36px, 10.5vw, 58px); overflow-wrap: anywhere; }
  .about-copy .lead { font-size: 17px; }
  .game-card { padding: 32px 28px; }
  .game-card svg { margin: 38px 0 30px; }
  .influences { display: block; }
  .influences div { justify-content: flex-start; margin-top: 20px; gap: 12px; }
  .social-card { grid-template-columns: 54px 1fr auto; gap: 16px; padding: 22px 18px; min-height: 125px; }
  .social-grid { grid-template-columns: 1fr; }
  .social-icon { width: 54px; height: 54px; }
  .social-card h3 { font-size: 18px; }
  .social-card span { font-size: 9px; }
  .final-cta { min-height: 560px; padding: 0 20px; }
  footer { justify-content: center; text-align: center; flex-direction: column; gap: 12px; padding: 30px 0; }
  footer > p { display: none; }
}

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