/* =============================================
   JemRock Organization - Main Stylesheet
   ============================================= */

:root {
  --black: #0a0a0a;
  --dark: #111318;
  --dark-2: #1a1e27;
  --gold: #b89a5a;
  --gold-light: #d4b878;
  --gold-dark: #8a7040;
  --white: #ffffff;
  --off-white: #f5f3ef;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text: #1f2937;
  --font-main: 'Inter', 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.005em;
}

/* Cormorant Garamond is lighter than Playfair, so sizes are bumped for presence */
h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h4 { font-size: 1.2rem; font-family: var(--font-main); font-weight: 600; }
p { margin-bottom: 1rem; color: var(--gray); line-height: 1.8; }
p:last-child { margin-bottom: 0; }

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-dark { color: var(--dark); }
.text-center { text-align: center; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark p { color: rgba(255,255,255,0.7); }

.section-off-white {
  background: var(--off-white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

.site-header.scrolled {
  background: var(--dark);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.header-inner .nav-left  { justify-self: start; }
.header-inner .logo      { justify-self: center; }
.header-inner .nav-right { justify-self: end; }

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 312px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(184,154,90,0.38));
}

.site-header.scrolled .logo img {
  height: 228px;
  transition: height 0.3s ease;
}

.footer-logo {
  height: 92px;
  width: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 18px rgba(184,154,90,0.3));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-text span {
  color: var(--gold);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-main a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

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

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

.nav-main a:hover::after, .nav-main a.active::after {
  width: 100%;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.8rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

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

.mobile-nav a {
  color: var(--white);
  font-size: 1.4rem;
  font-family: var(--font-display);
  transition: color 0.2s;
}

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

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1117 0%, #1a2035 40%, #0f1520 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-building.jpg') center 30%/cover no-repeat;
  opacity: 0.30;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Centered hero variant (homepage) */
.hero-centered { text-align: center; padding: 380px 0 90px; align-items: flex-start; }
.hero-centered .hero-content { max-width: 940px; margin: 0 auto; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-eyebrow { margin-top: 8px; }

.hero-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(184,154,90,0.4);
  border-radius: 2px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title-desktop { display: block; }
.hero-title-mobile { display: none; }

.hero-sub {
  color: rgba(255,255,255,0.75) !important;
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding: 400px 0 80px;
  background: var(--dark);
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; overflow-wrap: break-word; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.section-intro {
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-intro.centered { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
}

.divider.centered { margin: 0 auto 32px; }

/* =============================================
   FEATURE CARDS
   ============================================= */
.feature-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card-img {
  height: 240px;
  background: var(--dark-2);
  overflow: hidden;
  position: relative;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.05);
}

.feature-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-body {
  padding: 28px;
}

.feature-card-logo {
  height: 36px;
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 12px; }

.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 20px;
  transition: gap 0.2s;
}

.feature-card-link:hover { gap: 12px; }

/* =============================================
   BRAND SECTIONS
   ============================================= */
.brand-section {
  padding: 100px 0;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,154,90,0.1);
  border: 1px solid rgba(184,154,90,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.brand-section-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.brand-section-img .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(255,255,255,0.4);
  border-radius: 4px;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--gold);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* =============================================
   CREDO / QUOTE SECTION
   ============================================= */
.credo-section {
  background: var(--dark);
  padding: 100px 0;
  text-align: center;
}

.credo-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 32px;
  line-height: 1.6;
  font-style: italic;
}

.credo-quote::before { content: '\201C'; color: var(--gold); font-size: 1.5em; line-height: 0; vertical-align: -0.4em; }
.credo-quote::after  { content: '\201D'; color: var(--gold); font-size: 1.5em; line-height: 0; vertical-align: -0.4em; }

.credo-attr {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =============================================
   TEAM CARDS
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card-avatar {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--dark-2), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
}

.team-card-body {
  padding: 24px;
}

.team-card h4 { color: var(--dark); margin-bottom: 4px; }

.team-card-title {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-card p { font-size: 0.9rem; margin: 0; }

/* =============================================
   PARTNER CARDS
   ============================================= */
.partner-card {
  background: var(--off-white);
  border-radius: 4px;
  padding: 28px;
  border-left: 3px solid var(--gold);
}

.partner-card h4 { color: var(--dark); margin-bottom: 4px; }
.partner-card-company { color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.partner-card p { font-size: 0.9rem; margin: 0; }

/* =============================================
   PRESS / ARTICLES
   ============================================= */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.press-card {
  background: var(--white);
  border-radius: 4px;
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: var(--transition);
}

.press-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.press-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.press-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.press-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
  transition: gap 0.2s;
}

.press-card a:hover { gap: 10px; }

/* =============================================
   GALLERY
   ============================================= */
.gallery-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--gray-light);
  background: transparent;
  color: var(--gray);
  transition: var(--transition);
}

.gallery-tab.active, .gallery-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,154,90,0.06);
}

.gallery-section-title {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.gallery-item:hover .gallery-item-placeholder {
  transform: scale(1.04);
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,154,90,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-info-item h4 { color: var(--dark); margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-item p { font-size: 0.9rem; margin: 0; }
.contact-info-item a { color: var(--gold); }

.form-spam-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 2px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 140px; }

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

.form-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #065f46;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: none;
}

.form-error-msg {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #991b1b;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: none;
}

/* =============================================
   WHY PARTNER BOXES
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.why-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.why-item h4 { margin-bottom: 8px; color: var(--dark); }
.why-item p { font-size: 0.9rem; }

/* =============================================
   TECHNOLOGY PAGE
   ============================================= */
.tech-breakthroughs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.breakthrough-item {
  background: var(--dark-2);
  border-radius: 4px;
  padding: 32px;
  border-top: 2px solid var(--gold);
}

.breakthrough-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(184,154,90,0.3);
  line-height: 1;
  margin-bottom: 16px;
}

.breakthrough-item h4 { color: var(--white); margin-bottom: 10px; }
.breakthrough-item p { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin: 0; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: start;
}

.process-step:last-child { border-bottom: none; }

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step h4 { color: var(--dark); margin-bottom: 8px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin: 20px 0 28px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,154,90,0.1);
}

