/*
 * NOVYRAX — Flagship Final Pass
 * Premium through restraint, not quantity.
 * Every property has a reason.
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500;1,6..72,600&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* ═══════════════════════════════════════════════════════════════════════════
   1. DESIGN SYSTEM — TOKENS
   Night is the flagship. Dusk & Day are intentional atmospheric shifts.
   All transitions interpolate simultaneously via CSS custom properties.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Typography — Modern, Stylish, High-Contrast Editorial Engineering */
  --font-headline: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-label:    'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  --font-mono:     'JetBrains Mono', 'IBM Plex Mono', monospace;
  --font-display:  'Space Grotesk', 'Inter', sans-serif;
  --font-cursive:  'Newsreader', 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* ── NIGHT (Default Flagship — Sleek Slate / Graphite) ── */
  --void:           #060608;
  --void-soft:      #09090f;
  --elevated:       #0e0f16;
  --signal:         #3B82F6;
  --signal-bright:  #60A5FA;
  --signal-glow:    rgba(59, 130, 246, 0.25);
  --signal-dim:     rgba(59, 130, 246, 0.08);
  --ember:          #3B82F6;
  --ember-dim:      rgba(59, 130, 246, 0.15);
  --text-hi:        #FFFFFF;
  --text-mid:       #E2E8F0;
  --text-lo:        #A0AEC0;
  --border:         rgba(255,255,255,0.08);
  --border-hi:      rgba(255,255,255,0.15);
  --border-signal:  rgba(59, 130, 246, 0.3);
  --card-bg:        rgba(255,255,255,0.032);
  --card-sheen:     rgba(255,255,255,0.06);
  --nav-bg:         rgba(6,6,8,0.85);

  /* Spacing & Radius */
  --nav-h:   68px;
  --r-card:  18px;
  --r-btn:   999px;

  /* Motion — easing curves from physics, not CSS defaults */
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* slight spring for micro-motion only */
  --ease-sine:   cubic-bezier(0.37, 0, 0.63, 1);

  /* Duration */
  --dur-instant: 80ms;
  --dur-fast:    160ms;
  --dur-med:     300ms;
  --dur-theme:   520ms;   /* cinematic theme transition */
}

/* ── DUSK — Deep navy, clean sapphire ambient studio ── */
[data-theme="dusk"] {
  --void:          #0B101C;
  --void-soft:     #111827;
  --elevated:      #182236;
  --signal:        #3B82F6;
  --signal-bright: #60A5FA;
  --signal-glow:   rgba(59, 130, 246, 0.3);
  --signal-dim:    rgba(59, 130, 246, 0.08);
  --ember:         #3B82F6;
  --ember-dim:     rgba(59, 130, 246, 0.15);
  --text-hi:       #FFFFFF;
  --text-mid:      #E2E8F0;
  --text-lo:       #A0AEC0;
  --border:        rgba(255,255,255,0.09);
  --border-hi:     rgba(255,255,255,0.18);
  --border-signal: rgba(59, 130, 246, 0.32);
  --card-bg:       rgba(255,255,255,0.055);
  --card-sheen:    rgba(255,255,255,0.09);
  --nav-bg:        rgba(11,16,28,0.86);
}

/* ── DAY — Warm architectural ivory & ochre interface ── */
[data-theme="day"] {
  --void:          #F4F1E9;
  --void-soft:     #EBE7DC;
  --elevated:      #FFFFFF;
  --signal:        #85441E;
  --signal-bright: #A35425;
  --signal-glow:   rgba(133, 68, 30, 0.2);
  --signal-dim:    rgba(133, 68, 30, 0.06);
  --ember:         #85441E;
  --ember-dim:     rgba(133, 68, 30, 0.12);
  --text-hi:       #20211F;
  --text-mid:      #4A4742;
  --text-lo:       #78716C;
  --border:        #D8D5CB;
  --border-hi:     rgba(32, 33, 31, 0.22);
  --border-signal: rgba(133, 68, 30, 0.35);
  --card-bg:       rgba(255,255,255,0.96);
  --card-sheen:    rgba(255,255,255,1.0);
  --nav-bg:        rgba(244, 241, 233, 0.95);
}


/* ═══════════════════════════════════════════════════════════════════════════
   CROSS-PAGE VIEW TRANSITIONS (Native CSS View Transition API)
   Opt-in across all same-origin HTML documents. Restrained 180ms crossfade.
   Progressive enhancement: unsupported browsers navigate normally with 0 delay.
   ═══════════════════════════════════════════════════════════════════════════ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 180ms cubic-bezier(0.16, 1, 0.3, 1) both vt-fade-out;
}

::view-transition-new(root) {
  animation: 180ms cubic-bezier(0.16, 1, 0.3, 1) both vt-fade-in;
}

@keyframes vt-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. CINEMATIC THEME TRANSITION
   All color-bearing properties animate simultaneously.
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--void);
  color: var(--text-hi);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Text Selection Allowed for Words Reading & Copying */
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;

  /* Cinematic theme transition — all surface colors move together */
  transition:
    background-color var(--dur-theme) var(--ease-sine),
    color            var(--dur-theme) var(--ease-sine);
}

/* Ensure all words and content across all pages are cleanly selectable and copyable */
p, h1, h2, h3, h4, h5, h6, span, li, dt, dd, td, th, div, article, section,
label, strong, em, b, i, blockquote, code, pre, small, input, textarea, .selectable, .copyable {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Interactive control buttons & icons prevent accidental UI drag highlight on click */
button, .btn, .theme-btn, .nav-burger, .badge-pill, .label, svg, .segmented-tab-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* High-Contrast Professional Text Selection Highlight */
::selection {
  background: rgba(59, 130, 246, 0.35) !important;
  color: inherit !important;
}
::-moz-selection {
  background: rgba(59, 130, 246, 0.35) !important;
  color: inherit !important;
}
[data-theme="day"] ::selection {
  background: rgba(37, 99, 235, 0.25) !important;
  color: inherit !important;
}
[data-theme="day"] ::-moz-selection {
  background: rgba(37, 99, 235, 0.25) !important;
  color: inherit !important;
}

/* Heavy Background Security: Shield Against Scraping via PDF Printing */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* Image & Media Dragging Protection (Prevents dragging assets off page) */
img, video, canvas, svg {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

:focus-visible {
  outline: 1.5px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   CREATIVE THEME ENHANCEMENTS — FLUID APERTURE, PILL INPUT & ORGANIC WAVES
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Hero Pill Bar (Interactive Architecture Assessment) */
.hero-pill-bar {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 0.375rem 0.375rem 0.375rem 1.125rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  max-width: 540px;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(223, 186, 115, 0.08);
  transition: border-color var(--dur-med) var(--ease-expo), box-shadow var(--dur-med) var(--ease-expo), transform var(--dur-fast) var(--ease-expo);
}

.hero-pill-bar:focus-within {
  border-color: rgba(223, 186, 115, 0.6);
  box-shadow: 0 8px 32px rgba(223, 186, 115, 0.16), 0 0 0 2px rgba(223, 186, 115, 0.25);
  transform: translateY(-1px);
}

[data-theme="day"] .hero-pill-bar {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(13, 21, 32, 0.15);
  box-shadow: 0 8px 28px rgba(13, 21, 32, 0.08);
}

[data-theme="day"] .hero-pill-bar:focus-within {
  border-color: #85441E;
  box-shadow: 0 10px 32px rgba(133, 68, 30, 0.18), 0 0 0 2px rgba(133, 68, 30, 0.2);
}

.hero-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DFBA73;
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-spring);
}

.hero-pill-bar:focus-within .hero-pill-icon {
  transform: rotate(15deg) scale(1.1);
  color: #F8FAFC;
}

[data-theme="day"] .hero-pill-icon {
  color: #85441E;
}

[data-theme="day"] .hero-pill-bar:focus-within .hero-pill-icon {
  color: #5C2E12;
}

.hero-pill-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-hi);
  min-width: 0;
  padding: 0.5rem 0;
}

.hero-pill-input::placeholder {
  color: var(--text-lo);
  font-size: 0.875rem;
  transition: opacity var(--dur-fast);
}

.hero-pill-input:focus::placeholder {
  opacity: 0.5;
}

.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #DFBA73 0%, #C99A46 100%);
  color: #060608;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(223, 186, 115, 0.35);
  transition: transform var(--dur-fast) var(--ease-expo), box-shadow var(--dur-fast) var(--ease-expo), filter var(--dur-fast);
}

.hero-pill-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(223, 186, 115, 0.55);
  filter: brightness(1.05);
}

.hero-pill-btn:active {
  transform: translateY(1px) scale(0.98);
}

[data-theme="day"] .hero-pill-btn {
  background: linear-gradient(135deg, #85441E 0%, #6E3917 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(133, 68, 30, 0.3);
}

[data-theme="day"] .hero-pill-btn:hover {
  box-shadow: 0 6px 20px rgba(133, 68, 30, 0.5);
}

@media (max-width: 520px) {
  .hero-pill-bar {
    padding: 0.375rem 0.375rem 0.375rem 0.875rem;
  }
  .hero-pill-input {
    font-size: 0.8125rem;
  }
  .hero-pill-btn {
    padding: 0.55rem 0.875rem;
    font-size: 0.75rem;
  }
  .hero-pill-btn span {
    display: none;
  }
}

/* 2. Liquid Aperture Organic Framing & Orbital Aura (Hero Right) */
.hero-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* Soft ambient radial aura */
.liquid-aperture-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 186, 115, 0.16) 0%, rgba(59, 130, 246, 0.08) 45%, transparent 70%);
  filter: blur(34px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  animation: aperturePulse 8s ease-in-out infinite alternate;
}

[data-theme="day"] .liquid-aperture-glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(223, 186, 115, 0.08) 50%, transparent 75%);
}

/* Organic liquid glass blob backdrop (reminiscent of SpacDyna reference) */
.liquid-aperture-blob {
  position: absolute;
  inset: 2%;
  border-radius: 42% 58% 65% 35% / 48% 38% 62% 52%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(223, 186, 115, 0.045) 50%, rgba(0, 0, 0, 0.25) 100%);
  border: 1px solid rgba(223, 186, 115, 0.18);
  box-shadow: 
    inset 0 0 35px rgba(223, 186, 115, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: 1;
  animation: liquidMorph 16s ease-in-out infinite alternate;
}

[data-theme="day"] .liquid-aperture-blob {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(235, 243, 255, 0.75) 50%, rgba(225, 235, 248, 0.6) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 
    inset 0 0 25px rgba(255, 255, 255, 0.9),
    0 20px 48px rgba(13, 21, 32, 0.08);
}

/* Orbital Rings */
.liquid-orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(223, 186, 115, 0.16);
  pointer-events: none;
  z-index: 1;
}

.liquid-orbital-ring.ring-1 {
  inset: -4%;
  animation: orbitRotate 36s linear infinite;
}

.liquid-orbital-ring.ring-2 {
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: orbitRotate 48s linear infinite reverse;
}

[data-theme="day"] .liquid-orbital-ring.ring-1 {
  border-color: rgba(37, 99, 235, 0.18);
}

[data-theme="day"] .liquid-orbital-ring.ring-2 {
  border-color: rgba(13, 21, 32, 0.08);
}

/* Orbital Astral Sparks — Precision Four-Pointed Star Nodes */
.liquid-orbital-node {
  position: absolute;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: rgba(223, 186, 115, 0.85);
  font-size: 13px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(223, 186, 115, 0.7));
  pointer-events: none;
  z-index: 1;
}
.liquid-orbital-node::before {
  content: '•';
  display: block;
}

.liquid-orbital-node.node-1 {
  top: 15%;
  left: 6%;
  animation: nodeFloat 6s ease-in-out infinite alternate;
}

.liquid-orbital-node.node-2 {
  bottom: 18%;
  right: 8%;
  color: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 0 8px rgba(223, 186, 115, 0.6));
  animation: nodeFloat 7s ease-in-out infinite alternate-reverse;
}

[data-theme="day"] .liquid-orbital-node.node-1,
[data-theme="day"] .liquid-orbital-node.node-2 {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #B8530E;
  filter: drop-shadow(0 0 5px rgba(184, 83, 14, 0.4));
}

/* Three.js Canvas sits cleanly in front of blob & rings */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px;
  display: block;
  z-index: 2;
}

/* 3. Mobile Fallback Emblem */
.hero-mobile-emblem {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  #heroCanvas {
    display: none;
  }
  .hero-mobile-emblem {
    display: flex;
  }
}

.emblem-inner-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(223, 186, 115, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  border-radius: 50%;
  pointer-events: none;
}

.emblem-svg {
  width: 160px;
  height: 160px;
  animation: emblemBob 5s ease-in-out infinite alternate;
}

.emblem-caption {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-top: 1rem;
}

/* 4. Organic Wave Dividers */
.section-wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 64px;
}

@media (min-width: 768px) {
  .section-wave-divider svg {
    height: 84px;
  }
}

@media (min-width: 1200px) {
  .section-wave-divider svg {
    height: 104px;
  }
}

.section-wave-divider .wave-layer-bg {
  fill: var(--void-soft);
  opacity: 0.6;
  transition: fill var(--dur-theme) var(--ease-sine);
}

.section-wave-divider .wave-layer-accent {
  fill: var(--void);
  transition: fill var(--dur-theme) var(--ease-sine);
}

[data-theme="day"] .section-wave-divider .wave-layer-bg {
  fill: #EAE5D9;
  opacity: 0.8;
}

[data-theme="day"] .section-wave-divider .wave-layer-accent {
  fill: #F4F1E9;
}

