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

html,
body {
  width: 100%;
  height: 100%;
  background: #04090f;
  color: #f0f4f8;
  font-family: 'Source Sans 3', sans-serif;
  overflow: hidden;
  cursor: crosshair;
}

/* ── SCALE WRAPPER ── */
#scale-root {
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  position: fixed;
  top: 0;
  left: 0;
}

/* ================================================================
   SPLASH SCREEN
================================================================ */
#splash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.splash-photo {
  position: absolute;
  inset: 0;
  background-image: url('/assets/bg.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.28) saturate(0.35);
}

.splash-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(4, 9, 15, 0.2) 0%, rgba(4, 9, 15, 0.88) 80%);
}

.splash-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(204, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 48px 48px;
  }
}

.splash-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, #cc0000, #ff3333, #cc0000, transparent);
  opacity: 0.5;
  pointer-events: none;
  animation: scanSweep 6s ease-in-out infinite;
}

@keyframes scanSweep {
  0% {
    top: -2px;
    opacity: 0;
  }

  5% {
    opacity: 0.5;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Canada flag stripe */
.splash-flag-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #cc0000 33%, #fff 33%, #fff 66%, #cc0000 66%);
  opacity: 0.85;
  z-index: 3;
}

.splash-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splash-icon {
  font-size: 70px;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 30px rgba(204, 0, 0, 0.9));
  animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(204, 0, 0, 0.6));
  }

  50% {
    filter: drop-shadow(0 0 50px rgba(255, 51, 51, 1));
  }
}

.splash-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 5px;
  color: #cc0000;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.85;
}

.splash-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 100px;
  letter-spacing: 8px;
  color: #f0f4f8;
  line-height: 0.95;
  text-shadow: 0 0 40px rgba(204, 0, 0, 0.4), 0 4px 0 rgba(0, 0, 0, 0.6);
}

.splash-title span {
  color: #cc0000;
}

.splash-divider {
  width: 440px;
  height: 1px;
  background: linear-gradient(to right, transparent, #cc0000, #ffffff, #cc0000, transparent);
  margin: 22px 0;
}

.splash-subtitle {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 3px;
  color: #8090a8;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.splash-touch {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  letter-spacing: 5px;
  color: #ffffff;
  text-transform: uppercase;
  animation: blinkPrompt 2s ease-in-out infinite;
}

@keyframes blinkPrompt {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.splash-ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #cc0000;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 20;
  transform: translate(-50%, -50%) scale(0);
}

.splash-ripple.go {
  animation: rippleExpand 0.9s ease-out forwards;
}

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

  to {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

.splash-tagline {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 3px;
  color: rgba(204, 0, 0, 0.3);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 10;
}

.splash-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  pointer-events: none;
  z-index: 10;
}

.splash-corner.tl {
  top: 22px;
  left: 22px;
  border-top: 2px solid #cc0000;
  border-left: 2px solid #cc0000;
}

.splash-corner.tr {
  top: 22px;
  right: 22px;
  border-top: 2px solid #cc0000;
  border-right: 2px solid #cc0000;
}

.splash-corner.bl {
  bottom: 22px;
  left: 22px;
  border-bottom: 2px solid #cc0000;
  border-left: 2px solid #cc0000;
}

.splash-corner.br {
  bottom: 22px;
  right: 22px;
  border-bottom: 2px solid #cc0000;
  border-right: 2px solid #cc0000;
}


/* ================================================================
   SHARED SCREEN STYLES
================================================================ */
.screen {
  position: absolute;
  width: 1920px;
  height: 1080px;
  top: 0;
  left: 0;
  display: none;
  overflow: hidden;
}

.screen.active {
  display: block;
}

/* film-grain texture overlay */
.screen::before {
  content: '';
  position: absolute;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 900;
  opacity: 0.25;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.025) 3px,
      rgba(0, 0, 0, 0.025) 4px);
  pointer-events: none;
  z-index: 850;
}

.screen-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(204, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}


/* ================================================================
   SCREEN 1 — HOME
================================================================ */
#s1 {
  background: radial-gradient(ellipse at 35% 50%, #0d1f3c 0%, #060e1a 70%);
}

.home-leaf {
  position: absolute;
  font-size: 650px;
  color: rgba(204, 0, 0, 0.08);
  right: 820px;
  top: -140px;
  pointer-events: none;
  line-height: 1;
  z-index: 1;
  animation: leafSlow 14s ease-in-out infinite;
}

@keyframes leafSlow {

  0%,
  100% {
    transform: rotate(-5deg) scale(1);
  }

  50% {
    transform: rotate(4deg) scale(1.02);
  }
}

