/* Variables */
:root {
  --background: #09090d;
  --background-soft: #0c0c12;
  --surface: #111118;
  --surface-alt: #171720;
  --surface-raised: #1b1b26;
  --border: #292936;
  --border-bright: #3a394a;
  --text: #f4f2fa;
  --text-secondary: #a7a4b2;
  --text-muted: #716e7e;
  --purple: #8b5cf6;
  --purple-bright: #a855f7;
  --indigo: #6366f1;
  --magenta: #c026d3;
  --green: #72d8a0;
  --orange: #e19a62;
  --shell: 1180px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Base */
body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 7%, rgba(104, 65, 206, 0.14), transparent 24rem),
    radial-gradient(circle at 12% 53%, rgba(99, 102, 241, 0.07), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

body::after {
  position: fixed;
  z-index: -1;
  top: 122px;
  right: 7vw;
  width: 12px;
  height: 12px;
  background: rgba(168, 85, 247, 0.28);
  box-shadow:
    -60px 48px 0 rgba(99, 102, 241, 0.1),
    48px 144px 0 rgba(192, 38, 211, 0.08),
    -22vw 340px 0 rgba(139, 92, 246, 0.09),
    -73vw 196px 0 rgba(99, 102, 241, 0.08);
  content: "";
  animation: ambient-pixels 8s ease-in-out infinite alternate;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #bd94ff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border: 1px solid var(--purple);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Layout */
.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: clamp(80px, 9vw, 128px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  align-items: end;
  gap: 48px;
  margin-bottom: 38px;
}

.section-heading > p,
.about__copy > p,
.github-cta__copy > p {
  color: var(--text-secondary);
}

.section-heading > p {
  padding-bottom: 5px;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.section-kicker,
.mod-card__topline p,
.platforms__label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 12px;
  color: #928e9d;
}

h1,
h2,
h3,
.brand-name {
  letter-spacing: -0.04em;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 6.8vw, 6.35rem);
  font-weight: 750;
  line-height: 0.94;
}

h1 span {
  background: linear-gradient(98deg, #d1b9ff 4%, #9b73f5 44%, #cc6ee0 90%);
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  font-weight: 720;
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.9rem, 3vw, 3.05rem);
  font-weight: 720;
  line-height: 1.04;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(53, 52, 69, 0.72);
  background: rgba(9, 9, 13, 0.84);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav {
  display: flex;
  align-items: center;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #7655cf;
  border-top-color: #b47bff;
  border-bottom-color: #4a3792;
  background: #151222;
  box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.28);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--purple-bright);
  content: "";
}

.brand-mark::before {
  top: -3px;
  left: -3px;
}

.brand-mark::after {
  right: -3px;
  bottom: -3px;
  background: var(--indigo);
}

