/* ================================================================
   STAGE.CSS - Consolidated CSS for stage6.htm
   Generated: 2025-12-12
   
   Source files (in cascade order):
   1. global.css
   2. newgen-core.css
   3. newgen-nav.css
   4. custom_2.css
   5. nexus-extras.css
   6. custom-deploy-final-1.css
   7. newgen-works.css
   8. v3-core.css
   
   Excluded (kept separate):
   - style3.css (Canvas theme base)
   - mobile-nav-fix.css (mobile navigation system)
================================================================ */


/* ================================================================
   FROM: global.css
================================================================ */

/* ================================================================
   FONT APPLICATION
================================================================ */
/*
saira-stencil-one
comforter-brush
mansalva
alumni-sans-inline-one
odibee-sans
offside
harmattan
k2d
lexend-exa
ntr
pragati-narrow
portlligat-sans

subImpact: Odibee Sans


*/
:root {
  --hero-title: 'Comforter Brush';
  --hero-title-2: 'Mansalva';
  --hero-title-3: 'Alumni Sans Inline One';
  --hero-title-4: 'Odibee Sans';
  --hero-title-5: 'Offside';
  
  --main-text: 'Pragati Narrow';  
}


body {
  font-family: var(--main-text), sans-serif;
  letter-spacing: 0.03em;
  background-color: #0a0b0c
}

h1, h2, h3, h4,
.v3-hero-main-title,
.callout-title {
 /*  font-family: var(--font-test), sans-serif;   */
font-family: var(--hero-title), sans-serif;
}



.v3-hero-main-title-2 {
font-family: var(--hero-title-2), sans-serif;
}

.v3-hero-main-title-3 {
font-family: var(--hero-title-3), sans-serif;
}

.v3-hero-main-title-4 {
font-family: var(--hero-title-4), sans-serif;
}

.v3-hero-main-title-5 {
font-family: var(--hero-title-5), sans-serif;
}






/* TANK OVERRIDE - NAV COLOR FIX */
:root {
  --accent-color: #00D4FF;
}

/* Override any nav item styles from style_2.css */
nav ul li a.active,
nav ul li.current a,
nav ul li.current-menu-item a,
nav ul li a:hover {
  color: var(--accent-color) !important;
}

#header::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #00D4FF;
}

/* Tank Override - Remove header line */
#header_wrap {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* NAV right-border cleanup: remove borders (no spacing changes) */
.is-expanded-menu .full-header #logo,
.is-expanded-menu .full-header .primary-menu .menu-container,
#header.full-header #logo,
.full-header .primary-menu .menu-container {
  border-right: 0 !important;
}


/* ================================================================
   FROM: newgen-core.css
================================================================ */

:root {
  --header-height: 112px;
  --color-accent: #00d4ff;
  --color-pink: #ff69b4;

  /* Navigation timing + accent placement */
  --nav-bg-fade: 3000ms;
  --nav-bg-delay: 1350ms;
  --nav-accent-fade: 3500ms;
  --nav-accent-delay: 2150ms;
  --nav-switch-gap: 500ms;
  --nav-accent-color: var(--color-accent);
  --nav-accent-width: 2px;
  --nav-blur: 0px;
  --nav-saturation: 100%;

  /* Hero defaults */
  --hero-bg-opacity: 0;
  --hero-bg-scale: 1.1;
  --hero-bg-scale-final: 1.1;
  --hero-bg-blur: 8px;
  --hero-bg-drop-vh: 2.2;
  --hero-bg-drop-initial: 0svh;
  --spotlight-y: 0px;
  --hero-bg-drop-final: calc(var(--hero-bg-drop-vh) * 1svh);
  --hero-bg-drop-final-abs: var(--hero-bg-drop-final);
  --hero-bg-drop: var(--hero-bg-drop-initial);
  --hero-bg-drop-cover: max(var(--hero-bg-drop-initial), var(--hero-bg-drop-final));
  --hero-bg-bleed: max(4svh, calc(var(--hero-bg-drop-cover) + var(--hero-bg-blur) + 8px));
  --hero-bg-image: none;
  --hero-top-trim-px: 0px;
  --hero-top-extra-svh: 4svh;
  --hero-min-height-svh: 56;
  --hero-bg-position: center center;
  --hero-bg-size: cover;
  --hero-bg-duration: 3000ms;
  --hero-bg-ease: cubic-bezier(.25,.46,.45,.94);
  --hero-text-opacity: 0;
  --hero-text-y: -30px;
  --hero-text-duration: 1200ms;
  --hero-text-ease: cubic-bezier(.25,.46,.45,.94);

  /* Engineered hero height + scroll behavior */
  --hero-height-max-svh: 56;
  --hero-height-min-svh: 44;
  --hero-height-map-factor: 1.25;
  --hero-exit-threshold: 0.3;

  --preloader-fade-duration: 1000ms;
  --preloader-delay-before-hero: 300ms;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

body.stretched.dark.side-push-panel {
  background: #0a0a0c;  color: #dedede;
}

#nav-accent {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--nav-accent-color, #00d4ff);
  z-index: 1200;
  pointer-events: none;
  transition: width 1.2s ease-in-out;
}

