/* Global */
:root{
  --bg: #020202;
  --muted: #bdbdbd;
  --accent-red: #FF0000;
  --accent-red-dark: #CC0000;
  --white: #ffffff;
}

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

/* Ensure cursor is visible globally */
html, body {
  cursor: auto;
}

a, button, .cta, .btn, .stat-card, .nav-links a, input, textarea, select, .modal-close, .side-menu-trigger {
  cursor: pointer;
}

/* Clear text interaction defaults */
p, li, h1, h2, h3, h4, h5, h6, blockquote, span, .quote-text, .section-subtitle, .feature-sub {
  cursor: auto;
}

/* Ensure default cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  * { cursor: auto !important; }
  a, button, .cta, .btn, .stat-card, .nav-links a, input, textarea, select, .modal-close {
    cursor: pointer !important;
  }
  .custom-cursor {
    display: none !important;
  }
}

body{
  margin:0; font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background:var(--bg); color:var(--white); -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
/* Smooth scrolling and touch optimizations */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html{
  scroll-padding-top:72px; /* offset for fixed nav */
}
body{
  -webkit-overflow-scrolling:touch; /* smoother momentum scrolling on iOS */
  touch-action:pan-y; /* prefer vertical pan gestures */
}

.container{max-width:1200px; margin:0 auto; padding:0 40px}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}
.section-inner{padding:30px 0}
h1,h2,h3{font-family:Oswald, Inter, system-ui; letter-spacing:1px}
h1{font-size:clamp(28px, 6vw, 64px); line-height:1.02; margin:0}
h2{font-size:28px; margin:0 0 16px}
h3{font-size:18px; margin:0 0 8px}
.lead{color:var(--muted); font-weight:600}
.accent{color:var(--accent-red)}
.btn{display:inline-block; padding:14px 18px; border-radius:6px; text-decoration:none; font-weight:700; font-size:15px}
.btn-primary{background:var(--accent-red); color:#fff; transition: background 0.3s, color 0.3s;}
.btn-primary:hover{background:#FFD700; color:#000;}
.btn-outline{border:2px solid var(--accent-red); color:var(--accent-red); background:transparent}
.btn-ghost{background:transparent; color:var(--white); border:1px solid rgba(255,255,255,0.06)}
/* Nav */
.nav{position:fixed; top:0; left:0; right:0; z-index:1000; backdrop-filter:none; background:transparent; border-bottom:none; pointer-events:none}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:24px 40px; width:100%; pointer-events:auto}
.logo{font-weight:900; color:var(--white); text-decoration:none; font-family:Oswald; font-size:14px; transition:opacity 0.2s ease; opacity:1}
.nav-links{display:flex; gap:18px; align-items:center; margin-left:-30px; margin-right: 20%; transition:opacity 0.3s ease}

.side-menu-trigger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-right: 12px;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.side-menu-trigger:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.side-menu-trigger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 4px;
}

.side-menu-trigger span:nth-child(2) {
  width: 70%;
}

.side-menu-trigger:hover span:nth-child(2) {
  width: 100%;
}

/* Side Menu Panel - Tactical Redesign */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 100%;
  background: #020202;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  border-right: 1px solid rgba(255, 0, 0, 0.2);
  padding: 80px 50px;
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-menu-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 10;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.1;
}

/* Tactical Background Detail */
.side-menu-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent-red), transparent);
  box-shadow: 0 0 15px var(--accent-red);
  z-index: 11;
}

.side-menu-overlay.open .side-menu-content {
  transform: translateX(0);
}

.side-menu-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.side-menu-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.side-menu-header {
  margin-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 20px;
}

.side-menu-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #FFC000;
  letter-spacing: 4px;
  text-decoration: none;
  text-transform: uppercase;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-menu-link {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -1px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0.15;
  position: relative;
  white-space: nowrap;
  display: block;
  padding-top: 15px; /* Space for the absolute number above */
}

.side-menu-link::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-red);
  opacity: 0;
  transition: all 0.4s ease;
  transform: translateY(5px);
}

.side-menu-overlay.open .side-menu-link {
  opacity: 0.4;
}

.side-menu-link:hover {
  opacity: 1 !important;
  color: #fff;
}

.side-menu-link:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.side-menu-link.active {
  opacity: 1;
  color: #FFC000;
}

/* Staggered load animation */
.side-menu-overlay.open .side-menu-link {
  animation: slideInMenu 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInMenu {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 0.4; transform: translateX(0); }
}

.side-menu-link:nth-child(1) { animation-delay: 0.1s; }
.side-menu-link:nth-child(2) { animation-delay: 0.2s; }
.side-menu-link:nth-child(3) { animation-delay: 0.3s; }
.side-menu-link:nth-child(4) { animation-delay: 0.4s; }
.side-menu-link:nth-child(5) { animation-delay: 0.5s; }

.side-menu-footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.side-menu-status {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-menu-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-red);
  animation: blinkStatus 1.5s ease-in-out infinite;
}

@keyframes blinkStatus {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.2); }
}

.side-menu-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
  border-left: 1px solid rgba(255, 0, 0, 0.1);
  padding-left: 15px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.data-row span:last-child {
  color: var(--accent-red);
}

.side-menu-locs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .side-menu-content {
    width: 100%;
    padding: 60px 30px;
  }
  .side-menu-link {
    font-size: 32px;
  }
}

.nav-links a{color:var(--white); text-decoration:none; font-weight:600; opacity:0.85; transition:opacity 0.2s ease; text-shadow:0 1px 3px rgba(0,0,0,0.5); padding: 10px 5px; display: inline-block;}
.nav-links a:hover{opacity:1}

.nav-locations {
  display: flex;
  gap: 12px;
  color: var(--white);
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  opacity: 0.9;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-locations .separator {
  opacity: 0.3;
  font-weight: 300;
}

.nav-links .cta{
  background:var(--accent-red);
  color:#fff;
  border:0;
  padding:8px 18px;
  border-radius:8px;
  font-weight:800;
  text-decoration:none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  text-shadow: none;
  position: relative;
  overflow: hidden;
}
.nav-links .cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 215, 0, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
}
.nav-links .cta:hover::after {
  left: 150%;
  transition: left 0.8s ease-in-out;
}
.nav-toggle{display:none; border:0; background:transparent; cursor:pointer; pointer-events:auto; transition:opacity 0.3s ease; width: 44px; height: 44px; padding: 10px;}
.nav-toggle span{display:block; width:24px; height:2px; background:var(--white); margin:5px auto}
.nav-links.open{
  display:flex;
  position:fixed;
  top:60px;
  left:0;
  right:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.85));
  flex-direction:column;
  padding:20px;
  gap:15px;
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.nav-links.open a {
  padding: 12px 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
}
.nav-links.open .cta{width:100%; text-align:center; padding: 12px;}

/* Hero */
.hero{position:relative; min-height:95vh; display:flex; align-items:center; justify-content:center; overflow:hidden; cursor: auto !important}
.hero-video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; filter:contrast(1.1) saturate(0.8) brightness(0.85); opacity:1; cursor: auto !important}
.hero-overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.75) 100%); z-index:2; cursor: auto !important}
.hero-content{position:relative; z-index:3; text-align:center; padding:48px 0; width:100%; display:flex; align-items:center; justify-content:center; pointer-events:none; cursor: auto !important}

/* A single wrapper that contains the subtitle and the title. Keeping them
   in one fixed container preserves their relative spacing when we animate
   or reposition the hero heading via JavaScript. */
