/*
   (\_/)      JAYS.WORK - DESIGN, WEBAPPS & AI STUDIO (v4.2.1)
  (o.o)      ------------------------------------------------
  / >()      Hey! Wat leuk dat je in de stylesheet kijkt!
             Strakke vormgeving, schone code & vloeiende interacties.
             Contact Jay: https://jays.work | 06-48 27 88 74 | hi@jays.work
*/
:root {
  --bg-canvas: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;
  --border-hover: #CBD5E1;
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  --spring-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bouncy: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font-unified: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html.dark {
  --bg-canvas: #090D16;
  --bg-surface: #0F1626;
  --bg-surface-elevated: #162035;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.18);
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --card-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.65);
}

body {
  font-family: var(--font-unified);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Site-brede typografische rust: één consistent lettertype overal */
.font-display,
.font-sans,
.font-mono {
  font-family: var(--font-unified) !important;
  font-variant-numeric: tabular-nums;
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Normaliseer te kleine tekstgroottes naar een rustige, leesbare schaal */
.text-\[9px\],
.text-\[10px\],
.text-\[11px\],
.text-xs {
  font-size: 0.875rem !important; /* 14px rustige basis voor labels & subteksten */
  line-height: 1.5 !important;
}
.text-sm {
  font-size: 0.9375rem !important; /* 15px voor secundaire bodytekst */
  line-height: 1.6 !important;
}

.hero-grid-pattern {
  background-image: radial-gradient(rgba(245, 158, 11, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}
html.dark .hero-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-ambient-aura {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.02) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s var(--spring-smooth), 
              transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), 
              box-shadow 0.35s var(--spring-smooth);
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 18px 45px -10px var(--accent-glow);
}

.strida-reveal {
  opacity: 0;
  transform: translateY(52px) scale(0.92);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.34, 1.28, 0.64, 1);
  will-change: transform, opacity;
}
.strida-reveal.is-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.strida-delay-1 { transition-delay: 80ms; }
.strida-delay-2 { transition-delay: 170ms; }
.strida-delay-3 { transition-delay: 260ms; }
.strida-delay-4 { transition-delay: 350ms; }

.strida-image-container {
  overflow: hidden;
  border-radius: 14px;
  transform: translateZ(0);
}
.strida-image-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.strida-reveal.is-in-view .strida-image-container img,
.strida-image-container:hover img {
  transform: scale(1.055);
}

.strida-glow-sweep {
  position: relative;
}
.strida-glow-sweep::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.5) 50%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}
.strida-reveal.is-in-view.strida-glow-sweep::after,
.bento-card:hover.strida-glow-sweep::after {
  opacity: 1;
  animation: stridaSweep 1.6s var(--spring-smooth) forwards;
}
@keyframes stridaSweep {
  0% { background-position: -150% 0; }
  100% { background-position: 150% 0; opacity: 0; }
}

/* ==========================================================================
   MICRO-ANIMATIONS: DESKTOP HEADER & NAVIGATION
   ========================================================================== */
.header-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F59E0B;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.header-nav-link:hover::after,
.header-nav-link.is-active::after {
  width: 100%;
  left: 0;
}
.header-nav-link.is-active {
  color: var(--text-main) !important;
  font-weight: 600;
}

.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
              visibility 0.25s;
  pointer-events: none;
}
.group:hover .nav-dropdown-menu,
.group:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.dropdown-item:hover {
  transform: translateX(4px);
}
.dropdown-item svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.dropdown-item:hover svg {
  transform: scale(1.18) rotate(-4deg);
}

/* SkyRyeDesign CTA Button Design Best Practices:
   - Min 46px height & generous padding for comfortable desktop/mobile tap targets
   - Tactile 12px rounded corners, high-contrast amber primary vs calm secondary ghost
   - Immediate visual & physical feedback on hover and click */