body.content-ready.nav-accent-ready #nav-accent {
  width: 100%;
}

body.engineered-mode #wrapper,
body.engineered-mode #content,
body.engineered-mode #content-wrap,
body.engineered-mode #page-title {
  background: transparent !important;
}

body.engineered-mode #header,
body.engineered-mode #header-wrap {
  border: 0 !important;
  box-shadow: none !important;
}

body.engineered-mode #header:after,
body.engineered-mode #header-wrap:after {
  content: none !important;
  display: none !important;
}

/* CRITICAL: Content background driven by CSS variables */
/* NOTE: Stage takes ownership of structural content rules so we don't depend on Canvas framework defaults (style3.css). See DEVELOPMENT_LOG.md for details. */
#content {
  position: relative;
  background-color: var(--content-bg-color, var(--cnvs-body-bg));
}
#content .content-wrap {
  position: relative;
  overflow: hidden;
  padding-top: var(--content-pad-top, 0.5rem);
  padding-bottom: var(--content-pad-bottom, 1rem);
  padding-left: 0;
  padding-right: 0;
  background-image: var(--content-bg-image, none);
  background-repeat: var(--content-bg-repeat, no-repeat);
  background-size: var(--content-bg-size, cover);
  background-position: var(--content-bg-position, center top);
  background-color: var(--content-bg-color, transparent);
}

#content .content-wrap p {
  line-height: var(--content-line-height, var(--cnvs-line-height-content));
}

/* Nav container padding */
#header #header-wrap .container {
  padding-left: 64px;
  padding-right: 64px;
}

/* Preloader styling */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transition: opacity var(--preloader-fade-duration) ease,
              visibility var(--preloader-fade-duration) ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  display: none !important;
}

.preloader-content {
  text-align: center;
  color: var(--color-accent);
}

.preloader-spinner,
.loader {
  --loader-c1: var(--color-accent);
  --loader-c2: var(--color-accent);
  --loader-c3: var(--color-accent);
  width: 140px;
  aspect-ratio: 1;
  position: relative;
  margin: 0 auto 24px;
  border-radius: 50%;
}

.preloader-spinner::before,
.loader::before,
.preloader-spinner::after,
.loader::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 3px solid rgba(0, 212, 255, 0.35);
  border-top-color: var(--color-accent);
  animation: spin 1s linear infinite;
}

.preloader-text {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.preloader-progress {
  margin-top: 15px;
  font-size: 12px;
  opacity: 0.8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#header #header-wrap {
  position: relative;
}

#header.border-full-header #header-wrap {
  border-bottom: 0 !important;
}

/* Nav accent line animations */
#header #header-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--nav-accent-width);
  background: var(--nav-accent-color);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    opacity var(--nav-accent-fade) cubic-bezier(.25,.46,.45,.94) var(--nav-accent-delay),
    transform var(--nav-accent-fade) cubic-bezier(.25,.46,.45,.94) var(--nav-accent-delay);
  pointer-events: none;
  z-index: 1;
}