.home-content {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 730px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(204, 0, 0, 0.1);
  border: 1px solid rgba(204, 0, 0, 0.3);
  padding: 7px 18px;
  margin-bottom: 20px;
}

.home-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.home-badge-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  color: #cc0000;
  text-transform: uppercase;
}

.home-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 112px;
  line-height: 0.92;
  color: #f0f4f8;
  letter-spacing: 4px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
  margin-bottom: 4px;
}

.home-title span {
  color: #cc0000;
  display: block;
}

.home-title em {
  color: #ffffff;
  font-style: normal;
}

.home-divider {
  width: 460px;
  height: 2px;
  background: linear-gradient(to right, #cc0000, #ffffff, transparent);
  margin: 18px 0;
}

.home-desc {
  font-size: 23px;
  font-weight: 300;
  line-height: 1.7;
  color: #8090a8;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.home-desc strong {
  color: #f0f4f8;
  font-weight: 600;
}

/* nav buttons */
.home-buttons {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-btn {
  width: 670px;
  height: 74px;
  background: #1e2d42;
  border: 1px solid rgba(204, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #cc0000;
}

.nav-btn:active {
  background: #1a3a6b;
  border-color: #cc0000;
}

.nav-btn:active::before {
  width: 6px;
}

.nav-btn-icon {
  font-size: 34px;
  flex-shrink: 0;
}

.nav-btn-text {
  text-align: left;
  flex: 1;
}

.nav-btn-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  color: #cc0000;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-btn-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 29px;
  letter-spacing: 2px;
  color: #f0f4f8;
  line-height: 1.1;
}

.nav-btn-arrow {
  font-size: 23px;
  color: #cc0000;
  opacity: 1;
  flex-shrink: 0;
}

/* ── Right video panel ── */
.home-video-panel {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  width: 900px;
  z-index: 10;
}

.home-video-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: #cc0000;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-video-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #cc0000;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border: 1px solid rgba(204, 0, 0, 0.3);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(204, 0, 0, 0.12), 0 0 120px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.home-video-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #8090a8;
  font-weight: 300;
  letter-spacing: 0.4px;
  font-style: italic;
}

/* status bar */
.status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: #112040;
  border-top: 1px solid rgba(204, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  z-index: 20;
}

.status-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: #8090a8;
  text-transform: uppercase;
}

.status-live {
  color: #cc0000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: dotBlink 2s ease-in-out infinite;
}

/* corner brackets */
.corner {
  position: absolute;
  width: 52px;
  height: 52px;
  z-index: 15;
}

.corner-tl {
  top: 14px;
  left: 14px;
  border-top: 2px solid rgba(204, 0, 0, 0.35);
  border-left: 2px solid rgba(204, 0, 0, 0.35);
}

.corner-tr {
  top: 14px;
  right: 14px;
  border-top: 2px solid rgba(204, 0, 0, 0.35);
  border-right: 2px solid rgba(204, 0, 0, 0.35);
}

.corner-bl {
  bottom: 52px;
  left: 14px;
  border-bottom: 2px solid rgba(204, 0, 0, 0.35);
  border-left: 2px solid rgba(204, 0, 0, 0.35);
}

.corner-br {
  bottom: 52px;
  right: 14px;
  border-bottom: 2px solid rgba(204, 0, 0, 0.35);
  border-right: 2px solid rgba(204, 0, 0, 0.35);
}


/* ================================================================
   SHARED SCREEN HEADER (S2, S3, S4)
================================================================ */
.screen-header {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.screen-header h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: 58px;
  letter-spacing: 7px;
  color: #f0f4f8;
  text-shadow: 0 0 22px rgba(204, 0, 0, 0.22);
}

.screen-header .sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 5px;
  color: #cc0000;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: -6px;
}


/* ================================================================
   SCREEN 2 — WHY MIGRATE
================================================================ */
#s2 {
  background: linear-gradient(150deg, #080f1e 0%, #0a1628 60%, #050d1a 100%);
}

.factors-grid {
  position: absolute;
  top: 158px;
  left: 48px;
  right: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  height: 840px;
  z-index: 10;
}

.factor-card:nth-child(5) {
  grid-column: span 2;
}

.factor-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  border: 1px solid rgba(204, 0, 0, 0.15);
}

.factor-card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.32) saturate(0.45);
  transition: filter 0.3s;
}

.factor-card:active .factor-card-photo {
  filter: brightness(0.5) saturate(0.7);
}

.factor-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 9, 15, 0.94) 0%, rgba(4, 9, 15, 0.25) 58%, transparent 100%);
}

/* coloured left accent bar — uses inline style for per-card colour */
.factor-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #cc0000;
  /* default; override with style="--card-accent:#..." */
  z-index: 5;
}

.factor-card:active {
  border-color: #cc0000;
}