.btn-primary {
  background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
  color: #090D16 !important;
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 46px;
  padding: 0.7rem 1.45rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.22s var(--spring-smooth), box-shadow 0.22s var(--spring-smooth), filter 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -4px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary span:last-child,
.btn-ghost span:last-child {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover span:last-child,
.btn-ghost:hover span:last-child {
  transform: translateX(4px);
}

.phone-chip {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.phone-chip:hover {
  transform: translateY(-1px);
}
.phone-chip:hover svg {
  animation: phoneWobble 0.6s ease-in-out;
}
@keyframes phoneWobble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-14deg) scale(1.1); }
  40% { transform: rotate(10deg) scale(1.1); }
  60% { transform: rotate(-6deg) scale(1.05); }
  80% { transform: rotate(3deg); }
}

.btn-primary:active {
  transform: scale(0.97) !important;
  transition: transform 90ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-ghost:active {
  transform: scale(0.97) !important;
  transition: transform 90ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.draggable-spring-chip:active,
#theme-toggle-btn:active,
#hamburger-btn:active,
.nav-item:active {
  transform: scale(0.97) !important;
  transition: transform 90ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-ghost {
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  background: var(--bg-surface);
  border-color: #F59E0B;
  transform: translateY(-1px);
}

.hamburger-bar {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.22s ease;
  transform-origin: 12px 12px;
}
.hamburger-active .hamburger-bar-top {
  transform: translateY(3px) rotate(45deg);
}
.hamburger-active .hamburger-bar-bot {
  transform: translateY(-3px) rotate(-45deg);
}

#mobile-drawer {
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), 
              visibility 0.32s;
  transform-origin: top center;
}
#mobile-drawer.drawer-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#mobile-drawer.closed {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
  pointer-events: none;
}

#mobile-drawer .nav-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-drawer.drawer-open .nav-item:nth-child(1) { transition-delay: 40ms; opacity: 1; transform: translateY(0); }
#mobile-drawer.drawer-open .nav-item:nth-child(2) { transition-delay: 75ms; opacity: 1; transform: translateY(0); }
#mobile-drawer.drawer-open .nav-item:nth-child(3) { transition-delay: 110ms; opacity: 1; transform: translateY(0); }
#mobile-drawer.drawer-open .nav-item:nth-child(4) { transition-delay: 145ms; opacity: 1; transform: translateY(0); }
#mobile-drawer.drawer-open .nav-item:nth-child(5) { transition-delay: 180ms; opacity: 1; transform: translateY(0); }
#mobile-drawer.drawer-open .nav-item:nth-child(6) { transition-delay: 215ms; opacity: 1; transform: translateY(0); }

#mobile-drawer .drawer-footer {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-drawer.drawer-open .drawer-footer {
  transition-delay: 250ms;
  opacity: 1;
  transform: translateY(0);
}

#mobile-drawer.closed .nav-item,
#mobile-drawer.closed .drawer-footer {
  transition-delay: 0ms !important;
  opacity: 0;
  transform: translateY(-4px);
}

/* ==========================================================================
   FLOATING DETACHED HEADER CAPSULE (Apple Fluid Interface & Luxe Island Morph)
   ========================================================================== */
#main-header.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background-color: transparent;
  pointer-events: none;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-capsule {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  padding: 12px 1.5rem;
  border-radius: 0;
  border: 1px solid transparent;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  pointer-events: auto;
  transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              min-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .header-capsule {
    min-height: 88px;
    padding: 16px 1.5rem;
  }
}

/* Wanneer het menu 'los' komt bij scrollen (Floating Island Pill) */
#main-header.is-scrolled {
  padding-top: 14px;
}

#main-header.is-scrolled .header-capsule {
  max-width: 1080px !important;
  min-height: 60px !important;
  padding: 8px 1.5rem !important;
  border-radius: 9999px !important; /* Perfecte ronde floating pill */
  background-color: rgba(15, 22, 38, 0.90) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.70),
              0 0 25px -4px rgba(245, 158, 11, 0.20),
              inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

