:root {
  --bg: #060708;
  --bg-2: #0c1013;
  --bg-3: #14191d;
  --panel: rgba(255, 255, 255, 0.052);
  --panel-2: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #edf2f5;
  --muted: #97a1a8;
  --accent: #9d8460;
  --accent-2: #667255;
  --accent-3: #d1b07a;
  --danger: #a06b5b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --glow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 40px rgba(157, 132, 96, 0.08);
  --radius: 26px;
  --radius-sm: 18px;
  --blur: blur(18px);
  --max-width: 1380px;
  --nav-h: 86px;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(157, 132, 96, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(102, 114, 85, 0.10), transparent 24%),
    linear-gradient(135deg, var(--bg), var(--bg-2), var(--bg-3));
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body.loaded .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.loaded .hero::before {
  filter: blur(0px);
  transform: scale(1);
}

body.loaded .hero-content,
body.loaded .hero-side,
body.loaded .hero-hud,
body.loaded .hero-orbit,
body.loaded .hero-floating-tags {
  opacity: 1;
  transform: translateY(0);
}

body.loaded .hero-side .hero-panel:nth-child(1) {
  transition-delay: 0.18s;
}
body.loaded .hero-side .hero-panel:nth-child(2) {
  transition-delay: 0.28s;
}
body.loaded .hero-side .hero-panel:nth-child(3) {
  transition-delay: 0.38s;
}

body.loaded {
  animation: subtlePulse 1.2s ease;
}

@keyframes subtlePulse {
  0% { transform: scale(1.01); filter: brightness(1.04); }
  100% { transform: scale(1); filter: brightness(1); }
}

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

img, video {
  display: block;
  max-width: 100%;
}

/* VIDEO BACKGROUND */

.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.06);
  z-index: -20;
  opacity: 0;
  filter: brightness(0.76) contrast(1.12) saturate(1.08) blur(0.35px);
  pointer-events: none;
  transition: opacity 1.8s ease, transform 12s ease, filter 1.6s ease;
  animation: cinematicVideoBreath 12s ease-in-out infinite alternate;
}

body.loaded .bg-video {
  opacity: 0.50;
  transform: translate(-50%, -50%) scale(1.13);
}

@keyframes cinematicVideoBreath {
  0% {
    filter: brightness(0.74) contrast(1.08) saturate(1.04) blur(0.3px);
  }
  100% {
    filter: brightness(0.82) contrast(1.15) saturate(1.1) blur(0.1px);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,5,6,0.38), rgba(6,8,10,0.22), rgba(4,5,6,0.44)),
    radial-gradient(circle at center, rgba(0,0,0,0.06), transparent 55%);
  pointer-events: none;
  z-index: -19;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 52%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: -18;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(157, 132, 96, 0.10), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(102, 114, 85, 0.08), transparent 18%),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  pointer-events: none;
  z-index: -17;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  opacity: 0.07;
  pointer-events: none;
  z-index: -16;
  animation: grainShift 0.35s steps(2) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px,-1px); }
  75% { transform: translate(1px,1px); }
  100% { transform: translate(0,0); }
}

.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.014),
    rgba(255,255,255,0.014) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.13;
  pointer-events: none;
  z-index: -15;
}

.fog-layer {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -14;
  opacity: 0.20;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 18%),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,0.05), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.04), transparent 16%);
  filter: blur(40px);
  animation: fogDrift 28s ease-in-out infinite alternate;
}

.light-leak {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -13;
  background:
    radial-gradient(circle at 8% 12%, rgba(209,176,122,0.15), transparent 18%),
    radial-gradient(circle at 92% 18%, rgba(157,132,96,0.12), transparent 20%);
  mix-blend-mode: screen;
  animation: leakPulse 9s ease-in-out infinite alternate;
}

@keyframes leakPulse {
  0% { opacity: 0.42; }
  100% { opacity: 0.92; }
}

@keyframes fogDrift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-30px,-20px,0) scale(1.06); }
}

.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 132, 96, 0.20), transparent 72%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -12;
  transition: transform 0.06s linear, opacity 0.25s ease;
  opacity: 0.95;
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209,176,122,0.55), rgba(209,176,122,0.06));
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 99998;
  filter: blur(1px);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10000;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  box-shadow: 0 0 18px rgba(157,132,96,0.35);
}

.site-loader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(157,132,96,0.08), transparent 35%),
    linear-gradient(135deg, #060708, #0c0f11, #11161a);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  overflow: hidden;
}

.site-loader::before,
.site-loader::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg, rgba(8,10,12,0.94), rgba(15,19,22,0.96));
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
  z-index: 2;
}