.footer-col h5 {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--gold); }

/* =============================================
   UTILITY
   ============================================= */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-main, .nav-cta { display: none; }
  .header-inner { display: flex; justify-content: space-between; }
  .hamburger { display: flex; }
  .logo img {
    width: min(62vw, 250px);
    height: auto;
  }
  .site-header.scrolled .logo img {
    width: min(54vw, 200px);
    height: auto;
  }
  .hero-centered {
    min-height: 100svh;
    padding: 280px 0 80px;
  }
  .hero-centered .hero-content {
    width: min(100%, 560px);
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.12;
  }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: block; }
  .hero-sub {
    max-width: min(100%, 520px);
    font-size: 1rem;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-centered .hero-actions {
    align-items: stretch;
    max-width: 260px;
    margin: 0 auto;
  }
  .hero-centered .hero-actions .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .page-hero {
    padding: 300px 0 60px;
  }
  .page-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
    line-height: 1.1;
  }
  .page-hero p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.7;
  }
  .breadcrumb {
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
  .section-heading,
  .section h2 {
    font-size: clamp(1.65rem, 8vw, 2rem);
    overflow-wrap: break-word;
  }
  .logo img {
    width: min(76vw, 292px);
  }
  .site-header {
    padding: 14px 0;
  }
  .hero-centered {
    padding-top: 300px;
  }
  .hero-centered .hero-content {
    width: min(100%, 320px);
  }
  .hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.45rem);
    line-height: 1.12;
  }
  .hero-sub {
    font-size: 0.96rem;
  }
  .hero-eyebrow {
    max-width: 100%;
    font-size: 0.72rem;
  }
}

/* =============================================
   ANIMATED GLOBE LOGO (jemrock-logo.gif)
   The GIF is already a revolving globe, so no CSS spin is needed.
   ============================================= */
.nav-logo, .footer-logo, .hero-logo { object-fit: contain; }