body.nav-line-top #header #header-wrap::before {
  opacity: 1;
  transform: scaleX(1);
  transition-timing-function: cubic-bezier(.17,.67,.39,.95);
}

body.nav-line-bottom #header #header-wrap::before {
  opacity: 0;
  transform: scaleX(0);
  transition-timing-function: cubic-bezier(.6,.05,.55,.95);
}

#header #header-wrap .nav-glass {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.35);
  backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  transition: opacity var(--nav-bg-fade) ease var(--nav-bg-delay);
  pointer-events: none;
  z-index: -1;
}

#header #header-wrap > .container,
#header #header-wrap .header-row {
  position: relative;
  z-index: 1;
}

body.sticky-header #header #header-wrap .nav-glass {
  opacity: 1;
}

body.sticky-header #header #header-wrap {
  background: rgba(14, 16, 22, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Callout highlight boxes */
.callout-highlight {
  position: relative;
  padding: 1.8rem 2.2rem;
  margin: 2rem 0;
  background: rgba(5, 9, 18, 0.82);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  color: #f2f5ff;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.85);
}

.callout-highlight p {
  margin-bottom: 0.6rem;
  color: inherit;
}

.callout-highlight .callout-title {
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.callout-highlight .callout-quote {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}


/* ================================================================
   FROM: newgen-nav.css
================================================================ */

/* Dropdown menu enhancements */
.primary-menu .menu-container .menu-item.has-submenu > .submenu {
  position: absolute;
  padding: 8px 0;
  /* Move it up more significantly */
  top: calc(100% - 25px);
  left: -10px;
  min-width: 240px;
  margin: 0;
  list-style: none;
  /* Match the callout styling exactly */
  background: rgba(5, 9, 18, 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.85);
  z-index: 1201;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-menu .menu-container .menu-item.has-submenu > .submenu::before {
  content: '';
  position: absolute;
  top: -10px; /* Matches the negative margin we added */
  left: 0;
  right: 0;
  height: 20px; /* Matches the top padding */
  background: transparent;
}

.primary-menu .menu-container .menu-item.has-submenu:hover > .submenu,
.primary-menu .menu-container .menu-item.has-submenu:focus-within > .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Enhance the submenu items for better visibility */
.primary-menu .submenu .submenu-item {
  margin: 2px 8px;
  border-radius: 6px;
  overflow: hidden;
}

.primary-menu .submenu .submenu-link {
  display: block;
  padding: 12px 16px;
  color: #f2f5ff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
}

.primary-menu .submenu .submenu-link:hover,
.primary-menu .submenu .submenu-link:focus {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-color);
  padding-left: 20px;
}

/* Add accent line animation on hover */
.primary-menu .submenu .submenu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.primary-menu .submenu .submenu-link:hover::before,
.primary-menu .submenu .submenu-link:focus::before {
  transform: scaleY(1);
}


/* ================================================================
   FROM: custom_2.css
================================================================ */

/* Neon Button System */
:root {
  --neon: #00D4FF;
  --sheen-dur: 1305ms;
  --sheen-stagger: 14ms;
  --sheen-delay: 80ms;
  --sheen-ease: cubic-bezier(.15,.90,.30,1);
}

/* Base button */
.neon-btn {
  background-color: var(--neon);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(0,0,0,0.10));
  border: 2px solid #3a3a3a;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transform-origin: center;
  z-index: 0;
  margin: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-size: 0.98rem;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.35),
    inset 0 -4px 12px rgba(0,0,0,0.35),
    0 4px 10px rgba(0,0,0,0.18);
}

/* Optional size overrides */
.neon-btn-sm { font-size: 0.82rem; padding: 7px 16px; }
.neon-btn-md { font-size: 0.98rem; padding: 11px 24px; }

/* Text wrapper */
.neon-btn .neon-label {
  display: inline-block;
  color: inherit;
  text-shadow:
    0 0 2px rgba(0,0,0,0.85),
    0 0 6px rgba(0,0,0,0.55);
  transform: none;
  transition: none;
}

/* Hover/focus text */
.neon-btn:hover .neon-label,
.neon-btn:focus .neon-label {
  color: #FFFFFF;
  text-shadow:
    0 0 2px rgba(0,0,0,0.9),
    0 0 8px rgba(0,0,0,0.6);
}

