/* ==========================================================================
   RISEN GATE GAMES — Dark Fantasy Studio Stylesheet
   ========================================================================== */

:root {
  --bg-abyss: #080706;
  --bg-obsidian: #0f0d0b;
  --bg-card: #15120f;
  --bg-card-hover: #1b1713;
  --gold-bright: #ecd095;
  --gold-main: #c9a25e;
  --gold-dim: #7e6132;
  --gold-border: rgba(201, 162, 94, 0.24);
  --gold-border-strong: rgba(201, 162, 94, 0.55);
  --crimson: #a82c24;
  --crimson-glow: #df4b35;
  --text-primary: #eae2d5;
  --text-secondary: #a89d8b;
  --text-muted: #6e6557;
  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Subtle gothic grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: radial-gradient(rgba(255, 235, 200, 0.5) 1px, transparent 0);
  background-size: 24px 24px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography Helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 14px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold-main), transparent);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Ornamental Divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  padding: 12px 0;
  width: 100%;
  max-width: 420px;
}

.ornament-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.ornament-divider svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-main);
  opacity: 0.8;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--gold-border);
}

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

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

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--gold-border-strong);
  overflow: hidden;
  background: #080706;
  box-shadow: 0 0 18px rgba(168, 44, 36, 0.35);
  flex-shrink: 0;
  padding: 2px;
}

.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-main);
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 13, 11, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  border-radius: 2px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: linear-gradient(180deg, rgba(201, 162, 94, 0.28), rgba(126, 97, 50, 0.22));
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 94, 0.45);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  color: var(--gold-main);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.68) contrast(1.06);
  transform: scale(1.03);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(8, 7, 6, 0.18) 0%, rgba(8, 7, 6, 0.72) 68%, rgba(8, 7, 6, 0.96) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.7) 0%, rgba(8, 7, 6, 0.15) 35%, rgba(8, 7, 6, 0.85) 82%, var(--bg-abyss) 100%);
}

#ember-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-emblem-wrap {
  width: 176px;
  height: 176px;
  margin: 0 auto 24px;
  position: relative;
  border-radius: 8px;
  padding: 5px;
  background: radial-gradient(circle, rgba(201, 162, 94, 0.45) 0%, rgba(168, 44, 36, 0.25) 60%, transparent 78%);
  box-shadow: 0 0 55px rgba(168, 44, 36, 0.42), 0 0 28px rgba(201, 162, 94, 0.22);
}

.hero-emblem {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--gold-border-strong);
  background: #080706;
  padding: 4px;
}

.hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.04;
  background: linear-gradient(180deg, #fff4dc 0%, #e5c687 48%, #a67e3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.9));
  margin-bottom: 6px;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.9vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.52em;
  color: var(--gold-main);
  margin-bottom: 24px;
  padding-left: 0.52em;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  color: #dcd3c4;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.62;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 2px;
  transition: all var(--transition);
  position: relative;
}

.btn-primary {
  background: linear-gradient(180deg, #b8362a 0%, #7c1f18 100%);
  color: #f8efe0;
  border: 1px solid rgba(236, 208, 149, 0.5);
  box-shadow: 0 8px 28px rgba(168, 44, 36, 0.4), inset 0 1px 0 rgba(255, 226, 175, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #cf3f31 0%, #92251d 100%);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(201, 56, 42, 0.55);
}

.btn-secondary {
  background: rgba(15, 13, 11, 0.72);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border-strong);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(201, 162, 94, 0.14);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 162, 94, 0.2);
}

.hero-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: "◆";
  color: var(--crimson-glow);
  font-size: 0.55rem;
}

/* ---------- Sections ---------- */
section {
  padding: 104px 0;
  position: relative;
}

.section-obsidian {
  background: linear-gradient(180deg, var(--bg-abyss) 0%, var(--bg-obsidian) 50%, var(--bg-abyss) 100%);
}

/* ---------- Manifesto / Vision ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gothic-card {
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.92), rgba(14, 12, 10, 0.96));
  border: 1px solid var(--gold-border);
  padding: 36px 30px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.gothic-card::before,
.gothic-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-main);
  border-style: solid;
  opacity: 0.65;
  transition: opacity var(--transition);
}

.gothic-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.gothic-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.gothic-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.gothic-card:hover::before,
.gothic-card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
  background: rgba(168, 44, 36, 0.12);
  color: var(--gold-bright);
  margin-bottom: 22px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.gothic-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.gothic-card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Core Pillars (Alternating Art + Editorial) ---------- */
.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.pillar-row {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 52px;
  align-items: center;
}

.pillar-row.reverse {
  grid-template-columns: 1fr 1.18fr;
}

.pillar-row.reverse .pillar-media {
  order: 2;
}

.pillar-row.reverse .pillar-body {
  order: 1;
}