.hero-heading{
  position:fixed;
  top:50vh;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:4;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--hero-sub-gap, 4px);
  pointer-events:none;
  text-align:center;
  will-change: transform, opacity;
  backface-visibility:hidden;
  transform-style:preserve-3d;
  cursor: auto !important;
}

/* Scrolling hero title */
.hero-title-scroll{
  font-weight:900;
  font-size:clamp(48px, 12vw, 120px);
  margin:0;
  text-transform:uppercase;
  color:#FFC000;
  letter-spacing:2px;
  position:relative;
  z-index:3;
  white-space:nowrap;
  pointer-events:none;
  will-change: font-size;
  cursor: auto !important;
}

@media (max-width: 1024px) {
  .hero-heading {
    width: 100%;
    max-width: 100vw;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .hero-title-scroll {
    font-size: clamp(32px, 9vw, 65px);
    letter-spacing: 1px;
    white-space: normal;
    width: 90vw;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-scroll {
    position: relative;
    top: auto;
    transform: translate(0, 0);
    z-index: 3;
  }

  /* When users prefer reduced motion, keep the hero heading in normal
     flow instead of using a fixed, animated container. */
  .hero-heading{
    position:relative;
    top:auto;
    left:auto;
    transform:none;
    gap:var(--hero-sub-gap, 12px);
  }
}

/* Hero subtitle - appears above main title in document flow, but behind in z-order */
.hero-subtitle{
  font-weight:600;
  font-size:clamp(16px, 1.8vw, 20px);
  margin:0 0 8px 0;
  text-transform:uppercase;
  color:#FAF9F6;
  letter-spacing:3px;
  text-shadow:0 1px 2px rgba(0, 0, 0, 0.3);
  position:relative;
  z-index:1;
  white-space:nowrap;
  pointer-events:none;
  opacity: var(--subtitle-opacity, 1);
  transform: var(--subtitle-transform, translateY(0));
  will-change: transform, opacity;
  padding-bottom:8px;
  cursor: auto !important;
}

/* Hint GPU compositing for primary animated elements */
.hero-title-scroll, .marquee-track, .scroll-indicator {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Animated underline that draws from center outward */
.hero-subtitle::after{
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  width:0;
  height:2px;
  background:var(--accent-red);
  /* slowed by 25% */
  animation:subtitleUnderlineDraw 1.25s cubic-bezier(0.34, 1.56, 0.64, 1) 0.375s forwards;
  transform:translateX(-50%);
}

@keyframes subtitleUnderlineDraw{
  0%{
    width:0;
    left:50%;
    transform:translateX(-50%);
  }
  100%{
    width:100%;
    left:0;
    transform:translateX(0);
  }
}

/* Scroll indicator (animated mouse) */
.scroll-indicator{
  position:absolute;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  z-index:10;
  opacity:1;
  animation:scrollBounce 2s ease-in-out 0.5s infinite;
  cursor: auto !important;
}

.mouse{
  width:26px;
  height:40px;
  border:2px solid rgba(255,255,255,0.5);
  border-radius:14px;
  position:relative;
  display:flex;
  justify-content:center;
  padding-top:8px;
}

.wheel{
  width:3px;
  height:8px;
  background:rgba(255,255,255,0.7);
  border-radius:2px;
  position:relative;
  left:0;
  animation:scrollWheel 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  margin: 12px auto 0;
  display: block;
  animation: arrowPulse 2s ease-in-out 0.5s infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) translate(0, 0); }
  50% { opacity: 1; transform: rotate(45deg) translate(2px, 2px); }
}

@keyframes fadeInScroll{
  to{opacity:1}
}

@keyframes scrollWheel{
  0%{
    opacity:1; 
    transform:translateY(0);
  }
  50%{
    opacity:0.3; 
    transform:translateY(8px);
  }
  100%{
    opacity:0; 
    transform:translateY(12px);
  }
}

@keyframes scrollBounce{
  0%, 100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-10px)}
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: clamp(9px, 2.5vw, 11px);
    letter-spacing: 1px;
    white-space: normal;
    width: 90vw;
    margin: 0 auto;
    /* On small screens prefer slightly larger gap for readability */
    gap: var(--hero-sub-gap, 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-subtitle {
    position: relative;
    top: auto;
    transform: translateX(0);
    z-index: 3;
  }
  
  /* Disable underline animation for users who prefer reduced motion */
  .hero-subtitle::after {
    animation: none;
    width: 100%;
    left: 0;
    transform: translateX(0);
  }
  
  /* Hide scroll indicator for users who prefer reduced motion */
  .scroll-indicator {
    display: none;
  }
}

.hero-sub{color:var(--muted); margin:0 0 18px; font-size:18px}
.hero-cta{display:flex; gap:12px; justify-content:center; align-items:center}