/* Sheen layers */
.neon-btn::after,
.neon-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 54%;
  pointer-events: none;
  transform: skewX(-25deg) translateX(-140%);
  will-change: transform;
  transition: transform var(--sheen-dur) var(--sheen-ease) var(--sheen-delay);
  background: linear-gradient(120deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 80%);
  opacity: .92;
}

.neon-btn::before {
  transition-delay: calc(var(--sheen-delay) + var(--sheen-stagger));
}

/* Hover IN – sweep */
.neon-btn:hover::after,
.neon-btn:focus::after {
  transform: skewX(-25deg) translateX(260%);
}

.neon-btn:hover::before,
.neon-btn:focus::before {
  transform: skewX(-25deg) translateX(260%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .neon-btn .neon-label { transition: none !important; transform: none !important; }
  .neon-btn::after, .neon-btn::before { transition: none !important; transform: none !important; }
}


/* ================================================================
   FROM: nexus-extras.css
================================================================ */

:root {
  --header-height: 112px;
  --nav-bg-scrolled: rgba(20,20,20,.55);
  --nav-blur: 6px;
  --hero-bg: url('/img/spotlight-bg.png');
  --bgY: 0px;
  --bgScaleX: 1;
  --bgScaleY: 1;
  --bgBlur: 0px;
  --nav-accent-size: 2px;
  --nav-accent-color: #00D4FF;
  --nav-accent-glow: 0 0 12px rgba(0,212,255,.55);
  --nav-accent-top: 1;
  --nav-accent-bottom: 0;
}

/* Smooth scroll + fixed-header anchor offset */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--header-height); }

.header-wrap-clone { display: none !important; }

.border-full-header #header-wrap,
#header #header-wrap,
#header,
#header:before,
#header:after,
#header #header-wrap:before,
#header #header-wrap:after {
  border: 0 !important;
  box-shadow: none !important;
}

#wrapper { padding-top: 0 !important; }

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

#header,
#header #header-wrap {
  transition: background-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}

/* Transparent at load */
#header #header-wrap {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Phase 1: top line fades out */
body.header-smoke-1 { --nav-accent-top: 0; }
body.header-smoke-1 #header #header-wrap::before {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Phase 2: smoky bg with blur */
body.header-smoke-2 #header #header-wrap {
  background: var(--nav-bg-scrolled) !important;
  backdrop-filter: blur(var(--nav-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(120%);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Phase 3: bottom line fades in */
body.header-smoke-3 { --nav-accent-bottom: 1; }

/* Top line (default visible) */
#header #header-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--nav-accent-size);
  background: var(--nav-accent-color);
  box-shadow: var(--nav-accent-glow);
  opacity: var(--nav-accent-top);
  transition: opacity .35s ease, visibility .35s ease;
}

/* Bottom line (default hidden; appears in Phase 3) */
#header #header-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-accent-size);
  background: var(--nav-accent-color);
  box-shadow: var(--nav-accent-glow);
  opacity: var(--nav-accent-bottom);
  transition: opacity .35s ease;
}

/* Hero smoked state */
body.header-smoked #header #header-wrap {
  background: rgba(20,20,20,0.75) !important;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

body.header-smoked #header #header-wrap .container {
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.3));
}

/* Force blur on transparent header */
body.header-smoked #header.transparent-header #header-wrap,
body.header-smoked #header #header-wrap {
  background: rgba(20,20,20,.55) !important;
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Glass layer stacking */
#header #header-wrap {
  position: relative;
}

#header #header-wrap > * {
  position: relative;
  z-index: 1;
}

/* Sticky header glass effect */
#header #header-wrap::before {
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

body.sticky-header #header #header-wrap::before {
  opacity: 1;
}

body.sticky-header #header #header-wrap .primary-menu a {
  color: #e8f4ff;
}

body.sticky-header #header #header-wrap .primary-menu a:hover {
  color: #00D4FF;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  #header #header-wrap::before {
    background: rgba(7,12,18,0.85);
  }
}