/* Big glowing hero logo — sized like the live site */
.hero-logo {
  height: clamp(230px, 36vw, 460px);
  width: auto;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 0 34px rgba(184,154,90,0.5));
  animation: hero-logo-float 6s ease-in-out infinite;
}
@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* =============================================
   CRISIS / DATA CALLOUTS
   ============================================= */
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.crisis-stat {
  background: var(--dark-2);
  border-radius: 6px;
  padding: 36px 28px;
  border-top: 3px solid var(--gold);
  text-align: center;
}

.crisis-stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.05;
  margin-bottom: 8px;
}

.crisis-stat .label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Light-background variant */
.crisis-stat.light {
  background: var(--white);
  box-shadow: var(--shadow);
}
.crisis-stat.light .num { color: var(--gold-dark); }
.crisis-stat.light .label { color: var(--gray); }

/* Big single emphasis figure */
.mega-figure {
  text-align: center;
  padding: 8px 0;
}
.mega-figure .mega-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.mega-figure .mega-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}

/* =============================================
   PROBLEM / BULLET LIST
   ============================================= */
.impact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.impact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
}
.impact-list li i {
  color: var(--gold);
  margin-top: 5px;
  flex-shrink: 0;
}

/* =============================================
   DISTRIBUTION BARS (regional deficit)
   ============================================= */
.dist-list { display: flex; flex-direction: column; gap: 18px; }
.dist-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 16px; }
.dist-row .dist-name { font-weight: 600; color: var(--dark); font-size: 0.95rem; }
.dist-track { background: var(--gray-light); border-radius: 100px; height: 14px; overflow: hidden; }
.dist-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); border-radius: 100px; }
.dist-row .dist-val { text-align: right; font-weight: 700; color: var(--gold-dark); font-size: 0.95rem; }
.section-dark .dist-row .dist-name { color: var(--white); }
.section-dark .dist-track { background: rgba(255,255,255,0.12); }
.section-dark .dist-row .dist-val { color: var(--gold-light); }

@media (max-width: 600px) {
  .dist-row { grid-template-columns: 110px 1fr 70px; gap: 10px; }
  .dist-row .dist-name { font-size: 0.82rem; }
}

/* =============================================
   SEGMENTATION DONUT + LEGEND
   ============================================= */