.brand-mark__core {
  width: 12px;
  height: 18px;
  border: 2px solid #c6a5ff;
  border-top: 0;
  box-shadow: 0 0 9px rgba(168, 85, 247, 0.8);
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name span {
  color: #9893a3;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 650;
}

.nav__links a,
.footer-nav a {
  border-radius: 4px;
  transition: color var(--transition);
}

.nav__links a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.nav__cta {
  margin-left: 32px;
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button--small {
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.button--primary {
  border-color: #a277ff;
  background: #8b5cf6;
  box-shadow: 0 10px 34px rgba(86, 50, 176, 0.25);
  color: #fff;
}

.button--primary:hover {
  border-color: #c9afff;
  background: #9a6ff9;
  box-shadow: 0 14px 38px rgba(99, 58, 197, 0.34);
}

.button--outline,
.button--ghost {
  border-color: var(--border-bright);
  background: rgba(25, 25, 34, 0.76);
  color: #e2dfea;
}

.button--outline:hover,
.button--ghost:hover {
  border-color: #67558d;
  background: #1b1826;
}

.button--light {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.32);
  background: #f3effb;
  color: #1a1328;
  box-shadow: 0 12px 30px rgba(24, 11, 43, 0.2);
}

.button--light:hover {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 16px 36px rgba(24, 11, 43, 0.28);
}

.button__arrow {
  font-size: 1rem;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: 610px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 46px;
  padding-block: clamp(72px, 9vw, 112px) 74px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #c5bdd5;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow__signal {
  width: 7px;
  height: 7px;
  background: #a67bf8;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 0 16px rgba(168, 85, 247, 0.75);
}

.hero__lead {
  max-width: 650px;
  margin-top: 31px;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
  color: #757180;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__meta span:nth-child(even) {
  color: #4a4651;
}

.hero-art {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid rgba(112, 90, 162, 0.2);
  background:
    linear-gradient(rgba(137, 106, 210, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 106, 210, 0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(106, 69, 191, 0.17), transparent 62%);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 0 0 70px rgba(81, 48, 158, 0.1);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.hero-art::before {
  inset: -22px 22px 22px -22px;
  border: 1px solid rgba(91, 76, 128, 0.14);
}

.hero-art::after {
  inset: 20%;
  background: rgba(139, 92, 246, 0.12);
  filter: blur(48px);
  animation: glow-breathe 5s ease-in-out infinite alternate;
}

.hero-art > p {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: rgba(190, 172, 226, 0.45);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-art__axis {
  position: absolute;
  background: rgba(153, 114, 239, 0.18);
}

.hero-art__axis--x {
  top: 50%;
  right: -28px;
  left: -28px;
  height: 1px;
}

.hero-art__axis--y {
  top: -28px;
  bottom: -28px;
  left: 50%;
  width: 1px;
}

.gateway {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  aspect-ratio: 0.76;
  transform: translate(-50%, -50%);
  border: 10px solid #332555;
  background: linear-gradient(135deg, #151120, #26183a);
  box-shadow:
    inset 0 0 0 1px rgba(210, 181, 255, 0.12),
    0 0 0 1px #513b82,
    0 0 38px rgba(139, 92, 246, 0.2);
}

.gateway__inner {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(213, 185, 255, 0.36);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.07) 50%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(139, 92, 246, 0.08) 0 2px, transparent 2px 12px),
    #130d1e;
  box-shadow: inset 0 0 32px rgba(139, 92, 246, 0.27);
}

.gateway__core {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 3px solid #d2b5ff;
  background: #8b5cf6;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.95);
}

.gateway__corner {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  background: #6e4cb6;
}

.gateway__corner--tl { top: -13px; left: -13px; }
.gateway__corner--tr { top: -13px; right: -13px; }
.gateway__corner--bl { bottom: -13px; left: -13px; }
.gateway__corner--br { right: -13px; bottom: -13px; }

.pixel {
  position: absolute;
  width: 9px;
  height: 9px;
  background: rgba(171, 123, 255, 0.5);
  animation: pixel-drift 4s ease-in-out infinite alternate;
}

.pixel--1 { top: 20%; left: 15%; }
.pixel--2 { top: 13%; right: 20%; width: 5px; height: 5px; animation-delay: -1s; }
.pixel--3 { right: 12%; bottom: 26%; animation-delay: -2.2s; }
.pixel--4 { bottom: 12%; left: 24%; width: 5px; height: 5px; animation-delay: -3s; }

/* Mods */
.mods {
  position: relative;
  border-top: 1px solid rgba(48, 47, 61, 0.62);
  background: linear-gradient(180deg, rgba(18, 18, 25, 0.86), rgba(12, 12, 18, 0.4));
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Cards */
.mod-card {
  --accent: var(--purple);
  --accent-rgb: 139, 92, 246;
  position: relative;
  display: flex;
  min-height: 575px;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.045), transparent 38%),
    var(--surface);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.mod-card::before {
  position: absolute;
  z-index: 0;
  top: -160px;
  right: -140px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  content: "";
  filter: blur(76px);
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
}

.mod-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.25);
}

.mod-card:hover::before {
  transform: translate(-12px, 12px);
  opacity: 0.9;
}

.mod-card--api {
  --accent: #7477ff;
  --accent-rgb: 99, 102, 241;
}

.mod-card--soul {
  --accent: #bd5ce2;
  --accent-rgb: 192, 38, 211;
}

.mod-card--dungeons {
  --accent: #9867ee;
  --accent-rgb: 139, 92, 246;
  min-height: 510px;
  grid-column: 1 / -1;
}

.mod-card__topline,
.mod-card__content,
.platforms,
.mod-card__wide-layout {
  position: relative;
  z-index: 2;
}

.mod-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-number {
  color: rgba(var(--accent-rgb), 0.55);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.mod-card__content {
  margin-top: auto;
}

.project-type {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.09);
  color: color-mix(in srgb, var(--accent), white 25%);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.mod-card__description {
  max-width: 590px;
  margin-top: 17px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.68;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.tags li {
  padding: 5px 9px;
  border: 1px solid #30303e;
  border-radius: 6px;
  background: #17171f;
  color: #a7a4b2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  line-height: 1.3;
}

.mod-card__art {
  position: absolute;
  z-index: 1;
  transition: transform var(--transition), opacity var(--transition);
}

.mod-card:hover .mod-card__art {
  transform: translate3d(-4px, 5px, 0);
}

.mod-card__art--api,
.mod-card__art--soul {
  top: 75px;
  right: clamp(28px, 5vw, 62px);
  width: 150px;
  height: 150px;
}

.api-core,
.soul-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.api-core {
  width: 62px;
  height: 62px;
  border: 1px solid #8588ff;
  background: #1e2055;
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.34);
  color: #d4d5ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 900;
}

.api-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(128, 131, 255, 0.28);
  transform: translate(-50%, -50%);
}

.api-orbit--one {
  width: 108px;
  height: 108px;
}

.api-orbit--two {
  width: 150px;
  height: 150px;
  border-style: dashed;
  opacity: 0.56;
}

.art-pixel {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #7275f3;
  box-shadow: 0 0 13px rgba(99, 102, 241, 0.7);
}

.art-pixel--a { top: -3px; left: 44%; }
.art-pixel--b { right: 18px; bottom: 23px; width: 5px; height: 5px; }
.art-pixel--c { bottom: 13px; left: 6px; width: 5px; height: 5px; }

.soul-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(211, 93, 232, 0.36);
}

.soul-ring--outer {
  width: 128px;
  height: 128px;
}

.soul-ring--inner {
  width: 86px;
  height: 86px;
  border-color: rgba(236, 142, 255, 0.55);
}

.soul-core {
  width: 44px;
  height: 58px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid #df78ee;
  background: linear-gradient(135deg, #71277e, #32143b);
  box-shadow: 0 0 30px rgba(192, 38, 211, 0.4);
}

.soul-core::after {
  width: 11px;
  height: 11px;
  background: #efb5fa;
  box-shadow: 0 0 16px #d85fe9;
  content: "";
}

.soul-rune {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #cb5cde;
}

.soul-rune--one { top: 6px; right: 16px; }
.soul-rune--two { bottom: 5px; left: 22px; }

.platforms {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #292933;
}

.platforms__label {
  margin-bottom: 11px;
  color: #656270;
  font-size: 0.58rem;
}

.platforms__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.platform-link {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #30303d;
  border-radius: 7px;
  background: #16161e;
  color: #bbb8c4;
  font-size: 0.7rem;
  font-weight: 720;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.platform-link:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.52);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}

.platform-mark {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: currentColor;
}

.platform-mark--modrinth {
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.platform-mark--modrinth::after {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 5px;
  height: 3px;
  background: currentColor;
  content: "";
}

.platform-mark--curseforge {
  border: 2px solid currentColor;
  border-radius: 3px 3px 6px 6px;
}

.platform-mark--curseforge::before {
  position: absolute;
  top: 3px;
  right: 2px;
  left: 2px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
  content: "";
}

.platform-mark--github {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.platform-mark--github::before,
.platform-mark--github::after {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  content: "";
}

.platform-mark--github::before {
  left: -1px;
  transform: rotate(35deg);
}

.platform-mark--github::after {
  right: -1px;
  transform: rotate(-35deg);
}

.mod-card__wide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 72px;
  flex: 1;
  padding-block: 48px 22px;
}

.mod-card--dungeons .mod-card__content {
  margin-top: 0;
}

.mod-card--dungeons h3 {
  font-size: clamp(2.1rem, 4.4vw, 4.25rem);
}

.mod-card__art--dungeons {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  min-height: 230px;
  border: 1px solid rgba(140, 103, 214, 0.16);
  background:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.dungeon-map {
  position: absolute;
  inset: 0;
}

.map-room,
.map-path,
.map-key {
  position: absolute;
  background: #3f2e65;
  box-shadow: inset 0 0 0 1px rgba(202, 170, 255, 0.18);
}

.map-room::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(204, 175, 255, 0.14);
  content: "";
}

.map-room--one { top: 20px; left: 25px; width: 72px; height: 58px; }
.map-room--two { top: 20px; right: 24px; width: 96px; height: 82px; }
.map-room--three { bottom: 22px; left: 72px; width: 88px; height: 68px; }
.map-room--four { right: 42px; bottom: 24px; width: 58px; height: 58px; background: #583681; }
.map-path--one { top: 48px; left: 95px; width: calc(100% - 214px); height: 12px; }
.map-path--two { top: 58px; right: 70px; width: 12px; height: calc(100% - 108px); }

.map-key {
  right: 64px;
  bottom: 46px;
  width: 14px;
  height: 14px;
  background: #d5b7ff;
  box-shadow: 0 0 20px rgba(178, 119, 255, 0.82);
}

.platforms--wide {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.platforms--wide .platforms__label {
  margin-bottom: 9px;
}

/* About */
.about {
  position: relative;
}

.about::before {
  position: absolute;
  z-index: -1;
  top: 20%;
  left: 0;
  width: 260px;
  height: 400px;
  background: rgba(99, 102, 241, 0.06);
  content: "";
  filter: blur(90px);
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: start;
  gap: clamp(60px, 10vw, 140px);
}

.about__copy h2 {
  max-width: 650px;
  margin-bottom: 28px;
}

.about__copy > p {
  max-width: 680px;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.8;
}

.about__copy > p + p {
  margin-top: 16px;
  color: #7e7a89;
}

.about__signature {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
}

.signature-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #5d477e;
  background: #181222;
  color: #c3a3fa;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.about__signature div {
  display: flex;
  flex-direction: column;
}

.about__signature strong {
  font-size: 0.84rem;
}

.about__signature div span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.studio-specs {
  border-top: 1px solid var(--border);
}

.studio-specs__item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--border);
}

.studio-specs dt {
  color: #716d79;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-specs dd {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  color: #d3cfdc;
  font-size: 0.82rem;
  font-weight: 640;
}

.studio-specs dd span {
  position: relative;
}

.studio-specs dd span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  width: 3px;
  height: 3px;
  transform: translateY(-50%);
  background: #5f4c84;
  content: "";
}