/* Keyframes for Creative Animations */
@keyframes liquidMorph {
  0% {
    border-radius: 42% 58% 65% 35% / 48% 38% 62% 52%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 55% 45% 38% 62% / 50% 64% 36% 50%;
    transform: rotate(3deg) scale(1.02);
  }
  100% {
    border-radius: 38% 62% 54% 46% / 42% 48% 52% 58%;
    transform: rotate(-2deg) scale(0.99);
  }
}

@keyframes aperturePulse {
  0% {
    transform: scale(0.94);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes nodeFloat {
  0% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
  100% { transform: translate(-6px, 6px); }
}

@keyframes emblemBob {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
  100% { transform: translateY(2px) rotate(-1deg); }
}

a        { cursor: pointer; text-decoration: none; color: inherit; }
button   { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Native OS pointer preserved for professional UX & zero dot lighting */
html.custom-cursor, html.custom-cursor body { cursor: auto !important; }
#site-cursor { display: none !important; }

/* ALWAYS keep text cursor active on inputs/textareas so users can see where they type */
input, textarea, select {
  cursor: text !important;
}

/* ── GUARANTEED 100% VISIBLE CURSOR ON PAYMENT & CHECKOUT MODALS ── */
.co-modal,
.co-modal *,
.co-modal-box,
.co-modal-box *,
#checkout-modal,
#checkout-modal *,
html.in-modal,
html.in-modal *,
html.ls-active,
html.ls-active * {
  cursor: default !important;
}

.co-modal input,
.co-modal textarea,
.co-modal select,
.co-modal-box input,
.co-modal-box textarea,
.co-modal-box select,
#checkout-modal input,
#checkout-modal textarea,
#checkout-modal select,
html.in-modal input,
html.in-modal textarea,
html.in-modal select {
  cursor: text !important;
}

.co-modal button,
.co-modal a,
.co-modal [role="button"],
.co-modal .btn,
.co-modal .co-tab-btn,
.co-modal [data-co-tab],
.co-modal [data-cycle-select],
.co-modal [data-curr-select],
.co-modal #co-btn-proceed-ls,
.co-modal #co-close-modal,
.co-modal-box button,
.co-modal-box a,
.co-modal-box [role="button"],
.co-modal-box .btn,
.co-modal-box .co-tab-btn,
#checkout-modal button,
#checkout-modal a,
#checkout-modal [role="button"],
#checkout-modal .btn,
#checkout-modal .co-tab-btn,
#checkout-modal [data-co-tab],
html.in-modal button,
html.in-modal a,
html.in-modal [role="button"],
html.in-modal .btn,
html.in-modal .co-tab-btn {
  cursor: pointer !important;
}

/* Hide synthetic reticle inside modals so standard operating system cursor is 100% clear */
html.in-modal #site-cursor,
html.ls-active #site-cursor {
  display: none !important;
}

/* Ensure embedded payment iframes (Lemon Squeezy overlay, Stripe, etc.) always have visible cursor */
iframe,
.lemonsqueezy-overlay,
.lemonsqueezy-overlay * {
  cursor: auto !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. TYPOGRAPHY — Hierarchy through contrast, not animation count
   ═══════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--text-hi);
  transition: color var(--dur-theme) var(--ease-sine);
}

h1 {
  font-size: clamp(1.85rem, 7.5vw, 5.75rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  word-break: break-word;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  overflow: hidden; /* enables line-clip reveal in JS */
}

h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  letter-spacing: -0.018em;
  font-weight: 600;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 62ch;
  transition: color var(--dur-theme) var(--ease-sine);
}

.label {
  font-family: var(--font-label, 'IBM Plex Mono', monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #DFBA73;
  background: rgba(223, 186, 115, 0.06);
  border: 1px solid rgba(223, 186, 115, 0.28);
  padding: 0.38rem 1.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  user-select: none;
  position: relative;
  transition: all var(--dur-med) var(--ease-expo);
}

.label:hover {
  border-color: rgba(223, 186, 115, 0.6);
  color: #FFFFFF;
  background: rgba(223, 186, 115, 0.12);
  box-shadow: 0 4px 16px rgba(223, 186, 115, 0.15);
  transform: translateY(-1px);
}

[data-theme="dusk"] .label {
  color: #CBD5E1;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="dusk"] .label:hover {
  border-color: rgba(148, 163, 184, 0.5);
  color: #FFFFFF;
  background: rgba(148, 163, 184, 0.14);
}

[data-theme="day"] .label {
  color: #85441E;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(133, 68, 30, 0.22);
  box-shadow: 0 2px 8px rgba(32, 33, 31, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="day"] .label:hover {
  border-color: rgba(133, 68, 30, 0.45);
  color: #5C2E12;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(133, 68, 30, 0.08);
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
}

.section {
  padding: 5.5rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.section-header h2,
.section-header h3 {
  margin-top: 0 !important;
  display: block !important;
  width: 100% !important;
}

@media (min-width: 1440px) {
  .section {
    padding: 6.5rem 0;
  }
  .section-header {
    margin-bottom: 4rem;
  }
}

@media (max-width: 599px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: 3.5rem 0; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. NAVIGATION — Material glass bar, precise hover state
   ═══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition:
    background-color var(--dur-theme) var(--ease-sine),
    border-color     var(--dur-theme) var(--ease-sine);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.25vw, 1.25rem);
}

/* Brand */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hi);
  line-height: 1;
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-expo);
  flex-shrink: 0;
}

.nav-brand:hover { opacity: 0.78; }

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

[data-theme="day"] .brand-mark svg path {
  fill: #20211F;
}
[data-theme="day"] .brand-mark svg polygon:first-of-type {
  fill: #85441E;
}
[data-theme="day"] .brand-mark svg polygon:last-of-type {
  fill: #B8530E;
}

/* Right group wraps links + theme switcher */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.9vw, 1.15rem);
  flex-shrink: 0;
}

.nav-right-group > nav {
  order: 1;
  display: inline-flex;
  align-items: center;
}

.nav-right-group > .nav-search-btn {
  order: 2;
  margin: 0;
}

.nav-right-group > .nx-theme-control {
  order: 3;
  margin: 0;
}

.nav-right-group > .nav-login-btn,
.nav-right-group > .nav-user-wrapper {
  order: 4;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.nav-right-group > .nav-burger {
  order: 5;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 0.9vw, 1.35rem);
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  padding: 0.375rem 0;
  transition: color var(--dur-fast) var(--ease-expo);
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-wrap: nowrap;
  display: inline-block;
}

/* Hover: surface rises — indicated by color shift & underline growth */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-expo);
}

.nav-link:hover         { color: var(--text-hi); }
.nav-link:hover::after  { transform: scaleX(1); }

/* Active: permanent underline */
.nav-link.active {
  color: var(--text-hi);
}
.nav-link.active::after {
  transform: scaleX(1);
  box-shadow: none;
}

/* Nav Login Button — Precision Aligned Header CTA */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  gap: 0.45rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 0 0.95rem;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    color var(--dur-fast) var(--ease-expo),
    border-color var(--dur-fast) var(--ease-expo),
    background-color var(--dur-fast) var(--ease-expo),
    box-shadow var(--dur-fast) var(--ease-expo);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.nav-login-btn:hover {
  color: var(--signal);
  border-color: var(--signal);
  background: var(--signal-dim);
  box-shadow: none;
}

.nav-login-btn .nav-login-icon {
  display: flex;
  align-items: center;
  color: var(--signal);
}

.nav-login-btn.authenticated {
  border-color: rgba(223, 186, 115, 0.35);
  background: rgba(223, 186, 115, 0.08);
  color: #F8FAFC;
  cursor: pointer;
}
.nav-login-btn.authenticated:hover,
.nav-login-btn.authenticated[aria-expanded="true"] {
  border-color: #DFBA73;
  background: rgba(223, 186, 115, 0.16);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(223, 186, 115, 0.2);
}

.nav-login-caret {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-lo);
}
.nav-login-btn[aria-expanded="true"] .nav-login-caret {
  transform: rotate(180deg);
  color: #DFBA73;
}

/* Nav User Account & Dropdown Popover */
.nav-user-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 135px;
  background: rgba(6, 9, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  z-index: 10000;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  animation: nvxDropdownFade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

.nav-user-dropdown.show {
  display: flex !important;
}

@keyframes nvxDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-user-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: #CBD5E1;
  font-family: var(--font-label, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.nav-user-logout-btn svg {
  color: #94A3B8;
  flex-shrink: 0;
  transition: color 0.16s ease, transform 0.16s ease;
}

.nav-user-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #F87171;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

.nav-user-logout-btn:hover svg {
  color: #F87171;
  transform: translateX(2px);
}

.nav-user-logout-btn:active {
  transform: translateY(0);
}

/* Day theme adapt */
[data-theme="day"] .nav-user-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="day"] .nav-user-logout-btn {
  color: #334155;
}

[data-theme="day"] .nav-user-logout-btn svg {
  color: #64748B;
}

[data-theme="day"] .nav-user-logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #DC2626;
}

[data-theme="day"] .nav-user-logout-btn:hover svg {
  color: #DC2626;
}

/* Mobile user sub-menu */
.mobile-user-submenu {
  padding: 0.35rem;
  margin: 0.4rem 0 0.8rem 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
}

/* Nav Search Button (Top Right Search Lens) */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hi);
  color: var(--text-hi);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    color var(--dur-fast) var(--ease-expo),
    border-color var(--dur-fast) var(--ease-expo),
    background-color var(--dur-fast) var(--ease-expo),
    box-shadow var(--dur-fast) var(--ease-expo),
    transform var(--dur-fast) var(--ease-expo);
}

.nav-search-btn:hover {
  color: #DFBA73;
  border-color: rgba(223, 186, 115, 0.45);
  background: rgba(223, 186, 115, 0.08);
  box-shadow: 0 0 16px rgba(223, 186, 115, 0.18);
  transform: scale(1.05);
}

.nav-search-btn svg {
  display: block;
  transition: transform var(--dur-fast) var(--ease-spring);
}

.nav-search-btn:hover svg {
  transform: rotate(12deg);
}

[data-theme="dusk"] .nav-search-btn:hover {
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.08);
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.2);
}

[data-theme="day"] .nav-search-btn {
  background: rgba(13, 21, 32, 0.04);
  border-color: rgba(13, 21, 32, 0.12);
  color: #0D1520;
}

[data-theme="day"] .nav-search-btn:hover {
  color: #85441E;
  border-color: #85441E;
  background: rgba(133, 68, 30, 0.08);
  box-shadow: 0 0 12px rgba(133, 68, 30, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────
 * GLOBAL ARCHITECTURE SEARCH MODAL OVERLAY
 * ───────────────────────────────────────────────────────────────────────── */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.5rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--ease-expo), visibility 220ms;
}

.search-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal-window {
  width: 100%;
  max-width: 640px;
  background: rgba(13, 17, 23, 0.94);
  border: 1px solid rgba(223, 186, 115, 0.32);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 32px rgba(223, 186, 115, 0.1);
  overflow: hidden;
  transform: translateY(-16px) scale(0.98);
  transition: transform 260ms var(--ease-expo);
}

.search-modal-backdrop.open .search-modal-window {
  transform: translateY(0) scale(1);
}

[data-theme="day"] .search-modal-backdrop {
  background: rgba(244, 241, 233, 0.85);
}

[data-theme="day"] .search-modal-window {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(133, 68, 30, 0.25);
  box-shadow: 0 20px 60px rgba(32, 33, 31, 0.12), 0 0 24px rgba(133, 68, 30, 0.06);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--border);
  gap: 0.875rem;
}

.search-modal-header .search-lens-icon {
  color: #DFBA73;
  flex-shrink: 0;
  display: flex;
}

[data-theme="day"] .search-modal-header .search-lens-icon {
  color: #85441E;
}

.search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-hi);
  min-width: 0;
}

.search-modal-input::placeholder {
  color: var(--text-lo);
  font-size: 0.9375rem;
}

.search-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-mid);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-fast);
}

.search-modal-close:hover {
  color: var(--text-hi);
  border-color: rgba(223, 186, 115, 0.4);
}

.search-modal-body {
  padding: 1.25rem 1.375rem 1.5rem;
  max-height: 55vh;
  overflow-y: auto;
}

.search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.search-quick-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-label);
  letter-spacing: 0.04em;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--dur-fast);
}

.search-quick-tag:hover {
  border-color: rgba(223, 186, 115, 0.45);
  color: #DFBA73;
  background: rgba(223, 186, 115, 0.08);
}

[data-theme="day"] .search-quick-tag:hover {
  border-color: #85441E;
  color: #85441E;
  background: rgba(133, 68, 30, 0.08);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast);
}

.search-result-item:hover {
  background: rgba(223, 186, 115, 0.06);
  border-color: rgba(223, 186, 115, 0.25);
  transform: translateX(4px);
}

.search-result-title {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-hi);
}

.search-result-cat {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #DFBA73;
}

[data-theme="day"] .search-result-cat {
  color: #85441E;
}

/* Mobile nav-login-btn preserved per user directive */

/* Theme Switcher — Hidden completely; theme automatically synchronizes with system preference */
.theme-switcher,
.theme-btn,
.theme-slider {
  display: none !important;
}

.theme-btn {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-lo);
  padding: 0.3rem 0.625rem;
  border-radius: var(--r-btn);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--dur-fast) var(--ease-expo);
}

.theme-btn:hover,
.theme-btn.active { color: var(--text-hi); }