@media (min-width: 768px) {
  #main-header.is-scrolled .header-capsule {
    padding: 10px 1.75rem !important;
    min-height: 64px !important;
  }
}

/* Light mode zwevende capsule */
html:not(.dark) #main-header.is-scrolled .header-capsule {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12),
              0 0 20px -4px rgba(245, 158, 11, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* 3D Card Perspective Tilt & Holographic Cursor Sheen */
.jay-3d-wrapper {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.jay-3d-card {
  transition: transform 0.12s ease-out, box-shadow 0.2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.jay-3d-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.28), transparent 70%);
  z-index: 5;
}
.jay-3d-card:hover .jay-3d-sheen {
  opacity: 1;
}

/* Avatar Float & Synchronized Ground Shadow Breathing */
.jay-avatar-float {
  animation: avatarFloatBig 3.6s ease-in-out infinite alternate;
}
@keyframes avatarFloatBig {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.4deg); }
  100% { transform: translateY(-4px) rotate(-0.8deg); }
}

.avatar-shadow-track {
  transition: transform 0.2s ease, opacity 0.2s ease;
  animation: shadowBreathe 3.6s ease-in-out infinite alternate;
}
@keyframes shadowBreathe {
  0% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(0.82); opacity: 0.25; }
  100% { transform: scale(0.92); opacity: 0.45; }
}