.art-frame {
  position: relative;
  border: 1px solid var(--gold-border-strong);
  padding: 8px;
  background: #0c0a08;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  cursor: pointer;
  overflow: hidden;
}

.art-frame-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #080706;
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.art-frame:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.art-zoom-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: rgba(8, 7, 6, 0.84);
  border: 1px solid var(--gold-border-strong);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0.85;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.art-frame:hover .art-zoom-badge {
  opacity: 1;
  background: rgba(168, 44, 36, 0.88);
}

.pillar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crimson-glow);
  line-height: 1;
}

.pillar-tag {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-main);
  padding-left: 14px;
  border-left: 1px solid var(--gold-dim);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.75;
}

.pillar-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pillar-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: #cfc6b8;
}

.pillar-bullets li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.65rem;
  color: var(--gold-main);
}

/* ---------- Interactive Systems Grimoire (Diablo II / DD Tooltip) ---------- */
.codex-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.codex-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.codex-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 16px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.codex-tab:hover {
  border-color: var(--gold-border-strong);
  color: var(--text-primary);
}

.codex-tab.active {
  background: linear-gradient(180deg, rgba(168, 44, 36, 0.28), rgba(24, 18, 15, 0.96));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(168, 44, 36, 0.25);
}

.codex-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: radial-gradient(circle at 20% 20%, rgba(168, 44, 36, 0.14), transparent 55%), #0d0b09;
  border: 1px solid var(--gold-border-strong);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.75), inset 0 0 0 4px #080706, inset 0 0 0 5px rgba(201, 162, 94, 0.2);
  overflow: hidden;
}

.codex-visual {
  position: relative;
  background: #080706;
  border-right: 1px solid var(--gold-border);
  min-height: 360px;
}

.codex-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.06);
}

.codex-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #0d0b09 100%);
  pointer-events: none;
}

.codex-details {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-rarity {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--crimson-glow);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.item-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.item-req {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-border);
}

.item-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.item-stats li {
  font-size: 0.94rem;
  color: #dfd7c9;
  padding-left: 18px;
  position: relative;
}

.item-stats li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold-main);
}

.item-recipe {
  background: rgba(201, 162, 94, 0.07);
  border: 1px solid rgba(201, 162, 94, 0.2);
  padding: 13px 16px;
  margin-bottom: 18px;
}

.item-recipe-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold-main);
  margin-bottom: 4px;
}

.item-recipe-text {
  font-size: 0.88rem;
  color: #d6ccbc;
}

.item-lore {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Art Vault Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--gold-border);
  background: #0c0a08;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-item:hover {
  border-color: var(--gold-bright);
  transform: translateY(-4px);
}

.gallery-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080706;
}

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

.gallery-thumb.contain img {
  object-fit: contain;
  padding: 10px;
  background: #080706;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.06);
}

.gallery-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--gold-border);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.gallery-item:hover .gallery-caption {
  color: var(--gold-bright);
}

/* ---------- Contact & Footer ---------- */
.contact-box {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(22, 18, 15, 0.95), rgba(11, 9, 8, 0.98));
  border: 1px solid var(--gold-border-strong);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.contact-tile {
  padding: 22px;
  background: rgba(8, 7, 6, 0.65);
  border: 1px solid var(--gold-border);
}

.contact-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text-primary);
  word-break: break-word;
}

.copy-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 6px 12px;
  border: 1px solid var(--gold-border);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(201, 162, 94, 0.16);
  border-color: var(--gold-bright);
}

.site-footer {
  border-top: 1px solid var(--gold-border);
  padding: 36px 0;
  background: #060504;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-dim);
  font-size: 1rem;
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 4, 4, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-border-strong);
  background: rgba(15, 13, 11, 0.9);
  color: var(--gold-bright);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover {
  background: var(--crimson);
}

.lightbox-img {
  max-width: min(1240px, 92vw);
  max-height: 78vh;
  border: 1px solid var(--gold-border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-align: center;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .manifesto-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillar-row,
  .pillar-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pillar-row.reverse .pillar-media,
  .pillar-row.reverse .pillar-body {
    order: initial;
  }

  .codex-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .codex-card {
    grid-template-columns: 1fr;
  }

  .codex-visual {
    border-right: none;
    border-bottom: 1px solid var(--gold-border);
    min-height: 240px;
    max-height: 280px;
  }

  .codex-visual::after {
    background: linear-gradient(180deg, transparent 55%, #0d0b09 100%);
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 7, 6, 0.97);
    border-bottom: 1px solid var(--gold-border);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  section {
    padding: 72px 0;
  }

  .hero {
    padding: 108px 0 68px;
  }

  .hero-emblem-wrap {
    width: 122px;
    height: 122px;
  }

  .contact-box {
    padding: 36px 22px;
  }

  .codex-details {
    padding: 24px 20px;
  }

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