@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Rajdhani:wght@300;400;500;600&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --gold-dim: #b8913e;
  --deep-black: #04050a;
  --space-dark: #080c14;
  --nebula-blue: #0a1628;
  --star-white: #e8e4d8;
  --accent-amber: #ff9f1c;
  --glow-gold: rgba(201, 168, 76, 0.4);
  --glow-blue: rgba(60, 120, 220, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deep-black);
  color: var(--star-white);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--gold-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.3s ease;
  opacity: 0.5;
}

body:hover .cursor { opacity: 1; }

/* ── Canvas Background ── */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ── Main Layout ── */
.site-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Top Navigation Bar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: linear-gradient(to bottom, rgba(4,5,10,0.9) 0%, transparent 100%);
}

.topbar-logo {
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
  display: flex;
  align-items: center;
}

.topbar-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.35));
}

.topbar-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.topbar-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  margin: 0 40px;
  opacity: 0;
  animation: fadeIn 1s 2.2s forwards;
}

.topbar-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-dim);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 40px 80px;
  text-align: center;
}

/* Orbital rings decoration */
.orbital-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 95vw);
  height: min(900px, 95vw);
  pointer-events: none;
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: ringAppear 2s ease forwards, ringRotate linear infinite;
}

.ring-1 {
  width: 340px; height: 340px;
  border-color: rgba(201,168,76,0.12);
  animation-delay: 1s, 3s;
  animation-duration: 1.5s, 60s;
}
.ring-2 {
  width: 520px; height: 520px;
  border-color: rgba(201,168,76,0.08);
  animation-delay: 1.2s, 3s;
  animation-duration: 1.5s, 90s;
  border-style: dashed;
}
.ring-3 {
  width: 720px; height: 720px;
  border-color: rgba(60,120,220,0.07);
  animation-delay: 1.4s, 3s;
  animation-duration: 1.5s, 130s;
}
.ring-4 {
  width: 880px; height: 880px;
  border-color: rgba(201,168,76,0.05);
  animation-delay: 1.6s, 3s;
  animation-duration: 1.5s, 180s;
}

/* Vertical axis line */
.axis-line {
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
  animation: axisExpand 2s 1s ease forwards;
  opacity: 0.4;
}

/* ── Book Cover Image ── */
.book-cover-wrap {
  position: relative;
  width: min(650px, 90vw);
  margin-bottom: 60px;
  opacity: 0;
  animation: floatIn 1.2s 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}

.book-cover-wrap::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80px;
  background: radial-gradient(ellipse, var(--glow-gold) 0%, transparent 70%);
  filter: blur(20px);
}

.book-cover-wrap img {
  width: 100%;
  border-radius: 6px;
  box-shadow:
    0 0 80px rgba(201,168,76,0.25),
    0 0 160px rgba(201,168,76,0.1),
    0 40px 80px rgba(0,0,0,0.8);
  animation: bookFloat 6s ease-in-out 2s infinite;
}

/* ── Title Block ── */
.title-block {
  margin-bottom: 50px;
}

.series-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 8px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeSlideUp 1s 1.2s ease forwards;
}

.main-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold-light) 45%, var(--gold) 70%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeSlideUp 1s 1.4s ease forwards;
  position: relative;
}

.main-title::after {
  content: 'AD SINGULARIUM';
  position: absolute;
  top: 4px; left: 4px;
  width: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.08) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
}

.subtitle-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 16px;
  opacity: 0;
  animation: fadeIn 1s 1.7s ease forwards;
}

.subtitle-divider span {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.subtitle-divider span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.subtitle-divider em {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  font-style: normal;
}

.chronicle-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--star-white);
  opacity: 0;
  animation: fadeSlideUp 1s 1.9s ease forwards;
}

/* ── Tagline ── */
.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  font-weight: 300;
  color: rgba(232,228,216,0.92);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 60px;
  opacity: 0;
  animation: fadeSlideUp 1s 2.2s ease forwards;
}

.tagline strong {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

/* ── Lore Text Block ── */
.lore-block {
  max-width: 760px;
  margin: 0 auto 70px;
  padding: 50px 60px;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(8,12,20,0.7);
  position: relative;
  opacity: 0;
  animation: fadeSlideUp 1s 2.5s ease forwards;
  backdrop-filter: blur(10px);
}

.lore-block::before,
.lore-block::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--gold);
  border-style: solid;
}
.lore-block::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.lore-block::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.lore-inner::before,
.lore-inner::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--gold);
  border-style: solid;
}
.lore-inner { position: relative; }
.lore-inner::before {
  top: -1px; right: -1px;
  border-width: 2px 2px 0 0;
}
.lore-inner::after {
  bottom: -1px; left: -1px;
  border-width: 0 0 2px 2px;
}

.lore-lang-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lore-lang-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dim), transparent);
}

.lore-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 2;
  color: rgba(232,228,216,0.95);
  margin-bottom: 40px;
}

.lore-text p { margin-bottom: 12px; }

.lore-separator {
  text-align: center;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 12px;
  margin: 30px 0;
  opacity: 0.6;
}