/* Global nav accent control */
body { --nav-accent-top: 0; --nav-accent-bottom: 1; }
body.sticky-header { --nav-accent-top: 1; --nav-accent-bottom: 0 !important; }

#header #header-wrap::before { opacity: var(--nav-accent-top) !important; }
#header #header-wrap::after { opacity: var(--nav-accent-bottom) !important; }

@media (prefers-reduced-motion: reduce) {
  #header, #header #header-wrap { transition: none; }
}


/* ================================================================
   FROM: custom-deploy-final-1.css
================================================================ */

/* GLOBAL VARIABLES */
:root {
  --header-height: 112px;
  --nav-blur: 14px;
  --nav-bg-scrolled: rgba(17, 22, 28, 0.75);
  --nav-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* RESET CONFLICTING STYLES */
#header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#header-wrap {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 1000;
}

/* Remove the header clone spacer */
.header-wrap-clone {
  display: none !important;
}

/* Add padding to wrapper to compensate for removed spacer */
#wrapper {
  padding-top: var(--header-height);
}

/* NAV ACCENT LINES */
/* TOP blue line - always visible */
#header-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #00D4FF;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.55);
  pointer-events: none;
  z-index: 2;
}

/* BOTTOM blue line - hidden */
#header-wrap::after {
  display: none !important;
}

/* BLUR GLASS LAYER */
.nav-glass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-bg-scrolled);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(140%);
  backdrop-filter: blur(var(--nav-blur)) saturate(140%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

/* SCROLL STATES */
body.sticky-header .nav-glass,
body.header-smoked .nav-glass,
body.header-smoke-2 .nav-glass {
  opacity: 1;
}

/* Add shadow when scrolled */
body.sticky-header #header-wrap,
body.header-smoked #header-wrap,
body.header-smoke-2 #header-wrap {
  box-shadow: var(--nav-shadow);
}

/* FIREFOX FALLBACK */
@supports not (backdrop-filter: blur(1px)) {
  .nav-glass {
    background: rgba(17, 22, 28, 0.65);
  }
}

/* Sticky nav glass across all pages */
body.sticky-header #header #header-wrap,
body.header-smoked #header #header-wrap,
body.header-smoke-2 #header #header-wrap {
  background: rgba(17, 22, 28, 0.75) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Sticky nav consistent glass */
body.sticky-header #header #header-wrap {
  background: rgba(14,16,22,.52);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  will-change: backdrop-filter, background-color;
}

/* Smooth in-page anchor scrolling */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Ensure anchors don't hide under fixed header */
:where([id]) { scroll-margin-top: calc(var(--header-height, 112px) + 12px); }

/* PRELOADER SYSTEM */
:root {
  --preloader-bg-color: rgba(0, 0, 0, 0.22);
  --preloader-bg-image: url('../img/hero_stripes_4_trans.png');
  --preloader-accent: #00d4ff;
  --preloader-fade-duration: 0.8s;
  --preloader-delay-before-hero: 300ms;
  --spinner-size: 50px;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--preloader-bg-color);
  background-image: var(--preloader-bg-image);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--preloader-fade-duration) ease,
              visibility var(--preloader-fade-duration) ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  display: none !important;
}

.preloader-content {
  text-align: center;
  color: var(--preloader-accent);
}