/* Faceted Diamond Beacon (Replaces generic circular dot) */
.theme-dot {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  border-radius: 1.5px;
  flex-shrink: 0;
  transition: background-color var(--dur-theme), transform 0.22s ease, box-shadow 0.22s ease;
}
.night-dot { background: #94A3B8; }
.dusk-dot { background: #3B82F6; }
.day-dot { background: #10B981; }

.theme-btn:hover .theme-dot {
  transform: rotate(90deg) scale(1.2);
}

/* Sliding pill indicator */
.theme-slider {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(33.333% - 2px);
  background: var(--signal);
  opacity: 0.18;
  border-radius: var(--r-btn);
  transition:
    transform         var(--dur-med)   var(--ease-expo),
    background-color  var(--dur-theme) var(--ease-sine);
  z-index: 1;
  pointer-events: none;
}

[data-theme="night"] .theme-slider { transform: translateX(0%);    }
[data-theme="dusk"]  .theme-slider { transform: translateX(100%);   }
[data-theme="day"]   .theme-slider { transform: translateX(200%);   }

/* Hamburger */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-btn, 8px);
  border: 1px solid var(--border-hi);
  align-items: center;
  justify-content: center;
  color: var(--text-hi);
  transition:
    border-color     var(--dur-fast)  var(--ease-expo),
    background-color var(--dur-fast)  var(--ease-expo);
  flex-shrink: 0;
}

.nav-burger:hover {
  border-color: var(--border-signal);
  background: var(--signal-dim);
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .nav-inner { padding: 0 clamp(0.75rem, 1.5vw, 1.5rem); gap: 0.75rem; }
  .nav-right-group { gap: clamp(0.5rem, 1vw, 1.15rem); }
  .nav-links { gap: clamp(0.38rem, 0.75vw, 1rem); }
  .nav-link { font-size: 0.65rem; letter-spacing: 0.06em; }
}

@media (max-width: 1180px) and (min-width: 681px) {
  .nav-inner { padding: 0 1.5rem; }
  .nav-brand { display: inline-flex !important; } /* Visible on desktop and tablet */
  .nav-links { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav-login-btn { display: inline-flex !important; }
  .nav-search-btn { display: inline-flex !important; }
  .nav-right-group { gap: 0.75rem; align-items: center; }
}

@media (max-width: 680px) {
  .nav-brand { display: none !important; } /* Hidden ONLY at mobile breakpoints */
  .nav-inner {
    padding: 0 1rem;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .nav-links { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav-login-btn { display: inline-flex !important; }
  .nav-right-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .nav-right-group > nav {
    display: none !important;
  }
  .nav-right-group > .nav-search-btn {
    margin-left: auto;
    margin-right: 0.25rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. MOBILE OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-overlay {
  position: fixed; inset: 0;
  background: var(--void);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity          220ms var(--ease-expo),
    visibility       220ms var(--ease-expo),
    background-color var(--dur-theme) var(--ease-sine);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 980px) {
  .mobile-overlay {
    display: none !important;
  }
}
.mobile-nav-list     { list-style: none; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-headline);
  font-size: clamp(1.625rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--text-hi);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-expo);
}

.mobile-nav-link:hover { color: var(--signal); }

.mobile-nav-link .num {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  color: var(--signal);
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. CURSOR — Preserves standard OS cursor, eliminating custom dot lighting
   ═══════════════════════════════════════════════════════════════════════════ */
#site-cursor {
  display: none !important;
}

@media (pointer: coarse) {
  #site-cursor { display: none !important; }
}





/* ═══════════════════════════════════════════════════════════════════════════
   8. PAGE HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur-theme) var(--ease-sine);
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.hero-label-wrap {
  display: block !important;
  width: 100% !important;
  margin-bottom: 1.25rem !important;
  clear: both !important;
}

.page-hero .label,
.section-header .label {
  display: inline-flex !important;
  align-self: flex-start !important;
  margin-bottom: 1.25rem !important;
  flex-shrink: 0 !important;
}

.hero-label-wrap .label {
  margin-bottom: 0 !important;
}

.page-hero h1,
.pricing-title,
.portfolio-title,
.contact-hero-title {
  margin: 0 0 1.125rem 0 !important;
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.08 !important;
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

.label + h1,
.label + h2,
.label + h3,
.label + .contact-hero-title,
.label + .pricing-title,
.label + .portfolio-title {
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

.page-hero p {
  margin-top: 0;
  max-width: 68ch;
}

/* Generic Black & White Foundation Component (.hl-base) */
.page-hero h1 .hl-base,
.pricing-title .hl-base,
.portfolio-title .hl-base,
.contact-hero-title .hl-base {
  background: linear-gradient(135deg, #FFFFFF 15%, #F8FAFC 55%, #E2E8F0 90%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline !important;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.12));
}

[data-theme="day"] .page-hero h1 .hl-base,
[data-theme="day"] .pricing-title .hl-base,
[data-theme="day"] .portfolio-title .hl-base,
[data-theme="day"] .contact-hero-title .hl-base {
  background: linear-gradient(135deg, #090D16 0%, #0F172A 60%, #1E293B 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline !important;
  filter: none !important;
}

/* Default Fallback for page-hero h1 */
.page-hero h1 {
  background: linear-gradient(135deg, #FFFFFF 15%, #E2E8F0 50%, #94A3B8 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="day"] .page-hero h1 {
  background: linear-gradient(135deg, #090D16 15%, #0F172A 55%, #1E293B 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scoped Artistic Gradient Page Heroes (Light Mix of Black & White with Signature Color) */
body.page-services .page-hero h1 .hl-accent,
.page-services .page-hero h1 .hl-accent,
body.page-services .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 20%, #38BDF8 65%, #0284C7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
}
[data-theme="day"] body.page-services .page-hero h1 .hl-accent,
[data-theme="day"] .page-services .page-hero h1 .hl-accent,
[data-theme="day"] body.page-services .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #0F172A 0%, #0369A1 35%, #0284C7 70%, #0EA5E9 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
}

body.page-products .page-hero h1 .hl-accent,
.page-products .page-hero h1 .hl-accent,
body.page-products .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #FFFFFF 0%, #A7F3D0 20%, #10B981 65%, #059669 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}
[data-theme="day"] body.page-products .page-hero h1 .hl-accent,
[data-theme="day"] .page-products .page-hero h1 .hl-accent,
[data-theme="day"] body.page-products .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #0F172A 0%, #065F46 35%, #059669 70%, #10B981 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
}

body.page-pricing .pricing-title .hl-accent,
.pricing-hero .pricing-title .hl-accent,
body.page-pricing .pricing-title:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 20%, #DFBA73 65%, #D97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(223, 186, 115, 0.3));
}
[data-theme="day"] body.page-pricing .pricing-title .hl-accent,
[data-theme="day"] .pricing-hero .pricing-title .hl-accent,
[data-theme="day"] body.page-pricing .pricing-title:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #0F172A 0%, #78350F 35%, #B45309 70%, #DFBA73 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
}

body.page-careers .page-hero h1 .hl-accent,
.page-careers .page-hero h1 .hl-accent,
body.page-careers .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 20%, #DFBA73 65%, #C5A856 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(223, 186, 115, 0.3));
}
[data-theme="day"] body.page-careers .page-hero h1 .hl-accent,
[data-theme="day"] .page-careers .page-hero h1 .hl-accent,
[data-theme="day"] body.page-careers .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #0F172A 0%, #78350F 35%, #B45309 70%, #DFBA73 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
}

body.page-blog .page-hero h1 .hl-accent,
.page-blog .page-hero h1 .hl-accent,
body.page-blog .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFEDD5 20%, #FB923C 65%, #EA580C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(251, 146, 60, 0.3));
}
[data-theme="day"] body.page-blog .page-hero h1 .hl-accent,
[data-theme="day"] .page-blog .page-hero h1 .hl-accent,
[data-theme="day"] body.page-blog .page-hero h1:not(:has(.hl-accent)) {
  background: linear-gradient(135deg, #0F172A 0%, #7C2D12 35%, #C2410C 70%, #EA580C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
}

body.page-contact .page-hero h1 .hl-accent,
.page-contact .page-hero h1 .hl-accent,
.contact-hero-title .hl-accent {
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 20%, #DFBA73 65%, #C5A856 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(223, 186, 115, 0.3));
}
[data-theme="day"] body.page-contact .page-hero h1 .hl-accent,
[data-theme="day"] .page-contact .page-hero h1 .hl-accent,
[data-theme="day"] .contact-hero-title .hl-accent {
  background: linear-gradient(135deg, #0F172A 0%, #78350F 35%, #B45309 70%, #DFBA73 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
}

.portfolio-title .hl-accent,
.portfolio-title .hl-gold {
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 20%, #818CF8 60%, #C084FC 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.35));
}
[data-theme="day"] .portfolio-title .hl-accent,
[data-theme="day"] .portfolio-title .hl-gold {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 35%, #4338CA 70%, #6366F1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: none !important;
}



/* ═══════════════════════════════════════════════════════════════════════════
   9. BENTO GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.cta-grid > .card {
  grid-column: span 6;
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.grid > .col-6 {
  grid-column: span 6;
  margin-bottom: 0;
}

@media (max-width: 979px) {
  .cta-grid > .card,
  .grid > .col-6 {
    grid-column: span 12;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. CARDS — Physically suspended glass panels
    - transform set exclusively in JS (RAF physics)
    - CSS handles: material surface, border, shadow
    - NO conflicting CSS hover transforms (JS owns transform property)
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2.25rem 2rem;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,    /* top edge highlight */
    0 8px 32px rgba(0,0,0,0.28),             /* base shadow */
    0 1px 2px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;

  /* Transition: ONLY border and shadow. JS handles transform. */
  transition:
    border-color      var(--dur-med)   var(--ease-expo),
    box-shadow        var(--dur-med)   var(--ease-expo),
    background-color  var(--dur-theme) var(--ease-sine),
    backdrop-filter   var(--dur-theme) var(--ease-sine);
}

/* Card highlight removed to ensure 100% crystal text clarity without glare */
.card::before {
  display: none;
}

/* Top-edge signal line — always present but subtle */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  opacity: 0.2;
  pointer-events: none;
  transition:
    opacity var(--dur-med) var(--ease-expo),
    left    var(--dur-med) var(--ease-expo),
    right   var(--dur-med) var(--ease-expo);
}

/* Hover: specular activates, border sharpens, shadow deepens */
.card:hover {
  border-color: var(--border-signal);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 24px 56px rgba(0,0,0,0.48),
    0 0 36px var(--signal-dim);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 0.7;
  left: 0%; right: 0%;
}

.bento > .card {
  grid-column: span 12;
}

/* Specific bento column spans on desktop */
.bento > .card.col-4  { grid-column: span 4; }
.bento > .card.col-6  { grid-column: span 6; }
.bento > .card.col-8  { grid-column: span 8; }
.bento > .card.col-12 { grid-column: span 12; }

/* Grid spans */
.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 979px) {
  .bento > .card.col-4,
  .bento > .card.col-6,
  .bento > .card.col-8,
  .col-4, .col-6, .col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 1.6rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   10B. UNIVERSAL LEADERSHIP & FILTER TABS (Precision Liquid Glass)
   ═══════════════════════════════════════════════════════════════════════════ */
.leadership-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  margin: 1.5rem auto 2.25rem auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
              0 8px 30px -8px rgba(0, 0, 0, 0.35);
  max-width: 100%;
}

.leadership-tab-btn {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  white-space: nowrap;
}

.leadership-tab-btn:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.leadership-tab-btn.active {
  background: linear-gradient(180deg, rgba(223, 186, 115, 0.18) 0%, rgba(223, 186, 115, 0.06) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(223, 186, 115, 0.45);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
              0 4px 16px -2px rgba(0, 0, 0, 0.3);
}

.leadership-tab-btn .tab-count {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-mid);
  transition: all 0.22s ease;
}

.leadership-tab-btn.active .tab-count {
  background: rgba(223, 186, 115, 0.25);
  border-color: rgba(223, 186, 115, 0.5);
  color: #F3E5AB;
}

[data-theme="day"] .leadership-tabs {
  background: rgba(240, 244, 250, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
              0 8px 24px -8px rgba(15, 23, 42, 0.08);
}
[data-theme="day"] .leadership-tab-btn {
  color: #64748B;
}
[data-theme="day"] .leadership-tab-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.7);
}
[data-theme="day"] .leadership-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #B48A3C;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 14px rgba(180, 138, 60, 0.15);
}
[data-theme="day"] .leadership-tab-btn .tab-count {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
  color: #64748B;
}
[data-theme="day"] .leadership-tab-btn.active .tab-count {
  background: rgba(180, 138, 60, 0.15);
  border-color: rgba(180, 138, 60, 0.3);
  color: #8C6518;
}

@media (max-width: 640px) {
  .leadership-tabs {
    display: flex;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding: 4px;
    margin: 1.25rem 0 1.75rem 0;
    justify-content: flex-start;
  }
  .leadership-tabs::-webkit-scrollbar {
    display: none;
  }
  .leadership-tab-btn {
    flex-shrink: 0;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    gap: 0.35rem;
    white-space: nowrap;
  }
  .leadership-tab-btn .tab-count {
    padding: 0.1rem 0.35rem;
    font-size: 0.58rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   10C. UNIFIED ABOUT TEAM GRID (Deterministic Cross-Device Alignment)
   ═══════════════════════════════════════════════════════════════════════════ */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-top: 1.5rem;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .about-team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.team-member-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2.25rem 2rem;
  background: linear-gradient(170deg, #111116 0%, #070709 100%);
  border: 1px solid rgba(223, 186, 115, 0.35);
  border-radius: var(--r-card);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.85);
  transition: transform var(--dur-med) var(--ease-expo), border-color var(--dur-med) var(--ease-expo), box-shadow var(--dur-med) var(--ease-expo);
  height: 100%;
}
.team-member-card:hover {
  border-color: rgba(223, 186, 115, 0.7);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.9), 0 0 24px rgba(223, 186, 115, 0.15);
}
[data-theme="day"] .team-member-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.15rem;
}
.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1C1A17 0%, #0C0B0A 100%);
  border: 1.5px solid rgba(223, 186, 115, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #F3E5AB;
  font-size: 1.1rem;
  flex-shrink: 0;
}
[data-theme="day"] .team-avatar {
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  border-color: #B48A3C;
  color: #0F172A;
}