.factor-tag {
  position: relative;
  z-index: 5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 4px;
  color: #cc0000;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.9;
}

.factor-title {
  position: relative;
  z-index: 5;
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  letter-spacing: 2px;
  color: #f0f4f8;
  line-height: 1.1;
  margin-bottom: 4px;
}

.factor-stat {
  position: relative;
  z-index: 5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: #8090a8;
  letter-spacing: 0.4px;
}


/* ================================================================
   SCREEN 3 — THE JOURNEY
================================================================ */
#s3 {
  background: radial-gradient(ellipse at 60% 40%, #0d1f3c 0%, #060e1a 70%);
}

.journey-grid {
  position: absolute;
  top: 158px;
  left: 48px;
  right: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  height: 848px;
  z-index: 10;
}

.route-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  border: 1px solid rgba(204, 0, 0, 0.15);
}

.route-card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.28) saturate(0.45);
  transition: filter 0.3s;
}

.route-card:active .route-card-photo {
  filter: brightness(0.48) saturate(0.7);
}

.route-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 9, 15, 0.95) 0%, rgba(4, 9, 15, 0.25) 55%, transparent 100%);
}

/* coloured bottom accent bar */
.route-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #cc0000;
  z-index: 5;
}

.route-card:active {
  border-color: #cc0000;
}

.route-tag {
  position: relative;
  z-index: 5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 4px;
  color: #cc0000;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.9;
}

.route-title {
  position: relative;
  z-index: 5;
  font-family: 'Bebas Neue', cursive;
  font-size: 30px;
  letter-spacing: 2px;
  color: #f0f4f8;
  line-height: 1.1;
  margin-bottom: 4px;
}

.route-stat {
  position: relative;
  z-index: 5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: #8090a8;
  letter-spacing: 0.4px;
}


/* ================================================================
   SCREEN 4 — RIGHTS & CONSEQUENCES
================================================================ */
#s4 {
  background: linear-gradient(135deg, #080f1e 0%, #0a1220 50%, #08101e 100%);
}

.rights-left,
.rights-right {
  position: absolute;
  top: 155px;
  width: 910px;
  height: 848px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
}

.rights-left {
  left: 28px;
}

.rights-right {
  right: 28px;
}

.rights-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 1px solid rgba(204, 0, 0, 0.18);
}

.rights-card-photo {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 170px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.38) saturate(0.45);
}

.rights-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(8, 15, 30, 1) 100%);
}

/* coloured top accent bar */
.rights-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #cc0000;
  z-index: 5;
}

.rights-card:active {
  border-color: #cc0000;
  background: rgba(204, 0, 0, 0.08);
}

.rights-card-body {
  position: relative;
  z-index: 5;
  flex: 1;
  padding: 16px 20px 16px 190px;
}

.rights-card-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 4px;
  color: #cc0000;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 3px;
}

.rights-card-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 26px;
  letter-spacing: 2px;
  color: #f0f4f8;
  line-height: 1.1;
  margin-bottom: 3px;
}

.rights-card-desc {
  font-size: 20px;
  color: #8090a8;
  font-weight: 300;
  letter-spacing: 0.2px;
  line-height: 1.45;
}

.rights-card-icon {
  position: relative;
  z-index: 5;
  font-size: 30px;
  flex-shrink: 0;
  padding-right: 18px;
}

.rights-divider {
  position: absolute;
  left: 50%;
  top: 155px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(204, 0, 0, 0.22), transparent);
  z-index: 10;
}


/* ================================================================
   GLOBAL NAV
================================================================ */
.global-nav {
  position: absolute;
  top: 1024px;
  right: 30px;
  display: flex;
  gap: 10px;
  z-index: 50;
}

.gnav-btn {
  background: rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(204, 0, 0, 0.3);
  color: #8090a8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 8px 16px;
  cursor: pointer;
  text-transform: uppercase;
}

.gnav-btn:active,
.gnav-btn.active-screen {
  background: #1a3a6b;
  color: #f0f4f8;
  border-color: #cc0000;
}

.back-btn {
  position: absolute;
  top: 1024px;
  left: 30px;
  background: rgba(246, 250, 255, 0.85);
  border: 1px solid rgba(204, 0, 0, 0.3);
  color: #0c2346;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 8px 18px;
  cursor: pointer;
  display: none;
  text-transform: uppercase;
  z-index: 50;
}

.back-btn:active {
  background: #1a3a6b;
  color: #f0f4f8;
  border-color: #cc0000;
}

.back-btn.visible {
  display: block;
}