/* Marquee: The Crimson Stream Redesign */
.marquee {
  position: relative;
  left: 0;
  right: 0;
  z-index: 500;
  background: #800000; /* Solid base */
  background: linear-gradient(180deg, #aa0000 0%, #800000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid #000;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.marquee::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 3px;
  pointer-events: none;
  z-index: 1;
}

.marquee-inner {
  display: flex;
  align-items: center;
  height: 37px;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.marquee-label {
  flex: 0 0 auto;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  padding: 2px 8px;
  margin-right: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.marquee-scroll {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

@media (max-width: 768px) {
  .marquee-scroll {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.marquee-text {
  display: inline-block;
  flex-shrink: 0;
  font-weight: 800;
  color: #fff;
  font-family: Inter, system-ui;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding-right: 80px;
  will-change: transform;
}

/* New Status Bar for NDA and System Info */
.marquee-status {
  background: transparent;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  margin-top: 3px;
}

.status-item {
  background: #000;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.status-item.active {
  color: var(--accent-red);
}

.status-dot {
  width: 4px;
  height: 4px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
  .marquee-inner { padding: 0 20px; height: 44px; }
  .marquee-status { padding: 0 20px; }
  .status-item:last-child { display: none; }
}

/* Slide will be disabled when users prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* Feature image full-width */
.feature-image{position:relative; overflow:hidden; padding:0; display:flex; justify-content:center; align-items:center}
.feature-image img{display:block; width:auto; height:auto; object-fit:contain; max-width:50%; margin:0}
@media (max-width: 780px){
  .feature-image img{height:220px}
}

/* Feature split: Cinematic Power Redesign */
.feature-split {
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #000;
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 45vw 55vw;
  width: 100%;
  height: 100vh;
  align-items: stretch;
}

.feature-left {
  padding: 0 60px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  position: relative;
  z-index: 2;
}

.feature-left .feature-title {
  color: var(--white);
  font-size: clamp(48px, 6vw, 110px);
  line-height: 0.85;
  margin: 0 0 24px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -4px;
}

.feature-left .feature-sub {
  color: #aaa;
  margin: 0 0 32px;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.5;
  max-width: 550px;
  font-weight: 300;
}

.feature-cta {
  display: flex;
  gap: 24px;
}

.feature-right {
  position: relative;
  overflow: hidden;
}

.image-reveal-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.feature-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-split:hover .feature-right img {
  transform: scale(1.025);
}

.image-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000 0%, transparent 15%);
  pointer-events: none;
}

@media (max-width: 1200px) {
  .feature-left { padding: 80px 40px; }
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .feature-split {
    min-height: auto;
  }
  .feature-left .feature-description {
    margin: 0 auto;
    font-size: 16px;
  }
  .feature-right {
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  .image-reveal-wrapper {
    height: auto;
  }
  .feature-right img {
    height: auto;
    width: 100%;
    object-fit: contain;
    display: block;
  }
  .image-overlay-gradient {
    background: linear-gradient(to top, #000 0%, transparent 20%);
  }
  .feature-left .feature-title {
    letter-spacing: -1px;
    font-size: clamp(36px, 10vw, 64px);
    line-height: 1;
  }
  .feature-left {
    text-align: center;
    align-items: center;
  }
  .feature-left .feature-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .feature-cta {
    justify-content: center;
  }
}

/* Typing Animation */
.feature-title[data-typing="true"] {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.1;
}

.feature-title[data-typing="true"] .typing-line {
  display: block;
  opacity: 0;
  position: relative;
  white-space: nowrap;
}

.feature-title[data-typing="true"] .typing-line.typing-active {
  opacity: 1;
}

.feature-title[data-typing="true"] .typing-line.typing-active::after {
  content: '|';
  color: var(--accent-red);
  font-weight: 700;
  animation: blink 0.8s infinite;
  margin-left: 4px;
}

.feature-title[data-typing="true"] .typing-line.typing-done {
  opacity: 1;
}

.feature-title[data-typing="true"] .typing-line.typing-done::after {
  display: none;
}

/* Nested word for inline color change */
.feature-title[data-typing="true"] .typing-word {
  display: inline;
}

/* Make "HESITATE" white during typing, then red when complete */
.feature-title[data-typing="true"] .typing-word[data-word="hesitate"] {
  color: var(--white);
}

.feature-title[data-typing="true"] .typing-line.typing-done .typing-word[data-word="hesitate"] {
  color: var(--accent-red);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 780px) {
  .feature-title[data-typing="true"] {
    align-items: center;
  }
}

/* Cost of Invisibility & Our Impact Statistics Sections */
.cost-invisibility,
.impact-section {
  background: #050505;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.08) 0%, transparent 70%),
    linear-gradient(rgba(255, 0, 0, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.18) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  padding: 0;
  position: relative;
}

.cost-invisibility .section-inner {
  padding-top: 20px;
  padding-bottom: 0;
}

.impact-section .section-inner {
  padding-top: 80px;
  padding-bottom: 60px;
}

@keyframes scanline {
  0% { left: -100%; }
  100% { left: 100%; }
}

.cost-invisibility::before,
.impact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.cost-title {
  font-weight: 900;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 30px;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
}

.cost-title span {
  display: block;
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--accent-red);
  margin-top: 10px;
  font-family: Inter, sans-serif;
}

.cost-invisibility .stats-grid,
.impact-section .stats-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.cost-invisibility .stat-card,
.impact-section .stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 1;
  padding: 50px 30px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(10px);
  overflow: hidden;
  border-radius: 0;
  z-index: 1;
}

/* Middle card highlight */
.cost-invisibility .stat-card:nth-child(2),
.impact-section .stat-card:nth-child(2) {
  background: rgba(170, 0, 0, 0.08);
  border-color: rgba(170, 0, 0, 0.5);
  z-index: 2;
  transform: scale(1.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 70px 40px;
}

/* Top accent line */
.cost-invisibility .stat-card::before,
.impact-section .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-red);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.cost-invisibility .stat-card:nth-child(2)::before,
.impact-section .stat-card:nth-child(2)::before {
  opacity: 1;
  box-shadow: 0 0 20px var(--accent-red);
}

.cost-invisibility .stat-card:hover,
.impact-section .stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.cost-invisibility .stat-card:nth-child(2):hover,
.impact-section .stat-card:nth-child(2):hover {
  transform: scale(1.12) translateY(-15px);
  background: rgba(170, 0, 0, 0.12);
  border-color: var(--accent-red);
}

.cost-invisibility .stat-card:hover::before,
.impact-section .stat-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px var(--accent-red);
}

.cost-invisibility .stat-number,
.impact-section .stat-number {
  font-size: 3.5vw;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1;
  font-family: Oswald, sans-serif;
  letter-spacing: -2px;
  position: relative;
  text-shadow: 0 0 40px rgba(170, 0, 0, 0.3);
}

@media (max-width: 1100px) {
  .cost-invisibility .stat-number,
  .impact-section .stat-number {
    font-size: 64px;
  }
}

.stat-description {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  max-width: 320px;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 1100px) {
  .cost-invisibility .stats-grid,
  .impact-section .stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .cost-invisibility .stat-card,
  .impact-section .stat-card {
    width: 100%;
    max-width: 500px;
    flex: none;
    padding: 60px 40px;
  }
  .cost-invisibility .stat-card:nth-child(2),
  .impact-section .stat-card:nth-child(2) {
    transform: scale(1);
  }
  .cost-invisibility .stat-card:nth-child(2):hover,
  .impact-section .stat-card:nth-child(2):hover {
    transform: translateY(-10px);
  }
}

.cost-quote {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 30px 40px 0;
  background: transparent;
  text-align: center;
  border: none;
}

.cost-quote .quote-text {
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  line-height: 1.4;
  font-weight: 500;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}

/* Power Quote Section (Cinematic Statement) */
.power-quote.cinematic-statement {
  width: 100%;
  padding: 60px 0;
  margin: 0;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.power-quote.cinematic-statement::after {
  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'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

/* Viewfinder Corners */
.viewfinder-corners {
  position: absolute;
  inset: 40px;
  pointer-events: none;
  z-index: 2;
}

.viewfinder-corners .corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(170, 0, 0, 0.4);
  transition: all 1s ease;
}

.viewfinder-corners .top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.viewfinder-corners .top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.viewfinder-corners .bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.viewfinder-corners .bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.power-quote.cinematic-statement:hover .corner {
  width: 50px;
  height: 50px;
  border-color: var(--accent-red);
}

.power-quote-inner {
  max-width: 1100px;
  width: 90%;
  padding: 80px;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.8) 0%, transparent 100%);
  position: relative;
  z-index: 3;
  border: none;
  box-shadow: none;
}

/* Meta Header */
.statement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

@keyframes pulse-red {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.quote-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-red);
  letter-spacing: 6px;
  margin-bottom: 24px;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.quote-status::before,
.quote-status::after {
  content: '';
  height: 1px;
  width: 40px;
  background: rgba(170, 0, 0, 0.3);
}

.power-quote .quote-text {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(10px);
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Oswald', sans-serif;
  color: #FFFFFF;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.1;
  text-align: center;
  margin: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
  position: relative;
}

.power-quote .quote-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(170, 0, 0, 0.1), transparent);
  transform: translateY(-100%);
  pointer-events: none;
  z-index: 4;
}

.power-quote .quote-text.quote-visible::after {
  animation: text-scan 4s infinite linear;
}

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

.power-quote .quote-text.quote-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.power-quote .quote-text .quote-em {
  color: var(--accent-red);
  font-style: normal;
}

/* Footer Elements */
.statement-footer {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.scan-line-horizontal {
  width: 180px;
  height: 2px;
  background: var(--accent-red);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.scan-line-horizontal::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: white;
  animation: scan-horizontal 3s infinite linear;
}

@keyframes scan-horizontal {
  0% { left: -100%; }
  100% { left: 100%; }
}

.footer-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 15px;
  display: inline-block;
  opacity: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

@media (max-width: 780px) {
  .power-quote.cinematic-statement {
    padding: 60px 0;
  }
  .viewfinder-corners {
    inset: 20px;
  }
  .power-quote-inner {
    padding: 40px 20px;
  }
  .power-quote .quote-text {
    font-size: 26px;
  }
  .meta-right {
    display: none;
  }

@media (max-width: 1024px) {
  .hero-split {
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 20px !important;
    text-align: center;
    height: auto !important;
    overflow: visible !important;
  }

  .hero-text {
    padding-right: 0 !important;
    margin-bottom: 20px;
    max-width: 100% !important;
    text-align: center !important;
  }

  .hero-text .fade-in-section {
    border-left: none !important;
    padding-left: 0 !important;
    text-align: center;
    margin-top: 30px !important;
  }

  .strategic-lead {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  .hero-image-container {
    padding: 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
  }

  /* Fix for the Alex Karp image on mobile/tablet */
  .hero-image-right {
    width: 100% !important;
    max-width: 380px !important; /* Slightly larger image for tablet */
    margin: 0 auto !important;
    float: none !important;
    mix-blend-mode: normal !important; /* Multiply can sometimes hide content on mobile Safari backgrounds */
  }

  /* Fix for the Alex Karp quote visibility on mobile/tablet */
  .karp-quote-overlay {
    position: relative !important;
    left: 0 !important;
    bottom: auto !important;
    top: 0 !important; /* Reset any negative offset */
    margin: 20px auto 40px !important; /* Push it down from the photo */
    max-width: 90% !important;
    padding: 25px !important;
    text-align: left;
    background: #ffffff !important; /* Pure white background */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    width: 100% !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
    border-left: 5px solid #FFD700 !important;
    opacity: 1 !important; /* Ensure it's not hidden by fade-in logic */
  }
}

/* Slide Layout Adjustments */
  .luxury-case, .fashion-case, .political-case, .high-trust-case, .education-case, .tech-case {
    padding: 60px 20px 0 !important;
  }

  .grid-details {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 10px !important;
    margin-bottom: 50px !important;
    padding: 20px 0 !important;
  }

  .grid-details > div {
    border-right: none !important;
    padding: 0 5px !important;
  }

  /* Typography Refinement */
  .case-slide section h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
  }

  .case-slide section h3 {
    font-size: 24px !important;
    padding-left: 15px !important;
    margin-bottom: 25px !important;
    line-height: 1.3 !important;
  }

  .case-slide section h4 {
    font-size: 20px !important;
    margin-bottom: 18px !important;
    line-height: 1.4 !important;
    margin-top: 10px !important; /* Spacing from Step label */
    position: relative;
    z-index: 5;
  }

  /* Intervention Steps Styling - Fixed Overlap for Mobile */
  .case-slide section div[style*="font-size: 80px"] {
    font-size: 44px !important;
    margin-bottom: 0px !important; /* Ensure they don't overlap to the top */
    line-height: 1.1 !important;
    display: block !important;
    opacity: 0.6 !important;
  }

  .case-slide section p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important; /* increased for clarity */
  }

  .case-slide section ul[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin-bottom: 60px !important;
  }

  /* Results Grid - Vertical Stack for clarity */
  .case-slide section div[style*="display: grid; grid-template-columns: 1fr 1fr;"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .case-slide section div[style*="padding: 40px;"] {
    padding: 25px !important;
  }

  .case-slide section .shimmer-gold[style*="font-size: 52px"], 
  .case-slide section div[style*="font-size: 52px"] {
    font-size: 38px !important;
  }

  /* Summary Box Optimization */
  .case-slide section div[style*="padding: 70px 50px;"] {
    padding: 40px 25px !important;
  }

  .case-slide section div[style*="font-size: 34px;"] {
    font-size: 24px !important;
  }

  .case-slide section div[style*="font-size: 21px;"] {
    font-size: 17px !important;
  }
}

/* Fade-in utility (used for feature image, text and power quote) */
.fade-in{opacity:0; transform:translateY(10px); will-change: opacity, transform;}
.fade-in.in-view{animation:fadeInSlow 1.4s cubic-bezier(.17,.67,.2,1) forwards}

@keyframes fadeInSlow{
  from{opacity:0; transform:translateY(10px)}
  to{opacity:1; transform:none}
}

@media (prefers-reduced-motion: reduce){
  .fade-in{opacity:1; transform:none; animation:none}
}

/* Skip link for keyboard users */
.skip-link{position: absolute; top: -40px; left: 0; background: rgba(0,0,0,0.75); color: var(--white); padding:8px 12px; border-radius:6px; z-index:60; text-decoration:none}
.skip-link:focus{top:10px; box-shadow:0 6px 30px rgba(0,0,0,0.6);}

/* Inline form message */
.form-message{padding:10px 12px; border-radius:8px; margin-top:10px; font-weight:700}

/* Archangel Section */
.archangel-feature {
  background: #000;
}

.archangel-image {
  filter: grayscale(0.2) contrast(1.1);
}


/* Philosophy */
.philosophy{background:linear-gradient(180deg, rgba(255, 0, 0, 0.03), transparent); margin-top:60px; padding-top:48px}
.philosophy h2{margin-bottom:12px}
.philosophy-points{list-style:none; padding:0; display:grid; gap:8px; margin-top:12px}
.philosophy-points li{background:linear-gradient(90deg, rgba(255, 0, 0, 0.03), transparent); padding:12px; border-radius:8px}

/* Who We Work With */
.who-we-work-with{background:#0a0a0a; padding:12px 0; border-top:none; border-bottom:none; position: relative;}

.who-we-work-with::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}
/* Tighten spacing inside the who-we-work-with section so the heading and
  subtitle sit closer to the borders and cards. These values are smaller
  than the global `.section-inner` spacing and only apply inside this
  section. */
.who-we-work-with .section-inner{padding-top:6px; padding-bottom:12px}
.who-we-work-with .section-subtitle,
.services .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle{
  color:var(--muted); 
  font-size:18px; 
  max-width:800px; 
  margin-bottom: 20px; 
  text-align:left; 
  line-height:1.6;
  margin-left: calc(50% - 50vw + 40px);
}
.clients-grid{display:grid; gap:24px; grid-template-columns:repeat(3, 1fr); margin-top:40px}
.client-card{padding:32px 24px; background:rgba(255,255,255,0.02); border-radius:12px; transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease; border:1px solid rgba(255,255,255,0.04); text-align:center}
.client-card:hover{transform:translateY(-8px) scale(1.02); box-shadow:0 12px 48px rgba(0,0,0,0.7); border-color:rgba(255, 0, 0, 0.3)}
.client-icon{width:64px; height:64px; margin:0 auto 20px; transition:transform .35s ease, color .35s ease; color:var(--white); display:flex; align-items:center; justify-content:center}
.client-icon svg{width:100%; height:100%; stroke:var(--white); transition:stroke .35s ease}
.client-card:hover .client-icon{transform:scale(1.15)}
.client-card:hover .client-icon svg{stroke:var(--white)}
.client-card h3{margin-bottom:12px; color:var(--white); font-size:20px; letter-spacing:0.5px}
.client-card p{color:var(--muted); font-size:15px; line-height:1.5}
.client-card h3::after{content:""; display:block; height:3px; width:40px; background:var(--accent-red); margin:12px auto 0; transition:width .35s ease}
.client-card:hover h3::after{width:60px}

.client-icon .rocket-flame path{fill:rgba(255, 0, 0, 0.95); transition:transform .35s ease, opacity .35s ease}
.client-icon .rocket-flame{transform-origin:center bottom; animation:flamePulse 1.1s ease-in-out infinite}
@keyframes flamePulse{0%{transform:translateY(0) scaleY(1); opacity:0.95}50%{transform:translateY(2px) scaleY(1.12); opacity:1}100%{transform:translateY(0) scaleY(1); opacity:0.95}}

.client-card:hover .rocket-flame{transform:scaleY(1.18)}

/* Rocket flame stroke lines */
.rocket-flame-line{stroke:var(--accent-red); stroke-width:2; stroke-linecap:round; opacity:0.95; transform-origin:center bottom; animation:flameLine 1s ease-in-out infinite}
@keyframes flameLine{0%{transform:translateY(0); opacity:0.9}50%{transform:translateY(3px); opacity:1}100%{transform:translateY(0); opacity:0.9}}
.client-card:hover .rocket-flame-line{transform:translateY(4px); opacity:1}

@media (prefers-reduced-motion: reduce){
  .rocket-flame-line{animation:none}
}

/* end rocket flame styles */

@media (prefers-reduced-motion: reduce){
  .client-icon .rocket-flame{animation:none}
}

/* Sectors We Work In - Hub & Spoke Redesign */
.sectors-section {
  background: var(--bg);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.sectors-hub-container {
  position: relative;
  width: 100%;
  max-width: 1100px; /* Increased width to prevent label cropping */
  height: 720px; /* Increased by 20% (600px -> 720px) */
  margin: 60px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255,0,0,0.03) 0%, transparent 70%);
  transform: translateZ(0); /* GPU promotion remains for performance */
  will-change: transform;
}

/* Mobile Tabular View Stylings */
.sectors-mobile-table {
  display: none; /* Hidden on desktop/tablet by default */
  width: 100%;
  margin: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 15px 10px;
  background: rgba(255, 0, 0, 0.05);
  border-bottom: 2px solid var(--accent-red);
}

.header-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-red);
  text-transform: uppercase;
}