/* CTA */
.open-source {
  padding-top: 0;
}

.github-cta {
  position: relative;
  display: flex;
  min-height: 285px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid #815bb3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(105deg, rgba(41, 23, 65, 0.95), rgba(81, 38, 113, 0.9)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 26px 70px rgba(26, 10, 48, 0.22);
}

.github-cta::before {
  position: absolute;
  top: -80px;
  right: 18%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(222, 194, 255, 0.09);
  box-shadow: 0 0 0 36px rgba(222, 194, 255, 0.025), 0 0 0 72px rgba(222, 194, 255, 0.018);
  content: "";
  transform: rotate(22deg);
}

.github-cta__copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.github-cta__copy .section-kicker {
  color: #c4a9da;
}

.github-cta__copy h2 {
  margin-bottom: 16px;
}

.github-cta__copy > p:last-child {
  color: #c6b9d0;
  font-size: 0.96rem;
}

.github-cta__pixel {
  position: absolute;
  width: 9px;
  height: 9px;
  background: rgba(232, 208, 255, 0.25);
}

.github-cta__pixel--one { top: 28px; right: 36px; }
.github-cta__pixel--two { right: 47%; bottom: 30px; width: 6px; height: 6px; }
.github-cta__pixel--three { top: 34px; left: 43%; width: 4px; height: 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080c;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-block: 46px;
}