.preloader-spinner {
  width: var(--spinner-size);
  height: var(--spinner-size);
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-top: 3px solid var(--preloader-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.preloader-text {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.preloader-progress {
  margin-top: 15px;
  font-size: 12px;
  opacity: 0.8;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Nav smoke layering: glass below text & accent */
#header #header-wrap { position: relative; }
#header #header-wrap .nav-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#header #header-wrap > .container {
  position: relative;
  z-index: 2;
}
#header #header-wrap::before { z-index: 3; }


/* ================================================================
   FROM: newgen-works.css
================================================================ */

:root {
  --hero-bg-image: url('/img/spotlight-bg.png');
}


/* ================================================================
   FROM: v3-core.css
================================================================ */

:root {
  --v3-hero-height-svh: 35;
  --v3-hero-y-offset: -120px;
  --v3-hero-opacity: 1;
  --v3-hero-scale: 1;
  --v3-hero-blur: 0px;
  --v3-zoom-in-duration: 3.15s;
  --v3-zoom-out-duration: 1.76s;
  --v3-hero-exit-threshold: 0.16;
  --nav-accent-width: 2px;
  --nav-accent-color: #00d4ff;
}

/* Nav base reset for v3 pages */
body[class*="page-v3-"] #header #header-wrap::before,
body[class*="page-v3-"] #header[class] #header-wrap[class]::before {
  all: initial !important;
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: var(--nav-accent-width) !important;
  background: var(--nav-accent-color) !important;
  opacity: 0 !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: none !important;
  animation: none !important;
  z-index: 1 !important;
}

/* Nav glass for v3 pages */
body[class*="page-v3-"] #header #header-wrap .nav-glass {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
  opacity: 0 !important;
  transition: none !important;
  animation: none !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Nav glass base layer - prevents uneven blur */
body[class*="page-v3-"] #header #header-wrap .nav-glass::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(1, 2, 3, 0.65) !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* Nav animations - ONLY fire after content is ready */
body.content-ready.nav-line-top.sticky-header #header[class] #header-wrap[class]::before {
  animation: v3NavBarAppear 13s cubic-bezier(.17,.67,.39,.95) forwards !important;
  transition: none !important;
}

body.content-ready.nav-line-top.sticky-header #header #header-wrap .nav-glass {
  animation: v3NavSmokeAppear 11s ease forwards !important;
  transition: none !important;
}

@keyframes v3NavBarAppear {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes v3NavSmokeAppear {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.75;
  }
}

/* Hero structure */
.v3-engineered-hero {
  position: relative;
  min-height: calc(var(--v3-hero-height-svh) * 1svh) !important;
  height: auto !important;
  display: flex;
  align-items: center;
  overflow: visible !important;
  margin-top: var(--header-height) !important;
  margin-bottom: 0 !important;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  visibility: hidden;
  opacity: 0;
}

body.content-ready .v3-engineered-hero {
  visibility: visible;
  opacity: 1;
}

/* Hero background */
.v3-hero-bg {
  --hero-opacity: 0;
  --hero-scale: 1.3;
  --hero-blur: 8;
  --hero-brightness: 1;
  
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
  
  transform: translateX(-50%) translateY(var(--v3-hero-y-offset)) scale(var(--hero-scale));
  opacity: 0;
  visibility: hidden;
  filter: blur(calc(var(--hero-blur) * 1px)) brightness(var(--hero-brightness));
  
  object-fit: cover;
  object-position: center top;
  
  /* NO transitions until content is ready */
  transition: none;
  
  will-change: transform, opacity, filter;
}

/* Enable transitions and visibility only after content is ready */
body.content-ready .v3-hero-bg {
  visibility: visible;
  opacity: var(--hero-opacity);
  transition: 
    transform var(--v3-zoom-in-duration) cubic-bezier(.45,.05,.55,.95),
    opacity var(--v3-zoom-in-duration) cubic-bezier(.45,.05,.55,.95),
    filter var(--v3-zoom-in-duration) cubic-bezier(.45,.05,.55,.95),
    visibility 0s;
}

.v3-hero-bg.animate-in {
  --hero-opacity: 1;
  --hero-scale: 1;
  --hero-blur: 0;
  --hero-brightness: 1;
}

.v3-hero-bg.animate-out {
  --hero-opacity: 0.4;
  --hero-scale: 1.35;
  --hero-blur: 12;
  --hero-brightness: 0.6;
}

/* Hero content */
.v3-engineered-hero .container {
  padding-left: 0 !important;
  position: relative;
  z-index: 3;
  height: auto !important;
}

.v3-engineered-hero .row {
  height: auto !important;
  min-height: auto !important;
}

.v3-engineered-hero .col-lg-10 {
  height: auto !important;
  min-height: auto !important;
}

