/* ==========================================================================
   APKALLU WORKS — Official Studio Design System
   Anchored in the Apkallu Ishtar-Lapis & Forged-Gold Brand Identity
   100% Self-Hosted Typography · Zero External CDN Calls
   ========================================================================== */

@font-face {
  font-family: 'Cinzel Decorative';
  src: url('../assets/fonts/CinzelDecorative-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral';
  src: url('../assets/fonts/Spectral-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MaganWedge';
  src: url('../assets/fonts/MaganWedge-B.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core Palette — Midnight Lapis, Glazed Cobalt & Forged Gold */
  --bg-abyss: #060f1e;
  --bg-lapis: #0b1a33;
  --bg-lapis-mid: #102344;
  --bg-panel: rgba(15, 31, 61, 0.78);
  --bg-panel-solid: #0f203f;
  --bg-panel-hover: rgba(21, 44, 84, 0.92);

  --gold-bright: #f8de8c;
  --gold: #e5b552;
  --gold-deep: #b8842e;
  --gold-line: rgba(229, 181, 82, 0.26);
  --gold-line-strong: rgba(229, 181, 82, 0.58);

  --lapis-brick: #2660a8;
  --lapis-bright: #4992e0;
  --lapis-glow: rgba(73, 146, 224, 0.28);

  --text-primary: #f2f5fb;
  --text-secondary: #aec0dd;
  --text-muted: #768eb3;

  --badge-live: #34d399;
  --badge-steam: #f4c45d;
  --badge-active: #60a5fa;
  --badge-polish: #c084fc;
  --badge-seal: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 18px 46px rgba(3, 8, 18, 0.55);
  --shadow-gold: 0 0 32px rgba(229, 181, 82, 0.16);

  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Spectral', Georgia, serif;
  --font-heading: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --font-wedge: 'MaganWedge', 'Bricolage Grotesque', sans-serif;

  --container: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #c9963f #060f1e;
}

/* Custom Apkallu Forged-Gold & Midnight-Lapis Scrollbars Everywhere */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #060f1e;
  border-left: 1px solid rgba(229, 181, 82, 0.14);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d7a645 0%, #9b6c22 100%);
  border-radius: 999px;
  border: 2px solid #060f1e;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f8de8c 0%, #e5b552 100%);
}

::-webkit-scrollbar-corner {
  background: #060f1e;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(38, 96, 168, 0.24), transparent 62%),
    radial-gradient(ellipse 65% 40% at 85% 32%, rgba(229, 181, 82, 0.06), transparent 60%),
    var(--bg-abyss);
  min-height: 100vh;
  overflow-x: clip;
}

section,
.container,
.hero-grid > *,
.games-grid > *,
.sliders-layout > *,
.einblicke-grid > *,
.dilmun-top > *,
.dilmun-games-banner > *,
.labs-two-col > *,
.craft-grid > *,
.about-grid > *,
.article-card > * {
  min-width: 0;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold-bright);
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Subtle Apkallu Fish-Scale Background Pattern */
.pattern-scales {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='36' viewBox='0 0 64 36'%3E%3Cpath d='M0 36 C0 18 16 18 16 0 C16 18 32 18 32 36 M32 36 C32 18 48 18 48 0 C48 18 64 18 64 36' fill='none' stroke='%23E5B552' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 64px 36px;
}

/* Ishtar Gate Glazed Lapis Brick Frieze Divider */
.ishtar-frieze {
  position: relative;
  height: 34px;
  width: 100%;
  border-top: 1px solid rgba(229, 181, 82, 0.55);
  border-bottom: 1px solid rgba(229, 181, 82, 0.25);
  background-color: #08162c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34' viewBox='0 0 120 34'%3E%3Ccircle cx='30' cy='6' r='2.8' fill='none' stroke='%23E5B552' stroke-width='0.9' opacity='0.8'/%3E%3Ccircle cx='30' cy='6' r='0.9' fill='%23E5B552' opacity='0.9'/%3E%3Ccircle cx='90' cy='6' r='2.8' fill='none' stroke='%23E5B552' stroke-width='0.9' opacity='0.8'/%3E%3Ccircle cx='90' cy='6' r='0.9' fill='%23E5B552' opacity='0.9'/%3E%3Crect x='2' y='13' width='26' height='8' rx='1.5' fill='%231d5296'/%3E%3Crect x='32' y='13' width='26' height='8' rx='1.5' fill='%232e72c4'/%3E%3Crect x='62' y='13' width='26' height='8' rx='1.5' fill='%23194682'/%3E%3Crect x='92' y='13' width='26' height='8' rx='1.5' fill='%232864b0'/%3E%3Crect x='-12' y='24' width='26' height='8' rx='1.5' fill='%232968b6'/%3E%3Crect x='18' y='24' width='26' height='8' rx='1.5' fill='%231b4a88'/%3E%3Crect x='48' y='24' width='26' height='8' rx='1.5' fill='%23337cd0'/%3E%3Crect x='78' y='24' width='26' height='8' rx='1.5' fill='%231e5499'/%3E%3Crect x='108' y='24' width='26' height='8' rx='1.5' fill='%232968b6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 17, 34, 0.84);
  border-bottom: 1px solid var(--gold-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--text-primary);
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 18px rgba(229, 181, 82, 0.25);
  object-fit: cover;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 65%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  background: rgba(11, 26, 51, 0.9);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn.active {
  background: var(--gold);
  color: #091325;
}

.nav-x-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(16, 35, 68, 0.7);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.nav-x-btn:hover {
  border-color: var(--gold);
  background: rgba(229, 181, 82, 0.14);
  color: var(--gold-bright);
}

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 58%, #d29c3a 100%);
  color: #081224;
  box-shadow: 0 8px 26px rgba(229, 181, 82, 0.26);
}

.btn-gold:hover {
  color: #060d1c;
  box-shadow: 0 12px 32px rgba(229, 181, 82, 0.38);
}

.btn-outline {
  background: rgba(15, 32, 63, 0.72);
  border-color: var(--gold-line-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(229, 181, 82, 0.14);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-live {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.55);
  color: #7bf1c5;
}

.btn-live:hover {
  background: rgba(52, 211, 153, 0.24);
  color: #c2fce6;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  border-radius: 8px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-live { color: var(--badge-live); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.36); }
.badge-steam { color: var(--badge-steam); background: rgba(244, 196, 93, 0.13); border-color: rgba(244, 196, 93, 0.42); }
.badge-active { color: var(--badge-active); background: rgba(96, 165, 250, 0.13); border-color: rgba(96, 165, 250, 0.42); }
.badge-polish { color: var(--badge-polish); background: rgba(192, 132, 252, 0.13); border-color: rgba(192, 132, 252, 0.4); }
.badge-seal { color: var(--badge-seal); background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.42); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 5.2rem 0 4.4rem;
  background:
    radial-gradient(ellipse 72% 72% at 22% 28%, rgba(45, 108, 188, 0.26), transparent 64%),
    radial-gradient(ellipse 52% 55% at 78% 18%, rgba(229, 181, 82, 0.11), transparent 60%),
    linear-gradient(180deg, #0b1b36 0%, #071225 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
}

.hero-grid > * {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(11, 26, 51, 0.72);
  margin-bottom: 1.25rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff1c2 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 26px rgba(229, 181, 82, 0.18));
  overflow-wrap: break-word;
}

.hero-subtitle {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2.2vw, 1.62rem);
  line-height: 1.38;
  color: var(--text-primary);
  max-width: 38ch;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.3rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--gold-line);
}

.metric-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--gold-bright);
  line-height: 1.1;
}

