/* =============================================
   SOUTH BLOC REPORTS — style.css
   Theme: Military-Intel Dark Gold
   ============================================= */

/* --- VARIABLES --- */
:root {
  --bg-primary: #0d1209;
  --bg-secondary: #111a0d;
  --bg-card: #141e10;
  --bg-card-hover: #1a2615;
  --gold: #9a8a3a;
  --gold-bright: #c4a832;
  --gold-dim: #6b5f28;
  --gold-glow: rgba(154, 138, 58, 0.25);
  --text-primary: #e8dfc0;
  --text-secondary: #a09870;
  --text-dim: #5a5438;
  --border: rgba(154, 138, 58, 0.18);
  --border-strong: rgba(154, 138, 58, 0.4);
  --red-alert: #c0392b;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Crimson Pro', serif;
  --font-mono: 'Share Tech Mono', monospace;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* --- NOISE OVERLAY --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* --- CUSTOM CURSOR --- */
.custom-cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--gold-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

body:has(a:hover) .custom-cursor,
body:has(button:hover) .custom-cursor {
  width: 56px;
  height: 56px;
  background: var(--gold-glow);
  border-color: var(--gold-bright);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* --- TYPOGRAPHY UTILITIES --- */
.mono {
  font-family: var(--font-mono);
}

em {
  font-style: italic;
  color: var(--gold-bright);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.section-title.center {
  text-align: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  transform: translateX(-105%);
  transition: transform 0.3s var(--transition);
  z-index: 0;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn span,
.btn {
  z-index: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  border: 2px solid var(--gold);
}

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

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold-dim);
}

.btn-ghost:hover {
  color: var(--bg-primary);
  border-color: var(--gold-bright);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 10px 24px;
  font-size: 12px;
}

.btn-outline:hover {
  color: var(--bg-primary);
  border-color: var(--gold-bright);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(13, 18, 9, 0.96);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s;
}

.navbar.scrolled .nav-inner {
  padding: 16px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold-bright);
}

.logo-line {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 10px 18px;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: attr(data-label);
  position: absolute;
  top: 4px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--gold-dim);
  letter-spacing: 1px;
  transition: color 0.3s;
}

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

.nav-link:hover::after {
  color: var(--gold);
}

.nav-link.cta-link {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  margin-left: 16px;
}

.nav-link.cta-link:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.nav-link.cta-link::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  padding: 140px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 138, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 138, 58, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: 0;
}

.hero-eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-alert);
  animation: tickerPulse 1.5s infinite;
}

@keyframes tickerPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(192, 57, 43, 0);
  }
}

.separator {
  color: var(--border-strong);
}

.hero-content {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}

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

.hero-logo-img {
  width: 168px;
  height: 168px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 40px var(--gold-glow);
}

.hero-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% {
    top: -5%;
  }

  100% {
    top: 105%;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.line-reveal {
  display: block;
  animation: lineReveal 0.8s var(--transition) both;
}

.delay-1 {
  animation-delay: 0.15s;
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-top: 15px;
}

.dot-sep {
  color: var(--gold-dim);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
}

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

.fade-in-up {
  animation: fadeInUp 0.8s var(--transition) 0.4s both;
}

.delay-2 {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard */
.hero-dashboard {
  grid-column: 2;
  align-self: start;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s var(--transition) 0.3s both;
}

.dashboard-frame {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--gold-glow);
  position: relative;
}

.dashboard-bar {
  background: var(--bg-card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.db-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.db-dot.red {
  background: #c0392b;
}

.db-dot.yellow {
  background: #9a8a3a;
}

.db-dot.green {
  background: #27ae60;
}

.db-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-left: 8px;
}

.dashboard-frame img {
  width: 100%;
  display: block;
}

.dashboard-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}

.dashboard-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      transparent, transparent 2px,
      rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 3px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-thumb {
  width: 100%;
  height: 30px;
  background: var(--gold-dim);
  animation: scrollThumb 2s ease-in-out infinite;
}

@keyframes scrollThumb {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(200%);
  }
}

/* ==================== ABOUT ==================== */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.about::before {
  content: 'ABOUT';
  position: absolute;
  top: 60px;
  right: 40px;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  color: rgba(154, 138, 58, 0.04);
  letter-spacing: 8px;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.about-left h2 {
  margin-bottom: 24px;
}

.about-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
}

.about-lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-body {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 17px;
}

.about-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}