.segmentation {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.donut { width: 280px; height: 280px; }
.donut-center-num { font-family: var(--font-display); font-weight: 700; }
.seg-legend { display: flex; flex-direction: column; gap: 14px; }
.seg-item { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; }
.seg-swatch { width: 16px; height: 16px; border-radius: 4px; }
.seg-name { font-weight: 600; color: var(--dark); }
.seg-name small { display: block; font-weight: 400; color: var(--gray); font-size: 0.8rem; }
.seg-pct { font-weight: 700; color: var(--gold-dark); font-size: 1.05rem; }

@media (max-width: 768px) {
  .segmentation { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
}

/* =============================================
   FACTORY MODEL (mother + pilots)
   ============================================= */
.factory-model {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
.factory-node {
  background: var(--dark-2);
  border: 1px solid rgba(184,154,90,0.3);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
}
.factory-node .fnode-icon { font-size: 2.4rem; color: var(--gold); margin-bottom: 14px; }
.factory-node h4 { color: var(--white); margin-bottom: 10px; }
.factory-node p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin: 0; }
.factory-node.is-mother { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(184,154,90,0.25), 0 12px 40px rgba(0,0,0,0.35); }
.factory-arrow { color: var(--gold); font-size: 1.8rem; text-align: center; }

@media (max-width: 768px) {
  .factory-model { grid-template-columns: 1fr; }
  .factory-arrow { transform: rotate(90deg); }
}

/* =============================================
   REGIONAL DEEP-DIVE CARDS
   ============================================= */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.region-card {
  background: var(--white);
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.region-card .region-deficit {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-dark);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.region-card h4 { color: var(--dark); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.region-card ul { display: flex; flex-direction: column; gap: 8px; }
.region-card ul li { font-size: 0.9rem; color: var(--gray); display: flex; gap: 8px; align-items: flex-start; }
.region-card ul li i { color: var(--gold); margin-top: 5px; font-size: 0.7rem; flex-shrink: 0; }

/* =============================================
   DRIVERS GRID
   ============================================= */
.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.driver-item {
  background: var(--dark-2);
  border-radius: 6px;
  padding: 28px;
  border-bottom: 2px solid var(--gold);
}
.driver-item .driver-icon { color: var(--gold); font-size: 1.6rem; margin-bottom: 12px; }
.driver-item h4 { color: var(--white); margin-bottom: 8px; font-size: 1.05rem; }
.driver-item p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin: 0; }

/* =============================================
   BENEFIT (vs traditional) COMPARISON
   ============================================= */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: var(--white);
  border-radius: 6px;
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.benefit-card .benefit-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(184,154,90,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--gold); font-size: 1.6rem;
}
.benefit-card .benefit-metric { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.benefit-card h4 { color: var(--dark); margin-bottom: 10px; }
.benefit-card p { font-size: 0.9rem; margin: 0; }

/* =============================================
   VIDEO / GALLERY FRAME
   ============================================= */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1117, #1a2035);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}
.video-frame video,
.video-frame iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame .video-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: rgba(255,255,255,0.6); text-align: center; padding: 24px;
}
.video-frame .play-badge {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}

/* =============================================
   DECK FIGURES (real slide graphics)
   ============================================= */
/* Each deck slide is shown full-width, one per row */
.deck-figure {
  display: block;
  width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  cursor: zoom-in;
}
.deck-figure img { width: 100%; display: block; }
/* Caption bar removed — the section heading provides context, and the deck's
   own footer has been cropped out of the image. */
.deck-figure figcaption { display: none; }

/* Stack any grouped figures into a single full-width column */
.deck-grid { display: block; }
.deck-grid > .deck-figure { margin: 0 auto 40px; }
.deck-grid > .deck-figure:last-child { margin-bottom: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 28px;
  background: none; border: none;
  color: #fff; font-size: 2.4rem;
  line-height: 1; cursor: pointer;
  opacity: 0.8; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-hint {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* =============================================
   GOLD & BLACK THEME — match the deck
   ============================================= */
:root {
  --off-white: #0f1218;   /* flip light sections/boxes to dark */
  --bg-deep: #0a0b0e;
  --surface: #15181f;
  --surface-2: #1c2029;
}

body { background: var(--bg-deep); color: rgba(255,255,255,0.80); }

h1, h2, h3 { color: #ffffff; }
p { color: rgba(255,255,255,0.68); }

/* Sections */
.section-off-white { background: var(--off-white); }
.section p, .section-off-white p, .section-sm p { color: rgba(255,255,255,0.68); }
.section-intro { color: rgba(255,255,255,0.68); }

/* Headings/labels that used to be dark → light */
.team-card h4, .partner-card h4, .press-card h3,
.contact-info-item h4, .why-item h4, .process-step h4,
.seg-name, .region-card h4, .benefit-card h4,
.feature-card h3, .form-group label { color: #ffffff; }
.seg-name small { color: rgba(255,255,255,0.55); }
.team-card p, .partner-card p, .why-item p, .feature-card p,
.region-card ul li, .benefit-card p, .process-step p,
.contact-info-item p { color: rgba(255,255,255,0.62); }

/* Card surfaces → dark */
.feature-card, .team-card, .press-card, .why-item,
.benefit-card, .region-card, .partner-card, .crisis-stat.light {
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(0,0,0,0.35);
}
.crisis-stat.light .num { color: var(--gold-light); }
.crisis-stat.light .label { color: rgba(255,255,255,0.62); }

/* Generic inline white card boxes */
.section [style*="background:var(--white)"],
.section-sm [style*="background:var(--white)"] {
  background: var(--surface) !important;
}

/* Form fields → dark */
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.14);
  color: #ffffff;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }

/* Gallery tabs / dividers on dark */
.gallery-tab { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.16); }
.gallery-section-title { border-bottom-color: rgba(255,255,255,0.1); }
.process-step { border-bottom-color: rgba(255,255,255,0.1); }

/* Secondary (dark-outline) button → light outline on the dark theme */
.btn-outline-dark { color: #ffffff; border-color: rgba(255,255,255,0.55); }
.btn-outline-dark:hover { background: #ffffff; color: #14161c; }

/* =============================================
   USA MOTHER-FACTORY MAP (native recreation)
   ============================================= */
.usa-map-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #06080c;
  border: 1px solid rgba(184,154,90,0.28);
  box-shadow: 0 18px 54px rgba(0,0,0,0.5);
}
.usa-map-stage::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/earth-night.jpg') no-repeat;
  background-size: 460% auto;
  background-position: 11% 31%;
  filter: sepia(0.6) saturate(1.7) hue-rotate(-12deg) brightness(0.85) contrast(1.08);
  opacity: 0.92;
}
.usa-map-stage::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 45%, transparent 46%, rgba(6,8,12,0.85));
  pointer-events: none;
}
.usa-lines {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  filter: drop-shadow(0 0 3px rgba(184,154,90,0.6));
}
.usa-lines line { stroke: url(#goldline); stroke-width: 0.7; opacity: 0.9; stroke-linecap: round; }
.factory-pin {
  position: absolute; transform: translate(-50%,-50%); z-index: 2;
  color: var(--gold); font-size: clamp(0.85rem, 1.5vw, 1.3rem);
  filter: drop-shadow(0 0 8px rgba(184,154,90,0.85));
}
.factory-hub {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  z-index: 3; text-align: center;
}
.factory-hub i { font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: var(--gold-light); filter: drop-shadow(0 0 20px rgba(184,154,90,0.95)); }
.factory-hub span {
  display: block; margin-top: 6px; font-weight: 700; color: #fff;
  font-size: clamp(0.62rem, 1vw, 0.8rem); letter-spacing: 0.1em; text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
}
.usa-cap { text-align: center; margin-top: 26px; }
.usa-cap .l1 { color: rgba(255,255,255,0.82); font-weight: 600; letter-spacing: 0.05em; margin: 0; }
.usa-cap .l2 {
  font-family: var(--font-display); color: var(--gold);
  font-size: clamp(1.4rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.06em; margin: 6px 0 0;
}

/* =============================================
   GLOBAL SYSTEMATIC GLOBE (native recreation)
   ============================================= */
.globe-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
}
.impact-panel {
  background: rgba(18,20,26,0.7);
  border: 1px solid rgba(184,154,90,0.3);
  border-radius: 12px;
  padding: 28px 26px;
}
.impact-panel h4 {
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 16px; font-family: var(--font-display); font-size: 1.5rem;
}
.impact-panel ul { display: flex; flex-direction: column; gap: 12px; }
.impact-panel li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.74); font-size: 0.92rem; line-height: 1.5; }
.impact-panel li i { color: var(--gold); margin-top: 6px; font-size: 0.5rem; flex-shrink: 0; }

.globe-stage { position: relative; width: clamp(260px, 30vw, 400px); aspect-ratio: 1; flex-shrink: 0; }
.globe-sphere {
  position: absolute; inset: 0; border-radius: 50%;
  background: url('../images/earth-night.jpg') center/210% auto no-repeat;
  filter: sepia(0.62) saturate(1.7) hue-rotate(-12deg) brightness(0.92) contrast(1.05);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.85), 0 0 55px rgba(184,154,90,0.4);
  border: 1px solid rgba(184,154,90,0.55);
}
.globe-stage::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.14), transparent 44%),
    radial-gradient(circle at 62% 72%, rgba(0,0,0,0.65), transparent 60%);
}
.globe-arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.globe-arcs path { fill: none; stroke: url(#goldarc); stroke-width: 1.1; opacity: 0.9; filter: drop-shadow(0 0 2px rgba(184,154,90,0.8)); }
.globe-arcs circle { fill: #d4b878; filter: drop-shadow(0 0 4px rgba(184,154,90,0.95)); }
.globe-caption {
  text-align: center; font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); color: #fff; margin: 38px auto 0; max-width: 760px;
}
@media (max-width: 880px) {
  .globe-layout { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
  .impact-panel { width: 100%; max-width: 460px; }
}

/* =============================================
   REGION CARDS WITH A MAP BANNER
   ============================================= */
.region-card.has-map { padding: 0; overflow: hidden; }
.region-map {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06080c;
  border-bottom: 1px solid rgba(184,154,90,0.3);
}
.region-map .rm-img {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  filter: sepia(0.6) saturate(1.7) hue-rotate(-12deg) brightness(0.85) contrast(1.08);
}
.region-map::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 45%, transparent 42%, rgba(6,8,12,0.82));
  pointer-events: none;
}
.rm-deficit {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(0,0,0,0.95); line-height: 1;
}
.rm-deficit span { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.72); display: block; margin-top: 5px; }
.region-body { padding: 22px 26px 28px; }
.region-body h4 { margin-bottom: 14px; }