.team-role-label {
  font-size: 0.6875rem;
  color: #DFBA73;
  border-color: rgba(223, 186, 115, 0.35);
  background: rgba(223, 186, 115, 0.08);
  margin-bottom: 0.2rem;
  display: inline-block;
}
[data-theme="day"] .team-role-label {
  color: #8C6518;
  border-color: rgba(180, 138, 60, 0.35);
  background: rgba(180, 138, 60, 0.08);
}

.team-member-name {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin: 0.2rem 0 0 0;
}
[data-theme="day"] .team-member-name {
  color: #0F172A;
}

.team-member-bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0;
}
[data-theme="day"] .team-member-bio {
  color: #475569;
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. BUTTONS — Machined. Surface rises, glass reflects, compression instant.
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.75rem;
  border-radius: var(--r-btn);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  /* NO transform in base — hover/active handle separately */
  transition:
    background-color var(--dur-fast) var(--ease-expo),
    border-color     var(--dur-fast) var(--ease-expo),
    box-shadow       var(--dur-fast) var(--ease-expo),
    color            var(--dur-fast) var(--ease-expo);
}

/* Glass reflection — subtle slide on hover, tuned to prevent text blowout */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  transition: transform 380ms var(--ease-expo);
  pointer-events: none;
  will-change: transform;
}

/* Surface rise: box-shadow elevation & sheen. No physical displacement to prevent edge flicker. */
.btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 12px var(--signal-glow, rgba(223, 186, 115, 0.2));
  filter: brightness(1.05);
}

.btn:hover::after {
  transform: translateX(280%);
}

/* Press: compression — instant down, fast up */
.btn:active {
  filter: brightness(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition-duration: var(--dur-instant);
}

/* Primary — solid, weighted, executive clean */
.btn-primary {
  background: #FFFFFF;
  color: #060608;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: #F1F5F9;
  color: #000000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* Secondary / Ghost — refined glass with guaranteed high contrast across touches */
.btn-secondary, .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-hi);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary:active,
.btn-ghost:active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(0);
}

/* Day Theme Explicit Override — Dark high-contrast ink slate, NEVER white */
[data-theme="day"] .btn-secondary,
[data-theme="day"] .btn-ghost {
  background: rgba(13, 21, 32, 0.05);
  color: #0D1520;
  border: 1px solid rgba(13, 21, 32, 0.18);
  text-shadow: none;
}

[data-theme="day"] .btn-secondary:hover,
[data-theme="day"] .btn-secondary:focus-visible,
[data-theme="day"] .btn-ghost:hover,
[data-theme="day"] .btn-ghost:focus-visible {
  background: rgba(13, 21, 32, 0.1);
  border-color: rgba(13, 21, 32, 0.4);
  color: #000000;
  box-shadow: 0 4px 16px rgba(13, 21, 32, 0.15);
}

[data-theme="day"] .btn::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(13, 21, 32, 0.04) 50%,
    transparent 100%
  );
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. FORM FIELDS
   ═══════════════════════════════════════════════════════════════════════════ */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-field label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-hi);
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color     var(--dur-fast) var(--ease-expo),
    box-shadow       var(--dur-fast) var(--ease-expo),
    background-color var(--dur-fast) var(--ease-expo);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-lo);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--signal);
  background: var(--signal-dim);
  box-shadow: 0 0 0 3px var(--signal-dim);
}


/* ═══════════════════════════════════════════════════════════════════════════
   13. TAGS / CHIPS
   ═══════════════════════════════════════════════════════════════════════════ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-btn);
  color: var(--text-mid);
  background: rgba(255,255,255,0.03);
  transition:
    color        var(--dur-fast) var(--ease-expo),
    border-color var(--dur-fast) var(--ease-expo),
    background   var(--dur-fast) var(--ease-expo);
}

.tag:hover {
  color: var(--signal);
  border-color: var(--border-signal);
  background: var(--signal-dim);
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
  background: var(--void);
  transition:
    background-color var(--dur-theme) var(--ease-sine),
    border-color     var(--dur-theme) var(--ease-sine);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.055em;
}

.footer-brand-desc {
  font-size: 0.9375rem;
  color: var(--text-lo);
  margin-top: 0.75rem;
  max-width: 34ch;
  line-height: 1.65;
}

.footer-col-title {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-lo);
  transition: color var(--dur-fast) var(--ease-expo);
}

.footer-links a:hover { color: var(--signal); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  transition: border-color var(--dur-theme) var(--ease-sine);
}

.footer-copy {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  color: var(--text-lo);
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 979px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO — SPLIT TWO-COLUMN LAYOUT
   Left: Editorial copy. Right: 3D logo studio.
   The logo and headline must never share the same visual region.
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  padding-top: var(--nav-h);
  padding-bottom: 0;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  z-index: 1;
}

.hero-section .section-wave-divider {
  display: none !important;
}

#principles {
  position: relative;
  z-index: 5;
  background: var(--void);
  border-top: 1px solid var(--border);
  padding-top: clamp(4rem, 6vw, 6rem);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: 1360px;
  margin: auto auto; /* Vertically balances hero in available space */
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: clamp(1rem, 2vh, 2rem);
  padding-bottom: clamp(1rem, 2vh, 2rem);
  box-sizing: border-box;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  z-index: 2;
  max-width: 100%;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  align-self: center;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Canvas fills the right column — perfectly square 1:1 ratio, unclipped */
.hero-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: min(440px, 34vw);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px;
  display: block;
}

/* Drag interaction hint */
.logo-drag-hint {
  display: none !important;
}

/* Hero copy spacing & typography */
.hero-eyebrow-wrap {
  margin: 0 0 1.25rem 0;
  align-self: flex-start;
  text-align: left;
}

.hero-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(34px, 3.1vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 100%;
  margin: 0 0 1.25rem 0;
  text-align: left;
}

.hero-title .cursive-accent {
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(15px, 1.05vw, 17.5px);
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.55;
  margin: 0 0 1.65rem 0;
  text-align: left;
}

.hero-left .btn-row,
.btn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  margin: 0 0 1.75rem 0;
  align-self: flex-start;
}

.hero-left .btn-row .btn,
.btn-row .btn {
  height: 52px;
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
}

@media (min-width: 900px) {
  .hero-left .btn-row,
  .btn-row {
    flex-wrap: nowrap;
  }
}

/* Hero stats — below CTAs, evenly distributed 3 columns */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2.5rem);
  width: 100%;
  max-width: 580px;
  padding-top: 1.25rem;
  margin: 0;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
  transition: border-color var(--dur-theme) var(--ease-sine);
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-num {
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-weight: 700;
  color: #DFBA73;
  display: block;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  transition: color var(--dur-theme);
}

.stat-label {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--text-lo);
  text-transform: uppercase;
  line-height: 1.35;
  transition: color var(--dur-theme);
}

/* ── Large Desktop (1440px+) ── */
@media (min-width: 1440px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
  }
  .hero-split {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    max-width: 1360px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .hero-canvas-wrap {
    max-width: 440px;
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* ── Ultra-Wide (1600px+) ── */
@media (min-width: 1600px) {
  .hero-split {
    max-width: 1360px;
  }
}

/* ── Tablet (768px - 1024px) ── */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
  }
  .hero-split {
    gap: 2rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
  .hero-title {
    font-size: clamp(28px, 3.8vw, 38px);
    max-width: 100%;
  }
  .hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-canvas-wrap {
    max-width: min(340px, 36vw);
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* ── Mobile (<= 767px) ── */
@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1rem);
    padding-bottom: 4rem;
    align-items: flex-start;
  }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    margin: 0 auto;
    width: 100%;
  }
  .brand-eyebrow-badge {
    font-size: clamp(0.54rem, 2.5vw, 0.65rem);
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    align-self: flex-start;
  }
  .hero-left  {
    order: 1;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  .hero-right {
    order: 2;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.8vw, 2.2rem);
    line-height: 1.1;
    max-width: 100%;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: left;
  }
  .hero-title .cursive-accent {
    white-space: normal;
  }
  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  .hero-canvas-wrap {
    aspect-ratio: 1 / 1;
    width: min(260px, 75vw);
    max-width: 260px;
    margin: 0 auto;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }
  .stat-num {
    font-size: 1.25rem;
  }
  .stat-label {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
  .hero-left .btn-row,
  .btn-row {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-left .btn-row .btn,
  .btn-row .btn {
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1rem !important;
    font-size: 0.8125rem !important;
  }
  .rag-chatbot-root {
    bottom: 14px;
    right: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   NOVYRAX INTELLIGENCE — AI Studio Hub
   Feels like an engineering tool, not a chatbot.
   ═══════════════════════════════════════════════════════════════════════════ */

.ai-hub {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition:
    background-color var(--dur-theme) var(--ease-sine),
    border-color     var(--dur-theme) var(--ease-sine);
}

/* Tab bar */
.ai-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  transition: border-color var(--dur-theme) var(--ease-sine);
}
.ai-tab-bar::-webkit-scrollbar { display: none; }

.ai-tab {
  flex-shrink: 0;
  padding: 1rem 1.625rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lo);
  border-right: 1px solid var(--border);
  border-radius: 0;
  position: relative;
  transition:
    color            var(--dur-fast) var(--ease-expo),
    background-color var(--dur-fast) var(--ease-expo),
    border-color     var(--dur-theme) var(--ease-sine);
}

.ai-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1.5px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-expo);
}

.ai-tab:hover { color: var(--text-mid); background: rgba(255,255,255,0.02); }
.ai-tab.active { color: var(--text-hi); }
.ai-tab.active::after { transform: scaleX(1); }

/* Panels */
.ai-panel { display: none; padding: 2.25rem 2.5rem; }
.ai-panel.active { display: block; }

/* Terminal-style textarea */
.intel-terminal,
.ai-terminal {
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  transition:
    border-color var(--dur-fast) var(--ease-expo),
    background   var(--dur-theme) var(--ease-sine);
}
.intel-terminal:focus-within,
.ai-terminal:focus-within { border-color: var(--border-signal); }

.intel-terminal-label,
.ai-terminal-label {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: var(--signal);
  padding: 0.875rem 1rem 0.25rem;
  text-transform: uppercase;
  display: block;
  transition: color var(--dur-theme);
}

.intel-textarea,
.ai-textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 0 1rem 1rem;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  resize: none;
  min-height: 90px;
  max-height: 160px;
  transition: color var(--dur-theme);
}
.intel-textarea::placeholder,
.ai-textarea::placeholder { color: var(--text-lo); }

.intel-terminal-footer,
.ai-terminal-footer {
  border-top: 1px solid var(--border);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--dur-theme);
}

.intel-char-count,
.ai-char-count {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--text-lo);
}

/* Thinking dots */
.ai-thinking {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--text-lo);
  text-transform: uppercase;
}
.ai-thinking.active { display: flex; }

.t-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 8px;
  line-height: 1;
  color: var(--signal);
  background: transparent;
  border-radius: 0;
}
.t-dot::before {
  content: '•';
}
.t-dot:nth-child(2) { animation-delay: 0.2s; }
.t-dot:nth-child(3) { animation-delay: 0.4s; }


  50%       { opacity: 1;    transform: scale(1.4); }
}

/* Result output */
.ai-result {
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  background: rgba(0,0,0,0.15);
  margin-top: 1.25rem;
  transition: border-color var(--dur-theme), background var(--dur-theme);
}
.ai-result.active { display: block; }

.ai-result-block { margin-bottom: 1.375rem; }
.ai-result-block:last-child { margin-bottom: 0; }

.ai-result-key {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.5rem;
  transition: color var(--dur-theme);
}

.ai-result-val {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-hi);
  line-height: 1.6;
  transition: color var(--dur-theme);
}

.ai-result-val.mono {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  line-height: 2;
}

.ai-phase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.ai-phase-row:last-child { border-bottom: none; }

.ai-phase-n  { font-family: var(--font-body); font-size: 0.875rem; color: var(--text-hi); }
.ai-phase-d  { font-family: var(--font-label); font-size: 0.5625rem; letter-spacing: 0.1em; color: var(--signal); white-space: nowrap; }

.ai-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  margin-top: 0.875rem;
  border-top: 1px solid var(--border-signal);
}

.ai-total-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.ai-total-val {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--signal);
}

/* Solution Explorer selects */
.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) { .sol-grid { grid-template-columns: 1fr; } }

.sol-field { display: flex; flex-direction: column; gap: 0.5rem; }
.sol-field label {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.sol-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F7984' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-expo), background-color var(--dur-theme);
}
.sol-select:focus { border-color: var(--border-signal); }
.sol-select option { background: #0e0f16; color: #F0F4F8; }

/* Capability Map */
.cap-map-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,0.15);
  padding: 1rem;
}

.cap-map-wrap svg { width: 100%; height: auto; display: block; }