/* ── Kindle Button ── */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeSlideUp 1s 2.8s ease forwards;
}

.kindle-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 56px;
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.05) 100%);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.kindle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.kindle-btn:hover::before { opacity: 1; }

.kindle-btn:hover {
  box-shadow: 0 0 40px rgba(201,168,76,0.4), 0 0 80px rgba(201,168,76,0.15);
  transform: translateY(-2px);
  color: var(--gold-light);
}

.kindle-btn svg {
  width: 22px; height: 22px;
  fill: var(--gold);
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.kindle-btn:hover svg { transform: scale(1.15) rotate(5deg); }

.btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 3s 4s ease infinite;
}

.coming-soon-note {
  display: block;
  margin-top: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--gold-light);
  text-transform: uppercase;
}

/* ── Cosmos Lore Columns ── */
.cosmos-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 900px;
  margin: 0 auto 100px;
  border: 1px solid rgba(201,168,76,0.12);
  opacity: 0;
  animation: fadeSlideUp 1s 3s ease forwards;
}

.cosmos-fact {
  padding: 40px 32px;
  background: rgba(8,12,20,0.6);
  text-align: center;
  border: 1px solid rgba(201,168,76,0.05);
  position: relative;
  transition: background 0.4s ease;
}

.cosmos-fact:hover {
  background: rgba(201,168,76,0.05);
}

.fact-number {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-light);
  opacity: 0.9;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.fact-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.fact-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(232,228,216,0.90);
  line-height: 1.6;
}

/* ── Book Preview Section ── */
.preview-section {
  max-width: 780px;
  width: 100%;
  margin: 0 auto 90px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.preview-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.preview-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
}

.preview-rule-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(201,168,76,0.12);
  padding: 48px 52px;
  position: relative;
  background: rgba(4,5,10,0.5);
}

.preview-body::before,
.preview-body::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
}
.preview-body::before { top: -1px; left: -1px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.preview-body::after  { bottom: -1px; right: -1px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

.preview-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(232,228,216,0.88);
}

.preview-body strong {
  color: var(--gold-light);
  font-weight: 600;
}

.preview-body em {
  color: rgba(232,228,216,0.95);
  font-style: italic;
}

.preview-divider {
  width: 60px;
  height: 1px;
  background: rgba(201,168,76,0.35);
  margin: 8px auto;
}

.preview-sting {
  font-style: italic !important;
  color: rgba(232,228,216,0.75) !important;
  text-align: center;
  font-size: 16px !important;
  line-height: 2 !important;
}

.preview-close {
  text-align: center;
  font-size: 18px !important;
  color: rgba(232,228,216,0.95) !important;
  line-height: 2 !important;
}

.preview-cta {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.preview-cta:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

@media (max-width: 768px) {
  .preview-section { padding: 0 16px; margin-bottom: 60px; }
  .preview-body { padding: 32px 28px; }
  .preview-body p { font-size: 15px; }
}

/* ── Seven Races Section ── */
.seven-races-section {
  width: 100%;
  padding: 0 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.seven-races-header {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

.seven-races-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.5), transparent);
}

.seven-races-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--gold-light);
  text-transform: uppercase;
  white-space: nowrap;
}

.seven-races-frame {
  position: relative;
  max-width: 1100px;
  width: 100%;
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow:
    0 0 60px rgba(201,168,76,0.1),
    0 0 120px rgba(201,168,76,0.05),
    inset 0 0 40px rgba(4,5,10,0.6);
}

.seven-races-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
}
.sr-tl { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.sr-tr { top: -1px; right: -1px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.sr-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.sr-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.seven-races-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.93;
  transition: opacity 0.4s ease;
}

.seven-races-frame:hover .seven-races-img {
  opacity: 1;
}

.seven-races-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 3px;
  color: rgba(232,228,216,0.55);
  text-align: center;
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s 3.5s ease forwards;
}

.footer-left {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gold-dim);
}

.footer-right {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(201,168,76,0.3);
  text-transform: uppercase;
}

/* ── Nebula Gradient Blobs ── */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.nebula-1 {
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.6) 0%, transparent 70%);
  top: 5%; left: -10%;
  animation: nebulaFloat 20s ease-in-out infinite;
}

.nebula-2 {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(40,80,180,0.8) 0%, transparent 70%);
  bottom: 10%; right: -5%;
  animation: nebulaFloat 25s ease-in-out 5s infinite reverse;
}

.nebula-3 {
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(180,60,40,0.6) 0%, transparent 70%);
  top: 40%; right: 15%;
  opacity: 0.06;
  animation: nebulaFloat 30s ease-in-out 10s infinite;
}

/* ── Scan line overlay ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  opacity: 0.4;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bookFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes ringAppear {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes axisExpand {
  from { height: 0; opacity: 0; }
  to { height: 100%; opacity: 0.4; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes nebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.97); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 70px rgba(201,168,76,0.6), 0 0 120px rgba(201,168,76,0.2); }
}

/* ── Responsive ── */
/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold-light); }
.nav-link.active::after { width: 100%; }

