html, body {
  background-color: #0A0F2E !important;
  color: #F0EDE6 !important;
  margin: 0;
  padding: 0;
}

/* ============================================================
   ETW — styles.css
   Background: #0A0F2E. Navbar: transparent always.
   Globe canvas fixed behind everything.
============================================================ */

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

html { scroll-behavior: smooth; }

body {
  background: #0A0F2E;
  color: #F0EDE6;
  font-family: 'Source Serif 4', serif;
  overflow-x: hidden;
}

/* ── Globe canvas (injected by globe.js) ── */
#globe-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 68px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.35em;
  color: #C4932A;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #F0EDE6;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }

/* ── Icon buttons ── */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 22px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #F0EDE6;
  opacity: 0.3;
  transition: opacity 0.3s, color 0.3s;
  padding: 4px;
  line-height: 0;
}
.icon-btn:hover { opacity: 1; color: #C4932A; }
.icon-btn svg { display: block; width: 18px; height: 18px; fill: currentColor; }

/* ── Social popups ── */
.social-popup {
  position: fixed;
  background: #0A0A0A;
  border: 1px solid #C4932A;
  padding: 8px 0;
  min-width: 164px;
  display: none;
  z-index: 200;
}
.social-popup.open { display: block; }

.social-popup a {
  display: block;
  padding: 11px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #F0EDE6;
  text-decoration: none;
  transition: color 0.15s;
}
.social-popup a:hover { color: #C4932A; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #F0EDE6;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.hamburger:hover span { opacity: 1; }

/* ── Mobile overlay ── */
#navOverlay {
  position: fixed;
  inset: 0;
  background: #0A0F2E;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
#navOverlay.open { opacity: 1; pointer-events: all; }

.overlay-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: #C4932A;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.overlay-link {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: #F0EDE6;
  text-decoration: none;
  text-transform: uppercase;
}
.overlay-link:hover { color: #C4932A; }

.overlay-icons {
  display: flex;
  gap: 30px;
  margin-top: 12px;
}
.overlay-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #F0EDE6;
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
  padding: 4px;
  line-height: 0;
}
.overlay-icon-btn:hover { opacity: 1; color: #C4932A; }
.overlay-icon-btn svg { display: block; width: 22px; height: 22px; fill: currentColor; }

/* ══════════════════════════════════════════
   SECTION 1 — HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 10;
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 68px;
}

.hero-content {
  text-align: center;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.45em;
  color: #C4932A;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(72px, 10vw, 120px);
  letter-spacing: 0.25em;
  color: #F0EDE6;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

.gold-line {
  width: 140px;
  height: 1px;
  background: #C4932A;
  margin: 24px auto;
}

.hero-tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: #F0EDE6;
  max-width: 440px;
  line-height: 1.9;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   SECTION 2 — ABOUT
══════════════════════════════════════════ */
.about-section {
  position: relative;
  z-index: 10;
  background: transparent;
  padding: 140px 60px;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-rule {
  width: 60px;
  height: 1px;
  background: #C4932A;
  margin: 16px 0 48px;
}

.body-text {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  line-height: 1.95;
  color: #F0EDE6;
  opacity: 0.88;
  text-shadow: 0 1px 14px rgba(10, 15, 46, 0.95);
}
.body-text + .body-text { margin-top: 28px; }

.about-links {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.about-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #C4932A;
  text-decoration: none;
  text-transform: uppercase;
  padding: 24px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.about-links a:hover { border-bottom-color: #C4932A; }

/* ══════════════════════════════════════════
   SECTION 3 — HISTORY PANEL
══════════════════════════════════════════ */
#history-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background: #0D0B08;
  cursor: pointer;
  transition: box-shadow 0.4s;
}
#history-panel:hover { box-shadow: inset 0 0 0 1px #C4932A; }

#civ-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.hist-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 110px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hist-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.45em;
  color: #C4932A;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hist-rule {
  width: 80px;
  height: 1px;
  background: #C4932A;
  margin-bottom: 36px;
}

.hist-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(52px, 7vw, 76px);
  letter-spacing: 0.2em;
  color: #F0EDE6;
  line-height: 1;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85);
}

.hist-tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: #C4932A;
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 44px;
  text-align: center;
}

.hist-cta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: #C4932A;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 10;
  background: #0A0F2E;
  border-top: 1px solid rgba(196, 147, 42, 0.2);
  padding: 36px 60px;
  text-align: center;
}

.copyright {
  font-family: 'Source Serif 4', serif;
  font-size: 12px;
  color: rgba(240, 237, 230, 0.4);
}

/* ══════════════════════════════════════════
   MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  #mainNav { padding: 0 24px; }
  .nav-right { display: none; }
  .hamburger { display: flex; }

  .hero { height: 100svh; }
  .hero-title { font-size: clamp(52px, 15vw, 96px); }

  .about-section { padding: 100px 28px; }
  .about-inner { max-width: 100%; }
  .about-links { align-items: flex-start; }

  .hist-content { padding: 80px 28px; }
  footer { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(44px, 16vw, 80px); }
  .hero-tagline { font-size: 15px; }
}