.brand--footer > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.brand--footer small {
  color: #706d79;
  font-size: 0.68rem;
  line-height: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 27px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 650;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-block: 18px 24px;
  border-top: 1px solid #202029;
  color: #66636f;
  font-size: 0.66rem;
}

.site-footer__bottom p:last-child {
  max-width: 500px;
  text-align: right;
}

/* Animations */
@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixel-drift {
  from { transform: translate3d(0, -2px, 0); opacity: 0.46; }
  to { transform: translate3d(3px, 3px, 0); opacity: 0.86; }
}

@keyframes glow-breathe {
  from { opacity: 0.52; transform: scale(0.95); }
  to { opacity: 0.86; transform: scale(1.04); }
}

@keyframes ambient-pixels {
  from { transform: translateY(-2px); }
  to { transform: translateY(4px); }
}

.hero-reveal {
  opacity: 0;
  animation: hero-reveal 700ms var(--ease) forwards;
}

.hero-reveal--1 { animation-delay: 80ms; }
.hero-reveal--2 { animation-delay: 150ms; }
.hero-reveal--3 { animation-delay: 240ms; }
.hero-reveal--4 { animation-delay: 320ms; }
.hero-reveal--5 { animation-delay: 390ms; }

/* Responsive */
@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    margin-left: auto;
  }

  .hero {
    min-height: 570px;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  }

  .hero-art {
    opacity: 0.78;
  }

  .mod-card__wide-layout {
    gap: 38px;
  }

  .about__layout {
    gap: 70px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .section {
    padding-block: 76px;
  }

  .nav {
    height: 64px;
  }

  .brand-name {
    font-size: 0.78rem;
  }

  .nav__cta {
    min-height: 36px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 82px 68px;
  }

  .hero__content {
    max-width: 620px;
  }

  .hero-art {
    position: absolute;
    z-index: 0;
    top: 54px;
    right: -180px;
    width: 390px;
    opacity: 0.23;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading > p {
    max-width: 520px;
  }

  .mods-grid {
    grid-template-columns: 1fr;
  }

  .mod-card,
  .mod-card--dungeons {
    min-height: 550px;
    grid-column: auto;
  }

  .mod-card__wide-layout {
    display: flex;
    flex: 1;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 28px;
    padding-block: 28px 0;
  }

  .mod-card__art--dungeons {
    min-height: 185px;
  }

  .platforms--wide {
    display: block;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .github-cta {
    min-height: 320px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
  }

  .site-footer__top,
  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__top {
    gap: 36px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .site-footer__bottom {
    gap: 9px;
  }

  .site-footer__bottom p:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {
  body::before {
    background-size: 36px 36px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-name {
    max-width: 116px;
    line-height: 1.15;
  }

  .nav__cta {
    gap: 9px;
    padding-inline: 11px;
  }

  .nav__cta .button__arrow {
    display: none;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero {
    padding-block: 72px 58px;
  }

  .hero__lead {
    margin-top: 25px;
  }

  .hero__actions .button {
    flex: 1 1 145px;
  }

  .hero__meta {
    column-gap: 8px;
    font-size: 0.58rem;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .mod-card,
  .mod-card--dungeons {
    min-height: 540px;
    padding: 23px;
    border-radius: 18px;
  }

  .mod-card__art--api,
  .mod-card__art--soul {
    top: 71px;
    right: 27px;
    width: 126px;
    height: 126px;
  }

  .api-orbit--one { width: 94px; height: 94px; }
  .api-orbit--two { width: 126px; height: 126px; }
  .soul-ring--outer { width: 114px; height: 114px; }
  .soul-ring--inner { width: 75px; height: 75px; }

  .mod-card__description {
    font-size: 0.9rem;
  }

  .platform-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .mod-card--dungeons h3 {
    font-size: 2.35rem;
  }

  .mod-card__art--dungeons {
    min-height: 160px;
  }

  .map-room--one { top: 18px; left: 18px; width: 55px; height: 48px; }
  .map-room--two { top: 18px; right: 18px; width: 70px; height: 62px; }
  .map-room--three { bottom: 18px; left: 48px; width: 65px; height: 50px; }
  .map-room--four { right: 32px; bottom: 20px; width: 44px; height: 44px; }
  .map-path--one { top: 42px; left: 72px; width: calc(100% - 158px); height: 10px; }
  .map-path--two { top: 50px; right: 53px; width: 10px; height: calc(100% - 84px); }
  .map-key { right: 47px; bottom: 35px; width: 11px; height: 11px; }

  .studio-specs__item {
    grid-template-columns: 88px 1fr;
    gap: 15px;
  }

  .github-cta {
    min-height: 355px;
    padding: 30px 24px;
    border-radius: 18px;
  }

  .github-cta .button {
    width: 100%;
    gap: 10px;
    padding-inline: 14px;
    font-size: 0.77rem;
  }

  .footer-nav {
    gap: 18px 24px;
  }
}

@media (max-width: 370px) {
  .brand-name {
    max-width: 100px;
    font-size: 0.7rem;
  }

  .nav__cta {
    font-size: 0.68rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
    flex-basis: auto;
  }

  .mod-card {
    padding: 21px;
  }

  .mod-card__topline p {
    font-size: 0.62rem;
  }

  .platform-link {
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-reveal {
    opacity: 1;
    transform: none;
  }
}