.cm-node { cursor: pointer; }
.cm-node-bg {
  fill: rgba(255,255,255,0.04);
  stroke: var(--border-hi, rgba(255,255,255,0.14));
  stroke-width: 1;
  rx: 12;
  transition: fill 200ms, stroke 200ms;
}
.cm-node:hover .cm-node-bg {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.35);
}
.cm-node-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  fill: #A2ABB3;
  text-anchor: middle;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: fill 200ms;
}
.cm-center-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: #F0F4F8;
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 0.06em;
}
.cm-node:hover .cm-node-label { fill: #FFFFFF; }
.cm-line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOVYRAX PROJECT BRIEFING STUDIO
   Editorial Two-Column Architecture:
   - Left Column: Editorial Introduction & 3 Interactive Navigation Rows
   - Right Column: Contextual Interactive Workspace (Capabilities, Scoper, Inquiry)
   ═══════════════════════════════════════════════════════════════════════════ */

.briefing-section {
  position: relative;
  padding: 5rem 0 6rem;
}

.briefing-studio {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 3.5rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(223, 186, 115, 0.05);
}

[data-theme="day"] .briefing-studio {
  background: rgba(255, 255, 255, 0.94);
  border-color: #D8D5CB;
  box-shadow: 0 12px 36px rgba(32, 33, 31, 0.06), 0 1px 3px rgba(32, 33, 31, 0.04);
}

/* ── LEFT COLUMN ── */
.briefing-nav-col {
  display: flex;
  flex-direction: column;
}

.briefing-lead-group {
  margin-bottom: 2rem;
}

.briefing-hero-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-hi);
  margin: 1rem 0 0.85rem;
}

.briefing-sub {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 44ch;
}

/* 3 Editorial Navigation Rows */
.briefing-nav-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}

.briefing-nav-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 0.85rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.briefing-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: rgba(223, 186, 115, 0.4);
}
[data-theme="day"] .briefing-nav-item:hover {
  background: rgba(133, 68, 30, 0.03);
  border-left-color: rgba(133, 68, 30, 0.4);
}

.briefing-nav-item.active {
  background: rgba(223, 186, 115, 0.07);
  border-left-color: #DFBA73;
}
[data-theme="day"] .briefing-nav-item.active {
  background: rgba(133, 68, 30, 0.05);
  border-left-color: #85441E;
}

.briefing-nav-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(223, 186, 115, 0.5);
}

.nav-item-num {
  font-family: var(--font-label, monospace);
  font-size: 0.875rem;
  font-weight: 700;
  color: #DFBA73;
  padding-top: 0.15rem;
}
[data-theme="day"] .nav-item-num {
  color: #85441E;
}

.nav-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item-title {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  transition: color 0.2s ease;
}
.briefing-nav-item:hover .nav-item-title,
.briefing-nav-item.active .nav-item-title {
  color: #FFFFFF;
}
[data-theme="day"] .briefing-nav-item:hover .nav-item-title,
[data-theme="day"] .briefing-nav-item.active .nav-item-title {
  color: #20211F;
}

.nav-item-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.nav-item-arrow {
  font-family: var(--font-label, monospace);
  font-size: 1.25rem;
  line-height: 1;
  color: #DFBA73;
  padding-top: 0.15rem;
  opacity: 0.6;
  transform: translate(0, 0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
[data-theme="day"] .nav-item-arrow {
  color: #85441E;
}
.briefing-nav-item:hover .nav-item-arrow,
.briefing-nav-item.active .nav-item-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.briefing-meta-block {
  padding-top: 0.5rem;
  font-family: var(--font-label, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-lo);
}
.briefing-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.meta-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 8px;
  line-height: 1;
  color: #DFBA73;
  background: transparent;
  border-radius: 0;
}
.meta-dot::before {
  content: '•';
}
[data-theme="day"] .meta-dot {
  color: #85441E;
  background: transparent;
}

/* ── RIGHT COLUMN: WORKSPACE ── */
.briefing-stage-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
[data-theme="day"] .briefing-stage-col {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(32, 33, 31, 0.1);
}

.briefing-panel {
  display: none;
  flex-direction: column;
  height: 100%;
}
.briefing-panel.active {
  display: flex;
  animation: briefingFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes briefingFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.panel-head h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.35rem;
}
.panel-head p {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* Mode 01: FAQ & Search */
.briefing-search-bar {
  position: relative;
  margin-bottom: 1rem;
}
.briefing-search-bar input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-hi);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.briefing-search-bar input:focus {
  border-color: #DFBA73;
  box-shadow: 0 0 0 2px rgba(223, 186, 115, 0.25);
}
[data-theme="day"] .briefing-search-bar input {
  background: #FFFFFF;
  border-color: #D8D5CB;
}
[data-theme="day"] .briefing-search-bar input:focus {
  border-color: #85441E;
  box-shadow: 0 0 0 2px rgba(133, 68, 30, 0.15);
}
.briefing-search-bar .search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-lo);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.2rem;
  display: none;
}
.briefing-search-bar .search-clear-btn.visible {
  display: block;
}

.briefing-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.filter-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-label, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-chip:hover {
  color: var(--text-hi);
  border-color: rgba(223, 186, 115, 0.4);
}
.filter-chip.active {
  background: rgba(223, 186, 115, 0.12);
  border-color: #DFBA73;
  color: #DFBA73;
  font-weight: 600;
}
[data-theme="day"] .filter-chip.active {
  background: rgba(133, 68, 30, 0.08);
  border-color: #85441E;
  color: #85441E;
}

/* Accordion Rows */
.briefing-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 0.35rem;
}
.briefing-accordion {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
[data-theme="day"] .briefing-accordion {
  background: #FFFFFF;
}
.briefing-accordion[open] {
  border-color: rgba(223, 186, 115, 0.4);
  background: rgba(223, 186, 115, 0.02);
}
[data-theme="day"] .briefing-accordion[open] {
  border-color: rgba(133, 68, 30, 0.3);
  background: rgba(133, 68, 30, 0.015);
}

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-hi);
  user-select: none;
  list-style: none;
}
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-summary::after {
  content: "+";
  font-family: var(--font-label, monospace);
  font-size: 1.1rem;
  color: #DFBA73;
  transition: transform 0.2s ease;
}
[data-theme="day"] .accordion-summary::after {
  color: #85441E;
}
.briefing-accordion[open] .accordion-summary::after {
  content: "−";
}

.accordion-body {
  padding: 0 1.15rem 1rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
}
[data-theme="day"] .accordion-body {
  border-top-color: rgba(32, 33, 31, 0.06);
}
.accordion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
  font-family: var(--font-label, monospace);
  font-size: 0.75rem;
}
.accordion-links a {
  color: #DFBA73;
  text-decoration: none;
  transition: color 0.2s ease;
}
.accordion-links a:hover {
  text-decoration: underline;
}
[data-theme="day"] .accordion-links a {
  color: #85441E;
}

/* Dynamic Live Result Card */
.briefing-query-result {
  display: none;
  border: 1px solid rgba(223, 186, 115, 0.35);
  border-radius: 8px;
  background: rgba(223, 186, 115, 0.05);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
[data-theme="day"] .briefing-query-result {
  border-color: rgba(133, 68, 30, 0.35);
  background: rgba(133, 68, 30, 0.04);
}
.briefing-query-result.active { display: block; }
.result-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.35rem;
}
.result-content {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-mid);
}

/* Mode 02: Scoper Flow */
.scoper-header {
  margin-bottom: 1.25rem;
}
.scoper-progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}
.scoper-progress-fill {
  height: 100%;
  width: 25%;
  background: #DFBA73;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="day"] .scoper-progress-fill {
  background: #85441E;
}
.scoper-step-badge {
  font-family: var(--font-label, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.scoper-step-container {
  min-height: 290px;
  display: flex;
  flex-direction: column;
}
.scoper-step {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}
.scoper-step.active {
  display: flex;
  animation: briefingFadeIn 200ms ease forwards;
}

.scoper-question {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 0.25rem;
}

.scoper-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.scoper-option-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s ease;
}
[data-theme="day"] .scoper-option-card {
  background: #FFFFFF;
}
.scoper-option-card:hover {
  border-color: rgba(223, 186, 115, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="day"] .scoper-option-card:hover {
  border-color: rgba(133, 68, 30, 0.4);
  background: #FAFAF8;
}
.scoper-option-card.selected {
  border-color: #DFBA73;
  background: rgba(223, 186, 115, 0.07);
}
[data-theme="day"] .scoper-option-card.selected {
  border-color: #85441E;
  background: rgba(133, 68, 30, 0.05);
}

.scoper-option-card input[type="radio"],
.scoper-option-card input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: #DFBA73;
}
[data-theme="day"] .scoper-option-card input[type="radio"],
[data-theme="day"] .scoper-option-card input[type="checkbox"] {
  accent-color: #85441E;
}

.scoper-opt-title {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-hi);
  display: block;
}
.scoper-opt-desc {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.4;
  display: block;
}

.scoper-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Scoper Summary Card */
.scoper-summary-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
[data-theme="day"] .scoper-summary-box {
  background: #FFFFFF;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.8125rem;
}
.summary-line:last-child { border-bottom: none; }
.summary-key { font-family: var(--font-label, monospace); color: var(--text-lo); text-transform: uppercase; font-size: 0.6875rem; }
.summary-val { color: var(--text-hi); font-weight: 500; text-align: right; }

/* Mode 03: Inquiry Form */
.briefing-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.brief-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.brief-field label {
  font-family: var(--font-label, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-lo);
}
.brief-field input,
.brief-field select,
.brief-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-hi);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="day"] .brief-field input,
[data-theme="day"] .brief-field select,
[data-theme="day"] .brief-field textarea {
  background: #FFFFFF;
  border-color: #D8D5CB;
}
.brief-field input:focus,
.brief-field select:focus,
.brief-field textarea:focus {
  border-color: #DFBA73;
  box-shadow: 0 0 0 2px rgba(223, 186, 115, 0.25);
}
[data-theme="day"] .brief-field input:focus,
[data-theme="day"] .brief-field select:focus,
[data-theme="day"] .brief-field textarea:focus {
  border-color: #85441E;
  box-shadow: 0 0 0 2px rgba(133, 68, 30, 0.15);
}
.brief-field select option {
  background: #0B101C;
  color: #F8FAFC;
}
[data-theme="day"] .brief-field select option {
  background: #FFFFFF;
  color: #20211F;
}

.inquiry-status {
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  display: none;
}
.inquiry-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}
.inquiry-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.direct-dispatch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-label, monospace);
  font-size: 0.75rem;
  color: var(--text-lo);
}
.direct-dispatch-bar a {
  color: #DFBA73;
  text-decoration: none;
}
.direct-dispatch-bar a:hover {
  text-decoration: underline;
}
[data-theme="day"] .direct-dispatch-bar a {
  color: #85441E;
}

/* ── RESPONSIVE SPECIFICATIONS ── */
@media (max-width: 960px) {
  .briefing-studio {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
  .briefing-stage-col {
    min-height: auto;
    padding: 1.75rem;
  }
}
@media (max-width: 640px) {
  .briefing-studio {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
  .briefing-stage-col {
    padding: 1.25rem 1rem;
  }
  .briefing-nav-item {
    grid-template-columns: 1.75rem 1fr auto;
    gap: 0.65rem;
    padding: 1rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .briefing-panel.active {
    animation: none !important;
  }
  .scoper-step.active {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   METROLOGY WORKSTATION V5.1 — PROFESSIONAL COMMERCIAL WORKBENCH & CUSTOM INPUTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Narrative Stepper Bar */
.mw-narrative-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.mw-step-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-label);
  font-size: 0.9375rem; /* Up from 0.75rem (+3px) */
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-expo);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.mw-step-btn:hover {
  border-color: var(--border-signal);
  color: var(--text-hi);
  background: rgba(255,255,255,0.06);
}
.mw-step-btn.active {
  background: var(--signal-dim);
  border-color: var(--border-signal);
  color: var(--signal);
  font-weight: 600;
  box-shadow: none;
}
.mw-step-btn .step-num {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 700;
}

/* Engineer Mode Toggle Switch */
.mw-eng-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  border-radius: 9999px;
  padding: 4px;
  gap: 6px;
}
.mw-eng-toggle-btn {
  font-family: var(--font-label);
  font-size: 0.8125rem; /* Up from 0.6875rem (+2px) */
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  color: var(--text-mid);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--dur-fast) var(--ease-expo);
}
.mw-eng-toggle-btn.active {
  background: var(--signal);
  color: var(--void);
  font-weight: 700;
}

/* Custom User Input Styles */
.mw-custom-input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin-top: 0.75rem;
}
.mw-custom-input-full {
  grid-column: span 2;
}
.mw-custom-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.8125rem; /* 13px */
  color: var(--text-hi);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.mw-custom-field {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem; /* 15px */
  color: var(--signal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mw-custom-field:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: none;
}
.mw-custom-textarea {
  min-height: 52px;
  resize: vertical;
  line-height: 1.5;
}

/* Pareto Uncertainty Contribution Bars */
.mw-pareto-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.25rem 0;
}
.mw-pareto-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9375rem 1.25rem;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-expo);
}
.mw-pareto-item:hover, .mw-pareto-item.selected {
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.mw-pareto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-label);
  font-size: 0.9375rem; /* 15px, up from 12px */
  margin-bottom: 0.5rem;
}
.mw-pareto-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.mw-pareto-bar-fill {
  height: 100%;
  background: var(--signal);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Dynamic Inspector Box */
.mw-inspector-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-signal);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-label);
  font-size: 0.9375rem; /* 15px, up from 12px */
  line-height: 1.6;
}

/* Challenge the Result Box */
.mw-challenge-card {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.08) 0%, rgba(14, 15, 22, 0.98) 100%);
  border: 1px solid rgba(255, 140, 66, 0.35);
  border-radius: 14px;
  padding: 1.75rem;
  margin-top: 1.75rem;
}

/* Metric Rows High Readability */
.mw-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-label);
  font-size: 0.9375rem; /* 15px, up from 12px */
}
.mw-metric-label {
  color: var(--text-mid);
}
.mw-metric-val {
  font-family: var(--font-mono);
  font-size: 1.0625rem; /* 17px */
  font-weight: 600;
  color: var(--text-hi);
}
.mw-metric-val.highlight {
  color: var(--signal);
  font-size: 1.125rem; /* 18px */
}