.metric-item span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-seal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.8rem 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 36, 71, 0.9), rgba(8, 19, 38, 0.92));
  border: 1px solid var(--gold-line-strong);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  text-align: center;
}

.hero-medallion {
  width: min(240px, 72%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 55px rgba(229, 181, 82, 0.24), 0 0 85px rgba(45, 114, 200, 0.28);
  margin-bottom: 1.35rem;
}

.hero-seal-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.hero-seal-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 30ch;
}

/* Currently Forging Live Status Strip */
.forging-strip {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(9, 21, 42, 0.82);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.forging-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding-right: 0.6rem;
  border-right: 1px solid var(--gold-line);
}

.forging-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex: 1;
}

.forging-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(19, 40, 77, 0.76);
  border: 1px solid rgba(118, 142, 179, 0.25);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.forging-pill:hover {
  border-color: var(--gold);
  background: rgba(229, 181, 82, 0.14);
  color: var(--gold-bright);
}

.forging-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-steam { background: var(--badge-steam); }
.dot-polish { background: var(--badge-polish); }
.dot-active { background: var(--badge-active); }
.dot-seal { background: var(--badge-seal); }
.dot-live { background: var(--badge-live); box-shadow: 0 0 8px var(--badge-live); }

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: 5.2rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 26, 51, 0.52) 0%, rgba(6, 15, 30, 0.72) 100%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.section-desc {
  margin: 0;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(15, 32, 63, 0.72);
  border: 1px solid rgba(118, 142, 179, 0.28);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #091325;
  font-weight: 600;
}