/* Override Bootstrap column constraints ONLY for main content */
.sub2-glass .col-lg-4,
.sub2-glass .col-lg-10,
.sub2-glass [class*="col-"] {
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Hero text */
.v3-hero-small-text {
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0;
  font-face: var(--hero-title-4);
}

body.content-ready .v3-hero-small-text {
  animation: v3TextFadeIn 2s ease-out 0.3s forwards;
}

.v3-hero-main-title {
  font-size: 4rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

body.content-ready .v3-hero-main-title {
  animation: v3TextFadeIn 2s ease-out 0.9s forwards;
}

.v3-hero-main-title .accent {
  color: #00d4ff !important;
}

.v3-hero-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 600px;
  opacity: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

body.content-ready .v3-hero-subtitle {
  animation: v3TextFadeIn 2s ease-out 1.5s forwards;
}

@keyframes v3TextFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero exit states */
.v3-engineered-hero.hero-exit .v3-hero-small-text,
.v3-engineered-hero.hero-exit .v3-hero-main-title,
.v3-engineered-hero.hero-exit .v3-hero-subtitle {
  opacity: 0.3;
}

/* Typography System for v3 pages */
body.page-v3-1 .lead,
body.page-v3-about .lead {
  font-size: 1.6rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 2rem !important;
}

body.page-v3-1 .body-copy,
body.page-v3-about .body-copy {
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

body.page-v3-1 .body-copy p:not(.lead),
body.page-v3-about .body-copy p:not(.lead) {
  margin-bottom: 1.5rem !important;
}

body.page-v3-1 .impact-copy,
body.page-v3-about .impact-copy {
  font-size: 1.35rem !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: -0.01em !important;
}

body.page-v3-1 .impact-copy .h3,
body.page-v3-about .impact-copy .h3 {
  font-size: 1.05rem !important;
  letter-spacing: 0.12em !important;
  color: #00d4ff !important;
  margin-bottom: 1.5rem !important;
  font-weight: 600 !important;
}

body.page-v3-1 .impact-copy .list-feature,
body.page-v3-about .impact-copy .list-feature {
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  letter-spacing: -0.01em !important;
}

body.page-v3-1 .callout-highlight,
body.page-v3-about .callout-highlight {
  padding: 3rem !important;
  background: rgba(0, 212, 255, 0.05) !important;
  border-left: 4px solid var(--color-accent) !important;
  border-radius: 0.5rem !important;
  margin: 3rem 0 !important;
}

body.page-v3-1 .callout-highlight .callout-title,
body.page-v3-about .callout-highlight .callout-title {
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #00d4ff !important;
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
}

body.page-v3-1 .callout-highlight .callout-quote,
body.page-v3-about .callout-highlight .callout-quote {
  font-size: 2rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.97) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
}

/* Layout helpers */
.container {
  max-width: 90vw !important;
  width: 90vw !important;
}

/* Content section container should also be wider */
#content .content-wrap .container {
  position: relative;
  max-width: 90vw !important;
  width: 90vw !important;
}

#header #header-wrap .container {
  max-width: none !important;
  width: calc(100% - 1rem) !important;
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
  padding-left: 2vw !important;
  padding-right: 2vw !important;
}

.sub2-glass {
  max-width: 86vw !important;
  width: 86vw !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 6rem !important;
  padding: 5.5rem !important;
}

.sub2-glass > *,
.sub2-glass h1,
.sub2-glass p,
.sub2-glass .body-copy,
.sub2-glass .impact-copy,
.sub2-glass .callout-highlight {
  max-width: 100% !important;
}

/* Dropdown Fixes */

/* Create invisible bridge to prevent gap */
body[class*="page-v3-"] #header .menu-container > li.has-submenu::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 16px;
  background: transparent;
  pointer-events: auto;
  z-index: 1;
}

/* Position dropdowns */
body.page-v3-1 #header .menu-container > li.has-submenu > .submenu {
  margin-top: 0.25rem !important;
  transform-origin: top center !important;
  transform: translateY(-8px) scale(0.98) !important;
  transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1),
              opacity 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) !important;
  opacity: 0 !important;
  display: none !important;
  pointer-events: none !important;
  min-width: 180px !important;
}