/* ================================================================
   POPUP / MODAL
================================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 15, 0.93);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.popup-overlay.open {
  display: flex;
}

.popup {
  background: linear-gradient(145deg, #0d1f3c, #08121e);
  border: 1px solid rgba(204, 0, 0, 0.4);
  width: 1240px;
  max-height: 920px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(204, 0, 0, 0.12), 0 0 120px rgba(0, 0, 0, 0.7);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 1158px;
  width: 62px;
  height: 42px;
  /* padding: 12px; */
  background: rgba(4, 9, 15, 0.509);
  border: none;
  color: #cc0000;
  font-size: 35px;
  border: solid 1px #cc0000;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  opacity: 0.7;
}

.popup-close:active {
  color: #f0f4f8;
  opacity: 1;
}

.popup-photo {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.popup-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0d1f3caf 20%, #0d1f3cd9 50%, #081832 100%);
}

.popup-photo-text {
  position: absolute;
  bottom: 20px;
  left: 42px;
  right: 76px;
}

.popup-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.popup-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 56px;
  color: #f0f4f8;
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.popup-accent {
  height: 2px;
  background: linear-gradient(to right, #5b0101, #ffffff, transparent);
}

.popup-body {
  padding: 24px 42px 42px;
}

.popup-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 22px;
  background: #000;
  border: 1px solid rgba(204, 0, 0, 0.22);
  overflow: hidden;
}

.popup-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.popup-video-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 2px;
  color: #8090a8;
  opacity: 0.6;
  margin-top: -18px;
  margin-bottom: 20px;
  font-style: italic;
}

.popup-desc {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.75;
  color: #8090a8;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.popup-desc strong {
  color: #f0f4f8;
  font-weight: 600;
}

/* 3-column stats row */
.popup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.popup-stat {
  background: rgba(204, 0, 0, 0.06);
  border: 1px solid rgba(204, 0, 0, 0.18);
  padding: 14px;
  text-align: center;
}

.popup-stat-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 44px;
  line-height: 1;
}

.popup-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 3px;
  color: #8090a8;
  text-transform: uppercase;
  margin-top: 2px;
}

/* fact list */
.popup-facts-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  letter-spacing: 5px;
  font-weight: 600;
  color: #e8a020;
  text-transform: uppercase;
  padding-left: 12px;
  margin-top: 35px;
  border-left: 3px solid #e8a020;
}

.fact-item {
  display: flex;
  gap: 12px;
  font-size: 18px;
  color: #f0f4f8;
  font-weight: 300;
  line-height: 1.5;
}

.fact-item::before {
  content: '▸';
  color: #cc0000;
  flex-shrink: 0;
  margin-top: 2px;
}

/* warning box */
.warning-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 13px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.4px;
  line-height: 1.6;
}

/* flash overlay */
.flash-overlay {
  position: fixed;
  inset: 0;
  background: #cc0000;
  z-index: 800;
  pointer-events: none;
  opacity: 0;
}

/* Popup body: media row */
.popup-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.popup-context-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border: 1px solid #880505cf;
  position: relative;
  overflow: hidden;
}

.popup-context-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: rgba(4, 9, 15, 0.75);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #8090a8;
  font-style: italic;
}

.popup-media-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* photo gallery row */
.popup-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.popup-photo-row-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(204, 0, 0, 0.15);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #060e1a;
}

::-webkit-scrollbar-thumb {
  background: #1a3a6b;
}

/* Video Section */
.video-play-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.video-play-wrapper video-player,
.video-play-wrapper video-skin,
.video-play-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-play-overlay:active {
  background: rgba(4, 9, 15, 0.5);
}

.video-play-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #cc0000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.video-play-overlay:active .video-play-btn {
  background: rgba(204, 0, 0, 0.35);
  transform: scale(0.93);
}

.video-play-icon {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 36px solid #cc0000;
}

.video-play-label {
  font-size: 18px;
  letter-spacing: 5px;
  color: #f0f4f8;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Top-right controls: mute button + prev/next nav */
.popup-nav-bar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

/* Mute button — sits to the left of the nav controls */
.popup-mute-btn {
  font-size: 22px;
  line-height: 1;
  background: rgba(4, 9, 15, 0.7);
  border: 1px solid rgba(204, 0, 0, 0.5);
  color: #f0f4f8;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.popup-mute-btn:active {
  background: rgba(204, 0, 0, 0.35);
}

/* Prev / counter / next sit together */
.popup-nav-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.popup-nav-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  letter-spacing: 2px;
  color: #f0f4f8;
  background: rgba(4, 9, 15, 0.7);
  border: 1px solid rgba(204, 0, 0, 0.5);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.popup-nav-btn:active {
  background: rgba(204, 0, 0, 0.35);
}

.popup-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.popup-nav-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 3px;
  color: #f0f4f8;
  background: rgba(4, 9, 15, 0.7);
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(204, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}