/* Conventional Workflow vs V5 Grid */
.mw-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 860px) {
  .mw-comparison-grid {
    grid-template-columns: 1fr;
  }
}
.mw-vs-col {
  border-radius: var(--r-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mw-vs-legacy {
  background: rgba(255, 77, 77, 0.03);
  border: 1px solid rgba(255, 77, 77, 0.2);
}
.mw-vs-v5 {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hi);
}
.mw-vs-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.mw-vs-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.9375rem; /* 15px, up from 13px */
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.mw-vs-legacy .mw-vs-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 77, 77, 0.3);
  color: var(--text-mid);
}
.mw-vs-v5 .mw-vs-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hi);
  color: var(--text-hi);
  font-weight: 500;
}

/* Persona Lanes */
.mw-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .mw-persona-grid {
    grid-template-columns: 1fr;
  }
}

/* Engineering Proof Matrix */
.mw-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 960px) {
  .mw-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .mw-proof-grid {
    grid-template-columns: 1fr;
  }
}
.mw-proof-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mw-proof-metric {
  font-family: var(--font-headline);
  font-size: 2rem; /* Up from 1.75rem */
  font-weight: 700;
  color: var(--signal);
  margin-bottom: 0.35rem;
}





/* ═══════════════════════════════════════════════════════════════════════════
   NOVYRAX DOWNSIDE RAG KNOWLEDGE CHATBOT
   ═══════════════════════════════════════════════════════════════════════════ */
/* ==========================================================================
   NOVYRAX RAG KNOWLEDGE CHATBOT STYLES
   Docked downside floating assistant with cybernetic glassmorphism aesthetics
   ========================================================================== */

.rag-chatbot-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999990;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
}

/* ─── 1. DOWNSIDE FLOATING TRIGGER BUTTON ─── */
.rag-toggle-btn {
  height: 44px;
  padding: 0 1.15rem 0 0.95rem;
  background: rgba(8, 11, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)),
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease;
  user-select: none;
}

[data-theme="day"] .rag-toggle-btn {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 21, 32, 0.16);
  color: #1E293B;
  box-shadow: 0 6px 20px rgba(20, 24, 36, 0.08);
}

.rag-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  background: rgba(13, 18, 30, 0.96);
}

[data-theme="day"] .rag-toggle-btn:hover {
  background: #FFFFFF;
  border-color: rgba(184, 83, 14, 0.35);
  box-shadow: 0 10px 28px rgba(184, 83, 14, 0.12);
}

.rag-toggle-btn:active {
  transform: translateY(0);
}

/* Beacon indicator removed per user request */
.rag-toggle-beacon {
  display: none !important;
}

.rag-chat-icon {
  color: #CBD5E1;
  flex-shrink: 0;
}

[data-theme="day"] .rag-chat-icon {
  color: #64748B;
}

.rag-toggle-label {
  font-family: var(--font-label, 'IBM Plex Mono', monospace);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #F8FAFC;
  white-space: nowrap;
}

[data-theme="day"] .rag-toggle-label {
  color: #1E293B;
}

/* ─── 2. EXPANDABLE CHAT WINDOW ─── */
.rag-chat-window {
  position: absolute;
  bottom: 66px;
  right: 0;
  width: min(400px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 110px));
  background: rgba(9, 13, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999992;
}