.site-loader::before {
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-loader::after {
  bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

body.loader-exit .site-loader::before {
  transform: translateY(-100%);
}

body.loader-exit .site-loader::after {
  transform: translateY(100%);
}

.loader-flash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 22%),
    radial-gradient(circle at center, rgba(209,176,122,0.12), transparent 30%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

body.loader-exit .loader-flash {
  animation: loaderFlash 0.75s ease;
}

@keyframes loaderFlash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

.loader-inner {
  text-align: center;
  width: min(560px, 90%);
  position: relative;
  z-index: 4;
}

.loader-kicker {
  color: var(--accent);
  letter-spacing: 4px;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.loader-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.loader-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.loader-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--glow);
  margin-bottom: 16px;
}

.loader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  transition: width 0.15s linear;
  box-shadow: 0 0 25px rgba(157,132,96,0.45);
}

.loader-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.loader-sub {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-align: left;
}

.loader-percent {
  font-size: 1rem;
  color: var(--text);
  font-weight: 800;
  min-width: 58px;
  text-align: right;
}

.loader-terminal {
  text-align: left;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--glow);
  min-height: 120px;
  backdrop-filter: blur(12px);
}

.loader-terminal-line {
  color: #c8d0d5;
  font-size: 0.88rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(8px);
  animation: terminalLineIn 0.45s ease forwards;
}

.loader-terminal-line:nth-child(1) { animation-delay: 0.05s; }
.loader-terminal-line:nth-child(2) { animation-delay: 0.2s; }
.loader-terminal-line:nth-child(3) { animation-delay: 0.35s; }
.loader-terminal-line:nth-child(4) { animation-delay: 0.5s; }

.loader-terminal-line span {
  color: var(--accent);
}

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

.navbar {
  width: 100%;
  padding: 18px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 9, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 999;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  position: relative;
}

.nav-logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--text);
}

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

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 34px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7,8,9,0.58) 0%, rgba(7,8,9,0.26) 42%, rgba(7,8,9,0.50) 100%);
  z-index: -2;
  transform: scale(1.08);
  filter: blur(16px);
  transition: transform 1.8s cubic-bezier(.22,1,.36,1), filter 1.8s cubic-bezier(.22,1,.36,1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(157,132,96,0.14), transparent 18%),
    radial-gradient(circle at 18% 72%, rgba(102,114,85,0.12), transparent 20%);
  z-index: -1;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

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

.hero-grid {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-content,
.hero-side,
.hero-hud,
.hero-orbit,
.hero-floating-tags {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1);
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: var(--accent);
  margin-bottom: 24px;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  box-shadow: var(--glow);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(157,132,96,0.55);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
  margin-bottom: 20px;
  letter-spacing: -2px;
  text-shadow: 0 0 30px rgba(0,0,0,0.18);
}

.hero p {
  max-width: 700px;
  color: #d3d9dd;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  padding: 15px 24px;
  border-radius: 16px;
  font-weight: 800;
  transition: 0.25s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2), transparent 34%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #7c6c54);
  color: #fff;
  box-shadow: 0 18px 40px rgba(157,132,96,0.22);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px rgba(157,132,96,0.30);
}

.btn.secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-stat,
.card,
.quick-card,
.page-panel,
.step-card,
.rule-card,
.role-card,
.media-card,
.contact-card,
.footer-card,
.dashboard-card,
.timeline-card,
.feature-card,
.role-highlight-card,
.hero-panel,
.hero-hud-box,
.mission-card,
.media-video-card {
  background: rgba(255,255,255,0.052);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-stat:hover,
.card:hover,
.quick-card:hover,
.page-panel:hover,
.step-card:hover,
.rule-card:hover,
.role-card:hover,
.media-card:hover,
.contact-card:hover,
.footer-card:hover,
.dashboard-card:hover,
.timeline-card:hover,
.feature-card:hover,
.role-highlight-card:hover,
.hero-panel:hover,
.hero-hud-box:hover,
.mission-card:hover,
.media-video-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
}

.hero-stat strong,
.card h3,
.quick-card h3,
.page-panel h3,
.step-card h3,
.rule-card h3,
.role-card h3,
.media-card h3,
.contact-card h3,
.footer-card h3,
.dashboard-card h3,
.timeline-card h3,
.feature-card h3,
.role-highlight-card h3,
.hero-panel h3,
.hero-hud-box strong,
.mission-card h3,
.media-video-card h3 {
  display: block;
  margin-bottom: 10px;
}

.hero-stat span,
.card p,
.quick-card p,
.page-panel p,
.step-card p,
.rule-card p,
.role-card p,
.media-card p,
.contact-card p,
.footer-card p,
.dashboard-card p,
.timeline-card p,
.feature-card p,
.role-highlight-card p,
.hero-panel p,
.hero-hud-box span,
.mission-card p,
.media-video-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-hud {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 360px;
  max-width: calc(100% - 68px);
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-hud-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.hero-hud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.section,
.page-content,
.footer {
  padding: 90px 34px;
  position: relative;
}

.section-inner,
.page-content > *,
.footer-inner,
.page-hero,
.hero-grid {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  margin-bottom: 38px;
}

.section-title span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.82rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.section-title p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.9;
}