/* Show dropdown on hover */
body.page-v3-1 #header .menu-container > li.has-submenu:hover > .submenu {
  display: block !important;
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Style dropdowns */
body.page-v3-1 #header .submenu {
  background: rgba(1, 2, 3, 0.45) !important;
  backdrop-filter: blur(10px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(110%) !important;
  border: none !important;
  border-radius: 0.35rem !important;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.15) !important;
  padding: 0.5rem 0 !important;
}

/* Style dropdown items */
body.page-v3-1 #header .submenu-item > .submenu-link {
  color: rgba(255, 255, 255, 0.92) !important;
  padding: 0.6rem 1.35rem !important;
  font-size: 0.925rem !important;
  letter-spacing: 0.02em !important;
  transition: all 0.15s ease-out !important;
}

/* Dropdown item hover */
body.page-v3-1 #header .submenu-item > .submenu-link:hover {
  color: #00d4ff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateX(3px) !important;
}

/* Fix menu item opacity on hover */
body.page-v3-1 #header .menu-container > li.has-submenu:hover > .menu-link {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .v3-hero-main-title {
    font-size: 2.5rem;
  }
}


/* ================================================================
   X-CARD STYLING (replaces/enhances .sub2-glass)
================================================================ */

.x-card {
  /* Layout */
  max-width: 86vw !important;
  width: 86vw !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 2rem !important;
  padding: 5.5rem !important;
  
  /* Border & Corners */
  border: 2px solid #00d4ff !important;
  border-radius: 16px !important;
  
  /* Translucent Dark Background with Blur */
  background: rgba(10, 11, 12, 0.5) !important;
  backdrop-filter: blur(12px) saturate(105%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(105%) !important;
  
  /* Subtle shadow for depth */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  
  /* Smooth transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero-specific x-card styling */
.v3-engineered-hero .x-card {
  max-width: max-content !important;
  width: auto !important;
  margin-bottom: 0 !important;
  padding: 3rem 3.5rem !important;
  display: block !important;
  min-height: auto !important;
  height: auto !important;
}

/* Optional: subtle hover effect */
.x-card:hover {
  border-color: rgba(0, 212, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Ensure content inside has proper width */
.x-card > *,
.x-card h1,
.x-card p,
.x-card .body-copy,
.x-card .impact-copy,
.x-card .callout-highlight {
  max-width: 100% !important;
}

/* Override Bootstrap column constraints ONLY for main content */
.x-card .col-lg-4,
.x-card .col-lg-10,
.x-card [class*="col-"] {
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .x-card {
    padding: 3rem 2rem !important;
    border-radius: 12px !important;
    max-width: 94vw !important;
    width: 94vw !important;
  }
  
  .v3-engineered-hero {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
  }
  
  .v3-engineered-hero .x-card {
    padding: 2rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .x-card {
    padding: 2rem 1.5rem !important;
    border-radius: 10px !important;
    border-width: 1.5px !important;
  }
  
  .v3-engineered-hero {
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .v3-engineered-hero .x-card {
    padding: 1.75rem 1.25rem !important;
  }
}

/* ================================================================
   END OF CONSOLIDATED CSS
================================================================ */

/* =========================================================
   NAV LOGO OVERRIDE
   ========================================================= */


/* Sticky state cap */
.is-expanded-menu #header.sticky-header-shrink #header-wrap #logo img {
    height: auto;
    max-height: 28px; /* hard cap that actually works */
}

/* Breathing room above logo */
#header .header-row {
    padding-top: 4px;
}

/* === HARD LOGO SIZE LOCK === */
#logo img {
    height: 68px !important;
    width: auto !important;
    max-height: 68px !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

/* Page-specific override: reduce bottom gap between content and footer marquee on About page */
body.page-about .sub2-glass,
body.page-about .x-card {
  margin-bottom: 1.75rem !important;
}

/* Page-specific override: reduce bottom gap between content and footer marquee on Resume page */
body.page-resume .sub2-glass,
body.page-resume .x-card {
  margin-bottom: 2rem !important;
}

/* Page-specific override: reduce bottom gap between content and footer marquee on Showcase page */
body.page-showcase .sub2-glass,
body.page-showcase .x-card {
  margin-bottom: 2rem !important;
}