/* =============================================
   DECK IMAGE BANDS — centred at a sensible, in-scale size
   ============================================= */
.deck-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 56px 24px;
}
.deck-band-img,
.deck-bleed {
  width: 100%;
  max-width: 880px;          /* keeps a whole slide comfortably on screen */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  transform: none;
}

/* Footer brand: center the JemRock logo above the paragraph (all pages) */
.footer-brand { text-align: center; }
.footer-brand .footer-logo { margin-left: auto; margin-right: auto; }
.footer-brand p { margin-left: auto; margin-right: auto; }
.footer-brand .footer-social { justify-content: center; }

/* =============================================
   DECK-STYLE NATIVE PANELS (live, selectable text)
   Mimics the look of the deck slides without being an image.
   ============================================= */
.kslide {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(184,154,90,0.07), transparent 60%),
    linear-gradient(180deg, #12141a 0%, #0a0b0e 100%);
  border: 1px solid rgba(184,154,90,0.35);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 22px 64px rgba(0,0,0,0.5);
  overflow: hidden;
}
/* gold corner brackets, like the deck frame */
.kslide::before, .kslide::after {
  content: '';
  position: absolute;
  width: 44px; height: 44px;
  border: 2px solid rgba(184,154,90,0.55);
  pointer-events: none;
}
.kslide::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.kslide::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.kslide-title {
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 10px;
}
.kslide-rule {
  width: 300px; max-width: 64%;
  height: 2px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.kslide-sub {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.66);
}
.kslide + .kslide { margin-top: 36px; }