.mobile-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  text-decoration: none; /* Removed link underline */
}

.sector-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.sector-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent-red);
  text-transform: uppercase;
  text-align: right;
  opacity: 0.8;
}

/* Switch visibility on tablet & mobile views - ensures table view for iPad/tablet as well */
@media (max-width: 1024px) {
  .sectors-hub-container {
    display: none !important;
  }
  .sectors-mobile-table {
    display: block !important;
  }
  .sectors-section {
    padding-bottom: 60px;
  }
  .mobile-table-header .header-label:last-child {
    padding-left: 25%;
  }
  .sector-status {
    padding-right: 20%;
    color: #4CAF50; /* Green color for active sectors */
    opacity: 1;
  }
}

/* Specific shift for iPad/Tablet status labels - move towards left by 25% */
@media (min-width: 768px) and (max-width: 1024px) {
  .sector-status {
    padding-right: 45%; /* Original 20% + 25% shift as requested */
  }
}

.sectors-hub-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  opacity: 0.1;
  animation: scanLineVertical 8s linear infinite;
  z-index: 0;
}

@keyframes scanLineVertical {
  0% { top: 0; }
  100% { top: 100%; }
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.spoke-line {
  stroke: var(--accent-red);
  stroke-width: 0.8;
  opacity: 0.75;
  stroke-dasharray: 1 3;
  animation: dashFlow 4s linear infinite;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke; /* Prevents stroke from getting weird when scaled */
  shape-rendering: optimizeSpeed;
}

@keyframes dashFlow {
  from {
    stroke-dashoffset: 20;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.hub-center {
  position: relative;
  z-index: 5;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, #ff0000 0%, #300 40%, #000 100%);
  border: 4px solid #000;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 0 40px rgba(255,0,0,0.6), 
    0 0 60px rgba(255, 0, 0, 0.4),
    0 0 20px var(--accent-red);
  animation: hubPulse 4s ease-in-out infinite;
  overflow: visible; /* Changed to allow glow spill */
}

.hub-inner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  mix-blend-mode: overlay;
  animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.hub-scanner-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px dashed var(--accent-red);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 2;
  animation: rotateHub 20s linear infinite;
}

.hub-deco-circle {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  z-index: 1;
}

@keyframes rotateHub {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hubPulse {
  /* only animate transform (GPU-friendly). box-shadow is kept static on the element to avoid expensive paint work. */
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Pause heavy animations while the user is actively scrolling to avoid jank */
body.is-scrolling .hub-center,
body.is-scrolling .sectors-hub-container::before,
body.is-scrolling .hub-scanner-ring {
  animation-play-state: paused !important;
  transition-duration: 0s !important;
}

/* Keep spoke lines visible but pause animation during scroll for better performance */
body.is-scrolling .spoke-line {
  animation-play-state: paused !important;
}

/* Hide only the inner glow during scroll as it's very expensive to render */
body.is-scrolling .hub-inner-glow {
  display: none !important;
}

/* Minor GPU hint: keep only the element(s) that animate continuously promoted */
.hub-center { will-change: transform; }
.hub-scanner-ring { will-change: transform; }
.hub-lines { will-change: opacity; }

.hub-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--white);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
  margin-bottom: -2px;
  display: block;           /* allow text-align to affect wrapped lines */
  text-align: center;      /* center multi-line text */
  line-height: 0.95;       /* tighten vertical rhythm for two lines */
  white-space: pre-line;   /* respect explicit line breaks (<br>) */
}

.hub-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--accent-gold, #FFC000);
  letter-spacing: 2px;
  font-weight: bold;
  opacity: 0.9;
  text-transform: uppercase;
}

.hub-node {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  /* restrict transitions to GPU-friendly properties only */
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.35s;
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0); /* Promotion */
}


