/*
   (\_/)      JAYS.WORK - DESIGN, WEBAPPS & AI STUDIO (v4.8.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
*/

/* Zelf-gehoste moderne Inter Variable WOFF2 (47 KB) - 0 externe latency, 0 TTF */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin-var.woff2?v=4.8.1') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg-canvas: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;
  --border-hover: #CBD5E1;
  --accent: #F5A623;
  --accent-glow: rgba(245, 166, 35, 0.18);
  --color-mint: #1CBBA4;
  --color-mint-glow: rgba(28, 187, 164, 0.22);
  --color-violet: #584B81;
  --color-amber: #F5A623;
  --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 {
  color-scheme: dark;
  --bg-canvas: #07080A;
  --bg-surface: #0C0E14;
  --bg-surface-elevated: #131722;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(28, 187, 164, 0.38);
  --accent: #F5A623;
  --accent-glow: rgba(28, 187, 164, 0.25);
  --color-mint: #1CBBA4;
  --color-mint-glow: rgba(28, 187, 164, 0.28);
  --color-violet: #584B81;
  --color-amber: #F5A623;
  --card-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.85);
}

html {
  scroll-behavior: smooth;
}

/* A11y Skip Link & Screen Reader Only Utilities */
.sr-only,
.skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

.sr-only:focus,
.focus\:not-sr-only:focus,
.skip-link:focus {
  position: fixed !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  z-index: 50 !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background-color: #F59E0B !important;
  color: #020617 !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

/* Web Interface Guidelines & WCAG 2.2 AA Focus-staten */
:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Sticky Header offset compensatie voor alle ankers */
[id] {
  scroll-margin-top: 5rem;
}

/* Typografische balans en anti-widow discipline */
h1, h2, h3, h4 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Preventie van rubber-banding en achtergrondscroll */
.ai-chat-scroll,
#mobile-drawer,
#modal-llms,
#intake-modal {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-unified);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  overflow-x: clip; /* Voorkomt horizontaal scrollen ZONDER position: sticky te breken */
  position: relative;
  width: 100%;
  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 {
  display: none;
}

.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-arrow,
.btn-primary > span:last-child:not(:first-child),
.btn-ghost > span:last-child:not(:first-child) {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow,
.btn-primary:hover > span:last-child:not(:first-child),
.btn-ghost:hover > span:last-child:not(:first-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;
}

/* ==========================================================================
   HERO CTA DUO & DYNAMIC HEADER CTA (v4.7.0 Smart Transition)
   ========================================================================== */
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1E293B;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s var(--spring-smooth), box-shadow 0.22s var(--spring-smooth), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(245, 158, 11, 0.8);
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.12);
}
html.dark .hero-btn-secondary {
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
html.dark .hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 158, 11, 0.6);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
}
.hero-btn-secondary .hero-btn-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-btn-secondary:hover .hero-btn-arrow {
  transform: translateY(3px);
  color: #F59E0B;
}
.hero-btn-secondary:active {
  transform: scale(0.97) !important;
}

/* Dynamische CTA in de header: inklapbaar wanneer de Hero CTA in beeld is */
.header-cta-dynamic {
  max-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transform: scale(0.9) translateY(-3px);
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s;
}

.header-cta-dynamic.is-visible {
  max-width: 260px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: scale(1) translateY(0);
  padding: 0.7rem 1.45rem !important;
  border-width: 1px !important;
}

@media (max-width: 767px) {
  .header-cta-dynamic.is-visible {
    max-width: 160px !important;
    padding: 0.35rem 0.75rem !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 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  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 (max-width: 767px) {
  .header-capsule {
    min-height: 56px !important;
    padding: 8px 1rem !important;
  }
  .header-capsule .btn-primary {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    gap: 0.25rem !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25) !important;
  }
  #main-header.is-scrolled .header-capsule {
    min-height: 52px !important;
    padding: 6px 1rem !important;
  }
}

@media (min-width: 768px) {
  .header-capsule {
    min-height: 88px;
    padding: 16px 1.5rem;
  }
}

/* Wanneer het menu 'los' komt bij scrollen (Floating Island Pill - Echte Transparantie) */
#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(10, 14, 24, 0.28) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.40),
              inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

@media (min-width: 768px) {
  #main-header.is-scrolled .header-capsule {
    padding: 10px 1.75rem !important;
    min-height: 64px !important;
  }
}

/* Light mode zwevende capsule (Transparant Frosted Glass) */
html:not(.dark) #main-header.is-scrolled .header-capsule {
  background-color: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08),
              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;
  will-change: stroke-dashoffset, transform;
}
.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) {
  .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;
  -webkit-overflow-scrolling: touch;
}
.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);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.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;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
              background-color 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
              border-color 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
              transform 0.2s 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);
}