/* QUICK FIX */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.quick-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-grid,
.page-grid,
.gallery-grid,
.role-highlight-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mission-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.dashboard-value,
.timeline-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 14px;
}

.page-hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 34px 40px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero .badge,
.page-hero h1,
.page-hero p {
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  max-width: 920px;
  color: #d4dbe0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.media-videos-head {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 34px;
}

.media-videos-head p,
.media-videos-head h2 {
  margin-left: auto;
  margin-right: auto;
}

.media-video-tag,
.video-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 1.3px;
  margin-bottom: 14px;
}

.media-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.media-video-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.video-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.video-mini-meta span,
.mission-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.78rem;
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.media-video-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.preview-video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.video-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.48), rgba(0,0,0,0.10));
  pointer-events: none;
}

.video-frame-corners span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.20);
}

.video-frame-corners span:nth-child(1) { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.video-frame-corners span:nth-child(2) { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.video-frame-corners span:nth-child(3) { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.video-frame-corners span:nth-child(4) { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.video-preview-ui {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8,10,12,0.56);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.video-preview-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c6c54);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 14px 30px rgba(157,132,96,0.28);
  flex-shrink: 0;
}

.video-preview-label strong {
  display: block;
  margin-bottom: 4px;
}

.video-preview-label span {
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 42px 0 28px;
}

.filter-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), #7c6c54);
  border-color: transparent;
  color: #fff;
}

.media-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.footer-inner {
  display: grid;
  gap: 32px;
}

.footer-brand h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.9;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.9s ease;
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0,0);
}

.section-divider {
  width: min(100%, 1280px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* LIGHTBOX / VIDEO MODAL */

.lightbox,
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 24px;
}

.lightbox.active,
.video-modal.active {
  display: flex;
}

.lightbox img,
.video-modal video {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next,
.video-modal-close {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-size: 1rem;
}

.lightbox-close,
.video-modal-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* SCROLL BUTTONS */

.scroll-up,
.scroll-back {
  position: fixed;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.scroll-up {
  bottom: 24px;
}

.scroll-back {
  bottom: 88px;
}

.scroll-up.active,
.scroll-back.active {
  opacity: 1;
  pointer-events: auto;
}

.scroll-up:hover,
.scroll-back:hover {
  transform: translateY(-4px);
}

/* MOBILE */

@media (max-width: 1200px) {
  .hero-grid,
  .mission-board,
  .page-grid,
  .card-grid,
  .footer-grid,
  .gallery-grid,
  .role-highlight-grid,
  .quick-links {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .media-videos-grid {
    grid-template-columns: 1fr;
  }

  .hero-hud {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding-bottom: 40px;
  }
}

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

  .navbar {
    padding: 16px 18px;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
  }

  .hero,
  .section,
  .page-content,
  .footer,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 0.95;
  }

  .hero p,
  .page-hero p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero-buttons,
  .hero-stats,
  .gallery-filters,
  .media-video-top,
  .loader-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-hud-grid,
  .dashboard-grid,
  .card-grid,
  .page-grid,
  .gallery-grid,
  .footer-grid,
  .role-highlight-grid,
  .media-videos-grid {
    grid-template-columns: 1fr;
  }

  .media-video-frame,
  .preview-video {
    min-height: 220px;
  }

  .cursor-glow,
  .cursor-trail {
    display: none;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}
.video-sound-toggle {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 12, 14, 0.72);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.video-sound-toggle:hover {
  transform: scale(1.08);
  background: rgba(157, 132, 96, 0.24);
  border-color: rgba(255,255,255,0.18);
}
/* =========================================================
   FOOTER
========================================================= */
.footer {
  margin-top: 120px;
  padding: 70px 24px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(to top, rgba(7,8,9,0.92), rgba(7,8,9,0.72)),
    radial-gradient(circle at top center, rgba(157,132,96,0.08), transparent 35%);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
  opacity: 0.25;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-brand {
  text-align: center;
  margin-bottom: 50px;
}

.footer-brand h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}

.footer-card {
  padding: 26px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--glow);
  backdrop-filter: blur(14px);
}

.footer-card h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--text);
}

.footer-card a {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
  transition: 0.25s ease;
  position: relative;
  width: fit-content;
}

.footer-card a:hover {
  color: var(--accent-3);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.8;
}

.footer-disclaimer {
  max-width: 920px;
  margin: 14px auto 0;
  font-size: 0.88rem !important;
  opacity: 0.78;
}

@media (max-width: 980px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 60px 18px 34px;
  }

  .footer-brand {
    margin-bottom: 34px;
  }
}
/* =========================================================
   MEDIA PAGE PERFORMANCE OPTIMIZATION
========================================================= */
.media-video-card,
.media-video-frame,
.promo-video {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.promo-video {
  object-fit: cover;
  background: #0b0d10;
}

@media (max-width: 980px) {
  .promo-video {
    filter: none !important;
  }

  .media-video-card {
    backdrop-filter: blur(8px);
  }
}