.stat-num::after {
  content: '+';
  font-size: 28px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==================== DIFFERENTIATOR CAROUSEL ==================== */
.differentiator {
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Top progress bar */
.diff-progress {
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.diff-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  width: 0%;
  transition: width linear;
}

.diff-carousel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Slides stack in same grid cell — opacity fades between them */
.diff-slides {
  display: grid;
}

.diff-slide {
  grid-row: 1;
  grid-column: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 88px 0 64px;
  align-items: center;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s var(--transition);
}

.diff-slide.active {
  opacity: 1;
  pointer-events: all;
}

/* Left panel — large number + label */
.diff-slide-left {
  padding-right: 48px;
  border-right: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  justify-content: center;
}

.diff-slide-label {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.diff-slide-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.diff-slide-bar {
  width: 32px;
  height: 2px;
  background: var(--gold);
}

/* Right content panel */
.diff-slide-right {
  padding-left: 64px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.diff-slide-tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 5px 12px;
  align-self: flex-start;
}

.diff-slide-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.diff-slide-title em {
  display: block;
  color: var(--gold-bright);
  font-style: normal;
}

.diff-slide-body {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

/* Large decorative background number */
.diff-bg-num {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 220px;
  font-weight: 700;
  letter-spacing: -8px;
  line-height: 1;
  color: rgba(154, 138, 58, 0.04);
  pointer-events: none;
  z-index: 0;
}

/* Controls bar */
.diff-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 48px;
  border-top: 1px solid var(--border);
}

.diff-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-dim);
  background: none;
  color: var(--gold);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.diff-btn:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.diff-btn svg {
  width: 18px;
  height: 18px;
}

.diff-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.diff-dot {
  height: 2px;
  width: 20px;
  background: var(--border-strong);
  border: none;
  cursor: none;
  transition: all 0.4s var(--transition);
  padding: 0;
}

.diff-dot.active {
  width: 44px;
  background: var(--gold-bright);
}

/* ==================== COVERAGE ==================== */
.coverage {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
}

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

.coverage-card {
  background: var(--bg-card);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s, transform 0.4s;
  cursor: none;
}

.coverage-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.coverage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-dim);
  transition: background 0.3s;
}

.coverage-card:hover::before {
  background: var(--gold-bright);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.card-icon {
  width: 60px;
  height: 60px;
  color: var(--gold);
  margin-bottom: 24px;
  transition: color 0.3s;
}

.coverage-card:hover .card-icon {
  color: var(--gold-bright);
}

.coverage-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.coverage-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, var(--gold-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.coverage-card:hover .card-glow {
  opacity: 1;
}

/* ==================== RESEARCH APPROACH ==================== */
.approach {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.approach-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
  margin: -24px auto 56px;
  text-align: center;
}

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

/* ==================== SERVICES MATRIX ==================== */
.services-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-node.full-width {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.service-node:hover {
  border-color: var(--gold-dim);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-num {
  font-size: 10px;
  color: var(--gold-dim);
  letter-spacing: 2px;
}

.node-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  transition: transform 0.3s;
}

.service-node:hover .node-icon {
  color: var(--gold-bright);
  transform: scale(1.1) rotate(5deg);
}

.service-node h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.service-node p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.node-glitch-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent, transparent 2px,
      rgba(154, 138, 58, 0.03) 2px, rgba(154, 138, 58, 0.03) 4px);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-node:hover .node-glitch-bg {
  opacity: 1;
}

.service-node.full-width .node-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Adjust for responsive */
@media (max-width: 1024px) {
  .services-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-node.full-width {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .services-matrix {
    grid-template-columns: 1fr;
  }

  .service-node.full-width {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==================== RESEARCH PROJECTS ==================== */
.projects {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.pub-intro {
  font-size: 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 56px;
  margin-top: -24px;
  max-width: 680px;
}

/* --- Project Grid --- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
  overflow: hidden;
}

.pub-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 60px rgba(154, 138, 58, 0.12);
  transform: translateY(-4px);
}

/* --- PDF Document Preview --- */
.pub-pdf-preview {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: none;
}

.project-logo-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}

/* --- Download Overlay (on hover) --- */
.pdf-download-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 8, 0.88);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.pub-pdf-preview:hover .pdf-download-overlay {
  opacity: 1;
}

.pdf-dl-circle {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}

.pdf-dl-circle svg {
  width: 22px;
  height: 22px;
}

.pub-pdf-preview:hover .pdf-dl-circle {
  transform: translateY(4px);
  box-shadow: 0 0 20px var(--gold-glow);
}

.pdf-download-overlay>span {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* --- Project Info --- */
.pub-info {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--border);
}

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

.pub-year {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.pub-tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--border);
  padding: 3px 8px;
}

.pub-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.pub-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0;
}

/* Download Button */
.pub-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 10px 18px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  cursor: none;
  align-self: flex-start;
}

.pub-dl-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.pub-dl-btn:hover {
  color: var(--bg-primary);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.pub-dl-btn:hover svg {
  transform: translateY(2px);
}

/* ==================== ARTICLES ==================== */
.articles {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.articles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.articles-header .section-title {
  margin-bottom: 0;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: 1px solid transparent;
  padding: 8px 16px;
  cursor: none;
  transition: all 0.3s;
}

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

.filter-btn.active {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: rgba(154, 138, 58, 0.08);
}

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

.article-card {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.article-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: var(--gold-dim);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

/* Featured Horizontal Orientation */
.article-card.featured {
  grid-column: span 3;
  flex-direction: row;
  min-height: 320px;
}

.article-card.featured .article-image {
  flex: 0 0 45%;
  height: auto;
}

.article-card.featured .article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card.featured .article-body h3 {
  font-size: 32px;
}

.article-image {
  height: 220px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
  opacity: 0.85;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
  opacity: 1;
}

.article-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.article-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-date {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin: 0 0 14px;
  line-height: 1.3;
}

.article-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}



/* Responsive grid adjustments */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .article-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-card.featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .article-card.featured .article-image {
    flex: 0 0 220px;
  }

  .article-card.featured .article-body h3 {
    font-size: 24px;
  }
}

/* Hide article transition */
.article-card.hidden {
  display: none;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  max-width: 780px;
  width: 100%;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 60px var(--gold-glow);
  transform: translateY(30px);
  transition: transform 0.4s var(--transition);
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.modal-category {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-dim);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: none;
  transition: color 0.3s;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--gold-bright);
}

.modal-body {
  padding: 40px 48px;
}

.modal-date {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.modal-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 14px 0 28px;
  line-height: 1.2;
}

.modal-content {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.modal-content p {
  margin-bottom: 20px;
}

.modal-content strong {
  color: var(--text-primary);
}

.modal-footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-align: center;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-logo {
  margin-bottom: 40px;
}

.footer-logo .logo-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--gold-bright);
  display: block;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}

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

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.footer-contact a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.footer-disclaimer {
  font-size: 10px;
  opacity: 0.6;
}