.rag-chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ─── 3. WINDOW HEADER ─── */
.rag-window-header {
  padding: 1rem 1.25rem;
  background: rgba(5, 7, 13, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.rag-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rag-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rag-status-diamond {
  display: none !important;
}

.rag-header-title-row strong {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.rag-header-sub {
  font-family: var(--font-label, 'IBM Plex Mono', monospace);
  font-size: 0.6875rem;
  color: #94A3B8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rag-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rag-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  font-size: 0.875rem;
  transition: all 0.18s ease;
}

.rag-action-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

/* ─── 4. MESSAGES THREAD ─── */
.rag-messages {
  flex: 1;
  padding: 1.25rem 1.125rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.rag-messages::-webkit-scrollbar {
  width: 5px;
}

.rag-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.rag-msg {
  display: flex;
  width: 100%;
}

.rag-msg.bot {
  justify-content: flex-start;
}

.rag-msg.user {
  justify-content: flex-end;
}

.rag-bubble {
  max-width: 86%;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.58;
  word-break: break-word;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.rag-msg.bot .rag-bubble {
  background: rgba(18, 24, 38, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-left: 2.5px solid #94A3B8;
  border-radius: 4px 14px 14px 14px;
  color: #E2E8F0;
}

.rag-msg.user .rag-bubble {
  background: linear-gradient(135deg, #1A1F2C 0%, #10141E 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px 14px 4px 14px;
  color: #FFFFFF;
}

.rag-bubble strong {
  color: #FFFFFF;
  font-weight: 600;
}

.rag-bubble em {
  color: #E2E8F0;
  font-style: normal;
}

/* Typing Indicator */
.rag-typing-diamond {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border-radius: 1px;
  background: #94A3B8;
  box-shadow: none;
  animation: ragTypingBounce 1.2s infinite ease-in-out;
}

@keyframes ragTypingBounce {
  0%, 100% { opacity: 0.25; transform: rotate(45deg) scale(0.7); }
  50%      { opacity: 1;    transform: rotate(45deg) scale(1.3); }
}

/* ─── 5. QUICK SUGGESTION CHIPS ─── */
.rag-chips-row {
  padding: 0.5rem 1.125rem 0.75rem 1.125rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.rag-chips-row::-webkit-scrollbar {
  display: none;
}

.rag-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer !important;
  transition: all 0.18s ease;
  user-select: none;
  font-family: inherit;
}

.rag-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ─── 6. INPUT BAR ─── */
.rag-input-form {
  padding: 0.75rem 1.125rem;
  background: rgba(5, 7, 13, 0.95);
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rag-input {
  flex: 1;
  height: 42px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.15);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  cursor: text !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rag-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.rag-input::placeholder {
  color: #64748B;
  font-size: 0.8125rem;
}

.rag-submit-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #FFFFFF;
  border: none;
  color: #060608;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-weight: 700;
}

.rag-submit-btn:hover {
  background: #F1F5F9;
  transform: scale(1.04);
  box-shadow: none;
}

.rag-submit-btn:active {
  transform: scale(0.97);
}

.rag-submit-btn:active {
  transform: scale(0.97);
}

/* ─── 7. MOBILE RESPONSIVENESS ─── */
@media (max-width: 480px) {
  .rag-chatbot-root {
    bottom: 16px;
    right: 16px;
  }
  .rag-toggle-btn {
    height: 46px;
    padding: 0 1rem 0 0.85rem;
  }
  .rag-toggle-label {
    font-size: 0.75rem;
  }
  .rag-chat-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 58px;
    right: 0;
  }
}

/* ─── 8. SECRET ARCHITECT VAULT TRIGGER & MODAL ─── */
.secret-vault-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 8px;
  padding: 5px;
  width: 24px;
  height: 24px;
  opacity: 0.6;
  cursor: pointer !important;
  transition: opacity 0.22s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 4px;
}
.secret-vault-logo:hover {
  opacity: 1 !important;
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.08);
}
#nvx-vault-modal input:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none;
}
#nvx-vault-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
#nvx-vault-cancel:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. ZERO-GRAVITY DRAGGABLE LETTERS & MINI MASCOT ("NOVY")
   ═══════════════════════════════════════════════════════════════════════════ */

.brand-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-label, 'IBM Plex Mono', monospace);
  font-size: clamp(0.58rem, 0.9vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #DFBA73;
  background: rgba(223, 186, 115, 0.06);
  border: 1px solid rgba(223, 186, 115, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  max-width: 100%;
  box-sizing: border-box;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all var(--dur-med) var(--ease-expo);
}

.brand-eyebrow-badge:hover {
  border-color: rgba(223, 186, 115, 0.6);
  color: #FFFFFF;
  background: rgba(223, 186, 115, 0.12);
  box-shadow: 0 4px 16px rgba(223, 186, 115, 0.15);
  transform: translateY(-1px);
}

[data-theme="dusk"] .brand-eyebrow-badge {
  color: #CBD5E1;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-theme="dusk"] .brand-eyebrow-badge:hover {
  border-color: rgba(148, 163, 184, 0.5);
  color: #FFFFFF;
  background: rgba(148, 163, 184, 0.14);
}

[data-theme="day"] .brand-eyebrow-badge {
  color: #85441E;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(133, 68, 30, 0.22);
  box-shadow: 0 2px 8px rgba(32, 33, 31, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="day"] .brand-eyebrow-badge:hover {
  border-color: rgba(133, 68, 30, 0.45);
  color: #5C2E12;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(133, 68, 30, 0.08);
}

@media (max-width: 767px) {
  .brand-eyebrow-badge {
    font-size: clamp(0.5rem, 2.4vw, 0.62rem);
    letter-spacing: 0.06em;
    padding: 0.28rem 0.65rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.hero-section {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * SINGLE UNIFIED FIXED ARCHITECTURAL BACKGROUND (WHOLE HOMEPAGE)
 * - Locked completely in place (position: fixed) so it NEVER moves when scrolling.
/* ═══════════════════════════════════════════════════════════════════════════
 * SCULPTURAL EDITORIAL RELIEF BACKGROUND
 * Minimal Abstract Light-and-Shadow Waves (Archival Paper Relief)
 * - Replaces building architecture with warm ivory & mineral relief forms.
 * - Leaves left text zone quiet & readable; frames 3D logo on right.
 * - The floating 3D NX logo, model, lighting, and materials are 100% locked.
 * ═══════════════════════════════════════════════════════════════════════════ */
.site-sculptural-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--void);
  transition: background 0.4s ease;
}

.sculptural-relief-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
}

/* Atmospheric depth scrim ensuring 100% crisp typography on left */
.sculptural-relief-scrim {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(6, 6, 8, 0.72) 0%, rgba(6, 6, 8, 0.42) 38%, transparent 72%),
    linear-gradient(to bottom, transparent 75%, var(--void) 100%);
  pointer-events: none;
}

[data-theme="day"] .sculptural-relief-scrim {
  background: 
    linear-gradient(to right, rgba(244, 241, 233, 0.82) 0%, rgba(244, 241, 233, 0.50) 38%, transparent 72%),
    linear-gradient(to bottom, transparent 75%, #F4F1E9 100%);
}

/* Theme-adaptive SVG styling */
/* 1. Day Theme: Warm Ivory & Mineral Gray Sculptural Paper Waves */
[data-theme="day"] .relief-base-rect { fill: url(#dayGradBase); }
[data-theme="day"] .relief-wave-ground { fill: url(#dayGradGround); }
[data-theme="day"] .relief-wave-sweep { fill: url(#dayGradSweep); }
[data-theme="day"] .relief-curl-shadow { fill: url(#dayGradCurlShadow); }
[data-theme="day"] .relief-curl-roll { fill: url(#dayGradCurlRoll); }
[data-theme="day"] .relief-wave-crest { fill: url(#dayGradCrest); }
[data-theme="day"] .relief-pencil-line { stroke: rgba(32, 33, 31, 0.07); }
[data-theme="day"] .relief-gold-rim { stroke: url(#goldRimDay); }
[data-theme="day"] .relief-light-bloom { fill: rgba(255, 255, 255, 0.22); }

/* 2. Night Theme: Obsidian & Velvet Silk Relief Waves */
.relief-base-rect { fill: url(#nightGradBase); }
.relief-wave-ground { fill: url(#nightGradGround); }
.relief-wave-sweep { fill: url(#nightGradSweep); }
.relief-curl-shadow { fill: url(#nightGradCurlShadow); }
.relief-curl-roll { fill: url(#nightGradCurlRoll); }
.relief-wave-crest { fill: url(#nightGradCrest); }
.relief-pencil-line { stroke: rgba(255, 255, 255, 0.05); }
.relief-gold-rim { stroke: url(#goldRimNight); }
.relief-light-bloom { fill: rgba(223, 186, 115, 0.04); }

@media (max-width: 900px) {
  .sculptural-relief-svg {
    transform: scale(1.12);
    transform-origin: 75% 45%;
  }
}

@media (max-width: 767px) {
  .sculptural-relief-svg {
    transform: scale(1.22);
    transform-origin: 80% 35%;
    opacity: 0.88;
  }
  .sculptural-relief-scrim {
    background: linear-gradient(to bottom, var(--void) 0%, rgba(6, 6, 8, 0.5) 45%, var(--void) 100%);
  }
  [data-theme="day"] .sculptural-relief-scrim {
    background: linear-gradient(to bottom, #F4F1E9 0%, rgba(244, 241, 233, 0.55) 45%, #F4F1E9 100%);
  }
}

.hero-split {
  position: relative;
  z-index: 1;
}

.hero-title-interactive.zero-g-interactive-text {
  display: block !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: 1.5rem !important;
  font-family: var(--font-headline) !important;
  font-size: clamp(2.25rem, 4.2vw, 4.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  color: var(--text-hi) !important;
  user-select: none;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.hero-title-interactive .zg-phrase {
  display: inline;
  color: var(--text-hi);
}

.hero-title-interactive .zg-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-title-interactive .zg-space {
  display: inline-block;
  width: 0.32em;
}

.hero-title-interactive .zg-char {
  display: inline-block;
  cursor: default;
  position: relative;
  user-select: none;
  touch-action: none;
  color: var(--text-hi);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 1px rgba(0, 0, 0, 0.9);
}

/* Tasteful multi-tone word colors in Hero Title:
   "Engineering" (white/platinum) + "Intelligence." (radiant burnt amber / cognac)
   "Built for" (white) + "Reality." (warm terracotta / champagne gold) */
.hero-title-interactive .zg-phrase:first-of-type .zg-word:last-of-type .zg-char {
  color: #F59E0B;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 0 20px rgba(245, 158, 11, 0.4);
}

.hero-title-interactive .zg-phrase:last-of-type .zg-word:last-of-type .zg-char {
  color: #DFBA73;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 16px rgba(223, 186, 115, 0.35);
}

/* Day Theme Explicit Override - Rich midnight ink, warm cognac, and warm chestnut terracotta */
[data-theme="day"] .hero-title-interactive,
[data-theme="day"] .hero-title-interactive.zero-g-interactive-text,
[data-theme="day"] .hero-title-interactive .zg-phrase,
[data-theme="day"] .hero-title-interactive .zg-char {
  color: #0D1520 !important;
  text-shadow: none !important;
}

[data-theme="day"] .hero-title-interactive .zg-phrase:first-of-type .zg-word:last-of-type .zg-char {
  color: #B8530E !important;
}

[data-theme="day"] .hero-title-interactive .zg-phrase:last-of-type .zg-word:last-of-type .zg-char {
  color: #85441E !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL MULTI-TONE HEADING ACCENTS (Harmonious, Creative, Production-Grade)
   ═══════════════════════════════════════════════════════════════════════════ */
.hl-sapphire {
  color: #60A5FA;
  display: inline;
}
.hl-sky {
  color: #38BDF8;
  display: inline;
}
.hl-platinum {
  color: #CBD5E1;
  display: inline;
}
.hl-slate {
  color: #94A3B8;
  display: inline;
}
.hl-emerald {
  color: #DFBA73;
  display: inline;
}
.hl-iris {
  color: #818CF8;
  display: inline;
}
.hl-teal {
  color: #2DD4BF;
  display: inline;
}
.hl-copper {
  color: #FB923C;
  display: inline;
}
.hl-gold {
  color: #DFBA73;
  display: inline;
}
.hl-amber {
  color: #F59E0B;
  display: inline;
}
.hl-amethyst {
  background: linear-gradient(135deg, #FAF5FF 0%, #E9D5FF 25%, #C084FC 65%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  color: #C084FC;
}
.hl-rose {
  color: #FB7185;
  display: inline;
}
.hl-terracotta {
  color: #E0874E;
  display: inline;
}
.hl-cognac {
  color: #F59E0B;
  display: inline;
}
.hl-gradient-gold {
  background: linear-gradient(135deg, #FFFFFF 10%, #FDE68A 55%, #DFBA73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hl-luminous {
  background: linear-gradient(135deg, #FFFFFF 20%, #E2E8F0 60%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hl-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 10%, #93C5FD 55%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="day"] .hl-sapphire {
  color: #2563EB;
}
[data-theme="day"] .hl-sky {
  color: #0284C7;
}
[data-theme="day"] .hl-platinum {
  color: #1E293B;
}
[data-theme="day"] .hl-slate {
  color: #475569;
}
[data-theme="day"] .hl-emerald {
  color: #B8530E;
}
[data-theme="day"] .hl-iris {
  color: #4F46E5;
}
[data-theme="day"] .hl-teal {
  color: #0D9488;
}
[data-theme="day"] .hl-copper {
  color: #EA580C;
}
[data-theme="day"] .hl-gold {
  color: #B45309;
}
[data-theme="day"] .hl-amber {
  color: #D97706;
}
[data-theme="day"] .hl-amethyst {
  background: linear-gradient(135deg, #090D16 0%, #3B0764 20%, #8B5CF6 45%, #C084FC 70%, #DDD6FE 90%, #E9D5FF 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline-block;
  color: #A855F7;
}
[data-theme="day"] .hl-rose {
  color: #E11D48;
}
[data-theme="day"] .hl-terracotta {
  color: #85441E !important;
}
[data-theme="day"] .hl-cognac {
  color: #B8530E !important;
}
[data-theme="day"] .hl-gradient-gold {
  background: linear-gradient(135deg, #0F172A 10%, #B45309 60%, #92400E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
[data-theme="day"] .hl-luminous {
  background: linear-gradient(135deg, #0F172A 20%, #334155 70%, #64748B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="day"] .hl-gradient-blue {
  background: linear-gradient(135deg, #0F172A 10%, #1D4ED8 60%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-interactive .zg-char:active {
  cursor: grabbing;
}


/* Tactile Micro-Strain Jitter on attempts 1, 2, 3 (Organic Easter Egg) */
@keyframes zgJitter1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1.5px, 0.5px) rotate(-1deg); }
  75% { transform: translate(1.5px, -0.5px) rotate(1deg); }
}

@keyframes zgJitter2 {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1.5px) rotate(-2deg); }
  40% { transform: translate(3px, -1.5px) rotate(2deg); }
  60% { transform: translate(-2px, -1px) rotate(-1.5deg); }
  80% { transform: translate(2px, 1px) rotate(1.5deg); }
}

@keyframes zgJitter3 {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-4.5px, 2px) rotate(-3.5deg); }
  35% { transform: translate(4.5px, -2px) rotate(3.5deg); }
  55% { transform: translate(-3px, -1.5px) rotate(-2.5deg); }
  75% { transform: translate(3px, 1.5px) rotate(2.5deg); }
  90% { transform: translate(-1.5px, 0.5px) rotate(-1deg); }
}

.zg-char.strain-1 { animation: zgJitter1 0.22s ease-in-out; }
.zg-char.strain-2 { animation: zgJitter2 0.25s ease-in-out; }
.zg-char.strain-3 { animation: zgJitter3 0.3s ease-in-out; }

/* Ghost Slot in original sentence */
.zg-ghost {
  display: inline-block;
  border: 1px dashed rgba(59, 130, 246, 0.55);
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: none;
  vertical-align: baseline;
  animation: zgGhostPulse 1.4s ease-in-out infinite alternate;
}

@keyframes zgGhostPulse {
  from { opacity: 0.35; border-color: rgba(59, 130, 246, 0.3); }
  to { opacity: 0.9; border-color: rgba(59, 130, 246, 0.75); }
}

/* Floating Zero-G Detached Letter */
.zg-char-detached {
  position: fixed !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
  cursor: grabbing !important;
  color: #FFFFFF !important;
  font-family: var(--font-headline) !important;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 0 24px rgba(59, 130, 246, 0.65) !important;
  transform-origin: center center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7));
}


.zg-char-detached.zg-floating {
  cursor: grab !important;
  animation: none !important;
}

@keyframes zgZeroGBob {
  0% { transform: translate(-50%, -50%) scale(1.3) rotate(-3deg); }
  50% { transform: translate(-50%, -65%) scale(1.35) rotate(2deg); }
  100% { transform: translate(-50%, -45%) scale(1.3) rotate(-2deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   #PAGE CONTAINER & HAUL EFFECT (PREVENTS POSITION:FIXED BREAKAGE)
   ═══════════════════════════════════════════════════════════════════════════ */
#page {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  background: transparent;
  transition: transform 0s ease;
}

#page.hauling-active {
  will-change: transform;
  box-shadow: 12px 0 50px rgba(0, 0, 0, 0.8), 0 0 90px rgba(0, 0, 0, 0.9);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

/* Discreet Esc to Skip HUD Chip */
.novy-skip-chip {
  position: fixed;
  top: 1.25rem;
  right: 5.5rem;
  z-index: 10000000;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 18, 28, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94A3B8;
  font-family: var(--font-label, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.novy-skip-chip:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Shadow Aperture & Foreshadowing Under 3D Logo */
.novy-shadow-aperture {
  position: absolute;
  pointer-events: none;
  z-index: 999980;
  width: 120px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.95) 0%, rgba(255, 255, 255, 0.06) 55%, transparent 75%);
  box-shadow: none;
  transform: translate(-50%, -50%) scale(0.001);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.novy-shadow-aperture.flicker {
  transform: translate(-50%, -50%) scale(0.45);
  box-shadow: none;
}

.novy-shadow-aperture.active {
  transform: translate(-50%, -50%) scale(1);
  box-shadow: none;
}

/* Tiny Foreshadow Eyes in Shadow (Attempt 3) */
.novy-shadow-eyes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.novy-shadow-eyes.blink {
  opacity: 1;
}

.novy-shadow-eye {
  width: 9px;
  height: 3px;
  border-radius: 2px;
  background: #94A3B8;
  box-shadow: none;
  animation: shadowEyeSquint 1.2s ease-in-out infinite;
}

@keyframes shadowEyeSquint {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.2); }
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  .zg-char {
    cursor: default !important;
    transform: none !important;
    animation: none !important;
  }
  .zg-char.zg-floating {
    animation: none !important;
  }
  #novySkipChip,
  #mascot3DOverlayCanvas {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL SYSTEM — CLIENT-ATTRACTIVE KINETIC POP-UP & REVEAL ENGINE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Top Scroll Progress Line Removed per User Directive */

/* 2. Enhanced Navbar Scroll State */
.site-nav.nav-scrolled {
  border-bottom: 1px solid rgba(223, 186, 115, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(223, 186, 115, 0.08) !important;
}

[data-theme="day"] .site-nav.nav-scrolled {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

/* 3. Cinematic Masked Clipping Typography & Restrained Reveal Engine */
.cinematic-mask {
  display: block;
  overflow: hidden;
  position: relative;
  padding-bottom: 0.14em; /* Preserves descenders: g, y, p, q, j */
  margin-bottom: -0.14em;
  line-height: inherit;
}

.cinematic-mask-inline {
  display: inline-block;
  overflow: hidden;
  position: relative;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  vertical-align: top;
}

.cinematic-reveal {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  filter: blur(5px);
  will-change: transform, opacity, filter;
}

.cinematic-reveal.active-reveal {
  transform: translateY(0%) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
}

/* Restrained, elegant fallback targets (no excessive bounce, rotation or scale) */
.emerge-target {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(4px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.emerge-target.emerged {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0px) !important;
}

/* Header & Section Title Specific Emergence */
.section-header.emerge-target,
.page-hero.emerge-target {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.emerged,
.page-hero.emerged {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0px) !important;
}

/* Continuous Scroll Progress Laser Divider */
.signal-divider {
  will-change: transform, opacity;
  transform-origin: center center;
}

.signal-divider.emerge-target {
  opacity: 0.15;
  transform: scaleX(0.1);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.signal-divider.emerged {
  opacity: 0.75 !important;
  transform: scaleX(1) !important;
}

/* Subtle Multi-Depth Parallax Background Layer */
.parallax-layer {
  will-change: transform;
  pointer-events: none;
}

/* Restrained Pinned Moment Styling */
.pinned-moment-active {
  z-index: 50;
  position: relative;
}

/* 4. Floating Back-to-Top & Scroll Telemetry Pill */
.scroll-telemetry-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(14, 18, 27, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(223, 186, 115, 0.32);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 14px rgba(223, 186, 115, 0.14);
  color: #F8FAFC;
  font-family: var(--font-label, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    background 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.scroll-telemetry-pill.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-telemetry-pill:hover {
  background: rgba(22, 28, 42, 0.94);
  border-color: rgba(223, 186, 115, 0.65);
  transform: translateY(-2px) scale(1.03);
}

.scroll-telemetry-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(223, 186, 115, 0.16);
  color: #DFBA73;
}

[data-theme="day"] .scroll-telemetry-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: #0F172A;
}

[data-theme="day"] .scroll-telemetry-arrow {
  background: rgba(15, 23, 42, 0.08);
  color: #0F172A;
}

/* 5. Stat Counter Pop Kinetic Animation */
.stat-pop {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-pop.popped {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .emerge-target,
  .section-header.emerge-target,
  .page-hero.emerge-target,
  .signal-divider,
  .signal-divider.emerge-target {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .cinematic-mask,
  .cinematic-mask-inline {
    overflow: visible !important;
  }
  .cinematic-reveal {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  .parallax-layer {
    transform: none !important;
  }
  .scroll-telemetry-pill {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * CINEMATIC INTERACTIVE SCROLL REDESIGN ENGINE (GSAP SCROLLTRIGGER ARCHITECTURE)
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Flagship Software Platforms Fleet Grid */
.flagship-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

/* On large screens: cap at 2 per row for visual balance */
@media (min-width: 1100px) {
  .flagship-fleet-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1440px) {
  .flagship-fleet-grid {
    gap: 2.25rem;
  }
  .flagship-fleet-card {
    padding: 2.75rem 2.25rem;
  }
}

.flagship-fleet-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(14, 18, 28, 0.95) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.flagship-fleet-card .card-depth-title {
  color: #FFFFFF;
}

.flagship-fleet-card .card-depth-body {
  color: #E2E8F0;
}

.flagship-fleet-card .card-depth-specs {
  color: #CBD5E1;
}

.flagship-fleet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65), 0 0 25px rgba(223, 186, 115, 0.12);
}

[data-theme="day"] .flagship-fleet-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="day"] .flagship-fleet-card .card-depth-title {
  color: #0F172A !important;
}

[data-theme="day"] .flagship-fleet-card .card-depth-body {
  color: #334155 !important;
}

[data-theme="day"] .flagship-fleet-card .card-depth-specs {
  color: #475569 !important;
}

[data-theme="day"] .flagship-fleet-card .card-depth-specs span[style*="color: #E2E8F0"],
[data-theme="day"] .flagship-fleet-card .card-depth-specs span[style*="color:#E2E8F0"] {
  color: #1E293B !important;
}

[data-theme="day"] .flagship-fleet-card .btn-secondary {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

/* Dedicated Product Page Showcase Cards */
.product-showcase-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(14, 18, 28, 0.92) 100%);
  border-radius: 22px;
  padding: 3.5rem 3rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 2rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.product-showcase-card h2 {
  color: #FFFFFF;
}

.product-showcase-card p {
  color: #E2E8F0;
}

.product-showcase-specs {
  color: #CBD5E1;
}

[data-theme="day"] .product-showcase-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="day"] .product-showcase-card h2 {
  color: #0F172A !important;
}

[data-theme="day"] .product-showcase-card p {
  color: #334155 !important;
}

[data-theme="day"] .product-showcase-specs {
  color: #475569 !important;
}

[data-theme="day"] .product-showcase-specs span {
  color: #1E293B !important;
}

@media (max-width: 768px) {
  .flagship-fleet-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .flagship-fleet-card {
    padding: 1.75rem 1.25rem;
  }
  .product-showcase-card {
    padding: 2rem 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * INTERACTIVE 3D PAGE ENTERING SCENES & KINETIC SCROLL ENGINE
 * ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Scene Stages (Applied directly to page sections) */
.scene-stage-3d {
  will-change: transform;
}

.scene-slab-3d {
  will-change: transform, opacity;
}

.card {
  will-change: transform;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* 2. Hardware-Accelerated Circulating 3D Border Light Beam */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.border-beam-container {
  position: relative;
  overflow: hidden;
}

.border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 70%, var(--beam-color, #DFBA73) 88%, #FFFFFF 94%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  animation: rotateBorderBeam 6s linear infinite;
}

@keyframes rotateBorderBeam {
  to {
    --beam-angle: 360deg;
  }
}

.border-beam-emerald { --beam-color: #DFBA73; }
.border-beam-amber   { --beam-color: #F59E0B; }
.border-beam-gold    { --beam-color: #DFBA73; }

/* 3. Architectural Hairline Section Dividers */
.signal-divider {
  position: relative;
  overflow: hidden;
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(223, 186, 115, 0.28) 35%, rgba(255, 255, 255, 0.12) 50%, rgba(223, 186, 115, 0.28) 65%, transparent);
}

/* 4. Guaranteed Button Clickability & Card Depth Layers */
.card-depth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-depth-action {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn, a.btn, button.btn {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* 5. Process Flow Traveling Signal Circuit */
.process-flow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1.25rem 0.5rem;
  perspective: 1000px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 186, 115, 0.2);
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
  transform-style: preserve-3d;
}

.process-step.active-step {
  transform: translateY(-4px) translateZ(16px);
  border-color: rgba(223, 186, 115, 0.85);
  background: rgba(223, 186, 115, 0.12);
  box-shadow: 0 8px 24px -4px rgba(223, 186, 115, 0.35), 0 0 12px rgba(223, 186, 115, 0.2);
}

.process-step:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(223, 186, 115, 0.6);
}

/* 6. Dynamic Metallic Typography — no -webkit-text-fill-color since it breaks hl-* child spans */
.section-header h2 {
  color: var(--text-hi);
}

[data-theme="day"] .section-header h2 {
  color: #0F172A;
}

/* 7. Precision Optical Sheen Sweep (Modest, Single-Shot Glass Sheen on Entrance) */
.optical-glint-container {
  position: relative;
  overflow: hidden;
}

.optical-glint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(223, 186, 115, 0.08) 47%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(223, 186, 115, 0.08) 53%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-150%) skewX(-15deg);
  z-index: 2;
}

.optical-glint.active-sheen {
  display: none;
}

@keyframes opticalSheenSweep {
  0%   { transform: translateX(-150%) skewX(-15deg); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(150%) skewX(-15deg); opacity: 0; }
}

/* 8. Precision Metrology Reticle Corner Brackets (Subtle Industrial Aesthetic) */
.precision-bracket {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: rgba(223, 186, 115, 0.35);
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.55;
  z-index: 2;
}

.precision-bracket-tl { top: 9px; left: 9px; border-top: 1px solid; border-left: 1px solid; }
.precision-bracket-tr { top: 9px; right: 9px; border-top: 1px solid; border-right: 1px solid; }
.precision-bracket-bl { bottom: 9px; left: 9px; border-bottom: 1px solid; border-left: 1px solid; }
.precision-bracket-br { bottom: 9px; right: 9px; border-bottom: 1px solid; border-right: 1px solid; }

.card:hover .precision-bracket,
.flagship-fleet-card:hover .precision-bracket {
  border-color: rgba(223, 186, 115, 0.85);
  opacity: 0.9;
  transform: scale(1.15);
}

/* 9. Section Headers — clean layout, no translateZ that causes scroll artifacts */
.section-header .label {
  display: inline-flex;
}

.section-header h2 {
  will-change: auto;
}

.section-header p {
  will-change: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOVYRAX DIGITAL SOLUTIONS & CONSULTATIONS DYNAMIC BACKGROUND CANVAS
   Fixed full-viewport hardware-accelerated ambient engineering canvas.
   Does not intercept pointer events; sits at root layer under #page.
   ═══════════════════════════════════════════════════════════════════════════ */
.digital-solutions-bg-canvas,
.metrology-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  display: block;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#page {
  position: relative;
  z-index: 1;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .digital-solutions-bg-canvas,
  .metrology-bg-canvas {
    opacity: 0.75;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DOUBLE-CLICK READING CLARITY LIGHT & SENTENCE FOCUS
   - Inactive by default: zero overlay, zero flickering on normal pointer move
   - Activates strictly on double click to illuminate hard-to-read sentences
/* Custom synthetic pointer tracker deactivated — native crisp cursor preserved */
#nvx-pointer-dot, #nvx-clarity-light {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL HIGH-CONTRAST TEXT CLARITY SYSTEM (ALL PAGES)
   Ensures all words, sentences, descriptions, and labels are instantly,
   effortlessly legible across the site without dimness or washed-out grays.
   ═══════════════════════════════════════════════════════════════════════════ */
p, li, dd, dt, .desc, .summary, .section-desc, .hero-desc, .page-hero p,
.card p, .bento-card p, .tier-card p, .product-card p, .service-card p,
.pricing-subtitle, .pv-sub, .why-not-body, .mkt-loss, .step p, .feat {
  color: var(--text-mid);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Override legacy dim inline colors on all paragraphs and spans across all pages */
[style*="color:#94A3B8"], [style*="color: #94A3B8"],
[style*="color:#64748B"], [style*="color: #64748B"],
[style*="color:#475569"], [style*="color: #475569"],
[style*="color:#6B7280"], [style*="color: #6B7280"] {
  color: var(--text-mid) !important;
}

/* Primary headings and bold accents */
h1, h2, h3, h4, h5, h6, strong, b, .text-hi, .req-val {
  color: var(--text-hi);
}

/* Secondary labels, pill markers, timestamps, hashes */
small, .subtext, .caption, .req-label, .step-n, .dl-card-sub, .terminal-meta,
.sec-div span {
  color: var(--text-lo);
}

/* High contrast download & content card defaults */
.dl-card {
  position: relative;
  background: #090C14;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: #F8FAFC;
}
.dl-card h2, .dl-card h3, .dl-card-title, .path-title {
  color: #F8FAFC !important;
}
.dl-card p, .dl-card-desc, .path-desc, .sec-desc {
  color: #CBD5E1;
  line-height: 1.7;
}

/* Day Mode Global Overrides for All Pages */
[data-theme="day"] p,
[data-theme="day"] li,
[data-theme="day"] dd,
[data-theme="day"] .desc,
[data-theme="day"] .section-desc,
[data-theme="day"] .hero-desc,
[data-theme="day"] .page-hero p,
[data-theme="day"] .card p,
[data-theme="day"] .bento-card p,
[data-theme="day"] .tier-card p,
[data-theme="day"] .product-card p,
[data-theme="day"] .service-card p,
[data-theme="day"] .pricing-subtitle,
[data-theme="day"] .pv-sub,
[data-theme="day"] .why-not-body,
[data-theme="day"] .mkt-loss,
[data-theme="day"] .step p,
[data-theme="day"] .feat {
  color: #1E293B !important;
}

[data-theme="day"] h1,
[data-theme="day"] h2,
[data-theme="day"] h3,
[data-theme="day"] h4,
[data-theme="day"] h5,
[data-theme="day"] h6,
[data-theme="day"] strong,
[data-theme="day"] b {
  color: #050811 !important;
}

[data-theme="day"] small,
[data-theme="day"] .subtext,
[data-theme="day"] .caption,
[data-theme="day"] .req-label,
[data-theme="day"] .step-n,
[data-theme="day"] .sec-div span,
[data-theme="day"] .dl-card-sub {
  color: #475569 !important;
}

[data-theme="day"] .dl-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06) !important;
  color: #0F172A !important;
}
[data-theme="day"] .dl-card h2,
[data-theme="day"] .dl-card h3,
[data-theme="day"] .dl-card-title,
[data-theme="day"] .path-title {
  color: #0F172A !important;
}
[data-theme="day"] .dl-card p,
[data-theme="day"] .dl-card-desc,
[data-theme="day"] .path-desc,
[data-theme="day"] .sec-desc {
  color: #1E293B !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT VIDEO FLEET SHOWCASE & THEATER
   ═══════════════════════════════════════════════════════════════════════════ */
.video-showcase-section {
  margin: 3.5rem 0;
  width: 100%;
}
.video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}
.video-showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.video-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}
.video-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.video-player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: none;
  background: #000000;
}
.video-card-body {
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.video-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #DFBA73;
  margin-bottom: 0.75rem;
}
.video-card-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
}
.video-card-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.video-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: var(--text-lo);
}
[data-theme="day"] .video-showcase-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
[data-theme="day"] .video-showcase-card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.25);
}
[data-theme="day"] .video-card-meta {
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL CURSIVE ACCENTS & STYLISH FLOATING DOCK
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. High-Craft Cursive / Editorial Italic Accent */
.cursive-accent {
  font-family: var(--font-cursive);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #DFBA73;
  display: inline;
}

[data-theme="day"] .cursive-accent {
  color: #B8530E;
}

/* 2. Stylish Floating Action Dock (Hidden on initial hero, revealed on scroll) */
.floating-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0.65rem 0.5rem 1.25rem;
  background: rgba(13, 16, 23, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(223, 186, 115, 0.32);
  border-radius: 9999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(223, 186, 115, 0.4);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

.floating-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
}

.floating-dock:hover {
  border-color: rgba(223, 186, 115, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 186, 115, 0.15);
}

.floating-dock-badge,
.dock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label, monospace);
  font-size: 0.725rem;
  font-weight: 600;
  color: #DFBA73;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.floating-dock-dot,
.dock-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 11px;
  line-height: 1;
  color: #DFBA73;
  text-shadow: 0 0 8px rgba(223, 186, 115, 0.7);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  animation: dockSparkPulse 2.4s ease-in-out infinite;
}
.floating-dock-dot::before,
.dock-pulse::before {
  content: '•';
  display: inline-block;
}

@keyframes dockSparkPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); filter: drop-shadow(0 0 2px rgba(223, 186, 115, 0.4)); }
  50% { opacity: 1; transform: scale(1.22); filter: drop-shadow(0 0 7px rgba(223, 186, 115, 0.9)); }
}

.floating-dock-divider,
.dock-divider {
  width: 1px;
  height: 18px;
  background: rgba(223, 186, 115, 0.25);
  flex-shrink: 0;
}

.floating-dock-links,
.dock-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.floating-dock-links a,
.dock-link {
  color: #CBD5E1;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.floating-dock-links a:hover,
.dock-link:hover {
  color: #FFFFFF;
}

.floating-dock-cta,
.dock-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #B8530E 0%, #DFBA73 100%);
  color: #07080B !important;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(184, 83, 14, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-dock-cta span,
.dock-cta span {
  white-space: nowrap;
  display: inline-block;
}

.floating-dock-cta:hover,
.dock-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(223, 186, 115, 0.45);
  filter: brightness(1.08);
}

/* Day theme styling */
[data-theme="day"] .floating-dock {
  background: rgba(252, 250, 245, 0.96);
  border-color: rgba(184, 83, 14, 0.30);
  box-shadow: 0 14px 36px rgba(20, 24, 36, 0.12);
}

[data-theme="day"] .floating-dock-badge,
[data-theme="day"] .dock-badge {
  color: #B8530E;
}

[data-theme="day"] .floating-dock-dot,
[data-theme="day"] .dock-pulse {
  color: #B8530E;
  text-shadow: 0 0 6px rgba(184, 83, 14, 0.5);
  background: transparent;
  box-shadow: none;
}

[data-theme="day"] .floating-dock-divider,
[data-theme="day"] .dock-divider {
  background: rgba(184, 83, 14, 0.22);
}

[data-theme="day"] .floating-dock-links a,
[data-theme="day"] .dock-link {
  color: #334155;
}

[data-theme="day"] .floating-dock-links a:hover,
[data-theme="day"] .dock-link:hover {
  color: #0F172A;
}

[data-theme="day"] .floating-dock-cta,
[data-theme="day"] .dock-cta {
  background: linear-gradient(135deg, #85441E 0%, #B8530E 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(133, 68, 30, 0.25);
}

@media (max-width: 820px) {
  .floating-dock-links,
  .dock-links,
  .floating-dock-divider,
  .dock-divider {
    display: none !important;
  }
  .floating-dock {
    bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    padding: 0.38rem 0.5rem 0.38rem 0.95rem;
    gap: 0.75rem;
  }
}




/* Homepage Editorial Hero Tagline (Seobility Content-Alignment) */
.hero-tagline {
  font-family: var(--font-headline);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 600;
  color: var(--text-mid);
  margin: -0.25rem 0 1.25rem 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero-tagline .cursive-accent {
  font-family: var(--font-cursive);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #DFBA73;
}
[data-theme="day"] .hero-tagline {
  color: #475569;
}