.node-circle {
  width: 14px;
  height: 14px;
  background: #000;
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  position: relative;
}

.node-circle::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--white);
}

.hub-node:hover .node-circle {
  background: var(--accent-gold, #FFC000);
  border-color: var(--accent-gold, #FFC000);
  box-shadow: 0 0 30px rgba(255, 192, 0, 0.6);
}

.node-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: pre-wrap;
  text-align: center;
  line-height: 1.4;
  opacity: 0.7;
  padding: 4px 12px;
  /* removed backdrop-filter for scroll performance; increased opacity to preserve contrast */
  background: rgba(0,0,0,0.55);
  border-radius: 2px;
  transition: color 0.3s ease, opacity 0.3s ease, letter-spacing 0.3s ease;
  cursor: pointer;
} 

.hub-node:hover .node-label {
  opacity: 1;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
  border-left: 2px solid var(--accent-gold);
}

.sector-closer {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #666;
  letter-spacing: 4px;
  margin-top: 80px;
  opacity: 0.8;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .sectors-hub-container {
    height: auto;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
  }
  .hub-lines { display: none; }
  .hub-center { position: static; transform: none; margin-bottom: 20px; }
  .hub-node { position: static; transform: none; flex-direction: row; width: 100%; justify-content: flex-start; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .group-label { position: static; margin-bottom: 10px; width: 100%; text-align: left; padding: 0 20px; }
}

/* White Ribbon & Logo Carousel */
.white-ribbon {
  width: 100%;
  height: 150px;
  background: #FFFFFF;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* A single, razor-thin line for definition */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Pure, authoritative typography */
.ribbon-label {
  position: absolute;
  top: 12px; /* Moved up further by 15% */
  left: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 3px;
  z-index: 10;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Soft edge fades for the carousel */
.white-ribbon::before,
.white-ribbon::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 200px;
  z-index: 3;
  pointer-events: none;
}

.white-ribbon::before {
  left: 0;
  background: linear-gradient(to right, #FFFFFF 20%, transparent 100%);
}

.white-ribbon::after {
  right: 0;
  background: linear-gradient(to left, #FFFFFF 20%, transparent 100%);
}

.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: scroll 60s linear infinite;
  z-index: 2;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.carousel-track:hover {
  animation-play-state: paused;
}

.ribbon-logo {
  display: block;
  height: auto;
  max-height: 58px; /* Increased by 15% for better visibility */
  width: auto;
  flex-shrink: 0;
  margin-right: 120px;
  filter: grayscale(100%) brightness(1.1);
  opacity: 0.5; /* Increased from 0.3 to lit them up slightly */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.ribbon-logo-large {
  max-height: 84px; /* Increased by an additional 20% */
}

.ribbon-logo-rolex {
  max-height: 85px; /* Specifically larger for Rolex */
}

.ribbon-logo-mcdonalds {
  opacity: 0.6 !important; /* Increased by 20% (from 0.5 to 0.6) */
}

.ribbon-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Services */
.services{padding:0 0 40px; position: relative;}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.section-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.services .container{max-width:100%; margin:0 auto; padding:0 40px}
.services .section-inner{padding-top: 0; padding-bottom: 0;}
.services-header {
  margin-bottom: 40px;
}
.services-grid{display:grid; gap:24px; grid-template-columns:repeat(3, 1fr)}
.card{
  padding:40px; 
  background:rgba(255,255,255,0.01); 
  border-radius:12px; 
  transition:all .4s cubic-bezier(0.165, 0.84, 0.44, 1); 
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 8px 20px rgba(0,0,0,0.4);
  display: flex; 
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  background: radial-gradient(circle at top right, rgba(255,0,0,0.15), transparent 60%),
              radial-gradient(circle at bottom left, rgba(255,255,255,0.08), transparent 50%);
  opacity: 0.3;
  filter: blur(25px);
  transition: opacity 0.35s ease;
  pointer-events:none;
}
.card:hover{
  transform:translateY(-8px); 
  border-color:rgba(255,255,255,0.18);
  box-shadow:0 12px 30px rgba(0,0,0,0.5);
}
.card:hover::after {
  opacity: 0.5;
}
.card h3{margin-bottom:16px; color:var(--white); font-size: 20px; line-height: 1.3; font-weight: 700;}
.card p{color:var(--muted); font-size: 16px; line-height: 1.6; margin: 0;}

/* Founder Section: Minimalist Powerhouse Redesign (White Background) */
.founder {
  background: #ffffff;
  color: #000000;
  padding: 60px 0 0 0;
  position: relative;
}

.founder .section-inner {
  padding: 40px 0 20px 0;
}

.founder-minimal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

/* Profile Side */
.founder-image-container {
  position: relative;
  background: #f8f8f8;
  padding: 0;
}

.founder-img-minimal {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.founder-image-container:hover .founder-img-minimal {
  filter: grayscale(0%);
}

.founder-image-caption {
  background: #000000;
  color: #ffffff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Oswald, sans-serif;
}

.caption-label {
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.6;
}

.caption-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Philosophy Side */
.founder-kicker {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 14px;
  letter-spacing: 5px;
  color: var(--accent-red);
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.founder-headline {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 0 40px;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  color: #000000;
}

.bio-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 25px;
}

.bio-content strong {
  color: #000;
  font-weight: 700;
}

.philosophy-quote-box {
  border-left: 4px solid var(--accent-red);
  padding: 20px 0 20px 30px;
  margin-bottom: 40px;
  background: #fcfcfc;
}

.philosophy-quote-box p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: #000000;
  margin: 0;
}

.bio-conclusion p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 40px;
}

.brand-name-style {
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-block;
  color: #000;
}

.philosophy-pillars {
  display: flex;
  gap: 50px;
  margin-bottom: 30px;
  padding: 30px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pillar-num {
  font-family: Oswald, sans-serif;
  font-size: 12px;
  color: var(--accent-red);
  font-weight: 700;
}

.pillar-title {
  font-family: Oswald, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #000000;
}

@media (max-width: 1024px) {
  .founder-minimal-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .founder-profile-side {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .philosophy-details {
    grid-template-columns: 1fr;
  }
  .philosophy-pillars {
    flex-direction: column;
    gap: 20px;
  }
}

/* Stats */
.stats { padding: 0 0 35px 0; }
.stats .section-inner { padding-top: 10px; }

/* Magic Growth Message */
.magic-growth-message {
  margin-left: calc(50% - 50vw + 40px);
  margin-bottom: 60px;
  position: relative;
  padding: 20px 0;
  overflow: visible;
}

/* Reusable Shimmer Effect */
.shimmer-text {
  background: linear-gradient(90deg, #fff 0%, #fff 45%, #FFD700 50%, #fff 55%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: magicShimmer 5s infinite linear;
}

/* System Injection Animation */
.system-injection-container {
  margin-left: calc(50% - 50vw + 40px);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  position: relative;
  padding: 50px 0 40px 0;
  width: calc(100vw - 40px);
}

.magic-text {
  font-family: Oswald, sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.magic-subtext {
  font-family: Inter, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.injection-viz {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: 50px;
  overflow: visible;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.03);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

@media (max-width: 1024px) {
  .injection-viz {
    height: 200px;
    margin-top: 30px;
  }
  .system-injection-container {
    padding: 30px 0;
  }
}

.viz-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.injection-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.growth-path-baseline {
  opacity: 0.15;
}

.growth-path-active {
  stroke-dasharray: 90 100;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 1.5s; /* Starts after the red dot is established */
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.system-injection-container.in-view .growth-path-active {
  stroke-dashoffset: 0;
}

/* Injection Node - High Intensity */
.injection-node-group {
  transform-origin: 120px 120px;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67) 0.5s; /* Appears first */
}

.system-injection-container.in-view .injection-node-group {
  opacity: 1;
}

.injection-node {
  filter: drop-shadow(0 0 15px var(--accent-red));
}

.injection-pulse {
  transform-origin: 120px 120px;
  animation: smoothPulse 3s ease-out infinite;
}

.injection-pulse-delayed {
  transform-origin: 120px 120px;
  animation: smoothPulse 3s ease-out infinite 1.5s;
}

@keyframes smoothPulse {
  0% { transform: scale(1); opacity: 1; stroke-width: 1; }
  100% { transform: scale(8); opacity: 0; stroke-width: 0.2; }
}

/* Narrative Labels */
.viz-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0;
  transition: all 1s ease;
  z-index: 3;
}

.baseline-label {
  bottom: calc(32px + 15%);
  left: calc(5% - 4.8%);
}

.node-label {
  /* Place attachment point below the graph line */
  bottom: calc(30px - 10%);
  left: calc(140px + 10%);
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  font-weight: 700;
  z-index: 4;
}

.future-label {
  top: 20px;
  /* shift left by 3% from current right offset */
  right: calc(40px + 3%);
  color: #FFD700;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.system-injection-container.in-view .viz-label {
  opacity: 0.6;
}

.system-injection-container.in-view .future-label {
  opacity: 1;
  animation: labelPulse 2s infinite alternate;
}

/* Distributed Micro-Status Labels (Above the Curve) */
.trajectory-label {
  /* Shift left by 4.8% from the original 5% and keep the vertical offset */
  left: calc(5% - 4.8%);
  bottom: calc(55px + 15%);
  transition-delay: 3s;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
}

.dominance-label {
  left: 43%;
  bottom: 85px;
  transition-delay: 5.5s;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
}

.synchronized-label {
  right: 14%;
  bottom: 440px;
  transition-delay: 8s;
  color: #FFD700;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
}

.system-injection-container.in-view .trajectory-label,
.system-injection-container.in-view .dominance-label,
.system-injection-container.in-view .synchronized-label {
  opacity: 1;
  transform: translateY(-15px);
}

.system-injection-container.in-view .trajectory-label,
.system-injection-container.in-view .dominance-label,
.system-injection-container.in-view .synchronized-label {
  animation: labelPulse 2s infinite alternate;
}

/* The Dream Voyager (Airplane) Animation */
.airplane-group {
  offset-path: path('M0,120 L120,120 C170,120 220,115 260,80 S340,-50 400,-250');
  offset-rotate: auto;
  opacity: 0;
  filter: drop-shadow(0 0 5px #FFD700);
}

.system-injection-container.in-view .airplane-group {
  animation: flyAlong 8s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards; /* Starts after the red dot */
}

@keyframes flyAlong {
  0% { offset-distance: 0%; opacity: 0; }
  2% { opacity: 1; }
  100% { offset-distance: 90%; opacity: 1; }
}

@keyframes labelPulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.05); opacity: 1; }
}

/* Grid - Subtle & Static */
.viz-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

.viz-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 3;
}

.baseline-label {
  bottom: calc(32px + 15%);
  left: calc(5% - 4.8%);
  /* Present reality should be visible like the other graph labels */
  color: var(--accent-red);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  z-index: 4;
}

.node-label {
  /* Ensure any later definitions also place it below the curve */
  bottom: calc(30px - 10%);
  left: calc(160px + 10%);
  /* Match the PRESENT REALITY styling */
  color: #FFD700;
  /* Brighter glow (approx. +100%) */
  text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.9);
  filter: drop-shadow(0 0 30px rgba(255,215,0,0.9));
  mix-blend-mode: screen;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  z-index: 4;
}

.system-injection-container.in-view .viz-label {
  opacity: 0.4;
}

/* When the section enters view, make these graph labels fully visible and animated */
.system-injection-container.in-view .baseline-label,
.system-injection-container.in-view .trajectory-label,
.system-injection-container.in-view .dominance-label,
.system-injection-container.in-view .synchronized-label,
.system-injection-container.in-view .future-label {
  opacity: 1;
  transform: translateY(-15px);
  animation: labelPulse 2s infinite alternate;
}

.micro-texts {
  position: absolute;
  right: 15px;
  top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  z-index: 3;
}

.micro-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--white);
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.8s ease;
  font-weight: 400;
  letter-spacing: 1px;
}

.system-injection-container.in-view .micro-item:nth-child(1) { transition-delay: 3.2s; opacity: 0.3; transform: translateX(0); }
.system-injection-container.in-view .micro-item:nth-child(2) { transition-delay: 4.0s; opacity: 0.3; transform: translateX(0); }
.system-injection-container.in-view .micro-item:nth-child(3) { transition-delay: 4.8s; opacity: 0.3; transform: translateX(0); }

@keyframes magicShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Section title alignment for consistent left alignment */
.section-title{
  text-align: left;
  margin-left: calc(50% - 50vw + 40px);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 30px;
  color: var(--white);
}

/* Testimonial */
.testimonial{background:rgba(255, 0, 0, 0.02); border-top:1px solid rgba(255,255,255,0.03); border-bottom:1px solid rgba(255,255,255,0.03)}
.testimonial blockquote{padding:34px; margin:0; display:flex; gap:18px; align-items:flex-start}
.quote{width:36px; height:36px; flex:0 0 36px}
.quote-text{font-size:20px; color:var(--white); margin:0}
.testimonial cite{color:var(--muted); display:block; margin-top:12px}

/* Contact */
.contact {
  background: var(--white);
  color: #000;
  padding: 20px 0 40px; /* Reduced top padding by 50% (from 40px to 20px) */
  text-align: center;
}

.contact-header {
  max-width: 900px;
  margin: 0 auto 48px; /* Reduced margin-bottom by 20% (from 60px to 48px) */
}

.contact-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #B8860B; /* Gold-ish color from screenshot */
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-title-main {
  font-family: 'Georgia', serif; /* Serif font as seen in screenshot */
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.1;
  color: #000;
  margin-bottom: 30px;
  font-weight: 700;
}

.contact-description {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-description p {
  margin: 0;
}

.contact-cta-text {
  font-weight: 800;
  color: #000;
}

.contact-form-redesign {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; /* Reduced and unified gap */
  margin-bottom: 0;
}

.contact-form-redesign .form-group {
  margin-bottom: 12px; /* Unified vertical spacing between all boxes */
}

.contact-form-redesign input,
.contact-form-redesign textarea,
.contact-form-redesign select {
  width: 100%;
  padding: 18px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 0; /* Sharp edges for premium feel */
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #000;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* Add custom arrow for select */
.contact-form-redesign select {
  background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 25px) calc(1em + 5px), calc(100% - 20px) calc(1em + 5px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact-form-redesign input:focus,
.contact-form-redesign textarea:focus,
.contact-form-redesign select:focus {
  outline: none;
  border-color: var(--accent-red);
}

.contact-form-redesign .highlight,
.form-control.highlight {
  border-color: var(--brand-gold) !important;
  box-shadow: 0 0 25px rgba(255, 192, 0, 0.4), inset 0 2px 4px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease;
}

/* Phone Input Styling */
.iti {
  width: 100%;
  display: block;
}

.iti__country-list {
  background-color: #fff;
  color: #000;
  border: 1px solid #ddd;
  font-family: 'Inter', sans-serif;
}

.iti__selected-flag {
  background-color: #f9f9f9;
  border-right: 1px solid #ddd;
}

.contact-form-redesign input[type="tel"] {
  padding-left: 52px !important;
}

.form-actions-centered {
  margin-top: 40px;
}

.form-note {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
  letter-spacing: 0.5px;
  display: block;
  text-align: center;
}
@media (min-width: 769px) {
  .form-note { white-space: nowrap; }
}

.btn-primary-large {
  background: #02002f;
  color: #fff;
  padding: 20px 60px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-primary-large:hover {
  background: #FFC000;
  color: #02002f;
  transform: scale(1.05);
}

.btn-submitted {
  background: #050505 !important;
  color: #333 !important;
  opacity: 0.5;
  pointer-events: none;
  transform: none !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-title-main {
    font-size: 36px;
  }
}

/* Footer */
.footer{background: #02002f; border-top:1px solid rgba(255,255,255,0.03); min-height: 200px; padding: 40px 0; display: flex; align-items: center; justify-content: center; margin-top:0px}
.footer-inner{display:flex; flex-direction: column; gap:24px; align-items:center; justify-content:center; width: 100%; text-align: center;}
.footer-contact-info { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-contact-info a { color: var(--white); text-decoration: none; }
.footer-social-icons { display: flex; gap: 20px; }
.footer-social-icons a { color: var(--white); opacity: 0.7; transition: opacity 0.3s ease; }
.footer-social-icons a:hover { opacity: 1; }
.copyright { font-size: 12px; opacity: 0.5; margin-top: 10px; }
.brand{color:#FFC000; font-weight:900; font-family:Oswald; font-size:14px; text-transform:uppercase; letter-spacing:1px}
.socials .social{padding:8px 10px; border-radius:6px; background:rgba(255,255,255,0.02); color:var(--white); text-decoration:none; font-weight:700}

/* Responsive */
@media (max-width: 1000px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .clients-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 780px){
  .nav-inner {
    justify-content: space-between;
    padding: 10px 12px;
    height: 60px; /* Force consistent height */
  }
  
  .nav-links {
    display: flex;
    gap: 12px !important;
    margin: 0 !important;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }

  /* Hide textual nav links on mobile, only show trigger and CTA (and specific extra links) */
  .nav-links a:not(.cta):not(.hero-fade) {
    display: none !important;
  }

  /* Specific styling for hero-fade links on mobile to show below CTA */
  .nav-links a.hero-fade {
    display: flex !important;
    position: absolute !important;
    right: 12px !important;
    font-size: 11px !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    opacity: 0.8;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 998 !important;
    color: #ffffff !important;
    pointer-events: auto !important;
    text-align: right;
  }

  /* Vertical Stacking Positions */
  .nav-links a.hero-fade[href*="#services"], 
  .nav-links a.hero-fade:nth-of-type(1) { top: 60px !important; }
  .nav-links a.hero-fade[href*="#clients"], 
  .nav-links a.hero-fade:nth-of-type(2) { top: 84px !important; }
  .nav-links a.hero-fade[href*="events.html"], 
  .nav-links a.hero-fade:nth-of-type(3) { top: 108px !important; }

  .side-menu-trigger {
    margin-right: 0 !important;
    position: relative;
    z-index: 1001;
  }

  .nav-links .cta {
    padding: 8px 16px !important;
    font-size: 11px !important;
    border-radius: 4px;
    background: var(--accent-red) !important;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: auto; /* Push to right */
    white-space: nowrap;
  }

  /* Ensure the absolute logo doesn't conflict or is re-positioned */
  .nav-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 11px !important; /* Smaller text for compact mobile view */
    letter-spacing: 1.5px !important; /* Tighter letter-spacing */
    white-space: nowrap !important;
    font-weight: 900 !important;
    text-align: center !important;
  }

  .nav-locations{display:none}
  .display-h1, .hero-split h1 { text-align:center !important; font-size: 32px !important; line-height: 1.0 !important; margin: 0 auto 20px !important; letter-spacing: -0.5px !important; }
  .section-label { text-align: center !important; margin: 0 auto 15px !important; font-size: 11px !important; }
  .who-we-work-with h2, .section-title, .section-subtitle { text-align:center; margin-left:0; }
  .nav-toggle{display:none !important}
  .services-grid{grid-template-columns:1fr}
  .clients-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr}
  .hero-content{padding:85px 0}
  .marquee{position:relative}
}

/* Small fancy touches */
.stat-value{position:relative}
.hero-title .accent{display:inline-block; transform-origin:center; transition:transform .45s cubic-bezier(.17,.67,.2,1)}
.card h3::after{content:""; display:block; height:4px; width:36px; background:var(--accent-red); margin-top:8px; transition:width .35s ease}
.card:hover h3::after{width:60px}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-inner{animation:none}
  *{transition:none}
}

/* -------------------------------
   Content protection utilities
   - Disable text selection globally (except form fields)
   - Replace text cursor with default to discourage copying
   - Invisible ::selection so accidental highlights don't show
   - Overlay message that appears briefly when a copy/select/cut/paste/contextmenu is attempted
   ------------------------------- */
html, body, body * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Keep inputs and textareas selectable and editable */
input, textarea, select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Hide visible selection highlight */
::selection { background: transparent; color: inherit; }
::-moz-selection { background: transparent; color: inherit; }

/* Content protection overlay */
#content-protection-overlay{
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%) translateY(-10px);
  background:rgba(0,0,0,0.82);
  color:var(--white);
  padding:10px 14px;
  border-radius:8px;
  font-weight:700;
  letter-spacing:0.2px;
  z-index:99999;
  pointer-events:none;
  opacity:0;
  transition:opacity .22s ease, transform .22s ease;
}
#content-protection-overlay.show{ opacity:1; transform:translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce){
  #content-protection-overlay{ transition:none; }
}

/* Custom Cursor */
.custom-cursor {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: width 0.2s cubic-bezier(0.23, 1, 0.32, 1), height 0.2s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease, border 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
}

.custom-cursor.visible {
  opacity: 1;
}

/* Premium Hover State for Nav and Buttons */
.custom-cursor.nav-hover {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  /* Removed mix-blend-mode switch to prevent rendering stutters */
}

.custom-cursor.nav-hover::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body:active .custom-cursor {
  transform: translate(-50%, -50%) scale(0.8);
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

.black-ribbon {
  background: #02002f;
  padding: 15px 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1000;
}

.black-ribbon a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.black-ribbon a:hover {
  color: var(--accent-red);
  letter-spacing: 4px;
}

.white-label-divider {
  width: 100%;
  height: 150px;
  background: #FFFFFF;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.media-carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  flex-shrink: 0;
  animation: scroll 60s linear infinite;
  position: relative;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.media-carousel-track:hover {
  animation-play-state: paused;
}

.media-logo {
  display: inline-block;
  height: auto;
  max-height: 80px;
  width: auto;
  flex-shrink: 0;
  margin-right: 120px;
  filter: grayscale(100%) contrast(1.2);
  opacity: 0.6;
  transition: all 0.5s ease;
  /* Prevent vanishing on iPad */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

@media (max-width: 1024px) {
  .media-logo {
    margin-right: 60px;
    max-height: 60px;
  }
  .media-logo-large {
    max-height: 100px;
  }
  .white-label-divider {
    height: 100px;
  }
}

.media-logo-large {
  max-height: 160px;
}

.media-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}


/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
  background: rgba(73, 73, 73, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Momentum scroll for iOS */
  overscroll-behavior: contain;      /* Prevent scroll propagation to body */
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10002;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  opacity: 1;
  color: var(--accent-red);
}

.modal-content {
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.modal-content h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--accent-red);
}

.modal-content p {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 15px;
}

.modal-content .success-icon {
  font-size: 50px;
  color: #8dffde;
  margin-bottom: 20px;
  display: block;
  text-align: center;
}



/* Mobile & Tablet Fixes for Architecture of Dreams Section */
@media (max-width: 1024px) {
  .system-injection-container {
    padding: 20px 0 80px 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .magic-text {
    font-size: clamp(24px, 8vw, 36px);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    line-height: 1.2;
  }

  .magic-subtext {
    font-size: 14px;
    text-align: center;
    padding: 0 25px;
    margin: 0 auto 40px auto;
    max-width: 100%;
  }

  .injection-viz {
    height: 220px;
    margin-top: 280px; /* Increased to prevent curve from overlapping subtext on mobile/tablet */
    width: 100%;
    border-left: none;
    border-right: none;
    background: rgba(255,255,255,0.02);
  }

  .viz-label {
    font-size: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .synchronized-label {
    bottom: 130%;
    right: 17.95%;
    font-size: 10px;
  }

  .trajectory-label {
    bottom: 85px;
    left: 5%;
    font-size: 10px;
  }

  .future-label {
    top: -20px;
    right: 5%;
  }

  .dominance-label {
    bottom: 70%;
    left: 47.8%;
    transform: translateX(-50%);
  }

  .node-label {
    bottom: 15px;
    left: 30%;
    transform: translateX(-50%);
    text-align: center;
    width: auto;
  }

  .baseline-label {
    bottom: 55px;
    left: 5%;
    transform: none;
  }
  
  .injection-svg {
    overflow: visible;
  }
}

/* Tablet/iPad specific adjustment for the Architecture of Dreams section */
@media (min-width: 768px) and (max-width: 1024px) {
  .future-label {
    right: 12%; /* Moved left by 5% from the previous 7% */
  }
  .dominance-label {
    left: 52.8%; /* Moved left by 5% from the previous 57.8% */
  }
  .synchronized-label {
    bottom: 140%; /* Moved up by 10% from the 130% mobile/tablet default */
  }
}