/* ==================== RESPONSIVE ==================== */

/* ---- TABLET (≤1024px) ---- */
@media (max-width: 1024px) {

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 32px 80px;
    gap: 40px;
  }

  .hero-eyebrow {
    grid-column: 1;
  }

  .hero-dashboard {
    grid-column: 1;
  }

  .hero-title {
    font-size: clamp(44px, 7vw, 72px);
  }

  .scroll-indicator {
    display: none;
  }

  /* Grids */
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

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

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

  .article-card.featured {
    grid-column: span 2;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  /* Differentiator */
  .diff-slide {
    grid-template-columns: 160px 1fr;
    padding: 64px 0 48px;
  }

  .diff-slide-left {
    padding-right: 32px;
  }

  .diff-slide-right {
    padding-left: 40px;
  }

  .diff-slide-num {
    font-size: 64px;
  }
}

/* ---- MOBILE (≤768px) ---- */
@media (max-width: 768px) {

  /* Base */
  .container {
    padding: 0 20px;
  }

  body {
    font-size: 16px;
  }

  /* --- Navbar --- */
  .navbar,
  .navbar.scrolled {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-strong);
    backdrop-filter: none;
  }

  .nav-inner,
  .navbar.scrolled .nav-inner {
    padding: 18px 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 75vw;
    max-width: 300px;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 4px;
    transition: right 0.4s var(--transition);
    border-left: 1px solid var(--border-strong);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 15px;
    padding: 18px 0;
    width: 100%;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    right: 0;
    top: 18px;
  }

  .nav-link.cta-link {
    margin-left: 0;
    margin-top: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  /* --- Hero --- */
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 20px 60px;
    gap: 32px;
    min-height: auto;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-logo-img {
    width: 96px;
    height: 96px;
  }

  .hero-title {
    font-size: clamp(36px, 9vw, 56px);
  }

  .hero-desc {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hero-eyebrow {
    font-size: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-dashboard {
    grid-column: 1;
  }

  .dashboard-frame {
    border-radius: 4px;
  }

  .scroll-indicator {
    display: none;
  }

  /* --- Section headings --- */
  .section-title {
    font-size: clamp(28px, 7vw, 44px);
    margin-bottom: 32px;
  }

  .section-tag {
    font-size: 11px;
    margin-bottom: 16px;
  }

  /* --- About --- */
  .about {
    padding: 80px 0;
  }

  .about::before {
    font-size: 70px;
    top: 30px;
    right: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-left h2 {
    margin-bottom: 16px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 24px;
  }

  .stat-num {
    font-size: 36px;
  }

  /* --- Differentiator --- */
  .diff-carousel-wrap {
    padding: 0 20px;
  }

  .diff-slide {
    grid-template-columns: 1fr;
    padding: 60px 0 40px;
  }

  .diff-slide-left {
    border-right: none;
    border-bottom: 1px solid var(--border-strong);
    padding: 0 0 20px;
    margin-bottom: 32px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
  }

  .diff-slide-num {
    font-size: 48px;
  }

  .diff-slide-right {
    padding-left: 0;
    gap: 16px;
  }

  .diff-slide-title {
    font-size: 32px;
  }

  .diff-slide-body {
    font-size: 16px;
  }

  .diff-bg-num {
    font-size: 120px;
    right: -5px;
  }

  .diff-controls {
    padding: 16px 0 32px;
  }

  /* --- Coverage --- */
  .coverage {
    padding: 80px 0;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .coverage-card {
    padding: 32px 24px;
  }

  /* --- Research Approach --- */
  .approach {
    padding: 80px 0;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .approach-intro {
    font-size: 15px;
    margin-bottom: 40px;
  }

  /* --- Services --- */
  .services {
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 36px 28px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  /* --- Research Projects --- */
  .projects {
    padding: 80px 0;
  }

  .pub-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-logo-img {
    height: 400px;
  }

  .pub-intro {
    font-size: 13px;
    margin-bottom: 40px;
  }

  /* --- Articles --- */
  .articles {
    padding: 80px 0;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .article-card.featured {
    grid-column: span 1;
  }

  .articles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-btn {
    font-size: 10px;
    padding: 7px 12px;
  }

  /* --- Modal --- */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    border-radius: 0;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-body {
    padding: 28px 20px;
  }

  .modal-body h2 {
    font-size: 20px;
  }

  .modal-content {
    font-size: 15px;
  }

  /* --- Footer --- */
  .footer {
    padding: 48px 0 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    margin-bottom: 24px;
  }

  .footer-contact {
    margin-bottom: 24px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-logo .logo-text {
    font-size: 26px;
  }
}

/* ---- SMALL PHONES (≤480px) ---- */
@media (max-width: 480px) {

  /* Base */
  .container {
    padding: 0 16px;
  }

  body {
    font-size: 15px;
  }

  /* Hero */
  .hero {
    padding: 90px 16px 48px;
  }

  .hero-title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero-tags {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .hero-logo-img {
    width: 80px;
    height: 80px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  /* Section headings */
  .section-title {
    font-size: clamp(24px, 8vw, 36px);
  }

  /* About */
  .about {
    padding: 60px 0;
  }

  .about-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 32px;
  }

  /* Differentiator */
  .diff-slide-num {
    font-size: 36px;
  }

  .diff-slide-title {
    font-size: 26px;
  }

  .diff-bg-num {
    font-size: 80px;
  }

  .diff-dot {
    width: 12px;
  }

  .diff-dot.active {
    width: 32px;
  }

  /* Coverage */
  .coverage {
    padding: 60px 0;
  }

  /* Services */
  .services {
    padding: 60px 0;
  }

  .service-card {
    padding: 28px 20px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  /* Projects */
  .projects {
    padding: 60px 0;
  }

  .pub-grid {
    gap: 16px;
  }

  .project-logo-img {
    height: 200px;
    padding: 0;
  }

  .pdf-watermark {
    display: none;
  }

  .pdf-dl-circle {
    width: 44px;
    height: 44px;
  }

  .pub-info {
    padding: 18px 16px 22px;
  }

  .pub-card h3 {
    font-size: 14px;
  }

  /* Articles */
  .articles {
    padding: 60px 0;
  }

  .article-body h3 {
    font-size: 15px;
  }

  /* Modal */
  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px 16px;
  }

  .modal-body h2 {
    font-size: 18px;
  }

  /* Navbar */
  .nav-links {
    width: 85vw;
    padding: 90px 24px 40px;
  }

  .logo-text {
    font-size: 18px;
  }

  /* Footer */
  .footer-tagline {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .footer-bottom p {
    font-size: 10px;
  }
}

/* ---- TOUCH DEVICES — restore system cursor ---- */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  a,
  button,
  .btn,
  .filter-btn,
  .pub-dl-btn,
  .pub-pdf-preview,
  .article-card,
  .coverage-card,
  .service-card,
  .pub-card,
  .modal-close,
  .nav-toggle {
    cursor: pointer;
  }
}