/* ==========================================================================
   Games Showcase Grid
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line-strong);
  box-shadow: 0 22px 52px rgba(3, 8, 18, 0.72), var(--shadow-gold);
}

.game-card.hidden {
  display: none;
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #081326;
  border-bottom: 1px solid rgba(229, 181, 82, 0.2);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.04);
}

.game-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.72rem;
}

.game-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 15, 30, 0.42) 100%);
  pointer-events: none;
}

.engine-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.24rem 0.56rem;
  border-radius: 6px;
  background: rgba(6, 15, 30, 0.82);
  border: 1px solid rgba(174, 192, 221, 0.28);
  color: var(--text-primary);
  backdrop-filter: blur(6px);
}

/* Custom Stillbell "Under Seal" Atmospheric SVG Backdrop */
.stillbell-seal-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 34%, #1b3154 0%, #0c172b 58%, #050a14 100%);
  position: relative;
}

.stillbell-seal-art svg {
  width: 100%;
  height: 100%;
}

.game-body {
  padding: 1.35rem 1.4rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.game-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.32rem;
  color: var(--text-primary);
}

.game-genre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 0.72rem;
}

.game-pitch {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex: 1;
}

.game-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 1.15rem;
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(8, 20, 41, 0.8);
  border: 1px solid rgba(118, 142, 179, 0.22);
  padding: 0.2rem 0.52rem;
  border-radius: 6px;
}

.game-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Interactive Before / After Comparison Sliders
   ========================================================================== */
.sliders-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.slider-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-card);
}

.slider-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.slider-header h3 {
  margin: 0.25rem 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.slider-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.scene-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scene-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.34rem 0.68rem;
  border-radius: 6px;
  border: 1px solid rgba(118, 142, 179, 0.32);
  background: rgba(8, 20, 41, 0.8);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
}

.scene-tab.active,
.scene-tab:hover {
  border-color: var(--gold);
  background: rgba(229, 181, 82, 0.18);
  color: var(--gold-bright);
}

.compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-line-strong);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  background: #060e1d;
  --pos: 50%;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 14px rgba(248, 222, 140, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 26, 51, 0.94);
  border: 2px solid var(--gold-bright);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.compare-tag {
  position: absolute;
  bottom: 0.75rem;
  padding: 0.28rem 0.68rem;
  border-radius: 6px;
  background: rgba(6, 15, 30, 0.82);
  border: 1px solid var(--gold-line);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare-tag-left { left: 0.75rem; }
.compare-tag-right { right: 0.75rem; }

.slider-footnote {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Einblicke / Studio Dev Snapshots
   ========================================================================== */
.einblicke-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.snapshot-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid rgba(118, 142, 179, 0.24);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.snapshot-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line-strong);
}

.snapshot-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #081326;
}

.snapshot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.snapshot-card:hover .snapshot-img img {
  transform: scale(1.04);
}

.snapshot-body {
  padding: 1.2rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.snapshot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.snapshot-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.snapshot-body p {
  margin: 0 0 1rem;
  font-size: 0.89rem;
  color: var(--text-secondary);
  flex: 1;
}

.snapshot-read {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Apkallu Labs — Dilmun/Magan, Voynich, The Forge
   ========================================================================== */
.dilmun-feature {
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(16, 36, 71, 0.88), rgba(8, 19, 39, 0.94));
  border: 1px solid var(--gold-line-strong);
  padding: 2rem;
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-card);
}

.dilmun-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.dilmun-wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.dilmun-wordmark img {
  width: 30px;
  height: 30px;
}

.dilmun-wordmark span {
  font-family: var(--font-wedge);
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.dilmun-video-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  aspect-ratio: 16 / 9;
  background: #060f1e;
}

.dilmun-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agents-strip-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  padding: 0.68rem 0.78rem;
  border-radius: 12px;
  background: rgba(8, 19, 39, 0.78);
  border: 1px solid rgba(118, 142, 179, 0.22);
}

.agent-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line-strong);
  object-fit: cover;
  flex-shrink: 0;
}

.agent-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.agent-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  margin-top: 2px;
}

.agent-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.dilmun-games-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-line);
}

.dilmun-games-banner img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
}

.labs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.lab-panel {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.lab-panel h3 {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.38rem;
}

.lab-panel p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.voynich-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.voynich-layout > * {
  min-width: 0;
}

.voynich-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.voynich-visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: #060f1e;
}

.voynich-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.stat-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.15rem;
  position: relative;
}

.stat-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.65rem;
  top: 0.2rem;
}