/* Quick Chips Desktop Horizontal Scrollbar & Dragging */
#jay-ai-chips,
#jay-ai-quick-chips {
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.4) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
#jay-ai-chips.is-dragging,
#jay-ai-quick-chips.is-dragging {
  cursor: grabbing;
  user-select: none;
}
#jay-ai-chips::-webkit-scrollbar,
#jay-ai-quick-chips::-webkit-scrollbar {
  height: 4px;
}
#jay-ai-chips::-webkit-scrollbar-track,
#jay-ai-quick-chips::-webkit-scrollbar-track {
  background: transparent;
}
#jay-ai-chips::-webkit-scrollbar-thumb,
#jay-ai-quick-chips::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
}
#jay-ai-chips::-webkit-scrollbar-thumb:hover,
#jay-ai-quick-chips::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

.ai-chips-nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.ai-chips-nav-btn:hover {
  border-color: #F59E0B;
  color: #F59E0B;
  transform: scale(1.1);
}

.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(28, 187, 164, 0.45);
  box-shadow: 0 16px 38px -8px rgba(0, 0, 0, 0.65), 0 0 20px -4px var(--color-mint-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: #1CBBA4;
  box-shadow: 0 20px 44px -8px rgba(0, 0, 0, 0.75), 0 0 28px -2px rgba(28, 187, 164, 0.45);
}
.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;
}

/* Op mobiele schermen: compacte zwevende cirkelknop */
@media (max-width: 768px) {
  .jay-floating-dock {
    right: 1rem;
    bottom: 1rem;
  }
  .jay-floating-dock-btn {
    padding: 0.35rem;
    border-radius: 9999px;
  }
  .jay-floating-dock-btn .text-left {
    display: none;
  }
}

/* ==========================================================================
   6. DARK STONE BACKDROP & HERO AMBIANCE (92025.jpg Stijl)
   ========================================================================== */
#main-content {
  position: relative;
  z-index: 10;
}
/* Standaard (Lichte Modus): Realistische Witte Stenen (v4.8.0) */
.hero-stone-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 740px;
  max-height: 90vh;
  background-image: url('header-stones-light.webp?v=4.8.1');
  background-size: cover;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.hero-stone-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.0) 0%, rgba(250, 250, 250, 0.03) 20%, rgba(250, 250, 250, 0.55) 70%, var(--bg-canvas) 100%),
              radial-gradient(ellipse at 22% 42%, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.55) 55%, transparent 80%),
              radial-gradient(circle at 75% 45%, transparent 35%, rgba(250, 250, 250, 0.25) 80%);
  pointer-events: none;
}

/* Donkere Modus (html.dark): Zwarte Stenen */
html.dark .hero-stone-backdrop {
  background-image: url('header-stones.webp?v=4.8.1');
  opacity: 1;
}

html.dark .hero-stone-backdrop::after {
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.0) 0%, rgba(8, 10, 14, 0.02) 20%, rgba(8, 10, 14, 0.50) 70%, var(--bg-canvas) 100%),
              radial-gradient(ellipse at 22% 42%, rgba(6, 8, 12, 0.85) 0%, rgba(6, 8, 12, 0.45) 55%, transparent 80%),
              radial-gradient(circle at 75% 45%, transparent 35%, rgba(8, 10, 14, 0.35) 80%);
}

/* ==========================================================================
   7. 3D FUR ORIGAMI LOGO HERO STAGE (Puur, Geen Gloed, Natuurlijke Aspect-Ratio)
   ========================================================================== */
.jay-fur-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  width: 100%;
  max-width: 420px;
}
#jay-fur-canvas {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 648 / 793;
  cursor: grab;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out;
}
#jay-fur-canvas:active {
  cursor: grabbing;
}
.jay-fur-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: rgba(12, 14, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-mint);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
  border: 1px solid var(--border-subtle);
  color: var(--color-mint);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ==========================================================================
   8. GLOBAL SLIDE-UP CHAT DRAWER / WIDGET (LINEAR / INTERCOM STYLE)
   ========================================================================== */
#jay-chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#jay-chat-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

#jay-chat-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 440px;
  max-width: calc(100vw - 2.5rem);
  max-height: min(680px, calc(100dvh - 3rem));
  height: 640px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid rgba(28, 187, 164, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -5px var(--color-mint-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.34, 1.35, 0.64, 1);
  overflow: hidden;
}

#jay-chat-widget.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Mobile drawer behavior (<640px) */
@media (max-width: 640px) {
  #jay-chat-widget {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 92dvh;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }
  #jay-chat-widget.is-open {
    transform: translateY(0);
  }
}





/* ==========================================================================
   HERO TYPOGRAPHY: THEME-AWARE CONTRAST (Light & Dark Mode) (v4.8.1)
   ========================================================================== */
.hero-tagline {
  color: #64748B;
}
html.dark .hero-tagline {
  color: #94A3B8 !important;
}

.hero-headline {
  color: #0F172A;
}
html.dark .hero-headline {
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hero-subline {
  color: #334155;
}
html.dark .hero-subline {
  color: #F1F5F9 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.hero-stats-divider {
  color: #475569;
  border-color: rgba(0, 0, 0, 0.14);
}
html.dark .hero-stats-divider {
  color: #E2E8F0 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