/* =============================================
   INTERACTIVE WORLD MAP (distribution)
   ============================================= */
.worldmap-card {
  position: relative;
  background: linear-gradient(180deg, #12141a 0%, #0a0b0e 100%);
  border: 1px solid rgba(184,154,90,0.4);
  border-radius: 12px;
  padding: 24px clamp(16px,3vw,40px) 22px;
  box-shadow: 0 22px 64px rgba(0,0,0,0.5);
  overflow: hidden;
}
.worldmap-card::before, .worldmap-card::after {
  content: ''; position: absolute; width: 40px; height: 40px;
  border: 2px solid rgba(184,154,90,0.55); pointer-events: none;
}
.worldmap-card::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.worldmap-card::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.worldmap-head {
  text-align: center; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gold);
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); margin-bottom: 16px;
}
.worldmap-stage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #05070b;
}
.worldmap-stage::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/earth-night.jpg') center/cover no-repeat;
  filter: sepia(0.55) saturate(1.6) hue-rotate(-12deg) brightness(0.95) contrast(1.05);
}
.worldmap-stage::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(125% 100% at 50% 45%, transparent 55%, rgba(5,6,10,0.78));
  pointer-events: none;
}
.wm-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.wm-lines line { stroke: rgba(255,255,255,0.55); stroke-width: 0.28; }
.wm-lines circle { fill: var(--gold-light); filter: drop-shadow(0 0 3px rgba(184,154,90,0.95)); }
.map-tag {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: clamp(0.68rem, 1.2vw, 1.1rem);
  color: #fff;
  text-shadow: 0 1px 3px #000, 0 2px 12px rgba(0,0,0,0.98), 0 0 6px rgba(0,0,0,0.95);
  white-space: nowrap;
}
.map-tag .mt-val { color: var(--gold-light); }
.worldmap-deficit {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 3%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  text-shadow: 0 2px 4px #000, 0 3px 18px rgba(0,0,0,0.98);
}
/* Selectable legend — doubles as the small-screen fallback */
.wm-legend { display: none; }
@media (max-width: 760px) {
  .worldmap-stage { aspect-ratio: 4 / 3; }
  .worldmap-stage .map-tag, .wm-lines { display: none; }
  .worldmap-deficit { font-size: 1.4rem; }
  .wm-legend {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 18px;
  }
  .wm-legend span { font-size: 0.86rem; color: rgba(255,255,255,0.85); display: flex; gap: 8px; }
  .wm-legend span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); margin-top: 6px; flex-shrink: 0; }
  .wm-legend b { color: var(--gold-light); font-weight: 700; }
}