.forge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.forge-card {
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: rgba(7, 17, 34, 0.8);
  border: 1px solid rgba(118, 142, 179, 0.22);
}

.forge-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--gold-bright);
  margin-bottom: 0.2rem;
}

.forge-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--lapis-bright);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.forge-card p {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.42;
  color: var(--text-secondary);
}

/* ==========================================================================
   Craft & Pipelines Section
   ========================================================================== */
.craft-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.pillar-stack {
  display: grid;
  gap: 1rem;
}

.pillar-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
}

.pillar-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  color: var(--gold-bright);
}

.pillar-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lookbook-panel {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--gold-line-strong);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.lookbook-panel img {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 181, 82, 0.28);
  margin-bottom: 1rem;
  cursor: zoom-in;
}

.lookbook-panel h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.lookbook-panel p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   About & Footer
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.myth-table {
  display: grid;
  gap: 0.75rem;
}

.myth-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  border-radius: 10px;
  background: rgba(11, 26, 51, 0.75);
  border: 1px solid var(--gold-line);
}

.myth-row strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}

.myth-row span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.site-footer {
  padding: 3rem 0 2.5rem;
  background: #050c19;
  border-top: 1px solid var(--gold-line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.65rem 0 0;
}

/* ==========================================================================
   Modal & Lightbox
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 8, 18, 0.84);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #0c1b36;
  border: 1px solid var(--gold-line-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.78);
  padding: 1.8rem 2rem 2rem;
  position: relative;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-line-strong);
  background: rgba(7, 17, 34, 0.92);
  color: var(--gold-bright);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.modal-close:hover {
  background: var(--gold);
  color: #081224;
}

.modal-media-stage {
  margin: 1rem 0 1.15rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: #050c19;
  aspect-ratio: 16 / 9;
}

.modal-media-stage img,
.modal-media-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #040914;
}

.modal-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.35rem;
}

.modal-thumb-btn {
  flex: 0 0 116px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #060f1e;
  cursor: pointer;
  position: relative;
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb-btn.active {
  border-color: var(--gold-bright);
}

.modal-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 15, 30, 0.45);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0 1.4rem;
}

.modal-stat {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(6, 15, 30, 0.72);
  border: 1px solid var(--gold-line);
}

.modal-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold-bright);
}

.modal-stat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-callout {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: rgba(229, 181, 82, 0.08);
  border-left: 3px solid var(--gold);
  margin: 1.2rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.modal-callout strong {
  color: var(--gold-bright);
}

/* Subpages (Einblicke Archive & Imprint) */
.page-banner {
  padding: 4.2rem 0 2.8rem;
  background: linear-gradient(180deg, #0b1b36 0%, #060f1e 100%);
}

.article-stack {
  display: grid;
  gap: 2.2rem;
}

.article-card {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1.8rem;
  padding: 1.65rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-card);
  align-items: start;
}

.article-card img {
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  cursor: zoom-in;
}

.article-card h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.55rem;
}

.article-card p {
  margin: 0 0 0.9rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-box {
  max-width: 820px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
}

.legal-box h2 {
  font-family: var(--font-heading);
  color: var(--gold-bright);
  margin-top: 1.6rem;
}

.legal-box h2:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .games-grid,
  .einblicke-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sliders-layout,
  .dilmun-top,
  .dilmun-games-banner,
  .voynich-layout,
  .labs-two-col,
  .craft-grid,
  .about-grid,
  .article-card {
    grid-template-columns: 1fr;
  }
  .agents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 17, 34, 0.97);
    border-bottom: 1px solid var(--gold-line);
    padding: 1.2rem 1.5rem;
    gap: 0.9rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-mobile-toggle {
    display: inline-flex;
  }
  .modal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 1.5rem);
  }
  .nav-inner {
    gap: 0.5rem;
  }
  .brand-emblem {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
  .brand-sub {
    display: none;
  }
  .nav-actions {
    gap: 0.45rem;
  }
  .nav-x-btn {
    padding: 0.38rem 0.52rem;
  }
  .nav-x-btn span {
    display: none;
  }
  .hero {
    padding: 2.8rem 0 2.5rem;
  }
  .hero-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-metrics {
    gap: 1rem 1.4rem;
  }
  .metric-item strong {
    font-size: 1.2rem;
  }
  .dilmun-feature,
  .lab-panel,
  .slider-card {
    padding: 1.15rem;
  }
  .games-grid,
  .einblicke-grid,
  .agents-grid,
  .forge-grid {
    grid-template-columns: 1fr;
  }
  .myth-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .modal-dialog {
    padding: 1.25rem;
  }
}