/* Origami Brandmark SVG Micro-Animation */
.origami-container {
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.origami-container:hover {
  transform: scale(1.12) rotate(6deg);
}
.origami-path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: strokeDraw 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.origami-fill {
  opacity: 0;
  animation: fillBloom 0.8s ease 0.6s forwards;
}
@keyframes strokeDraw {
  0% { stroke-dashoffset: 220; }
  100% { stroke-dashoffset: 0; }
}
@keyframes fillBloom {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
.origami-container:hover .origami-path {
  animation: strokeDraw 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.origami-container:hover .origami-fill {
  animation: fillBloom 0.5s ease 0.2s forwards;
}

/* Draggable Spring Chips */
.draggable-spring-chip {
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.draggable-spring-chip:active {
  cursor: grabbing;
  transition: none;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.45);
}

/* Speech Bubble Spring Pop */
.speech-bubble-pop {
  animation: bubbleSpring 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  transform-origin: bottom left;
}
@keyframes bubbleSpring {
  0% { opacity: 0; transform: scale(0.8) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Equalizer Bars */
.eq-bar {
  display: inline-block !important;
  width: 2.5px !important;
  background: #F59E0B;
  border-radius: 9999px;
  transform-origin: bottom;
  animation: eqJump 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { animation-delay: 0.1s; height: 6px; }
.eq-bar:nth-child(2) { animation-delay: 0.35s; height: 15px; }
.eq-bar:nth-child(3) { animation-delay: 0.05s; height: 18px; }
.eq-bar:nth-child(4) { animation-delay: 0.25s; height: 9px; }
@keyframes eqJump {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Range Slider Glowing Thumb */
input[type=range] {
  -webkit-appearance: none;
  background: var(--border-subtle);
  border-radius: 9999px;
  height: 6px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #F59E0B;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.typing-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background-color: #F59E0B;
  animation: blinkCursor 0.9s infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

@media (prefers-reduced-motion: reduce) {
  .jay-3d-card { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  #main-header.header-wrapper {
    background-color: var(--bg-canvas) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #main-header.is-scrolled .header-capsule {
    background-color: var(--bg-surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .bento-card {
    backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  #main-header.is-scrolled .header-capsule {
    border: 2px solid var(--accent) !important;
  }
  .bento-card {
    border: 2px solid var(--border-hover) !important;
  }
}

/* ==========================================================================
   APPLE DESIGN: TYPOGRAPHY (WWDC 2020/2026 Optical Sizing & Tracking)
   ========================================================================== */
h1, .font-display.text-4xl, .font-display.text-5xl, .font-display.text-6xl {
  letter-spacing: -0.035em !important;
  line-height: 1.08 !important;
  font-optical-sizing: auto;
}
h2, .font-display.text-3xl {
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  font-optical-sizing: auto;
}
h3, .font-display.text-2xl {
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  font-optical-sizing: auto;
}

/* ==========================================================================
   JAYS.WORK v4.0: AGENTIC UI, SPOTLIGHT PHYSICS & ANTI-BOX ARCHITECTURE
   ========================================================================== */

/* 1. Cursor-Tracked Spotlight Surface */
.spotlight-surface {
  position: relative;
  overflow: hidden;
}
.spotlight-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(245, 158, 11, 0.11),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.spotlight-surface:hover::before {
  opacity: 1;
}

/* 2. Interactive 6-Pillar Hairline Matrix (Anti-Slop Layout Family) */
.service-matrix-row {
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s var(--spring-smooth),
              padding-left 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  cursor: pointer;
}
.service-matrix-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #F59E0B;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.service-matrix-row:hover,
.service-matrix-row.is-active {
  background-color: var(--bg-surface-elevated);
  padding-left: 1.25rem;
}
.service-matrix-row.is-active::before,
.service-matrix-row:hover::before {
  transform: scaleY(1);
}
.service-matrix-row .matrix-num {
  transition: color 0.25s ease, transform 0.25s var(--spring-bouncy);
}
.service-matrix-row.is-active .matrix-num,
.service-matrix-row:hover .matrix-num {
  color: #F59E0B;
  transform: translateX(2px);
}

/* 3. Jay's 3D Avatar AI Sparringpartner Console (Hero Centerpiece) */
.jay-ai-console {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 0 48px -10px var(--accent-glow);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--spring-smooth);
  overflow: hidden;
}
.jay-ai-console:focus-within,
.jay-ai-console:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 36px 90px -18px rgba(0, 0, 0, 0.75), 0 0 64px -8px var(--accent-glow);
}

.jay-ai-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.ai-chat-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.22) transparent;
  scroll-behavior: smooth;
}
.ai-chat-scroll::-webkit-scrollbar {
  width: 4px;
}
.ai-chat-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.ai-chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.22);
  border-radius: 9999px;
}
.ai-chat-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.5);
}

.ai-bubble-jay {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 16px 16px 16px 4px;
  animation: bubbleSpring 0.38s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.ai-bubble-user {
  background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
  color: #090D16;
  font-weight: 600;
  border-radius: 16px 16px 4px 16px;
  animation: bubbleSpring 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.ai-chip,
.ai-quick-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  cursor: pointer;
}
.ai-chip:hover,
.ai-quick-chip:hover {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  transform: translateY(-2px);
}
.ai-chip:active,
.ai-quick-chip:active {
  transform: scale(0.97);
}

.ai-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  animation: aiDotBounce 1.1s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes aiDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Jay Avatar Thinking / Excited State */
.jay-avatar-thinking {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.55) !important;
  animation: jayPulseThink 0.65s ease-in-out infinite alternate !important;
}
@keyframes jayPulseThink {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.08) rotate(2deg); }
}

/* 4. Single Infinite Editorial Marquee (Max 1 per page rule) */
.marquee-mask {
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeSlide 38s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 5. Floating Jay Avatar Quick-Dock (Bottom Right) */
.jay-floating-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
}

.jay-floating-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.15rem 0.45rem 0.45rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 16px 38px -8px rgba(0, 0, 0, 0.55), 0 0 20px -4px var(--accent-glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, border-color 0.25s ease;
}
.jay-floating-dock-btn:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #F59E0B;
  box-shadow: 0 20px 44px -8px rgba(0, 0, 0, 0.65), 0 0 28px -2px rgba(245, 158, 11, 0.35);
}
.jay-floating-dock-btn:active {
  transform: scale(0.96);
}
.jay-floating-dock-avatar {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}
.jay-floating-dock-sub {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  font-weight: 600;
}