/* ── Hamburger — hidden on desktop ── */
.hamburger {
  display: none;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 8px 9px;
  cursor: pointer;
  z-index: 300;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--gold-light);
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}
.hamburger span:nth-child(3) { width: 60%; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

/* ── Mobile nav overlay — hidden on desktop ── */
.mobile-nav-overlay {
  display: none;
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(4,5,10,0.97);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}
.mobile-nav-link {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  letter-spacing: 8px;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-light);
  transition: width 0.3s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--gold-light); }
.mobile-nav-link:hover::after,
.mobile-nav-link.active::after { width: 100%; }

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
  .topbar { padding: 16px 24px; }
  .topbar-line { display: none; }
  .topbar-nav { display: none; }
  .hamburger { display: flex; visibility: visible; }
  .mobile-nav-overlay { display: flex; }
  .lore-block { padding: 32px 24px; margin: 0 16px 50px; }
  .seven-races-section { padding: 0 16px 70px; }
  .cosmos-facts { grid-template-columns: 1fr; margin: 0 16px 60px; }
  .kindle-btn { padding: 18px 36px; font-size: 12px; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 30px 24px; }
  .orbital-rings { display: none; }
  .hero { padding: 100px 20px 60px; }
}



/* ══════════════════════════════════════════════
   INNER PAGE HERO (bio / contact)
══════════════════════════════════════════════ */
.page-hero {
  padding: 160px 60px 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.page-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 7px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.3s ease forwards;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.5s ease forwards;
}

.page-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeIn 1s 0.8s ease forwards;
}

/* ══════════════════════════════════════════════
   BIO PAGE
══════════════════════════════════════════════ */
.bio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px 120px;
}

.bio-sidebar {
  position: sticky;
  top: 120px;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.6s ease forwards;
}

.author-avatar {
  width: 100%;
  aspect-ratio: 3/4;
  border: 1px solid rgba(201,168,76,0.2);
  background: linear-gradient(160deg, rgba(201,168,76,0.05), rgba(8,12,20,0.9));
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
}

.author-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, rgba(4,5,10,0.8) 100%);
  z-index: 1;
}

.author-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 72px;
  font-weight: 700;
  color: rgba(201,168,76,0.15);
  letter-spacing: 6px;
  z-index: 0;
}

.author-avatar-corner {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
}
.aac-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.aac-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.aac-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.aac-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.author-name-card {
  text-align: center;
}

.author-name-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.author-name-card .role {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.bio-content {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.8s ease forwards;
}

.bio-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.bio-section:last-child {
  border-bottom: none;
}

.bio-section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bio-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201,168,76,0.2), transparent);
}

.bio-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 2;
  color: rgba(232,228,216,0.82);
}

.bio-text p { margin-bottom: 20px; }
.bio-text p:last-child { margin-bottom: 0; }

.bio-text strong {
  color: var(--gold);
  font-weight: 600;
}

.bio-quote {
  border-left: 2px solid var(--gold);
  padding: 20px 32px;
  margin: 32px 0;
  background: rgba(201,168,76,0.04);
}

.bio-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: var(--star-white);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px 120px;
  align-items: start;
}

.contact-info {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.6s ease forwards;
}

.contact-info-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.contact-info-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(232,228,216,0.92);
  margin-bottom: 40px;
  font-style: italic;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(8,12,20,0.5);
  transition: border-color 0.3s ease;
}

.contact-detail-item:hover {
  border-color: rgba(201,168,76,0.3);
}

.contact-detail-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-detail-info span {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-detail-info a,
.contact-detail-info p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--star-white);
  text-decoration: none;
  margin: 0;
  transition: color 0.2s ease;
}

.contact-detail-info a:hover { color: var(--gold); }

/* Contact Form */
.contact-form-wrap {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.9s ease forwards;
}

.form-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(8,12,20,0.7);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--star-white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: none;
  width: 100%;
  cursor: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 20px rgba(201,168,76,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(232,228,216,0.88);
  font-style: italic;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: none;
  width: 100%;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: rgba(201,168,76,0.15);
  box-shadow: 0 0 30px rgba(201,168,76,0.2);
}

.form-submit-btn .btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 3s 2s ease infinite;
}

.form-note {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  text-align: center;
  margin-top: 12px;
  text-transform: uppercase;
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(8,12,20,0.5);
}

.form-success.visible { display: block; }

.form-success-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}

.form-success h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.form-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: rgba(232,228,216,0.65);
}

/* Language hidden utility */

[data-lang-inline] { display: none; }
[data-lang-inline].lang-active { display: inline; }

/* ══════════════════════════════════════════════
   RESPONSIVE ADDITIONS
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .bio-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    padding: 0 24px 80px;
    gap: 48px;
  }
  .bio-sidebar { position: static; }
  .author-avatar { max-width: 240px; margin: 0 auto 32px; }
  .page-hero { padding: 140px 24px 40px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { padding: 14px 18px; }
  .topbar-logo-img { height: 28px; }
}