/* =============================================
   INTERACTIVE BAR CHART (regional deficit)
   ============================================= */
.barchart { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 92px;
  align-items: center;
  gap: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: default;
}
.bar-row:hover { background: rgba(184,154,90,0.08); }
.bar-name { font-weight: 600; color: #fff; font-size: 0.96rem; }
.bar-track { background: rgba(255,255,255,0.08); border-radius: 100px; height: 16px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 100px;
  box-shadow: 0 0 14px rgba(184,154,90,0.45);
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.bar-val { text-align: right; font-weight: 700; color: var(--gold-light); font-size: 1rem; }
@media (max-width: 600px) {
  .bar-row { grid-template-columns: 104px 1fr 64px; gap: 10px; }
  .bar-name { font-size: 0.82rem; }
}

/* =============================================
   PROJECTIONS SVG CHART
   ============================================= */
.proj-chart { width: 100%; height: auto; display: block; }
.proj-chart text { fill: rgba(255,255,255,0.75); font-family: var(--font-main); }
.proj-chart .proj-axis { stroke: rgba(255,255,255,0.14); }
.proj-chart .proj-val { fill: var(--gold-light); font-weight: 700; }

/* =============================================
   HARDEST-HIT CITY CHIPS
   ============================================= */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.city-chip {
  background: var(--surface);
  border: 1px solid rgba(184,154,90,0.22);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.city-chip:hover { transform: translateY(-4px); border-color: rgba(184,154,90,0.6); }
.city-chip .city-num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--gold-light); line-height: 1; }
.city-chip .city-name { font-size: 0.82rem; color: rgba(255,255,255,0.66); margin-top: 6px; }

/* =============================================
   NATIVE BUILT BRAND PANEL (replaces cover/brand slide images)
   ============================================= */
.built-panel {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(184,154,90,0.09), transparent 60%),
    linear-gradient(160deg, #12141a 0%, #0a0b0e 100%);
  border: 1px solid rgba(184,154,90,0.32);
  border-radius: 12px;
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  box-shadow: 0 22px 64px rgba(0,0,0,0.5);
  height: 100%;
  justify-content: center;
}
.built-panel img { max-width: 90%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 0 28px rgba(184,154,90,0.3)); }
.built-panel img.profile-photo {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  max-height: none;
  object-fit: cover;
  border: 1px solid rgba(184,154,90,0.35);
  border-radius: 8px;
  filter: none;
  box-shadow: 0 22px 56px rgba(0,0,0,0.42);
}
.built-panel .pillars { display: flex; gap: 14px 26px; flex-wrap: wrap; justify-content: center; }
.built-panel .pillar { color: rgba(255,255,255,0.72); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.built-panel .pillar i { color: var(--gold); }
.entity-links {
  width: 100%;
  max-width: 420px;
  border-top: 1px solid rgba(184,154,90,0.22);
  padding-top: 22px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.entity-links-label {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.entity-links a {
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}
.entity-links a:hover { color: var(--gold-light); }
.entity-links i { color: var(--gold); font-size: 0.78rem; flex-shrink: 0; }
@media (max-width: 600px) {
  .entity-links { text-align: center; }
  .entity-links a { justify-content: center; }
  .built-panel {
    padding: 30px 18px;
  }
  .built-panel img.profile-photo {
    width: min(100%, 240px);
  }
}

/* =============================================
   NATIVE CITATIONS LIST
   ============================================= */
.cite-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.cite-cols h4 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-family: var(--font-main);
}
.cite-cols ul { display: flex; flex-direction: column; gap: 10px; }
.cite-cols li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.cite-cols li i { color: var(--gold); margin-top: 6px; font-size: 0.55rem; flex-shrink: 0; }
@media (max-width: 700px) { .cite-cols { grid-template-columns: 1fr; gap: 28px; } }
